Pre-market: trading at wider spreads. Half of any news waits for the opening bell. Play money only

Unhinged Creator Exchange

API Read the market, trade from a script, run a stream bot. Version 1. Same pretend money as the site.

Quick start

Base URL:

https://ucx.cigaming.dev/api/v1

Market data needs no key, and there's a WebSocket for live prices. Try it:

curl https://ucx.cigaming.dev/api/v1/tickers/CIG
{
  "symbol": "CIG", "name": "CiGaming Inc", "kind": "stock",
  "price": 3241, "bid": 3236, "ask": 3246,
  "change": -59, "changePct": -1.79, "prevClose": 3300,
  "open": 3290, "high": 3322, "low": 3201, "volume": 4182,
  "afterHours": false, "halted": false,
  "streamer": { "login": "cigaming", "live": false, ... },
  "details": { "averageDailyVolume": 10607, "shortInterest": 0, "nextEarningsAt": "2027-01-13T13:00:00.000Z", ... }
}

To trade, make a key in your account panel (API keys, under Autopilot) and send it as a bearer token:

curl -X POST https://ucx.cigaming.dev/api/v1/trades \
  -H "Authorization: Bearer ucx_t_YOURKEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"CIG","side":"buy","shares":10}'

Keys

Trader key ucx_t_…

Acts on one brokerage account: see it, trade, place and cancel orders, run Autopilot, take a bailout. Make one from the account panel on the exchange (up to three per account). It can't open, close, rename or move the account.

Channel key ucx_c_…

Acts for one listed streamer: read your listing, holders and earnings progress, post press releases and earnings statements. Make one on the streamer dashboard. It can't trade.

Sandbox key ucx_s_…

A trader key for a separate test account. Same prices, fees and rules, but nothing it does moves the market or shows up anywhere. Tick "Sandbox key" when you make one. See Sandbox.

Keys are shown once, when you make them. UCX only keeps a fingerprint, so a lost key can't be recovered: revoke it and make a new one. Revoking takes effect immediately.

Treat keys like passwords. Don't put them in a web page, an OBS browser source URL or a public repo. Anyone holding a trader key can trade your account. For things that run in a browser, use the endpoints that don't need a key.

Chat trading for viewers is built in: list your stream and the UCX bot answers !buy, !sell and the rest in your chat. You don't need the API for that.

The rules

Money
Always whole cents. 3241 is $32.41. That goes for prices you send too (a limit at $30.00 is "price": 3000).
Times
ISO 8601 in UTC, like 2026-12-01T15:30:00.000Z. Market hours are 9:30 to 4:00, weekdays, in the exchange's time zone; /market gives you the exact times.
Format
JSON in, JSON out. Send Content-Type: application/json on POSTs.
Rate limits
120 requests a minute per IP without a key, 600 a minute with one. Trades and orders: 30 a minute per key. Autopilot rules, press releases, statements and bailouts: 60 an hour per key. Every response carries RateLimit headers; a 429 comes with Retry-After.
Retries
Send an Idempotency-Key header (any string up to 64 characters) on POSTs. If the same key comes in again within 10 minutes you get the first answer back with Idempotent-Replay: true, and nothing happens twice.
Browsers
CORS is open (*), so market data works straight from a web page. Keys still don't belong in one.
Same rules as humans
API trades pay the same $4.99 fee, spread and price impact as the site, show on the tape, and count for badges and leaderboards.
Versions
Everything here is /api/v1. Fields may be added; nothing will be renamed or removed without a /v2.

Errors

Anything that isn't a 2xx comes back in one shape. The message is plain English and fine to show to a person.

{ "error": { "code": "rejected", "message": "Not enough cash. You can afford 12 CIG, after the $4.99 fee." } }
StatuscodeMeans
400bad_requestA field is missing or the wrong shape. Fix the request.
401unauthorizedNo key where one is needed, or the key is wrong or revoked.
403forbiddenRight key, wrong kind (a channel key on a trading endpoint), or the account is closed.
404not_foundNo such ticker, order, rule, trader or endpoint.
409conflictAlready done, like a second earnings statement.
422rejectedThe exchange said no: not enough cash, nothing to sell, short limit, a stop that would fire immediately.
429rate_limitedSlow down. Wait for Retry-After seconds.
503haltedTrading is halted, for the whole exchange or by a circuit breaker on that ticker. Try again later.
500server_errorOur fault. Retry with the same Idempotency-Key.

