dydx-v3-python
dydx-v3-python copied to clipboard
get position_id error
Traceback (most recent call last):
File "/Users/a/Downloads/dydx-robot/orders.py", line 37, in <module>
position_id = account_response['account']['positionId']
TypeError: 'Response' object is not subscriptable
This should be done.
This should be done.
position_id = account_response.data['account']['positionId']