Ok, a couple issues here.
- V1.3.0 of the documentation doesn't list user.get_trade_volume() in the docs, but it's in 1.2.0 and the function is in 1.3.0's code.
- The docstring in 1.3.0 for
user.get_trade_volume() says: the acceptable pair types include a list of strings: pair: Optional[Union[str, List[str]]] = None,
Yet, check out the following pdb session:
'1INCHEUR'
(Pdb) pprint(user.get_trade_volume(all_currency_pairs[0]))
{'currency': 'ZUSD',
'fees': {'1INCHEUR': {'fee': '0.2000',
'maxfee': '0.2600',
'minfee': '0.1000',
'nextfee': '0.1800',
'nextvolume': '500000.0000',
'tiervolume': '250000.0000'}},
'fees_maker': {'1INCHEUR': {'fee': '0.1000',
'maxfee': '0.1600',
'minfee': '0.0000',
'nextfee': '0.0800',
'nextvolume': '500000.0000',
'tiervolume': '250000.0000'}},
'volume': '282801.4725'}
(Pdb) all_currency_pairs[0:1]
['1INCHEUR']
(Pdb) pprint(user.get_trade_volume(all_currency_pairs[0:1]))
*** kraken.exceptions.KrakenException.KrakenInvalidAPIKeyError: An invalid API-Key header was supplied.
Details: {'error': ['EAPI:Invalid key']}
It seems like this is not supported yet.
I'm trying to get the trade_volume for all currency pairs at once so I do not have to use so many API requests (which affect my rate limit) to get them.
Ok, a couple issues here.
user.get_trade_volume()says: the acceptable pair types include a list of strings:pair: Optional[Union[str, List[str]]] = None,Yet, check out the following pdb session:
It seems like this is not supported yet.
I'm trying to get the trade_volume for all currency pairs at once so I do not have to use so many API requests (which affect my rate limit) to get them.