Order Types
VoxFi supports multiple order types for different trading strategies:Limit Orders
LIMIT_BUY: Buy contracts at a specific price or better;LIMIT_SELL: Sell contracts at a specific price or better.
Market Orders
MARKET_BUY_VALUE: Buy contracts immediately, spending up to a specified value;MARKET_BUY_QTY: Buy a specific quantity of contracts immediately at market price;MARKET_SELL: Sell a specific quantity of contracts immediately at market price.
Order Outcomes
All orders specify an outcome:YES: Buying or selling YES contractsNO: Buying or selling NO contracts
API Endpoints
Place Order
Creates a new order in the market. Supports different order types: limit orders (LIMIT_BUY, LIMIT_SELL) and market orders (MARKET_BUY_VALUE, MARKET_BUY_QTY, MARKET_SELL).
Detailed documentation + playground
Cancel Order
Cancels an open limit order for the authenticated user. Detailed documentation + playgroundMerge Contracts
The operation burns matching YES/NO contract pairs (X YES and X NO), permanently removing them from the user’s position without affecting the order book or market price. Parameters:market_id(required): ID of the market where contracts will be mergedquantity(required): Quantity of contracts to be merged
List User Orders
Gets all open orders for the authenticated user. IfeventId is provided, returns orders only for that event.
Detailed documentation + playground
Get User Activity
Returns the user’s trading activity (executed trades) for a given market. Parameters:marketId(optional): Market ID to filter activitypage(optional): Page number for paginationpageSize(optional): Number of items per page
UserActivity objects containing:
contract_type: Type of contract (YES/NO)created_at: Timestamp of the tradeprice_ticks: Price in ticks (0-100)quantity: Number of contracts tradedside: Trade side (BUY/SELL)
Get User P&L
Returns the user’s profit and loss (P&L) for a given market or event. Parameters:marketId(optional): Market ID to filter P&LeventId(optional): Event ID to filter P&L
UserPnl objects containing:
amount_received: Total amount received from sales (in cents)amount_spent: Total amount spent on purchases (in cents)event_id: Event IDmarket_id: Market IDpnl: Profit and loss (in cents)qty_contracts_bought: Quantity of contracts boughtqty_contracts_sold: Quantity of contracts sold
Order Lifecycle
- Placed: Order is sent and validated
- Open: Order is in the orderbook awaiting match
- Partially Filled: Some contracts have been executed
- Filled: Order is completely executed
- Cancelled: Order is cancelled before execution
Best Practices
- Check Market Status: Make sure the market is open before placing orders;
- Monitor Liquidity: Check orderbook depth before placing large orders;
- Use Limit Orders: For better price control and potentially lower fees;
- Cancel Unfilled Orders: Regularly cancel orders that are no longer needed.

