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
address*
String
User's dydx address.
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
orderId*
String
Order Id to fetch details of.
/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
address*
String
User's dydx address.
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
address*
String
User's dydx address.
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
address*
String
User's dydx address.
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
address*
String
User's dydx address.
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
address*
String
User's dydx address.
/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
address*
String
User's dydx address.
subAccountNumber*
String
Number of the sub account.
Last updated