Show actual profits for cross margin deals

In futures when we close part of a position under average position, it realizes a loss ~ deducting our $ balance).
But in Gainium when we use multiple deals and some close below the average position entry price, those always show a profit.
That seems kind of inaccurate because it actually reduces our $ balance( a lose), yet the bot shows it as a profit.
I think the API has a function to get realized profit by closed trade ID.
I’m not saying Gainium should completely abandon current futures bot stats method, but it’s better if bots can show actual profit daily profits too. Otherwise, it’s hard to decide the actual daily profit to withdraw, especially when we run both spot and futures bots.
Thank You!


https://app.gainium.io/bot/6886ec01b6a8f5b0eb94e1c1?a=1088&aid=share-bot&share=2f2ab55e-d323-4882-bcfc-adc530419ce2

Thank you for reporting this issue regarding the profit calculation for cross-margin deals. We have received your bug report and will investigate it shortly. We understand your concern about the accuracy of the displayed profits, especially when partially closing positions below the average entry price. We will look into the API functionality for realized profit by closed trade ID to see if we can improve the displayed metrics. We’ll provide an update on this as soon as possible.

We have already discussed this in telegram. Each deal pnl is based on its entry price, not on the average position of all deals. This is the right way to do it for bots and the only one we can provide, because attempting to take in consideration other trades outside the bot (or even outside Gainium) will render the bot stats unusable (you don’t know if that particular strategy works because any profit or loses are potentially influenced by other trades outside the strategy), not to mention confuse users and introduce more complexity.

For the profit to withdraw it shouldn’t be so difficult, just check if you have enough usdt available to withdraw all or not. If you don’t, it means you have open trades with negative pnl.