TaylorFacen / nomics-python

A Python wrapper for the Nomics API
MIT License
52 stars 14 forks source link

nomics.Currencies.get_currencies broken #38

Open dahl777 opened 2 years ago

dahl777 commented 2 years ago

myjson=nomics.Currencies.get_currencies(ids=syms, interval='1d')

This call used to work - now it returns this error: Your plan requires that you provide a per-page argument. See http://docs.nomics.com/ for more information.

pkinnane commented 2 years ago

Add

, per_page=100

to your nomics.Currencies.get_currencies() call.

dahl777 commented 2 years ago

Thanks for your response! Made a few attempts to add per-page=100, but they did not work: myjson=nomics.Currencies.get_currencies(ids=syms, interval='1d', per-page='100') myjson=nomics.Currencies.get_currencies(ids=syms, interval='1d', 'per-page=100') myjson=nomics.Currencies.get_currencies(ids=syms, interval='1d&per-page=100')

What is the correct syntax to get per-page=100 included in my call?

emile-o commented 2 years ago

@dahl777
it's just per_page=100 it worked for me