Skip to main content
Prove your provider handles identity, ordering and evidence correctly before a single real account depends on it. For provider software that declares execution, conformance runs fifteen rules against it and tells you, rule by rule, what held and what didn’t. Software that serves prices alone runs the market data suite instead. Both measure software that trdrs calls. Venue conformance is a separate check of software that calls the trdrs API. Use this page once you’ve built your provider software, as Build a provider and Serve prices and symbols describe. By the end you have an evidence file with a result for every rule, and you know what happens to it on the way to production. You can run it before you have a vendor account, a certificate or a network connection. The reference provider in the @trdrs/reference-provider package follows the contract exactly and passes every rule, so running the suite against your own provider shows you the differences, and those are your work list. The package isn’t published to npm today, so ask your trdrs contact how to run it. For a real exchange’s test environment, trdrs also runs a testnet provider for the exchanges Run a testnet provider names, and that page shows how to qualify it.

Know what each rule checks

Each rule exists because getting it wrong loses or duplicates someone’s trade. The reason comes back with every result, because a provider that only learns what failed tends to make the check pass rather than make the behavior right. Add your own provider shows how to meet each rule, and Serve prices and symbols covers the symbol list.

Run it

Call runProviderConformance with a function that sends each of the suite’s requests to your provider and returns what came back, plus the identities to test with:
tradableAccountId and order let the suite place one order to test the command rules, and otherAccountId lets it test that one account can’t read another. Leave them out and the rules that need them are skipped, not passed.

Read the evidence

runProviderConformance returns the evidence directly; write it to a file and keep it. It names the target you tested without its authorizationRef.
Each rule has one of three outcomes: passed is true only when every rule passed. A skipped rule doesn’t count, because approving a provider for behavior nobody saw is worse than reporting nothing. The suite runs every rule even when the first one fails, and a provider it can’t reach at all comes back as failures rather than a crash. One run gives you the whole list.

Run the market data suite

A provider that serves prices and takes no orders proves itself with its own suite. Call runProviderMarketConformance from @trdrs/reference-provider for evidence named provider-market-data-v1. It checks a manifest that declares market data alone, authenticated readiness, a grant that repeats the authority it was asked for, a retried acquisition that returns the same grant, isolation from another connection, and fresh bid and ask quotes. It holds every stream it reads to the rules trdrs reads your prices by: the provider-market source, each instrument’s updates one apart, no event id twice on a stream, and a quote’s time no more than a second after it arrives and never before the instrument’s last. It opens two streams at once over two instruments and checks that an update both carry has one number and one event id, and it checks that a reacquisition fences the old session and continues each instrument’s sequence. It sends no command and always reports executionQualified: false. Supply a dedicated test connection, its environment, its private authorization reference, an allocated positive generation and at least two instruments it may quote. The driver returns parsed market messages in stream for a bounded /market/events read, long enough for each instrument to carry two events. An empty or stale feed fails, and so does a target with one instrument, because one instrument can’t show how two are numbered. Keep credentials and authorization references out of evidence files; the evidence never carries the authorization reference. The suite measures one run of the service. Keep separate evidence of a restart and resubscription for a data feed, and the vendor’s full conformance evidence before a release claims execution.

Know what it proves

It proves your provider follows the contract’s rules on identity, ordering and evidence: the part that, when it’s wrong, loses money without anyone noticing. Test how your market fills under load, with its own order book, slippage and latency, in your own environment.

Take your evidence to production

Your evidence is the first thing each of these steps reads, and each one is a separate decision.
  1. Your venue connects your software. It registers your manifests and connects the provider with its own credential, as Connect a provider describes. The provider serves your venue alone.
  2. Your venue promotes the connection on a check that passed. Your evidence is how you know the software is ready for that: the promotion puts the connection to use in its environment.
  3. Production is arranged with trdrs. The provider and connection routes are a preview, served on the sandbox, and production availability is arranged when a venue qualifies.

Next steps

Run a testnet provider

Qualify a real exchange’s test environment behind the contract.

Connect a provider

See how a venue connects, checks and promotes your software.