Using Trade history data to build balances results in a final NEGATIVE token balance

I’m trying to recreate my transaction history and daily balances fetching data from myTrades API, but I see a problem I cannot explain.

I’ll make an example: I have made this trade where I sell 200 EUR to buy 243.44 USDT

{
    "symbol": "EURUSDT",
    "id": <MY_TRADE_ID>,
    "orderId": <MY_ORDER_ID>,
    "orderListId": -1,
    "price": "1.21720000",
    "qty": "200.00000000",
    "quoteQty": "243.44000000",
    "commission": "0.00035972",
    "commissionAsset": "BNB",
    "time": 1621366062851,
    "isBuyer": false,
    "isMaker": false,
    "isBestMatch": true
}

after that trade, I make a trade where I sell all those USDT to buy FTM

{
    "symbol": "FTMUSDT",
    "id": <MY_TRADE_ID>,
    "orderId": <MY_ORDER_ID>,
    "orderListId": -1,
    "price": "0.60000000",
    "qty": "408.10000000",
    "quoteQty": "244.86000000",
    "commission": "0.00043569",
    "commissionAsset": "BNB",
    "time": 1621422676238,
    "isBuyer": true,
    "isMaker": true,
    "isBestMatch": true
}

How is it possible that in the second trade I sold 244.86 USDT when in my balance I had only 243.44 USDT purchased with the trade before?

Could you please explain what is happening?

Hello, as those trades can be viewable through the UI, I would highly suggest contacting the Customer Support for a closer look at. They have access to your trades history and can have the complete analyses.