Reading and polling data¶
The top-level trades, tenders, and products collections support pagination
and query filters. Conditional polls find newly created trades and new or
updated tenders and products. They do not detect later activity on a trade.
Pagination¶
List endpoints return a paginated collection. The server maximum is 50 objects per page.
{
"total": 128,
"pages": 3,
"_links": {
"current": "/api/1.0/trades?solution=abc123&page=1",
"next": "/api/1.0/trades?solution=abc123&page=2",
"last": "/api/1.0/trades?solution=abc123&page=3"
}
}
Set page and limit in the query string to walk it.
Follow _links.next rather than building the URL yourself, and stop when it is
absent. That is how you know you are done.
Paging is by offset, so _links.next is a convenience, not a guarantee. It
increments page against the same query. If records are inserted or reordered
between two requests, everything after the insertion point shifts, and a record
can move from the page you have already read to the one you have not, or the
reverse. Nothing in the pagination protects you from that.
If you are walking a whole collection and cannot tolerate a miss, do not paginate
a moving target. Poll with If-Modified-Since instead, which is bounded by time
rather than by position, and deduplicate on id at your end.
Timestamps¶
All timestamps come back as UTC in ISO 8601, for example
2018-01-01 12:00:00+00:00. There is no per-solution local time in the API;
convert on your side if you need it.
Polling for changes¶
GET /trades, /tenders, and /products accept If-Modified-Since.
The tender-offer bid list also accepts it. Other nested tender collections have
different conditional response behavior, so use the top-level collections for
the polling sequence below.
Send If-Modified-Since with a GMT timestamp in
RFC 5322 format. /trades
filters by trade creation time; /tenders and /products filter by update
time. The filter is accurate to the second:
curl -s "https://api.nuimarkets.com/api/1.0/trades?solution=$SOLUTION_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "If-Modified-Since: Tue, 04 Aug 2026 00:00:00 GMT"
This is the intended way to find new trades and changed tenders or products. It is cheaper than filtering on a date field: the filter still walks the collection, this does not.
A 304 means the conditional collection found no matching rows. It is the
normal answer to a poll, not an error. It does not mean that later activity on
an existing trade is unchanged. Handle it as "no matching rows from this poll".
An empty collection request without that header returns 204, also a success.
Choosing the timestamp to send¶
Send the time of your last successful run, not the newest record you saw.
For tenders and products, the newest created timestamp in your last batch is
not a watermark for updates.
Later activity on an existing trade does not make it reappear in a conditional
/trades collection poll. Refetch known trade IDs with GET /trades/{id}
without If-Modified-Since when you need to reconcile post-trade activity.
Store the run time before you start fetching, and only commit it once the whole walk succeeded. A run that fails halfway should repeat the same window rather than advance past the records it missed. Records returned twice are cheap to handle; records skipped are not.
For /trades and /products, a timestamp older than 24 hours is treated as
24 hours ago. If your last successful run is older, walk the full collection
without If-Modified-Since before resuming incremental polls. This is a
best-effort recovery: offset pages can move while you walk them, so it cannot
guarantee a complete backfill. Contact support if you need to reconcile a gap.
The tender-offer bid list has the same 24-hour limit. After a longer gap, fetch
each offer's full bid list once without If-Modified-Since before resuming its
polls. /tenders uses the full timestamp you send.
How often to poll¶
There is no minimum interval, but the rate limits make the tradeoff for you: 5000 requests a day across every endpoint you call. A 15-minute cycle over three endpoints, walking up to three pages each, costs well under a fifth of that. A one-minute cycle over the same three does not fit: at three pages each it comes to 12,960 requests a day, and even at a single page each it leaves you almost no headroom.
If you need to react faster than polling allows, say so when you talk to support@nuimarkets.com. There are no webhooks today, and knowing who wants them is what changes that.
Compression¶
Send Accept-Encoding: gzip. JSON and text responses of at least 1 KB (1024 bytes, the
threshold itself included) come back gzipped with
Vary: Accept-Encoding, which on a full collection page is usually an 85-90% saving. CSV exports
are included, so a large download compresses too. Most HTTP clients set the header and decompress
transparently; if yours does not, it is worth turning on before you tune page size. Omitting it,
or sending gzip;q=0, returns the body uncompressed.
Filtering¶
List endpoints take filters in the query string alongside page, limit, and
the required solution. Which filters a given endpoint accepts is documented in
the interactive API browser at
https://api.nuimarkets.com/docs/api,
which is generated from the API's own specification rather than maintained
separately. See
The endpoint list, and generating a client
for the specification itself.
Use If-Modified-Since in preference to a date filter whenever you are asking
"what is new". Use date filters when you are asking for a fixed historical
window, for example reconciling a closed month.
Updated 2026-10