mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
add IOC for binance wrapper (#1022)
This commit is contained in:
@@ -934,6 +934,9 @@ func (b *Binance) SubmitOrder(ctx context.Context, s *order.Submit) (*order.Subm
|
||||
timeInForce = ""
|
||||
requestParamsOrderType = BinanceRequestParamsOrderMarket
|
||||
case order.Limit:
|
||||
if s.ImmediateOrCancel {
|
||||
timeInForce = BinanceRequestParamsTimeIOC
|
||||
}
|
||||
requestParamsOrderType = BinanceRequestParamsOrderLimit
|
||||
default:
|
||||
return nil, errors.New("unsupported order type")
|
||||
|
||||
Reference in New Issue
Block a user