whittlem / coinbaseprotracker

Coinbase Pro Portfolio Tracker
Apache License 2.0
40 stars 22 forks source link

KeyError in orders Dictionary : 'market' #2

Closed bedinsky closed 3 years ago

bedinsky commented 3 years ago

on line 88 orders['market'] causes KeyError exception and script exits after retrieving a BTC-EUR profile

for market in orders['market'].sort_values().unique():

I have other 3 profile and script works with them pycryptobot is able to run such profile but there were not operations in 2 days I'm new of coinbase pro, is there something wrong with the profile ?

regards

I've added this check to skip exception try: _market = orders['market'] except KeyError as ke: print ('*** no market ***') continue

whittlem commented 3 years ago

I fixed this today. Try a "git pull" and see if it works for you.

bedinsky commented 3 years ago

thank you very much