# EVE Frontier Market Data API

> Order books, recent trades, fills, pools and display prices for EVE Frontier item and coin markets, priced in CRED. 28 endpoints with CU costs.

Item and coin markets: order books, pools and their fees, single orders, fills and recent trades, trading-account history and open orders, display prices and the coin registry.

Part of the Voidwire API. Voidwire is a metered REST API for EVE Frontier data: markets, characters, tribes, hauling and the star map.

- Base URL: `https://api.voidwire.xyz`
- Authentication: `x-api-key` header (create keys at https://voidwire.xyz)
- HTML version: https://voidwire.xyz/docs/trading
- Full API overview: https://voidwire.xyz/docs.md

## Endpoints

### GET /trading/v1/coin-pools/{pool_id}/metadata

Get coin-pool metadata by pool ID.

Cost: 20 CU per call.

Returns the pair metadata for a coin market (coin types, symbols, decimals, lot/tick/min size), the raw pool fee with its decimal `fee_rate` for sizing taker-fee buffers, and the `price_scaling` divisor used by raw prices. Responds 404 for unknown pools.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `pool_id` | path | yes | `string` | Pool (orderbook) object ID. |

Response `200`: `CoinPoolMetadata`

- `base_asset_id`: `string` — Fully-qualified base coin type.
- `base_asset_symbol`: `string` — Ticker symbol of the base coin, or `null` if unknown.
- `base_asset_name`: `string` — Display name of the base coin, or `null` if unknown.
- `base_asset_decimals`: `integer` — Decimal places of the base coin.
- `quote_asset_id`: `string` — Fully-qualified quote coin type.
- `quote_asset_symbol`: `string` — Ticker symbol of the quote coin, or `null` if unknown.
- `quote_asset_name`: `string` — Display name of the quote coin, or `null` if unknown.
- `quote_asset_decimals`: `integer` — Decimal places of the quote coin.
- `pool_id`: `string` — Pool (order book) object ID.
- `pool_name`: `string` — Human-readable pool name, or `null` if unset.
- `min_size`: `string` — Minimum order size in raw base units (decimal string), or `null` if unknown.
- `lot_size`: `string` — Order quantities must be a multiple of this raw base amount (decimal string), or `null` if unknown.
- `tick_size`: `string` — Prices must be a multiple of this raw increment (decimal string), or `null` if unknown.
- `fee`: `string` — Current pool taker fee — the entry tier of the pool's fee class, or its creation-time rate when no class schedule is indexed — scaled by 1e9 (e.g. `20000000` = 2%), or `null` if unknown.
- `fee_rate`: `number` — Decimal form of the pool taker fee (`fee` / 1e9). Size taker buys as notional × (1 + fee_rate).
- `maker_fee`: `string` — Current pool maker fee — same fee-class tier and scaling as `fee` — charged when a resting order fills, or `null` if unknown.
- `maker_fee_rate`: `number` — Decimal form of the pool maker fee (`maker_fee` / 1e9).
- `price_scaling`: `string` — Divisor for raw prices: quote_raw = base_raw × price / price_scaling. Always 1e9 for coin pools.

```sh
curl "https://api.voidwire.xyz/trading/v1/coin-pools/<pool_id>/metadata" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/coin-pools/{pool_id}/orderbook

Get the current resting orderbook for a coin pool.

Cost: 30 CU per call.

Returns `{ bids, asks }` of orders currently resting on the book. Bids are highest-price-first, asks lowest-price-first. Prices are raw integers scaled by the pool `price_scaling`. Responds 404 when the pool is not a known coin pool.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `pool_id` | path | yes | `string` | Pool (orderbook) object ID. |

Response `200`: `OrderbookResponse`

- `bids`: `Order[]` — Bids, highest price first.
- `asks`: `Order[]` — Asks, lowest price first.

```sh
curl "https://api.voidwire.xyz/trading/v1/coin-pools/<pool_id>/orderbook" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/coin-pools/{pool_id}/orders/{order_id}

Get one order on a coin pool.

Cost: 30 CU per call.

Returns full detail for a single coin-market order — status, prices and quantities, the account that placed it, base/quote coin metadata, and its fill history. Order IDs are scoped per pool, so both path segments are required. Responds 404 if the order is unknown.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `pool_id` | path | yes | `string` | Pool (orderbook) object ID. |
| `order_id` | path | yes | `string` | Encoded TriEx order ID (unsigned integer as decimal string). |

Response `200`: `CoinOrderDetail`

- `order_id`: `string` — Order ID (unsigned integer, decimal string), unique within its pool.
- `pool_id`: `string` — Pool (order book) object ID the order belongs to.
- `pool_name`: `string` — Human-readable pool name, or `null` if unset.
- `side`: `"buy" | "sell"` — `buy` for bids, `sell` for asks.
- `order_type`: `"market_buy" | "market_sell" | "limit_buy" | "limit_sell"` — The order's type and direction. `null` when order metadata is unavailable.
- `status`: `"open" | "filled" | "cancelled"` — Current lifecycle status of the order.
- `price`: `string` — Limit price as a raw on-chain integer (decimal string, scaled by the pool `price_scaling`).
- `quantity`: `string` — Total original base quantity (remaining + filled; raw integer, decimal string).
- `remaining_quantity`: `string` — Base quantity still open (raw integer, decimal string).
- `filled_quantity`: `string` — Base quantity already filled (raw integer, decimal string).
- `expires_at`: `integer (int64)` — When the order expires. Unix epoch milliseconds.
- `updated_at`: `integer (int64)` — When the order state last changed on-chain. Unix epoch milliseconds.
- `trading_account_id`: `string` — Trading account object ID that placed the order.
- `base_asset`: `CoinOrderAsset` — Base coin of the market.
- `quote_asset`: `CoinOrderAsset` — Quote coin of the market.
- `fills`: `CoinOrderDetailFill[]` — Fill events for this order, oldest first. Empty for open orders with no fills.

```sh
curl "https://api.voidwire.xyz/trading/v1/coin-pools/<pool_id>/orders/<order_id>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/coin-pools/discovery

List coin markets.

Cost: 50 CU per call.

Lists every coin market with open-order depth, best bid/ask (raw prices, scaled by `price_scaling`), distinct resting traders, and the most recent trade. Markets with the deepest books come first. Paginated: pass back `next_cursor` as `cursor` to fetch the next page.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `cursor` | query | no | `string` | Opaque cursor from a previous response’s `next_cursor`. Omit for the first page. |

Response `200`: `CoinMarketPage`

- `data`: `CoinMarket[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/coin-pools/discovery" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/coin-pools/open-orders

List open orders across all coin markets.

Cost: 50 CU per call.

Returns the orders currently resting on every coin order book, newest activity first, with base/quote pair metadata and the order’s owner (trading account, owner address, character or organization name) on every row. Expired orders are excluded. Filters compose freely: by owner (`trading_account_id`), by market (`pool_id`), by coin on either side of the pair (`coin_type`), and by side. Pass back `next_cursor` as `cursor`, with the same filters, to fetch the next page.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `cursor` | query | no | `string` | Opaque cursor from a previous response’s `next_cursor`. Omit for the first page. |
| `trading_account_id` | query | no | `string` | Only orders owned by this trading account ("my orders"). |
| `pool_id` | query | no | `string` | Only orders on this coin pool. |
| `coin_type` | query | no | `string` | Only markets with this coin as their base or quote. |
| `side` | query | no | `"both" \| "buy" \| "sell"` | Filter by order side. `buy` = bids. |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `CoinMarketOpenOrderPage`

- `data`: `CoinMarketOpenOrder[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/coin-pools/open-orders" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/coin-pools/resolve

Resolve a coin pool ID by coin pair.

Cost: 30 CU per call.

Looks up the pool (order book) for a (base_type, quote_type) coin pair. Returns `{ pool_id }` for the pair, or `{ pool_id: null }` when no pool exists for it yet.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `base_type` | query | yes | `string` | Fully-qualified base coin type. |
| `quote_type` | query | yes | `string` | Fully-qualified quote coin type (CRED per current scope). |

Response `200`: `CoinPoolResolve`

- `pool_id`: `string` — Resolved pool (order book) object ID for the pair, or `null` when no pool exists for it yet.

```sh
curl "https://api.voidwire.xyz/trading/v1/coin-pools/resolve?base_type=<base_type>&quote_type=<quote_type>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/coin-pools/trades/recent

List recent trades across all coin markets.

Cost: 50 CU per call.

Returns the latest executed trades across every coin market, newest first. Prices, quantities, and fees are returned both human-readable and raw (`*_raw`, scaled by the pool `price_scaling` and coin decimals). Use `before` (epoch milliseconds) to page backward — pass the previous response’s `next_cursor` as `before`. Use `after` to poll for trades executed since a given time. Filter with `pool_id` to follow a single market. At most 50 rows are returned per page.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `pool_id` | query | no | `string` | Restrict the feed to a single coin pool. |

Response `200`: `CoinTradePage`

- `data`: `CoinTrade[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/coin-pools/trades/recent" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/coins

List coins with supply, contract, and market data.

Cost: 30 CU per call.

The consolidated coin list, enumerated from the token registry so coins with no triex pool (e.g. CRED) still appear. Each coin merges registry identity, on-chain supply/contract facts (circulating supply is total minus known treasury holdings), and market data appended from the indexer's coin pools (null when the coin has no pool). Coins with a pool come first, ordered by activity. Pass `coin_types` to restrict the list to specific coins.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `coin_types` | query | no | `string[]` | Optional comma-separated coin types to restrict the list to (max 200). Omit for the full registry list. |

Response `200`: `CoinResponse[]`

- `coin_type`: `string` — Fully-qualified Move coin type (`<address>::<module>::<STRUCT>`).
- `symbol`: `string` — Ticker symbol from the coin metadata, or null if unknown.
- `name`: `string` — Human-readable coin name, or null if unknown.
- `decimals`: `integer` — Decimal places of the smallest on-chain unit (raw amounts are divided by 10^decimals for display), or null if unknown.
- `icon_url`: `string`
- `total_supply`: `number` — Total minted supply (TreasuryCap) in whole coins.
- `circulating`: `number` — Circulating supply in whole coins: total minus known treasury holdings. Equals total_supply when the registry lists none.
- `treasury_holdings`: `CoinTreasuryHolding[]` — Known non-circulating holdings excluded from circulating.
- `max_supply`: `number` — Hard-cap supply in whole coins. Null when uncapped.
- `mint_policy`: `CoinMintPolicy`
- `immutable`: `boolean` — Metadata cap deleted → coin metadata can no longer change.
- `upgradeable`: `boolean` — The package enforcing the supply policy can still be upgraded (its UpgradeCap is live), so an upgrade could change it. From the token registry's `supply_policy`; null when the registry doesn't say.
- `verified`: `boolean` — Supply facts were read from chain (a TreasuryCap was found).
- `market`: `CoinMarketResponse` — Appended market data, or null when the coin has no pool.

```sh
curl "https://api.voidwire.xyz/trading/v1/coins" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/display-prices

Batch display prices for items (optionally per vault).

Cost: 50 CU per call.

Plain market display prices (no trading fee applied) from the `display_price` view; a client that wants to show a fee applies the viewer's own rate for the pool. Pass `item_ids` alone for vault-independent item-tier prices (one per item). Pass `item_ids` + `storage_unit_ids` to run the full traded → item → book → unknown waterfall per (item, vault); a pair with no pool falls back to the vault-independent item-tier price (`tier: "item"` with a null `pool_id`) unless `fallback=false`, and comes back `tier: "unknown"` when the item has no price anywhere. `storage_unit_ids` may hold either trade hub ids or vault item collection ids.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `item_ids` | query | yes | `string` | Comma-separated numeric item (asset) IDs. Batch ceiling: at most 100 IDs per request — larger batches are rejected with 400. |
| `storage_unit_ids` | query | no | `string` | Comma-separated trade hub / vault item collection ids. When present, must match the number of `item_ids` (paired by position) or be a single id (applied to every item). |
| `fallback` | query | no | `string` | Pair mode only. Set to "false" to disable the item-tier price fallback for pairs with no pool at the requested vault (default: enabled). Ignored in item-only mode. |

Response `200`: `DisplayPricesResponse`

- `prices`: `DisplayPrice[]` — One entry per requested item (or per requested (item, vault) pair), in request order.

```sh
curl "https://api.voidwire.xyz/trading/v1/display-prices?item_ids=<item_ids>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/display-prices/{item_id}

Display price for a single item (optionally at a vault).

Cost: 20 CU per call.

Convenience single-item form of `/display-prices`. With `storage_unit_id`, returns the per-vault waterfall price; without it, the vault-independent item-tier price.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `item_id` | path | yes | `string` | Numeric item (asset) id |
| `storage_unit_id` | query | no | `string` | Trade hub / vault item collection id to price against. |
| `fallback` | query | no | `string` | Pair mode only. Set to "false" to disable the item-tier price fallback when no pool exists at the vault (default: enabled). Ignored without `storage_unit_id`. |

Response `200`: `DisplayPricesResponse`

- `prices`: `DisplayPrice[]` — One entry per requested item (or per requested (item, vault) pair), in request order.

```sh
curl "https://api.voidwire.xyz/trading/v1/display-prices/<item_id>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/fills/{event_digest}

Get one fill by event digest.

Cost: 30 CU per call.

Returns the raw record of a single fill event, with no account perspective applied: both maker and taker fees and trading accounts are included. `asset_id` and `storage_unit_id` are `null` until the market’s metadata has been indexed. Responds 404 if the event digest is unknown.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `event_digest` | path | yes | `string` | Fill event identifier: the transaction digest with the event index appended. |

Response `200`: `FillDetail`

- `event_digest`: `string` — Unique fill event identifier (transaction digest + event index).
- `pool_id`: `string` — Pool (order book) object ID the fill happened on.
- `asset_id`: `string` — Item type (asset) ID traded by the pool, or `null` if not yet indexed.
- `storage_unit_id`: `string` — Storage unit (trade hub) object ID backing the market, or `null` if not yet indexed.
- `price`: `string` — Execution price (raw integer, decimal string).
- `base_quantity`: `string` — Base quantity exchanged (raw integer, decimal string).
- `quote_quantity`: `string` — Quote quantity exchanged (raw integer, decimal string).
- `maker_fee`: `string` — Fee charged to the maker, in raw quote units (decimal string).
- `taker_fee`: `string` — Fee charged to the taker, in raw quote units (decimal string).
- `taker_is_bid`: `boolean` — True when the taker side of this fill was buying (the incoming order was a bid).
- `maker_trading_account_id`: `string` — Trading account object ID of the maker.
- `taker_trading_account_id`: `string` — Trading account object ID of the taker.
- `filled_at`: `integer (int64)` — When the fill executed on-chain. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/trading/v1/fills/<event_digest>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/hubs/{hub_id}/items/{asset_id}/orderbook

Get an item's order book at a trade hub.

Cost: 50 CU per call.

Returns the live order book for one item at a trade hub in a single request: resting bids and asks (bids highest-price-first, asks lowest-price-first), plus the resolved pool_id and pool metadata (asset names, decimals, taker fee) needed to price, size, and place orders against the book. Pass quote_type to prefer a market quoted in a specific currency. Responds 404 when the hub has no trading vault. When the hub trades but no market exists for this item yet, responds 200 with pool_id null and an empty book.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `hub_id` | path | yes | `string` | Trade hub (storage unit) object ID |
| `asset_id` | path | yes | `string` | Numeric item type ID |
| `quote_type` | query | no | `string` | Quote asset type string; exact matches are preferred. |

Response `200`: `HubItemOrderbookResponse`

- `hub_id`: `string` — Trade hub (storage unit) object ID, normalized.
- `collection_id`: `string` — MultiCoin vault collection ID for the hub's vault.
- `vault_config_id`: `string` — VaultConfig object ID for the hub's vault, when indexed.
- `pool_id`: `string` — Resolved pool (orderbook) object ID. Null when the vault exists but no pool has been created for this item yet.
- `metadata`: `PoolMetadataResponseDto` — Pool metadata (decimals, fee, names); null when no pool exists.
- `bids`: `OrderbookOrderDto[]` — Bids, highest first. Empty when no pool exists.
- `asks`: `OrderbookOrderDto[]` — Asks, lowest first. Empty when no pool exists.

```sh
curl "https://api.voidwire.xyz/trading/v1/hubs/<hub_id>/items/<asset_id>/orderbook" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/pools

List pools.

Cost: 30 CU per call.

Every pool, coin and item, oldest first: its kind, base and quote types, the item’s collection and type ID and its hub, and when it was created. Filter by `kind` and page with `cursor`. A page never goes past the indexer’s committed checkpoint for the creation tables, so paging on never skips a pool. Returns 503 while that checkpoint is unknown.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `cursor` | query | no | `string` | Opaque cursor from a previous response’s `next_cursor`. Omit for the first page. |
| `kind` | query | no | `"coin" \| "item"` | Only coin pools (`Pool<Base, Quote>`) or item pools (`MultiCoinPool<Quote>`). Ignored on a `cursor` request: the cursor carries the original filter. |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `PoolSummaryPage`

- `data`: `PoolSummary[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/pools" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/pools/{pool_id}/fee

Get a pool's current taker and maker fee, or an account's.

Cost: 20 CU per call.

Without trading_account_id: the pool's current fee rates, the entry tier of its fee class, or its creation-time rate when no class schedule is indexed. Use taker_fee_rate to size the fee buffer on a market order's deposit.

With trading_account_id: what the pool's fee views report for that account, served from the indexer: the fee class, the active and staged fee schedules, the class's cancel retention, the account's trailing fee turnover, and the tier and taker/maker fees that turnover earns under the active schedule. Turnover is rebuilt from indexed fills and the pools' pending maker credits; while the indexer is catching up with the account's newest fills it can read low (a higher fee, never a lower one): pass min_checkpoint to wait for your own transaction.

Raw fees are integer strings scaled by 1e9; the *_rate fields are their decimal form; u64/u128 values are decimal strings. Strict: a 200 always carries both fees, and the endpoint never answers null or 0 for an unknown fee. Responds 400 for a malformed pool_id or trading_account_id; 404 when the pool is not indexed at all (retryable: right after creation the indexer may not have it yet); 503 when the pool's fee, the account's turnover or the current epoch cannot be resolved (do not fall back to a zero fee).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `pool_id` | path | yes | `string` | Pool (orderbook) object ID |
| `trading_account_id` | query | no | `string` | Trading account object ID. When given, the response is that account's fee state in the pool (its tier, rates, turnover and the schedules) instead of the pool's entry-tier rate. |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `PoolCurrentFeeResponse | PoolAccountFeeResponse`

```sh
curl "https://api.voidwire.xyz/trading/v1/pools/<pool_id>/fee" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/pools/{pool_id}/metadata

Get pool metadata by pool ID.

Cost: 20 CU per call.

Returns enriched metadata for a pool including asset names, symbols, decimals, and the associated storage unit ID (for multicoin pools). Queries pools UNION multicoin_pools joined with warehouse_vaults.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `pool_id` | path | yes | `string` | Pool (orderbook) object ID |

Response `200`: `PoolMetadataResponseDto`

- `pool_id`: `string`
- `pool_name`: `string`
- `base_asset_symbol`: `string`
- `base_asset_name`: `string`
- `base_asset_decimals`: `number`
- `quote_asset_symbol`: `string`
- `quote_asset_name`: `string`
- `quote_asset_decimals`: `number`
- `storage_unit_id`: `string` — Storage unit ID for multicoin pools; null otherwise.
- `asset_id`: `string` — Numeric asset type ID for multicoin pools; null otherwise.
- `collection_id`: `string` — MultiCoin vault collection ID; null for regular pools.
- `fee`: `string` — Current pool taker fee — the entry tier of the pool's fee class, or its creation-time rate when no class schedule is indexed — scaled by 1e9 (20000000 = 2%).
- `fee_rate`: `number` — Decimal form of the pool fee (fee / 1e9), e.g. 0.02 for 2%.
- `maker_fee`: `string` — Current pool maker fee — the entry tier of the pool's fee class, or its creation-time rate when no class schedule is indexed — scaled by 1e9 (18000000 = 1.8%). Charged when a resting order fills.
- `maker_fee_rate`: `number` — Decimal form of the pool maker fee (maker_fee / 1e9), e.g. 0.018 for 1.8%.

```sh
curl "https://api.voidwire.xyz/trading/v1/pools/<pool_id>/metadata" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/pools/{pool_id}/orderbook

Get the current resting orderbook for a pool.

Cost: 30 CU per call.

Indexed replacement for the client-side versioned-inner dynamic-field walk. Returns { bids, asks } of resting orders (remaining_quantity > 0) from the materialized open_orders table. Bids are highest-price-first, asks lowest-price-first.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `pool_id` | path | yes | `string` | Pool (orderbook) object ID |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `OrderbookResponseDto`

- `bids`: `OrderbookOrderDto[]` — Bids, highest first.
- `asks`: `OrderbookOrderDto[]` — Asks, lowest first.

```sh
curl "https://api.voidwire.xyz/trading/v1/pools/<pool_id>/orderbook" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/pools/{pool_id}/orders/{order_id}

Get one order on a pool.

Cost: 30 CU per call.

Returns full detail for a single order — status, prices and quantities, the account that placed it, the trade hub it lives at, the market’s quote currency, and its fill history. Order IDs are scoped per pool, so both path segments are required. Responds 404 if the order is unknown to the indexer.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `pool_id` | path | yes | `string` | Pool (order book) object ID the order belongs to. |
| `order_id` | path | yes | `string` | Order ID (u128, passed as a decimal string). |

Response `200`: `OrderDetail`

- `order_id`: `string` — Order ID (u128, decimal string), unique within its pool.
- `pool_id`: `string` — Pool (order book) object ID the order belongs to.
- `side`: `"buy" | "sell"` — `buy` for bids, `sell` for asks.
- `order_type`: `"market_buy" | "market_sell" | "limit_buy" | "limit_sell"` — The order's type and direction. `null` when order metadata is unavailable.
- `status`: `"open" | "filled" | "cancelled"` — Current lifecycle status of the order.
- `price`: `string` — Limit price (raw integer, decimal string).
- `quantity`: `string` — Total original base quantity (remaining + filled; raw integer, decimal string).
- `remaining_quantity`: `string` — Base quantity still open (raw integer, decimal string).
- `filled_quantity`: `string` — Base quantity already filled (raw integer, decimal string).
- `expires_at`: `integer (int64)` — When the order expires, in Unix epoch milliseconds. `null` for good-til-cancelled orders (no expiry).
- `updated_at`: `integer (int64)` — When the order state last changed on-chain. Unix epoch milliseconds.
- `asset_id`: `string` — Item type (asset) ID traded by the pool.
- `asset_name`: `string` — Human-readable item name from the item catalog, or `null` if unavailable.
- `trading_account`: `OrderParty` — Account that placed the order.
- `hub`: `OrderHub` — Trade hub the order lives at, or `null` if the order's pool has no warehouse vault.
- `currency`: `OrderCurrency` — The market's quote currency, or `null` if pool metadata is unavailable.
- `fills`: `OrderDetailFill[]` — Fill events for this order, oldest first. Empty for open orders with no fills.

```sh
curl "https://api.voidwire.xyz/trading/v1/pools/<pool_id>/orders/<order_id>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/pools/resolve

Resolve a MultiCoin pool ID by (collection, asset, quote).

Cost: 30 CU per call.

Indexed replacement for the client-side registry dynamic-field walk. Returns { pool_id } for the given collection_id + asset_id (optionally preferring an exact quote_type match), or { pool_id: null } if no pool has been created yet.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `collection_id` | query | yes | `string` | MultiCoin vault collection ID |
| `asset_id` | query | yes | `string` | Numeric item type ID |
| `quote_type` | query | no | `string` | Quote asset type string; exact matches are preferred. |

Response `200`: `PoolResolveResponseDto`

- `pool_id`: `string` — Resolved pool (orderbook) object ID, or null if none exists.

```sh
curl "https://api.voidwire.xyz/trading/v1/pools/resolve?collection_id=<collection_id>&asset_id=<asset_id>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/pools/top-by-fees

Get pools with the most fees available to claim.

Cost: 50 CU per call.

Returns pools and multicoin pools ranked by unclaimed fee balance (total deposited minus total withdrawn), descending. Only pools with a positive unclaimed balance are included.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query | no | `number` | Max number of results to return (default 20, max 100) |

Response `200`: `PoolFeeResponseDto[]`

- `pool_id`: `string`
- `quote_type`: `string`
- `total_deposited`: `string` — Total fees deposited (raw string).
- `total_withdrawn`: `string` — Total fees withdrawn (raw string).
- `fees_available_to_claim`: `string` — Unclaimed balance (deposited − withdrawn).

```sh
curl "https://api.voidwire.xyz/trading/v1/pools/top-by-fees" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trades/recent

List recent trades across all item markets.

Cost: 50 CU per call.

Returns the latest executed trades across every item market, newest first. Use `before` (epoch milliseconds) to page backward — pass the previous response’s `next_cursor` as `before`. Use `after` to poll for trades executed since a given time. Filter with `public_only` (location-revealed trade hubs only), `item_id` (a single item type) and `hub_id` (a single trade hub). At most 50 rows are returned per page.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `public_only` | query | no | `boolean` | When `true`, only return trades from trade hubs whose location is publicly revealed. |
| `item_id` | query | no | `string` | Only return trades for this item type (numeric asset ID). |
| `hub_id` | query | no | `string` | Only return trades at this trade hub (storage unit object ID). |

Response `200`: `ItemTradePage`

- `data`: `ItemTrade[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/trades/recent" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/{trading_account_id}/coin-pools/fills

List a trading account's coin-market fills.

Cost: 30 CU per call.

Returns the individual coin-market fills (order executions) a balance manager participated in, newest first, from that account’s perspective. Use `before` (epoch milliseconds) to page backward — pass the previous response’s `next_cursor` as `before`. Use `after` to poll for fills executed since a given time. Filter with `pool_id` and `side` (role in the fill).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `trading_account_id` | path | yes | `string` | Trading account object ID. |
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `pool_id` | query | no | `string` | Filter by pool (orderbook) object ID. |
| `side` | query | no | `"maker" \| "taker" \| "all"` | Restrict to fills where this account was maker or taker. |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `FillPage`

- `data`: `Fill[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/<trading_account_id>/coin-pools/fills" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/{trading_account_id}/coin-pools/open-orders

List a trading account's open coin-market orders.

Cost: 30 CU per call.

Returns the orders a trading account currently has resting on coin order books, newest activity first, with base/quote pair metadata on every row. Use `before` (epoch milliseconds) to page backward through older orders — pass the previous response’s `next_cursor` as `before`. Use `after` to fetch only orders updated since a given time.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `trading_account_id` | path | yes | `string` | Trading account object ID. |
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `CoinOpenOrderPage`

- `data`: `CoinOpenOrder[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/<trading_account_id>/coin-pools/open-orders" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/{trading_account_id}/coin-pools/trades

List a trading account's coin-market trades.

Cost: 30 CU per call.

Returns the coin-market trades (fills) a trading account participated in, newest first, from that account’s perspective, with base/quote pair metadata on every row. Use `before` (epoch milliseconds) to page backward — pass the previous response’s `next_cursor` as `before`. Use `after` to poll for trades executed since a given time. Filter with `side` (role in the trade) and `base_type` (base coin type).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `trading_account_id` | path | yes | `string` | Trading account object ID. |
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `side` | query | no | `"maker" \| "taker" \| "all"` | Restrict to trades where this account was maker or taker. |
| `base_type` | query | no | `string` | Filter by base coin type. |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `CoinAccountTradePage`

- `data`: `CoinAccountTrade[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/<trading_account_id>/coin-pools/trades" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/{trading_account_id}/fills

List a trading account's fills.

Cost: 30 CU per call.

Returns the individual fills (order executions) a trading account participated in, newest first, from that account’s perspective. Use `before` (epoch milliseconds) to page backward — pass the previous response’s `next_cursor` as `before`. Use `after` to poll for fills executed since a given time. Filter with `pool_id` and `side` (role in the fill).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `trading_account_id` | path | yes | `string` | Trading account object ID |
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `pool_id` | query | no | `string` | Only return fills from this pool (order book). |
| `side` | query | no | `"maker" \| "taker" \| "all"` | Filter by the account's role in the fill. |

Response `200`: `FillPage`

- `data`: `Fill[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/<trading_account_id>/fills" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/{trading_account_id}/open-orders

List a trading account's open orders.

Cost: 30 CU per call.

Returns the orders a trading account currently has resting on item-market order books, newest activity first. Use `before` (epoch milliseconds) to page backward through older orders — pass the previous response’s `next_cursor` as `before`. Use `after` to fetch only orders updated since a given time.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `trading_account_id` | path | yes | `string` | Trading account object ID. |
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `ItemOpenOrderPage`

- `data`: `ItemOpenOrder[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/<trading_account_id>/open-orders" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/{trading_account_id}/sweepable

List a trading account's sweepable balances and items.

Cost: 30 CU per call.

Returns everything a "sweep all to hangar" operation would move for this trading account: per-pool settled (claimable) and owed balances with open-order counts, plus idle item balances already held by the account. Each entry carries the trade-hub storage unit and vault configuration needed to build the withdrawal transaction. `as_of_checkpoint` indicates how current the snapshot is.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `trading_account_id` | path | yes | `string` | Trading account object ID. |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `Sweepable`

- `trading_account_id`: `string` — Trading account object ID the snapshot is for.
- `as_of_checkpoint`: `string` — Checkpoint sequence number up to which this snapshot is current, or `null` if freshness could not be determined. Data typically lags the chain by a few seconds.
- `pools`: `SweepablePool[]` — Pools where the account has settled (claimable) or owed balances.
- `items`: `SweepableItem[]` — Idle item balances already held by the trading account.
- `coin_pools`: `SweepableCoinPool[]` — Coin pools where the account has settled (claimable) or owed balances, or fee-tier turnover still to fold.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/<trading_account_id>/sweepable" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/{trading_account_id}/trades

List a trading account's trade history.

Cost: 30 CU per call.

Returns the trades (fills) a trading account participated in, newest first, from that account’s perspective. Use `before` (epoch milliseconds) to page backward — pass the previous response’s `next_cursor` as `before`. Use `after` to poll for trades executed since a given time. Filter with `side` (role in the trade) and `asset_id` (item type).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `trading_account_id` | path | yes | `string` | Trading account object ID. |
| `before` | query | no | `integer (int64)` | Only return entries strictly older than this Unix-epoch-millisecond timestamp. |
| `after` | query | no | `integer (int64)` | Only return entries strictly newer than this Unix-epoch-millisecond timestamp. |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `side` | query | no | `"maker" \| "taker" \| "all"` | Filter by the account's role in the trade. |
| `asset_id` | query | no | `string` | Only return trades for this item type (numeric asset ID). |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `ItemAccountTradePage`

- `data`: `ItemAccountTrade[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/<trading_account_id>/trades" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /trading/v1/trading-accounts/owners

Get owner info for trading account IDs.

Cost: 50 CU per call.

Resolves trading account object IDs to their owner, tagged by owner type: `player:<wallet_address>` for a character-owned trading account, or `ou:<org_id>` for an organization-owned one. `owner_name` is the matching character or organization's display name, or null if unresolved. `root_ou_id` is set when the owning organization is a sub-organization, pointing to its top-level organization. Results are cached for 5 minutes. Pass a comma-separated list of Sui object IDs (max 200).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `ids` | query | yes | `string[]` | Comma-separated Sui object IDs (max 200) |

Response `200`: `TradingAccountOwner[]`

- `trading_account_id`: `string` — Trading account Sui object ID.
- `owner`: `string` — `player:<wallet_address>` for a character-owned trading account, or `ou:<org_id>` for an organization-owned one; null if unresolved.
- `owner_name`: `string` — Matching character or organization's display name, or null.
- `root_ou_id`: `string` — Top-level organization ID when the owner is a sub-organization; else null.

```sh
curl "https://api.voidwire.xyz/trading/v1/trading-accounts/owners?ids=<ids>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```
