TRDEFI Liquidity
v1.0.1Live non-custodial stablecoin liquidity: open positions, volume, and an on-chain swap quote.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
trdefi_stats Catalogue statistics
Aggregate statistics for the live TRDEFI non-custodial stablecoin liquidity catalogue: how many open maker positions exist, how many distinct makers, how many pairs, across how many networks, plus settled volume over 1, 7 and 30 days, and the deepest pairs by volume and by position count. Free, no key.
trdefi_chains Live networks
The networks where liquidity is live right now, with each network's settlement engine address and the tokens a position can be built from. Use this instead of hardcoding chain or token identifiers.
trdefi_positions Open positions
Live non-custodial liquidity, as positions an agent can actually trade against. Each row carries the strategy hash, network, pair, tokens, settled volume and a `quote_eligible` flag, meaning the position is router-attached and its network has a quote route. It does NOT mean the position will quote: a maker can still gate it. Use this before a swap to find a real on-chain counterparty, or to survey where liquidity sits. Filter by network and by pair. Free, no key, no custody.
| Parameter | Type | Description |
|---|---|---|
chain | string | Network key, e.g. "base" or "ethereum". Defaults to every network. |
limit | integer | Rows to return. |
pair | string | Pair filter. Either an exact pair such as "USDC/USDT", or a substring such as "USDC" or "WETH" which matches any pair containing it, or a network name, or part of a strategy hash. |
quote_ready | boolean | True returns positions on a network that has a quote route, which is the quote_eligible set. False returns the positions that do not, which are usually on networks with no quote RPC. Neither guarantee… |
trdefi_position_detail Position detail
One position in full, by its 32-byte strategy hash.
| Parameter | Type | Description |
|---|---|---|
hash * | string | Strategy hash, 64 hex characters. |
trdefi_position_inventory Position inventory
Whether one position can actually be filled right now: the balance sitting in the strategy, the maker wallet balance behind it, and the remaining allowance, read from the chain. An Aqua virtual balance is a bookkeeping ceiling, not a reserve, so a position can answer a quote while the wallet behind it is empty - and the swap then reverts at the pull. Check this before signing a swap against a position that matters: fillable=false means the quote is real but the fill is not. Read-only, free, no key, and no dependency on 1inch rate limits.
| Parameter | Type | Description |
|---|---|---|
hash * | string | Strategy hash, 64 hex characters. |
overview | boolean | Also fetch 1inch's overview (status, openedAt, price range). Costs the upstream rate limit, so it is off by default. |
trdefi_quote Swap quote
Price a swap against one position, on-chain, at the current block — no custody, nothing signed, nothing moved. Works on any pair the position trades, not only stablecoins. Use this to check liquidity and get the output amount before preparing a swap. If a position answers "Strategy is gated", the maker embedded an access-licence check in the order: the CALLER must hold the 1inch Aqua access token. That check reads tx.origin, so the revert depends on whether a caller was supplied: without one it is 0x89c62b64 ("the caller holds none"), with one it is 0x39c4052c (the tx-origin balance check).…
| Parameter | Type | Description |
|---|---|---|
amount * | string | Input amount in token base units, as an integer string. e.g. "1000000" for 1 USDC. |
hash * | string | Strategy hash to quote against. |
chain | string | Network key. Defaults to "ethereum". |
direction | string | |
from | string | The address that will sign the swap, simulated as msg.sender. Supply it whenever the caller might hold the maker's access credential: the gate is checked on tx.origin, so with an address the answer is… |
wallet | string | The wallet that would trade. When a position is gated, this asks for a Fusion price instead: a 1inch resolver fills the order, so the wallet needs no credential, and the answer is executable rather th… |
trdefi_fusion_quote Fusion quote (gasless, gated liquidity)
A 1inch Fusion quote for a token pair. Use this when a position answers "Strategy is gated": the user/agent does not need an Aqua NFT, because a 1inch resolver with the credential fills the order. Returns the expected output, the Fusion resolver fee and a quote id. Free, read-only, nothing signed or moved. Chain, token addresses and base-unit amounts come from trdefi_positions / trdefi_chains. Note: a Fusion fill is best-effort, not guaranteed: the resolver chooses the venue, and a gated Aqua position is used only if that resolver holds the Aqua NFT.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Input amount in token base units, as an integer string. |
chain * | string | Network key, e.g. "ethereum", "base", "arc". |
fromToken * | string | Input token address. |
toToken * | string | Output token address. |
wallet * | string | The address that will sign the Fusion order. |
preset | string | Auction preset. Defaults to the quote recommendation. |
trdefi_fusion_prepare Prepare a Fusion order to sign
Quote and build an EIP-712 Fusion order. Returns `typedData` (sign with eth_signTypedData_v4), the `order` object, `extension`, `quoteId` and `orderHash`. Nothing is signed or submitted. After signing, call trdefi_fusion_submit with the same order, the signature, extension and quote id. This is the gated-liquidity path: the user/agent does not need an Aqua NFT; a 1inch resolver fills the order (best-effort, not guaranteed).
| Parameter | Type | Description |
|---|---|---|
amount * | string | Input amount in token base units, as an integer string. |
chain * | string | Network key, e.g. "ethereum", "base", "arc". |
fromToken * | string | Input token address. |
toToken * | string | Output token address. |
wallet * | string | The address that will sign the Fusion order. |
preset | string | Auction preset. Defaults to the quote recommendation. |
trdefi_fusion_submit Submit a signed Fusion order
Forward an already-signed Fusion order to 1inch's relayer. The signature is the user's authorization; this server never signs and never holds a key. Pass the `order`, `signature`, `extension` and `quoteId` returned by trdefi_fusion_prepare. A resolver fills the order later; submission does not guarantee a fill.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Network key, e.g. "ethereum", "base", "arc". |
order * | object | The signed Fusion order object returned by trdefi_fusion_prepare (`order`). |
signature * | string | EIP-712 signature from the wallet (0x-prefixed hex). |
extension | string | The `extension` returned by trdefi_fusion_prepare. Defaults to 0x. |
quoteId | string | The `quoteId` returned by trdefi_fusion_prepare. |
trdefi_badge Catalogue badge
A shields.io endpoint payload for the catalogue metrics, so a README can show live figures. Metrics: volume30, volume7, volume1, strategies, makers, pairs, chains.
| Parameter | Type | Description |
|---|---|---|
metric | string |