-
Notifications
You must be signed in to change notification settings - Fork 236
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
Inconsistent behavior, some API methods returning {'error': ['EAPI:Invalid key']} from API #104
Comments
You have a mix-up in API method names and arguments for them. Since you don't show what |
If I understand correctly, you'll want to drop the |
Thanks for the response @veox !
The QUERY_ORDERS is an internal variable that resolves to 'QueryOrders' which is correct to my knowledge.
Any ideas on how to solve this issue? |
The As you may see from the docs, The error is therefore likely in your
Simplify your example into a copy-pastable script. |
Reopen if you can demonstrate that the issue is with |
I have isolated and reproduced the problem with 6 lines of code. I am fairly certain this is specific to krakenex.
I am getting the same behavior as before where the variable There is no possibility of the client getting reset, or overriding the session in this case. It appears to be an issue with Krakenex or that Kraken has changed what it returns. The most likely scenarios that I can think of are as followed.
|
You are still not copying the actual code that you're using. :/ This works perfectly fine for me: #!/usr/bin/env python
# https://github.com/veox/python3-krakenex/issues/104#issuecomment-444894546
import krakenex
client = krakenex.API('foo...', 'bar...')
trades = client.query_private('TradesHistory')['result']['trades']
print('trades', trades)
print('-'*72)
order_info = client.query_private('QueryOrders', {'trades': 'true', 'txid': 'O...'})
print('orderinfo', order_info) So, this is not specific to It could be something about Mac, or the But more probably, since we've eliminated it being something in your code, it's your key not having permissions for the action. For example, you could've disallowed querying closed orders, or something like that. |
Hi, I would suggest that you first verify on the Kraken website whether you have supplied your API key with the right permissions. Regards, |
Closing as stale. |
Versions
What are you trying to achieve?
using the query orders function from the kraken api
What do you expect to happen?
For the first api call to return the trade history on the account.
For the second api call to return the relevant information for the requested order.
What happens instead?
The first api call returns the requested trades normally.
The second api call returns an error
# error message
The text was updated successfully, but these errors were encountered: