dYdX V4
Currently on testnet only. Additional Functionalities available in expand.network SDK: onboarding user, place order, transfer, deposit, and cancel order.
/getorders
Users can fetch details for all orders corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getorders
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | User's dydx address. |
derivativeId | String | Refer to the Derivative Id page for details. |
subAccountNumber* | String | Number of the sub account. |
/getorder
Users can fetch details for a specific order using the specified order id.
GET
https://api.expand.network/derivative/getorder
Query Parameters
Name | Type | Description |
---|---|---|
orderId* | String | Order Id to fetch details of. |
derivativeId | String | Refer to the Derivative Id page for details. |
/getfills
Users can fetch the fill details of the order corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getfills
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | User's dydx address. |
derivativeId | String | Refer to the Derivative Id page for details. |
subAccountNumber* | String | Number of the sub account. |
/getassets
Users can fetch a list of their assets deposited in dYdX corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getassets
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | User's dydx address. |
derivativeId | String | Refer to the Derivative Id page for details. |
subAccountNumber* | String | Number of the sub account. |
/gethistoricalpnl
Users can fetch the historical profit and loss corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/gethistoricalpnl
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | User's dydx address. |
derivativeId | String | Refer to the Derivative Id page for details. |
subAccountNumber* | String | Number of the sub account. |
/getperpetualpositions
Users can fetch the position corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getperpetualpositions
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | User's dydx address. |
derivativeId | String | Refer to the Derivative Id page for details. |
subAccountNumber* | String | Number of the sub account. |
/getsubaccounts
Users can fetch the details of a sub-account corresponding to the specified address.
GET
https://api.expand.network/derivative/getsubaccounts
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | User's dydx address. |
derivativeId | String | Refer to the Derivative Id page for details. |
/gettransfers
Users can fetch the details of the transfer transaction corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/gettransfers
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | User's dydx address. |
derivativeId | String | Refer to the Derivative Id page for details. |
subAccountNumber* | String | Number of the sub account. |
Last updated