Dualassets offers
Desc
Subscribe to the
earn.dualassets.offerstopic to receive real-time quote updates for all online Dual Assets products.Push scope: Full snapshot of all online product quotes
Recommended usage pattern:
- Call Get Product Quote to get initial quotes
- Subscribe to the WebSocket topic for real-time updates
- Use the latest selectPrice + apyE8 from WebSocket when placing orders
- If WebSocket disconnects, fallback to the REST endpoint
WebSocket public URL
- Mainnet:
Earn:wss://stream.bybit.com/v5/public/fp
- Testnet:
Earn:wss://stream-testnet.bybit.com/v5/public/fp
Topic: earn.dualassets.offers
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| id | string | Message ID |
| topic | string | Topic name |
| creationTime | int | Data created timestamp (ms) |
| data | array | Object |
| > p | int64 | Product ID |
| > c | string | Current price |
| > b | array of objects | Buy low price list |
| >> s | string | Selected price |
| >> a | int64 | Annualized yield, e8 precision |
| >> m | string | Max investment amount at this price point |
| >> x | string | Quote expiration time,Unix timestamp in ms |
| > s | array of objects | Sell high price list |
| >> s | string | Selected price |
| >> a | int64 | Annualized yield, e8 precision |
| >> m | string | Max investment amount at this price point |
| >> x | string | Quote expiration time,Unix timestamp in ms |
Subscribe Example
{
"op": "subscribe",
"args": [
"earn.dualassets.offers"
]
}
Stream Example
{
"topic": "earn.dualassets.offers",
"data": [
{
"p": "36352",
"c": "74168.46",
"b": [
{
"s": "74142",
"a": "979209000",
"m": "2000",
"x": "1773825237781"
}
],
"s": [
{
"s": "74142",
"a": "979209000",
"m": "0.02697492",
"x": "1773825237781"
}
]
},
{
"p": "36382",
"c": "74168.46",
"b": [
{
"s": "74142",
"a": "890190000",
"m": "2000",
"x": "1773825237781"
}
],
"s": [
{
"s": "74142",
"a": "890190000",
"m": "0.02697492",
"x": "1773825237781"
}
]
}
]
}