dydx-v3-python icon indicating copy to clipboard operation
dydx-v3-python copied to clipboard

get position_id error

Open phpmac opened this issue 4 years ago • 2 comments

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

phpmac avatar Jan 10 '22 10:01 phpmac

This should be done.

phpmac avatar Jan 10 '22 10:01 phpmac

This should be done.

position_id = account_response.data['account']['positionId']

phpmac avatar Jan 10 '22 10:01 phpmac