GET /market/events, numbered per instrument, and your market terms on GET /instruments, each
with the evidence of where you read it. A venue then lists your markets on its paper book from those
terms and prices them from its own connection to you.
Use this page if your provider software declares marketData, or states a symbol list for the
accounts it holds. It follows Add your own provider, which covers the
manifest and sessions. By the end your price stream holds under trdrs’s reader, and your symbol
list states the terms a venue lists your markets on.
Send market events
Each market event names itseventId, connectionId, instrumentId, sourceId,
marketSequence, occurredAt and type, with a payload for its type:
A quote’s own time is no more than a second after trdrs receives it, and never before that
instrument’s last.
Number your market events
trdrs reads your prices one instrument at a time: it opens oneGET /market/events stream for each
instrument it prices, and a second Machine reading the same instrument opens a stream of its own.
It ends a stream at the first event that breaks either of two rules of protocol 1.0, then opens it
again, so a provider that breaks one never delivers a price that lasts.
- Name the
provider-marketsource. Every market event’ssourceIdisprovider-market, the one source a 1.0 provider serves. An event that names another source, such as your own service’s name, ends the stream. - Number each instrument’s updates once, one apart.
marketSequencecounts one instrument’s updates on its connection: each update is exactly one past that instrument’s last, and it’s numbered where it arrives from your vendor, not when you send it. Every stream that carries an update carries it with the samemarketSequenceand the sameeventId. A counter shared by every instrument, or one taken for each event you deliver, puts gaps in each stream, and trdrs ends the stream at the first gap.
Serve your symbol list
A venue lists your markets on its paper book from the terms you state for each symbol, and a venue that hedges in an account at your provider turns hedging on, and sizes what each hedge account must hold, from the margin you state. Serve it onGET /trdrs-provider/v1/instruments?sessionId=&generation=[&cursor=] under a market or discovery
session. trdrs names Trdrs-Provider-Protocol: 1.1 on the call. It’s optional: a provider that
answers 404 keeps working as before, and its terms read as unknown, so no venue lists its markets
from it and hedging on it stays off.
Each page is { sessionId, generation, connectionId, listId, instruments, nextCursor }, at most 500
instruments and 20 pages, with one listId for the whole chain. Each instrument states:
symbol, your own name for it, andtradable: false for a symbol you quote without filling.quantity:unit(contracts,base_unitsorlots),min,step, andcontractSizeandmaxor null.minandmaxare whole steps.minNotional, the smallest order value, or null.margin: your notional tiers,{ "tiers": [...] }, each withnotionalFloor,maxLeverage, andinitialRate,maintenanceRateandmaintenanceDeductionas exact fractions ({ "numerator": "1", "denominator": "40" }). The first tier starts at0, and no tier asks less than the one before it. Null where you state none.evidence: where and when you read each term group,{ terms, kind, reference, readAt },kindapifor your own server’s call ordocumentfor a published or supplied document. A term no entry covers is unsourced, and trdrs reads it as unknown.
name, its display name, such asEuro vs US Dollar.liquidityProvider:{ slug, name }of the liquidity provider behind it, or null where you are it.entitled: false where this connection may not receive its prices.productModel(linear_cfdfor a currency pair or a CFD), andunderlying:{ assetClass, base, quote }for a pair (assetClassfx), and for anything else itsassetClass(metal,index,energy,commodity,agriculture,equity,cryptoorbond), withnameandcurrencywhere you state them, andbaseandquotenull or left out.quoteCurrencyandsettlementCurrency.ticks: contiguous bands{ from, to, size }, the last open above.orderTypesandtimeInForce: the order forms you take, empty for a symbol you don’t fill.sessions: the venue session calendar (an IANA time zone, the dates it covers, all seven days and any holidays), andvaluation:executableormark.fees,fundingandlisting, which trdrs keeps as you state them.
Test it end to end
Run the market data suite against your own service, as Provider conformance describes. It opens two streams at once over two instruments and holds every event to the rules above. Then ask the venue that connects you to read your symbol list from its connection, as Add a provider’s markets describes, and check each market’s terms and evidence there.Next steps
Provider conformance
Run the market data suite and keep its evidence.
Add a provider's markets
See how a venue lists your markets from your symbol list.