What you can automate¶
The Trade API lets a system you run read trades, tenders, and products, create and update draft tenders, manage their offers, and stop active tenders before their finish time. Access is scoped to the solutions you were granted.
It exists so that work someone on your team currently does by hand, in the web app, can happen on a schedule instead. Three shapes cover most of it.
The endpoint list, and generating a client¶
Every endpoint, parameter, and response shape is published by the API itself, so it is accurate to what is deployed rather than a copy maintained beside it. The API browser also lists routes reserved for Nui's own web client; listing a route does not grant an external client access to it.
| You want | Go to |
|---|---|
| To browse the endpoints | https://api.nuimarkets.com/docs/api, an interactive browser generated from the specification |
| The specification | GET https://api.nuimarkets.com/docs/openapi.yaml, OpenAPI 3.0.3 |
| To generate a client | Point your generator at the specification URL rather than a downloaded copy, so it can fetch the referenced documents alongside it |
The specification is an index that references sibling documents, all served from the same path. Tools that resolve references over HTTP handle it; a copy saved to disk on its own does not, because the references have nothing to resolve against. A single self-contained document is coming with the next API release, and this page will point at it.
If your toolchain cannot fetch the referenced documents, ask support@nuimarkets.com for a resolved single file in the meantime.
Keep your own system in step¶
The most common integration. A scheduled job pulls new trades and changed tenders and products into an ERP, a data warehouse, or a spreadsheet.
The trades, tenders, and products collections honour
If-Modified-Since. /trades finds trades created after the instant you name;
/tenders and /products find items created or updated after it, 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"
Scopes: trades:read, tenders:read, products:read.
Read Reading and polling data before you build this.
Trade and product polls look back at most 24 hours; that guide explains how to
recover after a longer outage.
Later activity on an existing trade does not make it reappear in a conditional
/trades poll. Refetch known trade IDs with GET /trades/{id} without
If-Modified-Since to reconcile that activity.
Reconcile trades without exporting¶
Trades carry their counterparty, product, volume, price, and every post-trade
action taken on them. GET /trades filtered by a date window is enough to
reconcile a period against your own books, and GET /trades/{id} gives the full
record when a line does not match.
In v2 each trade also carries an activity array holding every post-trade action
in order: comments, purchase and sales order numbers, freight quotes, and file
uploads. That is the audit trail, in one field, without a second request.
Scope: trades:read. See Versioning for the v1 to v2 difference.
Run tenders from your own system¶
An external client configured for writes can create or update a draft tender, manage its offers, and stop an active tender before its finish time:
| You can | Endpoint |
|---|---|
| Create or update a draft tender | POST /tenders, PUT /tenders/{id} |
| Cancel a draft or stop an unfinished active tender | DELETE /tenders/{id} |
| Create, edit, and delete offers before the tender opens | POST /tenders/{id}/offers, PUT and DELETE on {offer_id} |
| Withdraw an offer while the tender runs | DELETE /tenders/{id}/offers/{offer_id} |
| Read the bids placed against your offers | GET /tenders/{id}/offers/{offer_id}/bids |
| Fetch tender and offer field schemas | Four GET routes below |
The schema routes are GET /tenders/schema, GET /tenders/{id}/schema,
GET /tenders/{id}/offers/schema, and
GET /tenders/{id}/offers/{offer_id}/schema.
Publishing a draft tender and accepting a bid are done in the web app. An external client can read bids, but it cannot place or accept them through the Trade API.
Scopes: effective tenders:write for tender and offer writes and all four form-schema
GETs; tenders:read for tender, offer, and bid data reads. A client with
effective tenders:write also gets products:read implicitly, because you
cannot build an offer without selecting a product.
What it does not do¶
- There are no webhooks. Nothing is pushed to you. Polling with
If-Modified-Sinceis the intended mechanism and is cheaper than it sounds: a conditional poll with no matching rows returns304. - Tender publication, bid placement, and bid acceptance happen in the web app. The Trade API can create draft tenders, manage offers, stop active tenders before their finish time, and read bids.
- Order reads are not available to customer OAuth clients. Export order lists as CSV from the web app. Marketplace bidding and offering also happen there.
Start here¶
- The endpoint list, above. Worth opening before you read anything else here, so the rest has something concrete to attach to.
- Quickstart, credentials to your first authenticated call.
- Authentication and scopes, what your client is allowed to do and why a call might be refused.
- Rate limits, the three limits that apply at once. Read this before you write a backfill.
- Reading and polling data, pagination and change polling.
- Errors, the response shape and what each status means.
Credentials are issued during onboarding, not self-served. To request them, or to check which scopes a workflow needs, contact support@nuimarkets.com.
Updated 2026-10