mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
fix_ok_sell_bug (#1173)
This commit is contained in:
@@ -409,7 +409,7 @@ func (ok *Okx) validatePlaceOrderParams(arg *PlaceOrderRequestParam) error {
|
||||
return errMissingInstrumentID
|
||||
}
|
||||
arg.Side = strings.ToLower(arg.Side)
|
||||
if arg.Side != order.Buy.Lower() && arg.Side != order.Sell.String() {
|
||||
if arg.Side != order.Buy.Lower() && arg.Side != order.Sell.Lower() {
|
||||
return fmt.Errorf("%w %s", errInvalidOrderSide, arg.Side)
|
||||
}
|
||||
if arg.TradeMode != TradeModeCross &&
|
||||
|
||||
Reference in New Issue
Block a user