Play free

Developers

Version 1 · JSON over HTTPS · OpenAPI document

Two APIs for your own tools, sites and agents. The game data API is public: facts about items, ships, modules, skills, recipes, regions and systems, the same content the Database shows. The Market API is part of the Vanguard Charter: read order books and place and cancel buy and sell orders for your own pilots, with the same fees and rules as in game.

Game data API

No sign-in needed. Answers are cached for 5 minutes, carry an ETag (send If-None-Match for a 304) and allow cross-site GET from any web page. Lists are paged: page from 1 and limit up to 500 (default 100); q matches words in the name or id.

MethodPathScopeWhat it does
GET/api/v1/datanoneThe collections, their counts and the data version
GET/api/v1/data/itemsnoneEvery public item (filter: category)
GET/api/v1/data/shipsnoneHulls with their stats and skill needs (filter: class)
GET/api/v1/data/modulesnoneModules (filters: slot, kind)
GET/api/v1/data/skillsnoneSkills (filter: group)
GET/api/v1/data/recipesnoneManufacturing recipes
GET/api/v1/data/regionsnoneRegions and their systems
GET/api/v1/data/systemsnoneStar systems and their gate links (filter: region)
GET/api/v1/data/{collection}/{id}noneOne entry
curl https://xetodus.com/api/v1/data/ships?class=skirmisher&limit=5

Galaxy-wide prices come from the market page's feed: GET /api/market (every public item) and GET /api/market/{item} (one item with daily history). Without a token the data API allows 60 requests a minute per address; with a token that has data:read, 600 a minute.

Market fees

Every fee the market charges, published from the same rules the game charges by, so your numbers match the game's to the centi-credit. Public, like the rest of the data API.