Market data

No key needed for any of these.

GET /market no key

The clock and the board: state (open, premarket, afterhours, weekend, holiday), when this session opens and closes, when the next one opens, the UCX Composite, and whether the exchange is halted.

GET /tickers no key

Every ticker with a live quote. kind is stock for streamers and index for UCXF. change is measured from yesterday's close while the market is open, and from the most recent close outside hours (afterHours: true).

GET /tickers/{symbol} no key

One ticker plus blurb and details: average daily volume (how much an order moves it), short interest, days to cover, borrow rate, next earnings, last report, dividends over 12 months, last split.

GET /tickers/{symbol}/history?range=1d no key

Price points for charts: [{ "t": "...", "price": 3241 }]. range is 1h, 1d, 1w or 1m.

GET /tickers/{symbol}/trades?limit=25 no key

Recent trades in one ticker, players and NPCs. Each has trader.npc and, for players, trader.acctNo.

GET /trades?limit=25 no key

Recent trades across the whole exchange.

GET /composite/history?range=1d no key

The UCX Composite over time (value is in index points, not cents).

GET /news?symbol=CIG&limit=20 no key

The newswire, newest first. source is desk, press, wire, earnings, statement, dividend, split, market and so on.

GET /events?since=1234 no key

Everything that happens, in order: bells, raids, subs, big trades, news, earnings, margin calls, splits, halts. Without since you get the latest ones; with it, everything after that id, oldest first. Keep cursor and pass it back as since. Add symbol to follow one ticker. This is what the OBS overlay runs on.

GET /leaderboard?board=all no key

board=all ranks by net worth; board=month ranks by percent gained since the 1st (the one that crowns the hall of fame).

GET /traders/{acctNo} no key

A trader's public profile: worth, positions, badges, rank, recent trades.

GET /earnings no key

Upcoming reports and the latest ones, with revenue, expectation, verdict, stock reaction, stream stats, dividend and the streamer's statement.

GET /streamers no key

Listed streamers, live ones first, with viewers, title and price.

What moves prices

If a script is trading, it should know what a person watching the site knows. /movers is that, in one shape: every stream event, news story, leak, earnings report, dividend, big trade, order fill, margin call, gap, halt and bell, with how far it was meant to move the price and what the price was right after. It also has the small nudges from follows and viewer swings that never get a banner (people only see those on the chart).

GET /movers?since=1234 no key

Oldest first after since; without it, the latest ones. Keep cursor and pass it back. Filters: symbol (exchange-wide items still come through), category (comma-separated: stream, news, corporate, flow, session, other), and all=true to also get things that don't move a price, like badges and bailouts. upcoming has the clock, earnings due in the next two weeks and anything halted.

{
  "cursor": 88213,
  "movers": [
    { "id": 88213, "at": "2026-11-30T20:14:07Z", "kind": "raid", "category": "stream", "movesPrice": true,
      "symbol": "CIG", "text": "RAID! 212 viewers stormed CIG", "impactPct": 4.1, "session": "open", "price": 3388, "data": { ... } }
  ],
  "upcoming": { "market": { "state": "open", "nextOpenAt": "...", "closesAt": "..." },
                "earnings": [ { "symbol": "AXEO", "at": "..." } ], "halted": [] }
}

impactPct is the intended move. Outside regular hours (session: "extended") half of a news or stream move lands right away and the other half at the next opening bell, so expect a gap. Trades and margin calls report how far that order itself pushed the price.

Live prices (WebSocket)

For anything that wants prices the moment they move (tickers on stream, Discord bots, dashboards), open one WebSocket instead of polling. No key needed.

wss://ucx.cigaming.dev/api/v1/ws

Query options: ?symbols=CIG,AXEO to only get those tickers (default: all of them), ?movers=1 to also get everything that moves a price, pushed as it happens, or ?events=1 for every event including the ones that don't move anything.

What you get

typeWhenContains
helloRight after connecting, and after each subscribemarket (state, next open, Composite) and tickers: a full snapshot of what you're subscribed to.
quoteWhenever a subscribed ticker's price changesticker, the same shape as GET /tickers/{symbol} without details.
marketWhen the Composite moves or the session changes (open, close, weekend)market.
eventOnly with movers or events on; for your tickers plus exchange-wide onesevent, the same shape as one item from GET /movers.
pongReply to your pingYour id back and the server time.
errorSomething you sent didn't make sensecode and message. The connection stays open.

