FundingRates

fundingRates InjectiveDerivativeExchangeRPC

get

FundingRates gets the historical funding rates for a market.

Query parameters
skipinteger · max: 10000Optional

Skip will skip the first n item from the result

Default: 0Example: 0
limitinteger · int64Optional

Limit is used to specify the maximum number of items to be returned.

Example: 100
marketIdstring · min: 66 · max: 66Optional

MarketId of the position we want to fetch

Example: 0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bbPattern: ^0x[0-9a-fA-F]{64}$
endTimeinteger · int64Optional

Upper bound of funding timestamp

Example: 1645579787
Responses
application/json
objectOptionalExample: {"fundingRates":[{"marketId":"0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","rate":"0.006","timestamp":1544614248000},{"marketId":"0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","rate":"0.006","timestamp":1544614248000},{"marketId":"0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","rate":"0.006","timestamp":1544614248000},{"marketId":"0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","rate":"0.006","timestamp":1544614248000}],"paging":{"countBySubaccount":3144167030999342600,"from":1916499695,"next":["Ea rerum.","Aut dolorem cum voluptas quae.","Voluptas repellendus qui ipsam est."],"to":391437627,"total":7364854934794692000}}
get
GET /api/exchange/derivative/v1/fundingRates HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "fundingRates": [
    {
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "rate": "0.006",
      "timestamp": 1544614248000
    },
    {
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "rate": "0.006",
      "timestamp": 1544614248000
    }
  ],
  "paging": {
    "countBySubaccount": 3144167030999342600,
    "from": 1916499695,
    "next": [
      "Ea rerum.",
      "Aut dolorem cum voluptas quae.",
      "Voluptas repellendus qui ipsam est."
    ],
    "to": 391437627,
    "total": 7364854934794692000
  }
}