Smart Trend
Recommended Smart Trend RFQ list Inquiry
GET rfq/smart-trend/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 |
| direction | string | BULLISH,BEARISH |
| 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 |
| 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/smart-trend/recommended-list?vault=xxxxxx
Smart Trend 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/smart-trend/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 |
| direction | string | BULLISH,BEARISH |
| 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 |
| 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) |
Smart Trend Winning Probability
Probability of staying within the boundaries until expiry
GET rfq/smart-trend/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/smart-trend/winning-probabilities?forCcy=BTC&expiry=xxxx&lowerStrike=xxx&upperStrike=xxx
Response
{
"code":0,
"message":"",
"value": {
"spotPrice": 62121,
"timestamp": 1727080594,
"probabilities": {
"probDntStayInRange": null,
"probBullTrendItmLowerStrike": 0.4,
"probBullTrendItmUpperStrike": 0.4,
"probBearTrendItmLowerStrike": 0.6,
"probBearTrendItmUpperStrike": 0.6
}
}
}