Version 2
Funding Amount Feed
The Funding Amount feed provides funding amount updates for a subscribed perpetual instrument.
Funding Amount Feed Subscribe Message
Send a JSON formatted message with following fields upon connecting to v2/marketdata
:
Field Name | Type | Values |
---|---|---|
type | string | subscribe |
subscriptions | array | |
-- name | string | funding_amount |
-- symbols | array | ["BTC-GUSD-PERP", ...] |
Funding Amount Response
When you receive funding amount updates, they will have the following format:
Field Name | Type | Values |
---|---|---|
type | string | funding_amount_updates |
symbol | string | BTC-GUSD-PERP |
changes | array | change to funding amount |
All elements of changes
share the following fields:
Field Name | Type | Values |
---|---|---|
timestamp | integer | nanoseconds |
funding_amount | string | funding amount |
funding_date_time | integer | funding date time |
funding_interval_in_minutes | integer | funding interval in minutes |
is_realized | boolean | is realized funding |
Examples
JSON Funding Amount Subscription Message
{ "type": "subscribe", "subscriptions": [ { "name": "funding_amount", "symbols": ["BTC-GUSD-PERP"] } ] }json
JSON Funding Amount Response
{ "type": "funding_amount_updates", "symbol": "BTCGUSDPERP", "changes": [ { "timestamp": 1673932380007696874, "funding_amount": "0", "funding_date_time": 1673932380007696874, "funding_interval_in_minutes": 60, "is_realized": false } ] }json