MethodPathScopeWhat it does
GET/api/v1/data/market-feesnoneEvery rate, floor, minimum, bracket, station multiplier and skill reduction, and a rate table by Trading level
GET/api/v1/data/market-fees/quote?side=sell&fill=list&priceCenti=1250&quantity=500&trading=1noneOne order's gross, broker fee, sales tax, exchange levy and total
  • Broker fee: paid when a limit order rests on the book, on its resting part only, never refunded. Sell orders 1.5% less 0.01% a Trading level (at least 0.5%); buy orders half the sell rate. At least 1 credit and at most 25,000,000 credits an order (minimumCenti, maximumCenti). A player Exchange takes a quarter off both rates; other player stations and NPC stations charge the usual rate. Station owners don't set market fees.
  • Sales tax: taken from the seller's proceeds of every fill: 3% less 0.02% a Trading level (at least 1%), less 0.25% with Tycoon (Trading 90), less Maker's Market (Trading and Industry both at 20, 40, 60, 90: 0.05%, 0.1%, 0.15%, 0.2%). A sale to an NPC buyer pays 3% more. The rate is always the seller's own: a listing filled later is taxed at the lister's Trading, Tycoon and Maker's Market, whoever buys it.
  • Exchange levy: a seller whose account has sold a lot today (UTC, all pilots) gives up 1% of what is over 25,000,000, 2.5% of what is over 100,000,000, 4% of what is over 500,000,000 credits of net proceeds. Credit Ingots are exempt. Pass soldTodayCenti to include it.
  • Not in the quote: the NPC bulk premium (an account's big purchases of raw materials from NPC shelves cost more for a while; it depends on its own recent purchases), courier fees between stations (none within a station; none for Vanguard members on pilot listings) and contract listing fees (1%, at least 1,000 credits, 25% less with Contract Relations). Their rules are in /market-fees.
  • Rounding: each fee is rounded to the centi-credit per fill. An order that fills against several price levels is the sum of one quote per level.
TradingSell brokerBuy brokerSales taxTax to an NPC buyer
11.49%0.745%2.98%5.98%
301.2%0.6%2.4%5.4%
600.9%0.45%1.8%4.8%
900.6%0.3%0.95%3.95%
990.51%0.255%0.77%3.77%

Worked examples

Credits. For a sale the total is what you receive after every fee; for a buy order it is what leaves your wallet (escrow and broker fee).

OrderGrossBroker feeSales taxTotal
List 500 units at 12.50 credits at an NPC station, Trading 1; any pilot buys them6,250.0093.13186.255,970.62
The same listing at a player Exchange, Trading 60 and Industry 60 (Maker's Market); the buyer's levels don't matter6,250.0042.19103.126,104.69
Sell 200 units now into a pilot's bid of 40.00 credits, Trading 908,000.000.0076.007,924.00
Sell 200 units now to an NPC buyer at 40.00 credits, Trading 908,000.000.00316.007,684.00
Place a buy order for 1,000 units at 0.85 credits, Trading 30850.005.100.00855.10
curl "https://xetodus.com/api/v1/data/market-fees/quote?side=sell&fill=list&priceCenti=1250&quantity=500&trading=1"

Quote parameters: side (buy, sell), fill (now: fills at once against the book; list: rests on it, the default), priceCenti, quantity, trading and industry (1 to 99, default 1), station (a station id from the Market API) or exchange=1, counterparty (pilot or npc, for a sale now), item and soldTodayCenti (the levy).

Market API

Get a token

In the game, open Account settings › API access (Vanguard members). Name the token, choose what it may do and which pilot (or all of them), pick how long it lasts (7, 30, 90, 365 days), confirm with your password (and your second factor if you use one) and copy the token. It is shown once. Up to 10 tokens can be active at a time.

ScopeAllows
market:readYour pilots, the station summary, order books, your orders (open and past, with their fees) and your trade history
market:tradePlacing and canceling orders
data:readThe game data API at the higher limit

A token can never sign in, change account settings, move credits between pilots, use contracts or do anything outside its scopes. It stops working when you revoke it, when it expires, when you change your password or two-step settings or sign out other devices, and when the Charter ends. Keep it secret and send it only in the Authorization header, never in a URL.

Endpoints

MethodPathScopeWhat it does
GET/api/v1/market/pilotsmarket:readYour pilots: where each is docked and its credits
GET/api/v1/market/summary?pilot=IDmarket:readBest bid and ask of every item at that pilot's station
GET/api/v1/market/book?pilot=ID&item=ITEMmarket:readOne item's order book at that station (100 levels a side)
GET/api/v1/market/orders?pilot=IDmarket:readThe pilot's open orders at every station, with the fees each has paid
GET/api/v1/market/orders/history?pilot=IDmarket:readThe pilot's orders in every state (open, filled, canceled, expired) with their fees
GET/api/v1/market/trades?pilot=IDmarket:readEvery buy and sell the pilot made: price, fee, net, where the goods went, the order
POST/api/v1/market/ordersmarket:tradePlace an order (needs an Idempotency-Key header)
DELETE/api/v1/market/orders/{id}market:tradeCancel one of your open orders

Money is always in centi-credits, whole numbers: 100 centi-credits are 1 credit. A token bound to one pilot may leave out pilot.

curl -H "Authorization: Bearer $XETODUS_TOKEN" https://xetodus.com/api/v1/market/pilots

curl -X POST https://xetodus.com/api/v1/market/orders \
  -H "Authorization: Bearer $XETODUS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: sell-ferrox-2026-10-29-001" \
  -d '{"pilot": 1234, "item": "ore_ferrox", "side": "sell", "quantity": 500, "priceCenti": 1250, "mode": "limit"}'

How orders work

  • Orders are placed at the station where the pilot is docked right now, from that station's hangar. A pilot in space can't trade, as in game.
  • limit: what doesn't fill at priceCenti or better rests on the book. market: fills now at priceCenti or better (the most a buy pays, the least a sell takes); the rest is not placed.
  • Broker fees, sales tax, escrow, order slots, hangar space, Vanguard-only items and every other market rule are the game's own: the API can't do anything you couldn't do in the Market window.
  • Send a fresh Idempotency-Key (8 to 64 letters, digits, . _ : -) with every new order. Sending the same key and body again returns the first answer and never trades twice; the same key with a different body is refused. A refused order frees its key.
  • Canceling returns a buy order's unspent credits or a sell order's unsold goods; fees already paid are not returned.
  • API trades earn no Trading XP, achievements or quest progress. Automated trading is allowed through the API for Vanguard members; automating the game client itself is not.

Limits

CallsPer token, a minutePer account, a minute
Market reads120240
Orders and cancels3060
Trade and order history (also count as market reads)3060
Data6001200

Over a limit the answer is 429 with a Retry-After header. Too many failed token checks from one address lock it out for 15 minutes.

Trade history

Every buy and sell your pilots made, the fees each one paid and the orders they came from, as the Market window's History tab shows them. Only the pilot's own fills and orders: the other side of a trade is only ever "an NPC market" or "a pilot", never which one.

curl -H "Authorization: Bearer $XETODUS_TOKEN" "https://xetodus.com/api/v1/market/trades?pilot=1234&side=sell&from=2026-11-01&limit=50"
{
  "pilot": 1234,
  "trades": [
    {
      "id": 99120,
      "at": 1793800000000,
      "side": "sell",
      "item": "ore_ferrox",
      "quantity": 500,
      "priceCenti": 1250,
      "totalCenti": 625000,
      "feeCenti": 18625,
      "netCenti": 606375,
      "station": {
        "id": "4:s2",
        "name": "Example Station"
      },
      "goodsTo": null,
      "goodsFrom": "listing",
      "goodsStation": null,
      "counterparty": "pilot",
      "origin": null,
      "recorded": true,
      "order": {
        "id": 5521,
        "state": "filled",
        "quantity": 500,
        "filled": 500,
        "remaining": 0,
        "priceCenti": 1250,
        "brokerFeeCenti": 9313,
        "createdAt": 1793790000000
      }
    }
  ],
  "next": "625000:99120",
  "totals": {
    "bought": {
      "fills": 3,
      "units": 40,
      "valueCenti": 120000,
      "feesCenti": 0,
      "unrecordedFills": 0
    },
    "sold": {
      "fills": 1,
      "units": 500,
      "valueCenti": 625000,
      "feesCenti": 18625,
      "unrecordedFills": 0
    },
    "feesCenti": 18625,
    "netCenti": 486375
  },
  "detailSince": "2026-11-05"
}

Fill fields

  • priceCenti, quantity, totalCenti (price × quantity) and at (ms since 1970).
  • feeCenti: what this pilot paid on the fill beyond price × quantity. A sale: sales tax (or the NPC buyer rate) + exchange levy + courier. A purchase: NPC bulk premium + courier + remote service. A split fill carries its whole fee on its first row.
  • netCenti: a sale's proceeds after its fee; a purchase's full cost as a negative number.
  • goodsTo (purchases: hangar, hold, courier) and goodsFrom (sales: listing, hangar, hold); goodsStation is the station a courier delivered to or the hangar a remote sale took the units from, when it is not the trade's station.
  • origin: null in person, or remote, galaxy, post, remote_sell.
  • order: the pilot's own order the fill came from and its state now (open, filled, canceled, expired), with the broker fee it paid at placement. null for an instant trade.
  • Old fills: fees, goods and orders are recorded per fill since the day in detailSince. Earlier fills still appear, with recorded: false and null in feeCenti, netCenti, goodsTo, goodsFrom and order: null means "not recorded", not zero.

Parameters: side (all, buy, sell), sort (newest, oldest, value), item (item ids, comma-separated), category, station, q (item or station name), from and to (ms or an ISO 8601 date; a bare date as to covers that day), limit (1 to 100, default 50) and cursor. Pass the previous answer's next as cursor with the same filters and sort to get the next page; next is null on the last. The first page (no cursor) carries totals over the whole filter: bought and sold (fills, units, value, fees, fills without a recorded fee), all fees, and the net (sold less its fees, less bought and its fees).

Orders and their fees

GET /api/v1/market/orders (open orders) and GET /api/v1/market/orders/history (every state, newest first; state all, open, closed, filled, canceled or expired; side, item, station, from, to, limit, cursor) answer each order with state, quantity (what rested on the book), filled, remaining, createdAt, expiresAt and:

  • brokerFeeCenti: the broker fee paid when the order was placed (never refunded); null before it was recorded.
  • fillFeesCenti and recordedFills: the fees of the fills that came from the order, and how many.
  • feesPaidCenti: the two together. feesRecorded: false means the order is older than the fee detail, so the sum leaves out its broker fee.

These reads are heavier than the others: besides the market read limit they share a budget of 30 a minute per token and 60 per account.

Errors

Every error is JSON: {"code": "not_docked", "error": "The pilot must be docked at a station to trade"}, with an x-request-id header to quote if you contact support.

StatusMeaning
400Invalid request: a missing or unknown field, a bad number, no Idempotency-Key
401Missing, unknown, expired or revoked token
403The token lacks the scope, the Charter ended, or the account can't trade right now
404No such pilot, order or entry for this token
409Not docked, or an Idempotency-Key conflict
422The game refused the order (not enough credits or goods, no free order slot)
429Rate limited
503API trading is paused for a moment

Changelog

  • 2026-11-08: the sales tax of a listing that fills later is the seller's own (their Trading, Tycoon and Maker's Market), no longer the buyer's. The quote's buyerTrading and buyerIndustry are still accepted but ignored; salesTax.appliesTo in /market-fees says so.
  • 2026-11-04: trade history and order fees: GET /api/v1/market/trades (every fill with its fee, net, goods and order; filters, paging, totals) and GET /api/v1/market/orders/history (every state). GET /api/v1/market/orders gained state, filled, expiresAt and the fee fields. Additive: no existing field changed.
  • 2026-11-02: market fees in the data API: GET /api/v1/data/market-fees (every fee and tax rule) and GET /api/v1/data/market-fees/quote (a calculator). Additive: no existing field changed; the data index gained a marketFees link.
  • 2026-10-30: version 1: the Market API and the game data API.

Scopes in this version: market:read, market:trade, data:read. Questions and ideas are welcome on the community Discord.