Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. json return data
  2. 0778fd51fcfa/', 'average_price': None, 'quantity': '2.00000'}, {'updated_at': '2018-06-19T18:10:42.243942Z', 'ref_id': 'b899585f-9625-42b7-bfe1-8974e4e80ab9', 'time_in_force': 'gfd', 'fees': '0.00', 'cancel': None, 'response_category': 'success', 'id': '4bec2116-a38c-414a-934d-43cda9444d5b'
  3.  
  4.  
  5. xyz = my_trader.order_history()
  6. ParsedValue = xyz['id']
  7. print (xyz)
  8.  
  9.  
  10. ---- ran code python3.6 rr.py
  11. Traceback (most recent call last):
  12. File "rr.py", line 11, in <module>
  13. ParsedValue = xyz['id']
  14. KeyError: 'id'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement