Skip to main content

Dualassets offers

Desc

  • Subscribe to the earn.dualassets.offers topic to receive real-time quote updates for all online Dual Assets products.

  • Push scope: Full snapshot of all online product quotes

  • Recommended usage pattern:

    1. Call Get Product Quote to get initial quotes
    2. Subscribe to the WebSocket topic for real-time updates
    3. Use the latest selectPrice + apyE8 from WebSocket when placing orders
    4. 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

ParameterTypeComments
idstringMessage ID
topicstringTopic name
creationTimeintData created timestamp (ms)
dataarrayObject
> pint64Product ID
> cstringCurrent price
> barray of objectsBuy low price list
>> sstringSelected price
>> aint64Annualized yield, e8 precision
>> mstringMax investment amount at this price point
>> xstringQuote expiration time,Unix timestamp in ms
> sarray of objectsSell high price list
>> sstringSelected price
>> aint64Annualized yield, e8 precision
>> mstringMax investment amount at this price point
>> xstringQuote 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"
}
]
}
]
}