coinbasepro-python icon indicating copy to clipboard operation
coinbasepro-python copied to clipboard

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

Open lucassherbrook opened this issue 4 years ago • 0 comments

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.

lucassherbrook avatar Sep 09 '21 04:09 lucassherbrook