Skip to main content
GET
/
v1
/
order
Get Orders
curl --request GET \
  --url https://swap-api.flux.fun/v1/order \
  --header 'x-api-key: <api-key>'
{
  "orders": [
    {
      "id": "intent_abc123xyz",
      "clientId": "client-order-123",
      "action": {
        "orderType": "MarketOrder",
        "order": {
          "quoteToken": {
            "type": "chain",
            "data": {
              "tokenId": "USDC",
              "chainId": 8453,
              "contractAddress": "0x..."
            }
          },
          "baseToken": {
            "type": "kalshi",
            "data": {
              "marketId": "BTC-100K-2024",
              "side": "yes"
            }
          },
          "orderType": "BUY",
          "baseQuantity": "100",
          "maxQuoteQuantityIn": "50.00"
        },
        "chainId": 8453
      },
      "createdAt": "2024-01-12T10:00:00.000Z",
      "status": "validated",
      "balanceValidatedAt": "2024-01-12T10:00:05.000Z",
      "txnFilledAt": "2024-01-12T10:00:10.000Z",
      "transactionHash": "0xabc123...",
      "isComplete": false,
      "terminationReason": null
    }
  ]
}

Authorizations

x-api-key
string
header
required

Query Parameters

walletAddress
string

Filter orders by wallet address. If not provided, returns all orders associated with your API key (up to 100 most recent).

Response

200 - application/json

List of orders

orders
object[]
required