Get permit for single token
token required | string0x[a-fA-F0-9]{40} Ethereum address of the token |
user required | string0x[a-fA-F0-9]{40} Ethereum address of the user |
{- "typedData": {
- "types": {
- "property1": [
- {
- "name": "string",
- "type": "string"
}
], - "property2": [
- {
- "name": "string",
- "type": "string"
}
]
}, - "primaryType": "string",
- "domain": {
- "name": "string",
- "version": "string",
- "chainId": "string",
- "verifyingContract": "string",
- "salt": "string"
}, - "message": { }
}, - "hash": "string"
}
Get a quote for a swap
tradeType required | string (TradeType) Enum: "ExactInput" "ExactOutput" |
inputToken required | string^(0x)?[0-9a-fA-F]{40}$ |
outputToken required | string^(0x)?[0-9a-fA-F]{40}$ |
amount required | string |
recipient required | string^(0x)?[0-9a-fA-F]{40}$ |
object (QuoteRequestOptions) |
{- "tradeType": "ExactInput",
- "inputToken": "0x1234567890123456789012345678901234567890",
- "outputToken": "0x1234567890123456789012345678901234567890",
- "amount": "123.456789",
- "recipient": "string",
- "options": {
- "dryRun": false,
- "slippageTolerance": "0.005",
- "permitSignature": "string",
- "permitNonce": "string",
- "permitExpiration": 0,
- "permitAmount": "string",
- "permitSigDeadline": 0
}
}
{- "type": "Classic",
- "tradeType": "ExactInput",
- "time": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "quote": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "quoteId": "string",
- "gasPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "routeString": "A -- [0x0000000000000000000000000000000000000012] --> B -- [0x0000000000000000000000000000000000000023] --> C",
- "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}, - "route": [
- {
- "address": "string",
- "tokenIn": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "tokenOut": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "fee": "string"
}
]
}
{- "totalMarketSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalAvailable": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalBorrows": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
Retrieve data of reserves
asset | string The asset address in hexadecimal format. |
{- "id": "0x1234567890123456789012345678901234567890:0x1234567890123456789012345678901234567890",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "zTokenAddress": "0x1234567890123456789012345678901234567890",
- "variableDebtTokenAddress": "0x1234567890123456789012345678901234567890",
- "borrowingEnabled": true,
- "isActive": true,
- "isFrozen": false,
- "usageAsCollateralEnabled": true,
- "reserveFactor": "0.1",
- "baseLTVasCollateral": "0.5",
- "reserveLiquidationThreshold": "0.6",
- "reserveLiquidationBonus": "0.1",
- "utilizationRate": "0.5",
- "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalLiquidity": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableLiquidity": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "supplyAPY": "0.1",
- "supplyAPR": "0.1",
- "variableBorrowAPY": "0.1",
- "variableBorrowAPR": "0.1",
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
Get user deposits of Lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "usageAsCollateralEnabledOnUser": true,
- "supplyAPY": "string"
}
]
Get user borrows of lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "borrowRate": "string",
- "maxBorrowAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
[- {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
Retrieve an Ilk by providing its name.
name required | string Name of the ILK |
{- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
[- {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
Retrieve an Ilk by providing its name.
name required | string Name of the ILK |
{- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
Returns a list of proxies filtered by the owner's address.
owner required | string <string> The Ethereum address of the owner. |
[- {
- "address": "string",
- "owner": "string",
- "authority": "string"
}
]
{- "stablecoinSystem": {
- "systemSurplus": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusBuffer": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemBadDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusLotSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}, - "lendingpool": {
- "totalAvailable": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalBorrows": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalMarketSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
{- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
id required | integer Vault ID |
type | string Enum: "repay" "deposit" "withdraw" "mint" Event type |
[- {
- "id": 1,
- "name": "VaultRepay",
- "type": "executive",
- "domain": "stableCoinSystem",
- "raw": {
- "id": 1,
- "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "address": "string",
- "blockNumber": "string",
- "txHash": "string",
- "blockHash": "string",
- "index": 0,
- "topics": [
- "0x1234567890abcdef1234567abcdef"
], - "data": "0x1234567890abcdef1234567abcdef"
}, - "payload": {
- "deltaCollateral": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "deltaDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
}
]
[- {
- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
]
Returns a list of proxies filtered by the owner's address.
owner required | string <string> The Ethereum address of the owner. |
[- {
- "address": "string",
- "owner": "string",
- "authority": "string"
}
]
{- "stablecoinSystem": {
- "systemSurplus": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusBuffer": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemBadDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusLotSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}, - "lendingpool": {
- "totalAvailable": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalBorrows": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalMarketSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
Get user deposits of Lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "usageAsCollateralEnabledOnUser": true,
- "supplyAPY": "string"
}
]
Get user borrows of lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "borrowRate": "string",
- "maxBorrowAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
Retrieve a list of events based on specified query parameters
id | integer ID of the event |
domain required | string (EventDomain) Enum: "stableCoinSystem" "lendingpool" "chainlink" "uniswapV3" Example: domain=stableCoinSystem The domain of the event. |
type required | string (EventType) Enum: "executive" "oracle" "user" Example: type=executive Type of the event |
name required | string (EventName) Enum: "VaultsRepay" "VaultsWithdraw" "VaultsDeposit" "VaultsMint" "VaultsKick" "VaultsTake" "VaultsRedo" "VaultsYank" "LendingpoolWithdraw" "LendingpoolRepay" "LendingpoolLiquidationCall" "LendingpoolBorrow" "File" "Permission" "Median" "Unknown" Example: name=VaultRepay |
cursor | integer Cursor for pagination |
limit | integer Maximum number of records to retrieve. Defaults to 50 if not provided. |
order | string Enum: "asc" "desc" Example: order=desc Order of the events. Default is desc. |
[- {
- "id": 1,
- "name": "VaultRepay",
- "type": "executive",
- "domain": "stableCoinSystem",
- "raw": {
- "id": 1,
- "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "address": "string",
- "blockNumber": "string",
- "txHash": "string",
- "blockHash": "string",
- "index": 0,
- "topics": [
- "0x1234567890abcdef1234567abcdef"
], - "data": "0x1234567890abcdef1234567abcdef"
}, - "payload": {
- "deltaCollateral": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "deltaDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
}
]
Retrieve a list of price details based on specified query parameters
symbol | string Symbol of the price |
[- {
- "symbol": "USD",
- "value": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}
}
]
Get price history for a symbol
symbol required | string Symbol of the price |
from | string <date-time> Start date |
to | string <date-time> End date |
[- {
- "symbol": "USD",
- "value": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}
}
]
{- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
id required | integer Vault ID |
type | string Enum: "repay" "deposit" "withdraw" "mint" Event type |
[- {
- "id": 1,
- "name": "VaultRepay",
- "type": "executive",
- "domain": "stableCoinSystem",
- "raw": {
- "id": 1,
- "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "address": "string",
- "blockNumber": "string",
- "txHash": "string",
- "blockHash": "string",
- "index": 0,
- "topics": [
- "0x1234567890abcdef1234567abcdef"
], - "data": "0x1234567890abcdef1234567abcdef"
}, - "payload": {
- "deltaCollateral": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "deltaDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
}
]
[- {
- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
]
Get account by address
address required | string <address> Example: 0x1234567890123456789012345678901234567890 Ethereum address of the account |
{- "address": "0x1234567890123456789012345678901234567890",
- "walletBalance": {
- "balances": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "balance": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
}, - "netWorth": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDeposits": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "lendingpoolSummary": {
- "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDeposits": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalCollateral": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "healthFactor": "1.5",
- "netApy": "0.12",
- "totalSupplyApy": "0.12",
- "totalBorrowApy": "0.12",
- "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "borrowPowerUsed": "0.30",
- "currentLiquidationThreshold": "0.30",
- "loanToValue": "0.30"
}, - "stabelcoinSystemSummary": {
- "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDeposits": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "netApy": "0.30"
}
}