binance_cfutures: TimeOnForce is an optional order submission field (#867)

Do not add it to the request unless filled out as the API will deny the
request otherwise.
This commit is contained in:
Luis Rascão
2022-01-17 00:18:34 +00:00
committed by GitHub
parent 92047dac87
commit 58c0616a46
4 changed files with 13 additions and 5 deletions

View File

@@ -923,7 +923,7 @@ func TestFuturesNewOrder(t *testing.T) {
Symbol: currency.NewPairWithDelimiter("BTCUSD", "PERP", "_"),
Side: "BUY",
OrderType: "LIMIT",
TimeInForce: "GTC",
TimeInForce: BinanceRequestParamsTimeGTC,
Quantity: 1,
Price: 1,
},