DNT
Recommended DNT RFQ list Inquiry
GET /rfq/dnt/recommended-list
Input parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| vault | true | string | Contract information |
| chainId | true | int | Chain ID |
Response Parameters
| Field Name | Type | Description |
|---|---|---|
| code | int | 0 indicates that the return result is normal |
| message | string | Error message returned in case of an exception |
| value | list[object] | As shown below |
Object
| Field Name | Type | Description |
|---|---|---|
| rfqId | number | RFQ ID |
| chainId | int | Chain ID |
| vault | string | Contract address |
| riskType | string | Risk type: PROTECTED, RISKY |
| forCcy | string | Underlying currency |
| domCcy | string | Currency pair |
| depositCcy | string | Subscription currency |
| lowerBarrier | number | Lower price |
| upperBarrier | number | Upper price |
| depositAmount | number | RFQ purchase amount |
| expiry | number | Expiry timestamp (e.g., 1672387200) |
| timestamp | number | Current pricing's trigger time; the next observation start time is calculated based on this logic |
| observationStart | number | Estimated start time of observation for knocking in/out based on timestamp |
| feeRate | object | trading and settlement fee rate (optional) |
| leverageInfo | object | Loan information (optional) |
| relevantDollarPrices | list[object] | Token price required for RCH price conversion and airdrop calculation (optional) |
| amounts | object | Calculated amounts (optional) |
| apyInfo | object | Annualized information, available for non-Surge products (optional) |
| oddsInfo | object | Odds information, available for Surge products (optional) |
| quote | object | |
| > anchorPrices | list[string] | 20000000000, 30000000000 |
| > makerCollateral | string | Maker's collateral amount |
| > totalCollateral | string | Total collateral amount (Taker+Maker) |
| > collateralAtRisk | string | Required when guaranteed (optional) |
| > makerBalanceThreshold | string | maker balance threshold |
| > deadline | number | Expiration timestamp (e.g., 1672387200) |
| > makerWallet | string | Maker's wallet (optional) |
| > signature | string | Signature (optional) |
Request Example
GET rfq/dnt/recommended-list?vault=xxxxxx&chainId=1
Response
{
"code":0,
"message":"",
"value":[
{
"rfqId":1233992,
"riskType":"PROTECTED",
"forCcy":"BTC",
"expiry":1672387200,
"lowerBarrier":18000,
"upperBarrier":24000,
"depositCcy":"BTC",
"depositAmount": 0.05,
"protectedApy":0.01,
"deadline":1672279892,
"recommended":true,
"quote":
{
"rfqId":1233992,
"inRangeApy":0.25,
"tenor":7.9,
"fundingAmount":0.25,
"depositAmount":1,
"premiumCoin":"BTC",
"premiumAmount":0.05,
"bookingQuantity":0.3,
"totalAmount":0.05,
"payoff":0.3,
"deadline":1672279892,
"signature":"dsdkksdsksdk"
}
}
]
}
DNT Inquiry
- Notes:
- Please do not pass the user's wallet address on a pure inquiry request.
- A user's wallet address should be passed on only upon subscribing.
GET /rfq/dnt/quote
Input Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| vault | true | string | Contract information |
| chainId | true | int | Chain ID |
| expiry | true | number | Second-level timestamp for the expiry date, e.g., 1672387200 |
| lowerBarrier | true | number | Lower price |
| upperBarrier | true | number | Upper price |
| depositAmount | true | number | RFQ purchase amount |
| inputApyDefinition | true | string | The underlying code is Enum indicating how the input APY is calculated: OptimusDefaultAPY, BinanceDntAPY, AaveLendingAPY |
| protectedApy | false | number | Guaranteed annual yield (empty for RISKY, required for protected) |
| fundingApy | false | number | AAVE annual yield (empty for RISKY, required for protected) |
| takerWallet | false | string | Inquirer's wallet public address information |
Response Parameters
| Field Name | Type | Description |
|---|---|---|
| code | int | 0 indicates that the return result is normal |
| message | string | Error message returned in case of an exception |
| value | object | As shown below |
Object
| Field Name | Type | Description |
|---|---|---|
| rfqId | number | RFQ ID |
| vault | string | Contract address |
| chainId | int | Chain ID |
| riskType | string | Risk type: PROTECTED, RISKY |
| forCcy | string | Underlying currency |
| domCcy | string | Currency pair |
| depositCcy | string | Subscription currency |
| lowerBarrier | number | Lower price |
| upperBarrier | number | Upper price |
| depositAmount | number | RFQ purchase amount |
| expiry | number | Expiry timestamp (e.g., 1672387200) |
| timestamp | number | Current pricing's trigger time; the next observation start time is calculated based on this logic |
| observationStart | number | Estimated start time of observation for knocking in/out based on timestamp |
| feeRate | object | trading and settlement fee rate (optional) |
| leverageInfo | object | Loan information (optional) |
| relevantDollarPrices | list[object] | Token price required for RCH price conversion and airdrop calculation (optional) |
| amounts | object | Calculated amounts (optional) |
| apyInfo | object | Annualized information, available for non-Surge products (optional) |
| oddsInfo | object | Odds information, available for Surge products (optional) |
| quote | object | |
| > quoteId | number | |
| > anchorPrices | list[string] | 20000000000, 30000000000 |
| > makerCollateral | string | Maker's collateral amount |
| > totalCollateral | string | Total collateral amount (Taker+Maker) |
| > collateralAtRisk | string | Required when guaranteed (optional) |
| > makerBalanceThreshold | string | maker balance threshold |
| > deadline | number | Expiration timestamp (e.g., 1672387200) |
| > makerWallet | string | Maker's wallet (optional) |
| > signature | string | Signature (optional) |
DNT Winning Probability
Probability of staying within the boundaries until expiry
GET rfq/dnt/winning-probabilities
Input Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| forCcy | true | string | Underlying currency |
| expiry | true | number | Second-level timestamp for the expiry date, e.g., 1672387200 |
| lowerBarrier | true | number | Lower price |
| upperBarrier | true | number | Upper price |
Response Parameters
| Field Name | Type | Description |
|---|---|---|
| code | int | 0 indicates that the return result is normal |
| message | string | Error message returned in case of an exception |
| value | list[object] | As shown below |
Object
| Field Name | Type | Description |
|---|---|---|
| spotPrice | number | Spot price |
| timestamp | number | |
| probabilities | object | Winning probability |
Request Example
GET rfq/dnt/winning-probabilities?forCcy=BTC&expiry=xxxx&lowerBarrier=xxx&upperBarrier=xxx
Response
{
"code":0,
"message":"",
"value": {
"spotPrice": 62121,
"timestamp": 1727080594,
"probabilities": {
"probDntStayInRange": 0.4,
"probBullTrendItmLowerStrike": null,
"probBullTrendItmUpperStrike": null,
"probBearTrendItmLowerStrike": null,
"probBearTrendItmUpperStrike": null
}
}
}