Order Types

Market Orders (Fill-Or-Kill)

Execute immediately at the best available price.

// Market order flow
{
  type: "FOK",           // Fill-Or-Kill
  side: "BUY",           // or "SELL"
  outcome: "YES",        // or "NO"
  amount: 100,           // USDC amount
  // Executes immediately or cancels entirely
}

Best for: Quick execution when you want in/out now Risk: May not fill if insufficient liquidity

Limit Orders (Good-Till-Cancel)

Set your price and wait for the market to come to you.

// Limit order flow
{
  type: "GTC",           // Good-Till-Cancel
  side: "BUY",
  outcome: "YES",
  price: 0.45,           // 45 cents
  amount: 100,
  // Sits on order book until filled or cancelled
}

Best for: Getting a specific price, providing liquidity Risk: May never fill if price doesn't reach your level

Last updated