Fetching Orders

💡 Production advice: run your own indexer from chain events. Use our API for development/testing.

Endpoint

GET https://round-snowflake-9c31.devops-118.workers.dev/

Polling & Freshness

  • Refresh every ~30s (aligns with Odette.fi / Flys.bet cadence).

  • Fetch fresh orders right before trade execution.

  • Orders can expire or be filled between polls.

const REFRESH_INTERVAL = 30_000;

async function fetchAndUpdateOrders() {
  const res = await fetch('https://round-snowflake-9c31.devops-118.workers.dev/');
  const json = await res.json();
  updateOrdersDisplay(json.data.orders);
  if (json.data.market_data) updateMarketPrices(json.data.market_data);
}

fetchAndUpdateOrders();
setInterval(fetchAndUpdateOrders, REFRESH_INTERVAL);

Response Shape (abridged)

Common Filters

Decimals

Field
Decimals
Example
Human

strikes[]

8

100000000000

1000

price

8

5000000

0.05 USDC

maxCollateralUsable

6

1000000

1 USDC

Last updated