Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

final_profit not in profit currency #149

Open
bramjekel opened this issue Oct 11, 2022 · 2 comments
Open

final_profit not in profit currency #149

bramjekel opened this issue Oct 11, 2022 · 2 comments

Comments

@bramjekel
Copy link

when i configure a short bot (lets say: BTCBUSD), set the profit curreny to Base (BTC) then I would expect the final_profit in the DealsAPI to return the profit in BTC. However it is returned in BUSD.

I have a compound script running to compound the profit back into the bot, so short on BTC, profit in BTC, add BTC profit to next deal in order to compound. Unfortunately this does not work if the final_profit is not returned in the configured currency (being Base --> BTC).

Is this a bug in the API or do I need to configure the bot differently?

@bramjekel
Copy link
Author

btw the value for actual_profit is the same (so also not the BTC profit)

@chriskaye
Copy link

Hi,
Try using the value from the "reserved_second_coin" in the response and see if that gives you the result you require.

feisk pushed a commit that referenced this issue Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants