I am trying to get my account balance with the python 3commas API unwrapper. I listed my code below. I think im getting stuck at the action_id part because i am not sure what to put there. With the current code i get all kinds of exceptions like response_json.get('error'), response_json.get('error_description'))}, None UnboundLocalError: local variable 'response_json' referenced before assignment.
This is the code:
from py3cw.request import Py3CW
p3cw = Py3CW(
key='my key',
secret='my secret key',
)
data = p3cw.request(
entity='accounts',
action='load_balances',
action_id='POST /ver1/accounts/{number or name?}/'
)
print (data);
Like i mentioned i also tried action_id='number or name?'. I also tried to change action_id to account_id.
I used this site btw: https://github.com/bogdanteodoru/py3cw
I really hope someone is able to help me :)