You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have being reviewing this code and noticed that inside "_private_api_query" the code doesn't returns the desired information when the API responds with a list of dictionaries. Specifically line 263 will overwrite the downloaded data with a blank dictionary and afterwards the status_code will be added into it returning only the status_code. I am not sure how to fix it as i can't get which was the way it was originally thought.
data = r.json()
print(type(data))
if isinstance(data, list):
status_code = r.status_code
data = dict()
data['status_code'] = r.status_code
if isinstance(data, dict):
data['status_code'] = r.status_code
return data
The difference on the result is clear when running prv_get_balances() vs prv_get_balances('AnyCoin'):
That section has changed alot. I am editing my working copy to update this, very happy someone actually is looking at it! Also adding some example usages I threw together just in case it might help. trying to get my bot back online, its been 48 hours!
Thanks! I will review it and let you know if i have any issue!
This is super useful i was trying to write something myself but got frustrated as couldn't figure it out due to the huge amount of options!
Hi,
First of all thanks for sharing this work!
I have being reviewing this code and noticed that inside "_private_api_query" the code doesn't returns the desired information when the API responds with a list of dictionaries. Specifically line 263 will overwrite the downloaded data with a blank dictionary and afterwards the status_code will be added into it returning only the status_code. I am not sure how to fix it as i can't get which was the way it was originally thought.
The difference on the result is clear when running prv_get_balances() vs prv_get_balances('AnyCoin'):
Thanks
LG
The text was updated successfully, but these errors were encountered: