> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# Order and market data rules

> The order options and market data levels that AI Exchange accepts.

The API reference describes every field of each request. AI Exchange accepts a subset of the values. A request outside these rules is rejected; it is never changed silently, with one exception that is listed below.

## Orders

| Field | Rule |
| - | - |
| Time in force (`tif`) | `DAY` or `IOC`. `GTC` is rejected. |
| Post-only (`po`) | Must be `false` or absent. `po: true` is rejected with code 400. |
| Self-trade prevention | Cancel-incoming only. Any other value is rejected with code 400. |
| Replace | A replace cannot change the time in force. To change it, cancel the order and place a new one. |
| Minimum order size | 1 contract for every instrument. |

A resting order is always a `DAY` order. An `IOC` order never rests.

**Aggressive IOC orders.** If the price of an `IOC` order is beyond the price band of the instrument, the order is sent at the edge of the band and not at the price in the request.

## Market data

* `LEVEL_1` and `LEVEL_2` subscriptions are available. A `LEVEL_3` (order-by-order) subscribe request returns an error with code 400.

## Requests that are not served

* The estimated funding rate request on the orders WebSocket (`t = "ef"`) returns "not implemented".
* `GET /funding-slots` returns 404.

## Symbols

Symbols name a product and an expiry, for example `JPYUSD-2027-MAR`. [`GET /instruments`](https://docs.ai.exchange/api-reference/symbols-instruments/get-instruments) lists the instruments of the environment you call. The sandbox and production do not list the same instruments.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.