Quickstart
Get a key, price your first route, and read the result.
Get an API key
Get a free key on landedfx.com, or straight from the API:
curl -X POST https://api.landedfx.com/api/v1/keys \
-H "content-type: application/json" \
-d '{ "name": "Ada Obi", "email": "ada@acme.com" }'The key is shown once. Send it as the x-api-key header. Using an AI coding tool? Connect the MCP server and it can do this for you.
Quote a transfer
curl -X POST https://api.landedfx.com/api/v1/quotes \
-H "x-api-key: $LANDEDFX_KEY" \
-H "content-type: application/json" \
-d '{ "from": "KES:mpesa", "to": "USDC:base", "amount": "150000" }'Read the result
| Field | Meaning |
|---|---|
amountOut | What lands, in the to asset |
idealAmountOut | What the amount would buy at mid-market with nothing charged |
allInBps | Total cost against mid-market, in basis points (62.6 bps = 0.626%) |
route.steps | Each leg, with its own cost and whether it's executable |
alternatives | Up to four next-best routes |
confidence | high, medium or low, with reasons |
Act on it
Quotes expire after 60 seconds (expiresAt). Re-quote before you execute. Swap legs can be executed through POST /swap/quotes.