GETGetFundingRatePublic

Get current and predicted funding rates for perpetual markets.

Request

ParameterTypeDescription
market_idoptionaluint32

Response

FieldTypeDescription
market_iduint32
funding_rateint648 decimals, e.g. 100000 = 0.001 = 0.1%
mark_priceint64Mark price used for funding
index_priceint64Index price (oracle)
next_funding_timeint64UNIX nanos until next funding
predicted_rateint64Predicted next funding rate

Example

Request

import { RealmClient } from '@realm/sdk';
const client = new RealmClient('https://api.realm.com');
const response = await client.getFundingRate({ /* params */ });
console.log(response);

Response

{
// Response fields
}