curl --request GET \
--url https://markets.dial.to/api/v0/positions/owners \
--header 'x-dialect-api-key: <api-key>'{
"positions": [
{
"id": "string",
"type": "lending",
"marketId": "string",
"ownerAddress": "string",
"bundleId": "string",
"websiteUrl": "https://example.com",
"side": "deposit",
"rewards": [
{
"tokenAddress": "string",
"amount": 1,
"amountUsd": 1
}
],
"additionalData": {
"propertyName*": "anything"
},
"actions": {
"deposit": {
"blinkUrl": "string"
},
"withdraw": {
"blinkUrl": "string"
},
"borrow": {
"blinkUrl": "string"
},
"repay": {
"blinkUrl": "string"
}
},
"amount": 1,
"amountUsd": 1,
"ltv": 0,
"liquidationPrice": 1,
"market": {
"id": "string",
"type": "lending",
"provider": {
"id": "kamino",
"name": "string",
"icon": "string"
},
"token": {
"address": "string",
"symbol": "string",
"decimals": 1,
"icon": "string"
},
"borrowToken": {
"address": "string",
"symbol": "string",
"decimals": 1,
"icon": "string"
},
"websiteUrl": "https://example.com",
"depositApy": 1,
"baseDepositApy": 1,
"baseDepositApy30d": 1,
"baseDepositApy90d": 1,
"baseDepositApy180d": 1,
"borrowApy": 1,
"baseBorrowApy": 1,
"baseBorrowApy30d": 1,
"baseBorrowApy90d": 1,
"baseBorrowApy180d": 1,
"totalDeposit": 1,
"totalDepositUsd": 1,
"totalBorrow": 1,
"totalBorrowUsd": 1,
"maxDeposit": 1,
"maxBorrow": 1,
"rewards": [
{
"type": "deposit",
"apy": 1,
"token": {
"address": "string",
"symbol": "string",
"decimals": 1,
"icon": "string"
},
"marketAction": "string"
}
],
"maxLtv": 0,
"liquidationLtv": 0,
"liquidationPenalty": 0,
"additionalData": {
"propertyName*": "anything"
},
"actions": {
"deposit": {
"blinkUrl": "string"
},
"withdraw": {
"blinkUrl": "string"
},
"claimRewards": {
"blinkUrl": "string"
}
}
}
}
]
}Returns position data for supported protocols, such as Jupiter, Kamino, MarginFi, Lulo and many more. For more information, please check our Protocol Support Roadmap.
curl --request GET \
--url https://markets.dial.to/api/v0/positions/owners \
--header 'x-dialect-api-key: <api-key>'{
"positions": [
{
"id": "string",
"type": "lending",
"marketId": "string",
"ownerAddress": "string",
"bundleId": "string",
"websiteUrl": "https://example.com",
"side": "deposit",
"rewards": [
{
"tokenAddress": "string",
"amount": 1,
"amountUsd": 1
}
],
"additionalData": {
"propertyName*": "anything"
},
"actions": {
"deposit": {
"blinkUrl": "string"
},
"withdraw": {
"blinkUrl": "string"
},
"borrow": {
"blinkUrl": "string"
},
"repay": {
"blinkUrl": "string"
}
},
"amount": 1,
"amountUsd": 1,
"ltv": 0,
"liquidationPrice": 1,
"market": {
"id": "string",
"type": "lending",
"provider": {
"id": "kamino",
"name": "string",
"icon": "string"
},
"token": {
"address": "string",
"symbol": "string",
"decimals": 1,
"icon": "string"
},
"borrowToken": {
"address": "string",
"symbol": "string",
"decimals": 1,
"icon": "string"
},
"websiteUrl": "https://example.com",
"depositApy": 1,
"baseDepositApy": 1,
"baseDepositApy30d": 1,
"baseDepositApy90d": 1,
"baseDepositApy180d": 1,
"borrowApy": 1,
"baseBorrowApy": 1,
"baseBorrowApy30d": 1,
"baseBorrowApy90d": 1,
"baseBorrowApy180d": 1,
"totalDeposit": 1,
"totalDepositUsd": 1,
"totalBorrow": 1,
"totalBorrowUsd": 1,
"maxDeposit": 1,
"maxBorrow": 1,
"rewards": [
{
"type": "deposit",
"apy": 1,
"token": {
"address": "string",
"symbol": "string",
"decimals": 1,
"icon": "string"
},
"marketAction": "string"
}
],
"maxLtv": 0,
"liquidationLtv": 0,
"liquidationPenalty": 0,
"additionalData": {
"propertyName*": "anything"
},
"actions": {
"deposit": {
"blinkUrl": "string"
},
"withdraw": {
"blinkUrl": "string"
},
"claimRewards": {
"blinkUrl": "string"
}
}
}
}
]
}API key for the Markets API
Comma separated list of owner addresses. Currently only supports one address.
"6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
Comma separated list of bundle IDs. Currently only supports one bundle ID.
OK
Show child attributes
deposit, borrow Show child attributes
Total APY including rewards
APY excluding rewards
Total APY including rewards
APY excluding rewards
Show child attributes
30-day average APY excluding rewards
90-day average APY excluding rewards
180-day average APY excluding rewards
30-day average APY excluding rewards
90-day average APY excluding rewards
180-day average APY excluding rewards
Maximum Loan-to-Value allowed when borrowing, expressed as a percentage of deposited value
0 <= x <= 100Loan-to-Value percentage ratio of deposited value at which the position becomes liquidatable
0 <= x <= 100Percentage ratio of deposited value taken as a penalty and given to liquidators when position is liquidated
0 <= x <= 100Reward for depositing
Show child attributes
Identifier for positions bundled into one logical structure, such as position or market
Current Loan-to-Value of the position, expressed as a percentage ratio of deposited value
0 <= x <= 100Deposited token price expressed in borrowed token units at which the position becomes liquidatable
Show child attributes
Was this page helpful?