-
Notifications
You must be signed in to change notification settings - Fork 7
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
Orders not placed in gdax even though the script says it did #2
Comments
"The smallest order you can place for a buy or sell trade on GDAX is 0.01 BTC, ETH, or LTC," from https://support.gdax.com/customer/en/portal/articles/2426595-gdax-limits-for-deposits-withdrawals-trades-and-balances, so that particular order isn't possible. But you're right, the reported error isn't accurate, and I think the code that handles checking for this is off too. (Looking to see if one of |
Thanks! I ran into another issue though. Could it be correct that Gdax requires the input for "size" to have a maximum number of decimals? I have orders placed via the script, but they don't show up in gdax. When I put "0.1" hard coded as the size (instead of {{available[BTC]}*0.1), it works. |
|
That makes sense, but I place an order > 0.01:
And the order doesn't show up on gdax. |
You've placed a market order: http://www.investopedia.com/terms/m/marketorder.asp . It's executed immediately. To see what went down, click your gravatar in the upper right on GDAX, then click Fills. |
Yes, I checked but the orders are not there. There is one: an order of 0.01000000. It is placed by the vickitrix script. But by hard setting the "size" to "0.01" like this. This works immediatly and I see the order get filled.
Instead of this (which doens't work):
Thanks so much for your quick replies! |
Quick follow-up, I even tried with a larger amount, but the market order didn't get placed:
|
When I copy/paste the size in Gdax (the website itself, not via the API), it displays this error: https://i.imgur.com/4TxjcaH.png "Enter a valid value. The two closest values are 0,02873181 and 0,02873182" Which led me to think, is there a maximum number of digits? |
No idea what's going on here! Maybe we can debug live in the Gitter at some point? https://gitter.im/nellore/vickitrix . |
Yeah sure, can you point me to a doc with info how to setup live debugging? |
I tried it with a limit order, but the issue remains: the order doesnt get placed in Gdax, while the script says it said it did: Config:
Output:
|
I even tried it without the "*0.1", so with the entire btc funds. Script said it placed the order, but it didn't make it to gdax. Again, it does work when setting the size to a fixed value like "0.1". |
I found it. As I thought, the problem is the number of decimals of "size" when the order is placed. I "hacked" this into init.py on line 127 to ensure the size is of a length of maximum 7 digits.
Now it works, the order is placed! Question: is this the proper way to do it? (I guess not, I'm not a good developer) |
Interesting! I do not think the issue is that the size must be a maximum of seven characters; if that were true, you could not for example trade more than 9999999 of a given currency at once. It is possible not more than five decimal places are permitted here. You could try
. I'll look into this a bit more soon. |
Thanks, that's a better approach indeed! I fixed the typo (the second "currency" should be "available"), but I still get this error when I run the script:
|
Oh, sorry, the code shouldn't be changed there at all! Instead, try changing L195-L202 to
|
Thanks, tried that. The number of )))) is one too many in your last line. |
Fixed! Thanks; I'll put this in the next version of |
There's a small problem with this fix, it rounds the number to 5 decimals, but sometimes this leads to trying to sell a stack that is higher than you have. For instance:
You see that the available btc is 0.2076559273792344 but it tries to sell 0.20766, which you don't have. |
I am having a similar problem, but i'm not sure that its down to rounding errors.
The size is the correct amount, but the order still didn't go through. Perhaps the limit price changed before it went through. Does gdax provide an error in this case in order to retry? |
Hi!
Love the script. I got buy orders working, but sell orders won't execute:
This is the relevant part of the config:
Can anyone point me in the right direction?
The text was updated successfully, but these errors were encountered: