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