TRDEFI Positions API

The prepare-only write path. Returns UNSIGNED transactions for your own wallet to sign. Requires a key carrying the `prepare` scope. The API never signs and never broadcasts. Tracking a client's own signed transaction is not built yet and is therefore not documented here.

GitHub OpenAPI

Operations 3

POST /v1/positions Prepare a position — returns UNSIGNED transactions for your wallet to sign #
POST /v1/swaps Prepare a swap — returns UNSIGNED transactions for your wallet to sign #
GET /v1/positions/{positionId} Track a position you prepared #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trdefi-com:trdefi-com-positions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trdefi-com-positions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TRDEFI Liquidity Positions API
  version: 1.2.0
  summary: Read the live non-custodial liquidity catalogue, quote it, and prepare unsigned positions for your own wallet to sign.
  description: 'Public, read-first API over the open liquidity catalogue that TRDEFI normalises, plus a **prepare-only write path** for integrators holding a key.


    **Non-custodial, strictly.** The API never signs and never broadcasts. `POST /v1/positions` returns *unsigned* transactions that your own wallet signs from your own address. No endpoint accepts a private key or a signing grant.


    **Contract.** Every response carries `X-Request-Id`. Every endpoint advertises `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` and `RateLimit-Policy`, on success and on failure. Every error is the same envelope: `{ error: { code, message, requestId, retryable, documentation } }`.


    **Money.** Amounts are returned as USD numbers for read models. On-chain amounts are strings in base units with an explicit `decimals`.


    **Fees.** Every newly created position carries a 0.05% protocol fee embedded in the signed order data. It is reported in the `fee` object of every prepared position and cannot be removed by the integrator or by us.


    **Keys.** Reading needs no key. Preparing needs `Authorization: Bearer trd_live__`, held server-side only. Request one at https://yield.trdefi.com/docs/api#access.


    **Stability.** See the deprecation policy at https://yield.trdefi.com/docs/api — path-versioned resources, a published calendar, and a minimum 90-day notice window.'
  contact:
    name: TRDEFI
    url: https://trdefi.com
    email: info@trdefi.com
  license:
    name: All rights reserved
    url: https://trdefi.com
  x-guidance: 'Start with GET /api/strategies (public, no key). Filter to what you can use,

    then GET /api/quote?hash=...&chain=...&amount=... to price a swap against that

    position on-chain. Read models return USD numbers; on-chain amounts are

    strings in base units and always carry an explicit decimals field.


    Writing is prepare-only and costs money. POST /v1/positions opens a maker

    position; POST /v1/swaps prepares a taker swap against an existing one.

    Both return UNSIGNED transactions for your own wallet to sign - the API never

    signs, never broadcasts and never holds a key.


    Paid routes answer 402 with the x402 terms when no credential is presented.

    Pay with your own wallet and retry with the base64 payload in the

    PAYMENT-SIGNATURE header (0.02 USD), or present an API key instead, which

    costs nothing.


    Before paying for a swap, call it: a strategy that is gated, or an amount the

    maker cannot fill, returns a reason and NO transactions rather than a

    transaction that is certain to revert.'
servers:
- url: https://yield.trdefi.com
  description: Production
security: []
tags:


# --- truncated at 32 KB (43 KB total) ---
# Full source: https://artifacts.apis.io/trdefi-com/openapi/trdefi-com-positions-api-openapi.yml