-
Notifications
You must be signed in to change notification settings - Fork 90
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
insufficient funds #232
Comments
Hi @lploumen , The sandbox account will use a different balance than your live account. It is typically a very large number. I just tried placing a market order for more than my sandbox account balance and I am receiving the error. Trying to place market order for 221,851 throws this: Let me know if you're still not seeing this. |
@lploumen it looks like you aren't seeing the exception because you are getting part of your order filled. If you notice the remaining size is ~3.82142768 of the 4 BTC. If you run the place order again, you will get the error because there are truly no funds available. I am not 100% sure of the logic here because its not documented but I am seeing what you are seeing on "Buy" only orders. However, when placing "Sell" orders it seems to be all or nothing which is what I had tried in my first comment above. Lastly, I noticed for "Buy" orders, if you set the |
Hi,
I am using the sandbox, I have a account with less than 1BTC. When trying to sell 3 BTC, I do not get any errors and it sell my whole BTC balance. On the website, when trying the same, I get the expected error 'insufficient funds'.
How can I get this error when using the API?
Thank you !
The text was updated successfully, but these errors were encountered: