# NLP Snapshots ## Rate limits * Dynamic based on snapshot count (**weight = (limit.min(500) / 100)**) * E.g: With `limit=100`, weight = 1 * E.g: With `limit=500`, weight = 5 {% hint style="info" %} See more details in [API Rate limits](https://docs.nado.xyz/developer-resources/api/rate-limits) {% endhint %} ## Request {% tabs %} {% tab title="By interval" %} Query NLP snapshots at specific time intervals. `POST [ARCHIVE_ENDPOINT]` **Body** ```json { "nlp_snapshots": { "interval": { "count": 10, "max_time": "1683315718", "granularity": 3600 } } } ``` {% endtab %} {% tab title="By pagination" %} Query NLP snapshots with pagination. `POST [ARCHIVE_ENDPOINT]` **Body** ```json { "nlp_snapshots": { "idx": "12345", "max_time": "1683315718", "limit": 100 } } ``` {% endtab %} {% endtabs %} ## Request Parameters
ParameterTypeRequiredDescription
intervalobjectNoObject specifying time interval parameters: count, max_time, granularity
idxnumber / stringNoSubmission index for pagination.
max_timenumber / stringNoUnix epoch time in seconds. Only return snapshots with timestamp <= max_time
limitnumberNoMax number of snapshots to return. Defaults to 100. Max of 500.
## Response ```json { "snapshots": [ { "submission_idx": "12345", "timestamp": "1683315718", "total_deposits": "1000000000000000000000", "total_borrows": "500000000000000000000", "base_interest_rate": "50000000000000000", "quote_interest_rate": "30000000000000000" } ] } ``` ## Response Fields ### NLP Snapshots
Field nameDescription
submission_idxTransaction submission index
timestampUnix epoch time in seconds when snapshot was taken
total_depositsTotal deposits in the NLP pool (x18 format)
total_borrowsTotal borrows from the NLP pool (x18 format)
base_interest_rateInterest rate for base assets (x18 format)
quote_interest_rateInterest rate for quote assets (x18 format)