API referenceSwaps
Your swap orders, newest first
GET
Filter by reference to find the orders for one of your payments.
apiKeyheader
x-api-key<token>reference?stringOnly orders with this reference
limit?numberRange
1 <= value <= 100Default
20application/json- response
code*numberHTTP status code
message*stringHuman-readable message
data?nevermetadata?errors?array<string>Validation errors, when the request was rejected
curl -X GET 'https://api.landedfx.com/api/v1/swap/orders'Example Response200
{ "message": "string", "metadata": { "page": 1, "limit": 20, "totalDocs": 42, "prevPage": null, "nextPage": 2, "totalPages": 3 }, "errors": [ "string" ], "code": 200, "data": [ { "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5", "reference": "string", "provider": "relay", "from": "string", "to": "string", "amountIn": 0, "amountOut": 0, "minAmountOut": 0, "depositAddress": "string", "depositMemo": "string", "recipient": "string", "refundTo": "string", "state": "pending", "final": true, "originTxs": [ "string" ], "destinationTxs": [ "string" ], "receivedIn": 0, "deliveredOut": 0, "refunded": 0, "deadline": "string", "createdAt": "string" } ]}Track a swap GET
`state` means the same for every provider. The provider's own response is in `raw`.
Get an address to fund a swap POST
Picks the cheapest provider that answers, falling back to the next, and returns a one-time address to send to. Price first with `POST /swap/quotes`, which needs no address. Orders are tracked for you: read `GET /swap/orders/{id}` or subscribe to the `swap.order.updated` webhook.