dydxprotocol / dydx-v3-python

Python client for dYdX (API v3)
Apache License 2.0
306 stars 176 forks source link

Problem with linking primary and secondary accounts via API #175

Open wdqco opened 1 year ago

wdqco commented 1 year ago

I'm trying to link various sub accounts made with different ethereum addresses under one 'primary' account. To do this, from my main account private client.

client.private.send_link_request('CREATE_SECONDARY_REQUEST', secondary_account_address)

I then go on the secondary account and run:

client.private.send_link_request('ACCEPT_PRIMARY_REQUEST', primary_account)

But then, if I try and view my accounts from the primary account, i only see one activate account in the array: client.private.get_accounts().data

This leads me to think the accounts aren't linked. However, if I try and send another request from the primary account it errors and says 'accounts already linked'.

Has anyone else experienced the same issue? Is it possible the accounts are linked and not showing in the array? Id assume this would be reflected in my taking and making volume/fees which it isn't.

Thanks in advance