Product Snapshots
Query historical product snapshots.
Rate limits
240 requests/min or 40 requests/10secs per IP address. (weight = 10)
See more details in API Rate limits
Single Product
Request
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
product_id | number | Yes | id of product to fetch snapshots for. |
idx | number / string | No | when provided, only return product snapshots with |
max_time | number / string | No | when |
limit | number | No | max number of snapshots to return. defaults to |
Response
Note:
the response includes a
txs
field which contains the relevant transactions to the product snapshots. There are>=1 product snapshots
per transaction.both
products
andtxs
are in descending order bysubmission_idx
.use the
submission_idx
to associate aproduct snapshot
to it's corresponding transaction.
Response Fields
Products
Field name | Description |
---|---|
submission_idx | Used to uniquely identify the blockchain transaction that generated the product snapshot; you can use it to grab the relevant transaction in the |
product_id | The id of of the product the event is associated with. |
product | The state of the product at the time of the transaction. |
Txs
Field name | Description |
---|---|
submission_idx | Unique identifier of the transaction. |
tx | Raw data of the corresponding transaction |
timestamp | The unix epoch in seconds of when the transaction took place. |
Multiple Products
Request
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
product_ids | number[] | Yes | Ids of products to fetch snapshots for. |
max_time | number / string | No | When provided, returns the last snapshot created <= |
Response
Note: the response is a map of product_id -> snapshot
for each requested product.
Response Fields
Field name | Description |
---|---|
submission_idx | Used to uniquely identify the blockchain transaction that generated the product snapshot. |
product_id | The id of of the product the event is associated with. |
product | The state of the product at the time of the transaction. |
Last updated