GET
GetFundingRatePublicGet current and predicted funding rates for perpetual markets.
Request
| Parameter | Type |
|---|---|
market_idoptional | uint32 |
Response
| Field | Type |
|---|---|
market_id | uint32 |
funding_rate | int64 |
mark_price | int64 |
index_price | int64 |
next_funding_time | int64 |
predicted_rate | int64 |
Example
Requesttypescript
import { RealmClient } from '@realm/sdk';const client = new RealmClient('https://api.realm.com');const response = await client.getFundingRate({ /* params */ });console.log(response);
Responsejson
{// Response fields}