Version 2
Mark Price Feed
The mark price feed provides mark price updates for a subscribed perpetual instrument and select spot pairs.
Subscribe
Send a JSON formatted message with following fields upon connecting to v2/marketdata:
| Field Name | Type | Values |
|---|---|---|
type | string | subscribe |
subscriptions | array | |
-- name | string | mark_price |
-- symbols | array | ["BTCGUSDPERP", "BTCUSD",...] |
Response
| Field Name | Type | Values |
|---|---|---|
type | string | mark_price_updates |
symbol | string | BTCGUSDPERP |
changes | array | change to mark price |
All elements of changes share the following fields:
| Field Name | Type | Values |
|---|---|---|
timestamp | integer | nanoseconds |
mark_price | string | mark price |
spot_index | string | spot index |
Examples
JSON Mark Price Subscription Message
Code
JSON Mark Price Response
Code
Last modified on

