GET
GetMarkPricePublicGet mark price for a market (used for liquidation calculations).
Request
| Parameter | Type | Description |
|---|---|---|
market_idoptional | uint32 |
Response
| Field | Type | Description |
|---|---|---|
market_id | uint32 | |
mark_price | Price | Mark price (for margin/liquidation) |
index_price | Price | Index price (oracle average) |
last_price | Price | Last traded price |
timestamp | Timestamp |
Example
Request
import { RealmClient } from '@realm/sdk';const client = new RealmClient('https://api.realm.com');const response = await client.getMarkPrice({ /* params */ });console.log(response);
Response
{// Response fields}