Files
ritmex-bot/docs/nado/developer-resources/api/archive-indexer/nlp-funding-payments.md
T

2.5 KiB

NLP Funding Payments

Rate limits

  • 480 requests/min or 80 requests/10secs per IP address. (weight = 5)

{% hint style="info" %} See more details in API Rate limits {% endhint %}

Request

{% tabs %} {% tab title="NLP Funding Payments" %} Query historical NLP funding payments.

POST [ARCHIVE_ENDPOINT]

Body

{
  "nlp_funding_payments": {
    "max_idx": "1315836",
    "max_time": "1683315718",
    "limit": 100
  }
}

{% endtab %} {% endtabs %}

Request Parameters

ParameterTypeRequiredDescription
max_idxnumber / stringNoWhen provided, only return payments with idx <= max_idx.
max_timenumber / stringNoWhen provided, only return payments with timestamp <= max_time (unix epoch in seconds).
limitnumberNoMax number of payments to return. Defaults to 100. Max of 500.

Response

{
  "funding_payments": [
    {
      "product_id": 2,
      "idx": "5968022",
      "timestamp": "1701698400",
      "total_payment": "12273223338657163",
      "rate_x18": "47928279191008320",
      "oracle_price_x18": "2243215034242228224820"
    }
  ],
  "next_idx": "5968021"
}

Response Fields

Funding Payments

Field nameDescription
product_idId of the perp product
idxSubmission index of the transaction that triggered the payment
timestampUnix epoch time in seconds when the payment occurred
total_paymentTotal funding payment amount (x18 format)
rate_x18Funding rate used for calculation (x18 format)
oracle_price_x18Oracle price at the time of payment (x18 format)