What you can send

{ "type": "subscribe", "symbols": ["CIG", "AXEO"] }   // add tickers ("*" for all), then you get a fresh hello
{ "type": "unsubscribe", "symbols": ["AXEO"] }
{ "type": "movers", "on": true }                     // or "events" for everything; "on": false turns it off
{ "type": "ping", "id": 1 }

Prices are checked every couple of seconds and only sent when they change. Up to 10 connections per IP and 60 messages a minute per connection. The server pings every 30 seconds and drops connections that don't answer; normal WebSocket libraries answer on their own. If you get disconnected, reconnect after a few seconds; the hello brings you back up to date.

Browser or Node 22+

const ws = new WebSocket('wss://ucx.cigaming.dev/api/v1/ws?symbols=CIG');
ws.onmessage = ({ data }) => {
  const m = JSON.parse(data);
  if (m.type === 'hello') m.tickers.forEach(show);
  if (m.type === 'quote') show(m.ticker);
};
function show(t) {
  console.log(t.symbol, '$' + (t.price / 100).toFixed(2), (t.changePct >= 0 ? '+' : '') + t.changePct + '%');
}

Python

import asyncio, json, websockets   # pip install websockets

async def main():
    async with websockets.connect("wss://ucx.cigaming.dev/api/v1/ws?symbols=CIG,AXEO&events=1") as ws:
        async for raw in ws:
            m = json.loads(raw)
            if m["type"] == "quote":
                t = m["ticker"]; print(t["symbol"], t["price"] / 100, t["changePct"])
            elif m["type"] == "event":
                print("*", m["event"]["text"])

asyncio.run(main())

Trading

Trader key. Everything goes through the same engine as the site.

GET /me trader key

Your account: cash, worth, profit, this month's gain, positions (shorts have negative shares), short room, margin risk, bailout status, badges.

GET /me/activity?limit=50 trader key

Your trades (with realized profit) and cash movements: dividends, borrow fees, bailouts, gifts and fines from the desk.

POST /trades trader key

Trade at market. Body: symbol, side (buy, sell, short, cover) and shares (1 to 5,000, "all" to sell or cover everything, or "max" to buy or short as much as you can). Returns the fill, the fee, realized profit, how far your order moved the price, and your updated account.

201 Created
{
  "trade": { "symbol": "CIG", "side": "buy", "shares": 10, "fill": 3247, "total": 32470, "fee": 499,
             "realized": null, "impactPct": 0.17, "priceAfter": 3246, "session": "open" },
  "account": { "acctNo": "CX-123456", "cash": 967031, "worth": 999501, ... }
}
GET /orders?status=open trader key

Your limit and stop orders. status=all includes filled, cancelled, rejected and expired ones.

POST /orders trader key

Place an order. Body: symbol, side, type (limit or stop), shares (or "all" for sell and cover) and price in cents. A limit fills at your price or better once the market touches it; a stop turns into a market order once crossed. Orders last 30 days, up to 20 open. A limit that's already good enough fills on the spot and comes back with filledNow: true and a trade.

DELETE /orders/{id} trader key

Cancel an open order.

POST /bailout trader key

Take a government bailout. Only when your net worth is under $100. $1,000 the first time, half as much each time after, and your name goes on the wall of shame.

Shorts: you can short up to your net worth, pay a small borrow fee every trading day, pay any dividends, and get covered automatically if your net worth drops under 35% of what you're short. Check marginRisk on /me.

Sandbox

Test your bot without risking anything. A sandbox key (ucx_s_…) works on every trader endpoint, against a separate test account that starts with $10,000.

  • Same as real: live prices, the spread, fees, price impact on your fill, short limits, margin calls, borrow fees, dividends, limit and stop orders, Autopilot, every error message.
  • Not real: your trades never change a price, never appear on the tape, the overlay or any feed, and the account is on no leaderboard. Nothing it does touches your real account.
  • Every response comes with the header X-UCX-Sandbox: true, and /me says "sandbox": true, so a bot can refuse to start on the wrong key.
POST /sandbox/reset sandbox key

