mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-21 07:26:48 +00:00
Binance: fix issue on order submit (#259)
fix issue on order submit : Binance exchange raw response: {"code":-1102,"msg":"Mandatory parameter 'timeInForce' was not sent, was empty/null, or malformed."}
This commit is contained in:
committed by
Adrian Gallagher
parent
76ac98830e
commit
9c6c8f3341
@@ -224,11 +224,12 @@ func (b *Binance) SubmitOrder(p currency.Pair, side exchange.OrderSide, orderTyp
|
||||
}
|
||||
|
||||
var orderRequest = NewOrderRequest{
|
||||
Symbol: p.Base.String() + p.Quote.String(),
|
||||
Side: sideType,
|
||||
Price: price,
|
||||
Quantity: amount,
|
||||
TradeType: requestParamsOrderType,
|
||||
Symbol: p.Base.String() + p.Quote.String(),
|
||||
Side: sideType,
|
||||
Price: price,
|
||||
Quantity: amount,
|
||||
TradeType: requestParamsOrderType,
|
||||
TimeInForce: BinanceRequestParamsTimeGTC,
|
||||
}
|
||||
|
||||
response, err := b.NewOrder(orderRequest)
|
||||
|
||||
Reference in New Issue
Block a user