I am running this line of code,
m =requests.post(api_url + 'accounts', json=order, auth=auth)
print m.json()
which produces the following output:
[{u'available': u'0.4', u'balance': u'0.5'}, {u'available': u'6.8', u'balance': u'9.0'}]
My goal is to be able to save the different "availables" and "balances" into FLOAT variables, so I can use them further in the code.
Currently, I am trying to do
output = float(m['available'])
print(output)
But this is not working ... and I am also unsure how to separate them both, given that there is a { curly bracket} between the two "availables" and "balances"
m.json['available']