Wipe the test account: no positions, orders, rules or history. Body (optional): { "cash": 1000000 }, in cents, up to $1,000,000. Only works with a sandbox key.

One difference to keep in mind: sandbox orders don't push the price, so several big orders in a row each fill as if they were the first. On the real account the second one pays for the first one's push.

Autopilot

Trader key. Standing rules the exchange runs for you, up to five at a time.

GET /autopilot trader key

Your rules (running ones first, plus anything that finished in the last three days), each with a plain-English description and its latest note.

POST /autopilot trader key

Start a rule. Pick a kind:

kindFieldsWhat it does
dcasymbol, amount (cents, $10–$100,000), every (day or week)Buys that much at the opening bell, every trading day or the first one of each week.
trailsymbol, pct (1–50)Sells your whole position once it falls pct% from its best price since the rule started. On a short, covers once it climbs that far from its low.
bracketsymbol, up (1–500), down (1–90)Sells everything at +up% or −down% from your average cost, whichever comes first. Reversed for a short.
rebalancetargets: "UCXF 60, CIG 20" or {"UCXF":60,"CIG":20}At each opening bell, trades those tickers back to their share of your net worth. The rest stays in cash; shorts are left alone.
curl -X POST https://ucx.cigaming.dev/api/v1/autopilot -H "Authorization: Bearer ucx_t_YOURKEY" -H "Content-Type: application/json" \
  -d '{"kind":"dca","symbol":"UCXF","amount":20000,"every":"day"}'
DELETE /autopilot/{id} trader key

Stop a rule.

Channel tools

Channel key, from the streamer dashboard.

GET /channel channel key

Your listing: the live quote, how many people hold it, press releases left today, and earnings progress for the current period (hours and days live, subs, bits, raids, follows, peak viewers), next report date, short interest, and whether an earnings statement is due.

GET /channel/holders?limit=25 channel key

Who holds your ticker, biggest first. Short sellers show with negative shares.

POST /channel/press channel key

Publish a press release: headline (up to 160 characters) and impactPct (−5 to 5). Three a day.

POST /channel/statement channel key

Your earnings call line: text (up to 160 characters) and tone (bullish, neutral or gloomy). Open for 48 hours after each report, once per report.

Recipes

Follow everything live (Node 18+)

let since;
async function poll() {
  const url = new URL('https://ucx.cigaming.dev/api/v1/events');
  if (since !== undefined) url.searchParams.set('since', since);
  const r = await fetch(url);
  if (r.ok) {
    const { cursor, events } = await r.json();
    for (const e of events) console.log(e.kind, e.text);
    since = cursor;
  }
  setTimeout(poll, 3000);
}
poll();

Buy the dip, with a retry-safe order

const KEY = process.env.UCX_KEY;   // ucx_t_…, never hard-coded
const api = (path, opts = {}) => fetch('https://ucx.cigaming.dev/api/v1' + path, { ...opts,
  headers: { Authorization: 'Bearer ' + KEY, 'Content-Type': 'application/json', ...opts.headers } }).then(r => r.json());

const q = await api('/tickers/CIG');
if (q.changePct < -5 && !q.halted) {
  const r = await api('/trades', { method: 'POST', headers: { 'Idempotency-Key': 'dip-' + new Date().toISOString().slice(0, 10) },
    body: JSON.stringify({ symbol: 'CIG', side: 'buy', shares: 50 }) });
  console.log(r.error ? r.error.message : `Bought at $${(r.trade.fill / 100).toFixed(2)}`);
}

Post your earnings line from your own bot

curl -X POST https://ucx.cigaming.dev/api/v1/channel/statement -H "Authorization: Bearer ucx_c_YOURKEY" -H "Content-Type: application/json" \
  -d '{"text":"Record month. Next month: two pizzas on camera.","tone":"bullish"}'

Prices in Python

import requests
for t in requests.get("https://ucx.cigaming.dev/api/v1/tickers", timeout=10).json()["tickers"]:
    print(f'{t["symbol"]:6} ${t["price"] / 100:8.2f}  {t["changePct"]:+.2f}%')

OpenAPI spec

The whole API as an OpenAPI 3.1 document, for Postman, Insomnia, code generators and the like: https://ucx.cigaming.dev/api/v1/openapi.json

Everything here is play money and none of it is investment advice. Be nice to the server.