1
Technical Support & Development / Re: binanceFutures positions opening but not closing
« on: February 29, 2020, 04:24:47 AM »
More on this. So I setup a proxy and intercepted the API calls to binance.
When gunbot is attempting to BUY against a SELL [close a short] - it sends: timestamp=1582949894415&recvWindow=5000&symbol=BTCUSDT&quantity=-2&type=LIMIT&side=BUY&newClientOrderId=<clientID>&price=8747.8&timeInForce=GTC&signature=<sig> to https://fapi.binance.com/fapi/v1/order
However, fapi.binance.com is returning:
{
"code": -1102,
"msg": "Mandatory parameter '-2' was not sent, was empty/null, or malformed."
}
Thus, the position isn't being closed.
Why is this? Is this a bug or a setting I need to tweak to ensure this param is passed?
When gunbot is attempting to BUY against a SELL [close a short] - it sends: timestamp=1582949894415&recvWindow=5000&symbol=BTCUSDT&quantity=-2&type=LIMIT&side=BUY&newClientOrderId=<clientID>&price=8747.8&timeInForce=GTC&signature=<sig> to https://fapi.binance.com/fapi/v1/order
However, fapi.binance.com is returning:
{
"code": -1102,
"msg": "Mandatory parameter '-2' was not sent, was empty/null, or malformed."
}
Thus, the position isn't being closed.
Why is this? Is this a bug or a setting I need to tweak to ensure this param is passed?