cannot cancel orders from binance futures
lihp11 opened this issue · comments
My stub is named as "mabinance"
I type:
frostybot trade:mabinance:cancel symbol=FIL/USDT id=17902772251
It returned:
`{
"result": "error",
"message": "Failed to cancel order 17902772251",
"type": "Object",
"data": {
"result": "error",
"data": {}
},
"messages": [
"2022-05-25 03:52:29 | NOTICE | Command Parameters: {command: trade:cancel, symbol: FIL/USDT, id: 17902772251, stub: mabinance}",
"2022-05-25 03:52:29 | DEBUG | Execute permission granted using standard permission set: trade:cancel => [core]",
"2022-05-25 03:52:30 | ERROR | Failed to cancel order 17902772251",
"2022-05-25 03:52:30 | NOTICE | Command Completed: Execution Time: 1.275 seconds"
]
}'
Besides, I can use trade:cancellall to cancel the limit order. Thus, there may be some bugs in "trade:cancel" to a specific id.
I am sure the id is ok, because when I type:
frostybot trade:mabinance:orders symbol=FIL/USDT status=open
It returned:
{ "result": "success", "message": "1 Order(s) retrieved", "type": "frostybot_order[]", "data": [ { "symbol": "FIL/USDT", "id": "**17902772251**", "timestamp": 1653446254370, "datetime": "2022-05-25T02:37:34.370Z", "type": "limit", "direction": "sell", "price": 10, "trigger": 0, "size_base": 0.6, "size_quote": 6, "filled_base": 0, "filled_quote": 0, "status": "open" } ], "messages": [ "2022-05-25 03:47:58 | NOTICE | Command Parameters: {command: trade:orders, symbol: FIL/USDT, status: open, stub: mabinance}", "2022-05-25 03:47:58 | DEBUG | Execute permission granted using standard permission set: trade:orders => [core]", "2022-05-25 03:48:00 | SUCCESS | 1 Order(s) retrieved", "2022-05-25 03:48:00 | NOTICE | Command Completed: Execution Time: 1.871 seconds" ] }