mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 08:48:07 +00:00
2.4 KiB
2.4 KiB
NLP Interest 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 Interest Payments" %} Query historical NLP interest payments.
POST [ARCHIVE_ENDPOINT]
Body
{
"nlp_interest_payments": {
"max_idx": "1315836",
"max_time": "1683315718",
"limit": 100
}
}
{% endtab %} {% endtabs %}
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| max_idx | number / string | No | When provided, only return payments with idx <= max_idx. |
| max_time | number / string | No | When provided, only return payments with timestamp <= max_time (unix epoch in seconds). |
| limit | number | No | Max number of payments to return. Defaults to 100. Max of 500. |
Response
{
"interest_payments": [
{
"product_id": 0,
"idx": "5968022",
"timestamp": "1701698400",
"amount": "12273223338657163",
"balance_amount": "45382847293847329847"
}
],
"next_idx": "5968021"
}
Response Fields
Interest Payments
| Field name | Description |
|---|---|
| product_id | Id of the spot product (typically quote/collateral products) |
| idx | Submission index of the transaction that triggered the payment |
| timestamp | Unix epoch time in seconds when the payment occurred |
| amount | Interest payment amount (x18 format) |
| balance_amount | Balance amount at the time of payment (x18 format) |