Hello Everyone.
I’m having some issues when selling through the API.
I buy some coin and when i’m going to sell, it won’t.
BUY:
Request sent: timestamp=1617848998979&symbol=OGNUSDT&side=BUY&type=MARKET"eOrderQty=100
Response Received:
10:29:59 - {
“symbol”: “OGNUSDT”,
“orderId”: 121352258,
“orderListId”: -1,
“clientOrderId”: “5U48bLYkcScWqzEX9e8PHw”,
“transactTime”: 1617848998873,
“price”: “0.00000000”,
“origQty”: “30.61000000”,
“executedQty”: “30.61000000”,
“cummulativeQuoteQty”: “99.97220900”,
“status”: “FILLED”,
“timeInForce”: “GTC”,
“type”: “MARKET”,
“side”: “BUY”,
“fills”: [
{
“price”: “3.26480000”,
“qty”: “1.64000000”,
“commission”: “0.00164000”,
“commissionAsset”: “OGN”,
“tradeId”: 10987866
},
{
“price”: “3.26490000”,
“qty”: “3.09000000”,
“commission”: “0.00309000”,
“commissionAsset”: “OGN”,
“tradeId”: 10987867
},
{
“price”: “3.26520000”,
“qty”: “4.80000000”,
“commission”: “0.00480000”,
“commissionAsset”: “OGN”,
“tradeId”: 10987868
},
{
“price”: “3.26530000”,
“qty”: “4.00000000”,
“commission”: “0.00400000”,
“commissionAsset”: “OGN”,
“tradeId”: 10987869
},
{
“price”: “3.26670000”,
“qty”: “17.08000000”,
“commission”: “0.01708000”,
“commissionAsset”: “OGN”,
“tradeId”: 10987870
}
]
}
Now, as you can see, the executedQty value is 30.61000000
SELL:
Request sent:
timestamp=1617869890597&symbol=OGNUSDT&side=SELL&type=MARKET&quantity=30.61
Response Received:
04:18:10 - {“code”:-2010,“msg”:“Account has insufficient balance for requested action.”}
04:18:10 - {“code”:-2010,“msg”:“Account has insufficient balance for requested action.”}
So my question is, why does this happens? I’m requesting to sell the same ammount that i bought.
What am i missing here? Can anyone point me in the right direction?
Thanks in advance