dYdX
dYdX Resolver fetch Position of user. You can view details like source code, ABIs on Etherscan.
Get Position
Fetch compound position of a user with just a single call.Copy
Parameter
Type
Description
address
address
The user address.
key
number
(Optional) The key indicates the token. - `token` (default) eth, dai, usdc, etc. - `address` "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0x6B175474E89094C44Da98b954EedeAC495271d0F", etc. - `market` 0, 1, 3, etc.
Returns: Object
with all the dYdX details.Copy
Return Parameter
Type
Description
price
number
Price of the token.
supply
number
Supply balance of token.
borrow
number
Borrow balance of token.
supplyRate
number
Supply APR of token.
supplyYield
number
Supply APY of token.
borrowRate
number
Borrow APR of token.
borrowRate
number
Borrow APY of token.
totalSupplyInEth
number
Total supply w.r.t Ethereum.
totalBorrowInEth
number
Total borrow w.r.t Ethereum.
maxBorrowLimitInEth
number
Max borrow limit w.r.t Ethereum.
status
number
Current status.
status
number
Current status. Mulitply by 100 to convert into %.
liquidation
number
Position breakage limit. Mulitply by 100 to convert into %.
Last updated