Version: 1.1 · Effective: 2026-09-25 · Applies to: https://yield.trdefi.com/api/ and https://yield.trdefi.com/v1/
This document states what the API is, what it is not, where its data comes from, what we guarantee, and what we explicitly do not. It is the foundation the other two documents rest on: read this first.
A public, read-first API over the live non-custodial liquidity catalogue that TRDEFI normalises across supported networks, plus — for accredited integrators holding a key — a prepare-only write path that turns an intent into unsigned transactions for the client's own wallet to sign.
Concretely, it answers five questions:
Stated plainly, because an integration decision may depend on it:
| It is not | Because |
|---|---|
| A custody service | Nothing in the API holds, moves or controls funds. There is no deposit step anywhere. |
| A signing service | We never sign. There is no signing grant, no delegated key, no moment at which a credential of ours produces a signature. The write path prepares; the client's wallet signs. |
| A broadcaster | We never submit a transaction on a client's behalf. Broadcast is the client's call, from the client's own address. |
| A trading venue of record | It reports positions and volume; it does not settle trades. Settlement is on-chain. |
| A price oracle | Quotes are indicative and sourced from a live catalogue. They are not a reference rate and must not be used as one. |
| A financial product | No returns are offered, promised or implied. Figures describe activity that has already happened. |
| A data warehouse | It exposes aggregates and lists, not bulk row access. There is no SQL endpoint and no export of raw rows. |
Every figure is derived, never entered by hand.
| Layer | Source | Refresh |
|---|---|---|
| Open positions | The public liquidity registry on each supported network, read directly from the chain | On a scheduled refresh; the catalogue is re-listed and traded volume recomputed, stalest rows first |
| Settled volume | On-chain fill events, aggregated | Same schedule |
Aggregates (/api/stats, /api/chains) | Pre-aggregated roll-ups computed from the above | Same schedule |
| Quotes | Live read against the routing layer | Per request |
| Prepared transactions | Built at request time against the current block and price | Per request; expires |
Freshness is part of the response, not a footnote. meta.freshnessSeconds states how old the underlying roll-up is, and meta.cached says whether the reply came from our short-lived cache. A client that needs to know whether a number is a minute or three hours old does not have to guess.
What we commit to: we disclose the age. What we do not promise: that the roll-up is second-fresh. It is not, and treating it as a real-time feed is a misuse of the API.
The API is designed so that a compromised API credential cannot move value. This is not a promise about our operational discipline; it follows from the architecture.
| Property | Value |
|---|---|
| Token custody | The owner's wallet, at all times |
| Value the read API can move | None |
| Credential required to read | None |
| Credential required to prepare | An API key, held server-side by the client |
| Value the write path can move | None. It returns unsigned transactions. |
| What can actually move value | Only a signature from the client's own wallet, against a bounded, revocable allowance |
| Lock-up | None |
| Exit | Owner-initiated, single transaction |
| Key material of clients | Never held, never requested |
| Signatures produced by us | None, ever |
Three further commitments:
Every position created through TRDEFI carries a 0.05 % protocol fee embedded in the signed order data — the same whether the position is created through the web app or the API.
| Question | Answer |
|---|---|
| How much? | 0.05 % of the traded amount |
| Where does it go? | It is written into the order the maker signs and is executed on-chain by the position itself |
| Can an integrator remove it? | No. There is no parameter, tier or agreement that waives it. |
| Does it apply to reading data? | No. Reading is free and always has been. |
| Does it apply to existing positions? | No. Terms are immutable on-chain; positions created earlier keep their original terms. |
| Is it disclosed before signing? | Yes — in the fee object of POST /v1/positions, in the web app before confirmation, and in Overall Scheme Part 7. |
The fee is part of the position, not a separate charge. An integrator that resells access passes it through; it is not a cost we absorb on their behalf.
In scope — we own this:
Out of scope — we do not own this:
| Property | Target |
|---|---|
| Availability (read surface) | 99.5 % monthly, measured on 2xx + 4xx (client errors are not outages) |
| Latency (p50 / p95) | Under 400 ms / under 1.5 s for /api/stats |
Latency (POST /v1/positions) | Under 1.5 s p95 to return a prepared transaction set |
| Cache freshness | meta.cached is honest; cached replies are at most 60 s old |
| Incident communication | Status note on this domain, and the request id quoted in the envelope |
| Breaking-change notice | Minimum 90 days, published on the deprecation calendar |
The SLO applies to the read surface and to preparation. Anything after preparation — signing, broadcast, inclusion on-chain — is outside it, because none of it is ours to control.
| Concern | TRDEFI | Client |
|---|---|---|
| Holding funds and keys | — | Owns |
| Preparing a correct, complete, fee-inclusive transaction set | Owns | — |
| Signing | Never signs | Owns |
| Broadcasting | Never broadcasts | Owns |
| Authorising value movement | Provides the bounded allowance mechanism the client's wallet signs | Signs |
| Aggregate correctness, given chain data | Owns | — |
| Independent verification before acting on a figure | — | Owns |
| Contract stability (envelope, versioning, ids) | Owns | — |
Handling a 4xx correctly | Provides stable codes | Owns |
| Staying inside the advertised rate limit | Advertises the limit on every reply | Owns |
| Regulatory position in the client's jurisdiction | Provides facts about its own operation | Owns |
meta.GET endpoint documented in Overall Scheme Parts 2. It cannot sign or transfer.POST /v1/positions. Credentialed, origin-restricted, and able to prepare but never to sign.TRDEFI Ltd, London, United Kingdom. This document describes a software interface. It is not financial advice, and nothing in it constitutes an offer to sell or a solicitation to buy any security or financial product.