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

Problem with the Order Entry's Effect on the Available Balance #458

Open
lucassherbrook opened this issue Sep 9, 2021 · 0 comments
Open

Comments

@lucassherbrook
Copy link

lucassherbrook commented Sep 9, 2021

I have run into an issue in which when I enter an order of any size through the API (such as the following example), my available balance decreases by exactly $0.01 more than it should and "goes missing".

auth_client.buy(price='1', size='1', order_type='limit', product_id='USDT-USD')

If my previous available balance was $10.00 before the order, it is now $8.99 ($0.01 less than it should be). If I run the same script multiple times without canceling the orders, each order after the first does not cause this problem, though that first $0.01 remains missing until I cancel all orders.

This problem also exists when selling using auth_client.place_limit_order.

This bug does not exist for sell orders. This bug also does not exist if you manually enter the order directly through the website's GUI.

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

1 participant