from python_bitvavo_api.bitvavo import Bitvavo
bitvavo = Bitvavo('<APIKEY>', '<APISECRET>')
response = bitvavo.trades('BTC-EUR', {})
for item in response:
print(item)
But Bitvavo expects a dictionary, not two separate parameters. Fixing the documentation is probably the easiest, although to be fair, the dictionary should go. It's much cleaner to use arguments.
In some cases kwargs are a good fit too, but arguments > kwargs > dictionaries.
The Python documentation is incorrect. It says:
But
Bitvavo
expects a dictionary, not two separate parameters. Fixing the documentation is probably the easiest, although to be fair, the dictionary should go. It's much cleaner to use arguments.In some cases kwargs are a good fit too, but arguments > kwargs > dictionaries.