Unhinged Creator Exchange
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}'
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.
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.
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.
3241 is $32.41. That goes for prices you send too (a limit at $30.00 is "price": 3000).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.Content-Type: application/json on POSTs.RateLimit headers; a 429 comes with Retry-After.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.*), so market data works straight from a web page. Keys still don't belong in one./api/v1. Fields may be added; nothing will be renamed or removed without a /v2.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." } }
| Status | code | Means |
|---|---|---|
| 400 | bad_request | A field is missing or the wrong shape. Fix the request. |
| 401 | unauthorized | No key where one is needed, or the key is wrong or revoked. |
| 403 | forbidden | Right key, wrong kind (a channel key on a trading endpoint), or the account is closed. |
| 404 | not_found | No such ticker, order, rule, trader or endpoint. |
| 409 | conflict | Already done, like a second earnings statement. |
| 422 | rejected | The exchange said no: not enough cash, nothing to sell, short limit, a stop that would fire immediately. |
| 429 | rate_limited | Slow down. Wait for Retry-After seconds. |
| 503 | halted | Trading is halted, for the whole exchange or by a circuit breaker on that ticker. Try again later. |
| 500 | server_error | Our fault. Retry with the same Idempotency-Key. |
No key needed for any of these.
/market no keyThe 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.
/tickers no keyEvery 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).
/tickers/{symbol} no keyOne 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.
/tickers/{symbol}/history?range=1d no keyPrice points for charts: [{ "t": "...", "price": 3241 }]. range is 1h, 1d, 1w or 1m.
/tickers/{symbol}/trades?limit=25 no keyRecent trades in one ticker, players and NPCs. Each has trader.npc and, for players, trader.acctNo.
/trades?limit=25 no keyRecent trades across the whole exchange.
/composite/history?range=1d no keyThe UCX Composite over time (value is in index points, not cents).
/news?symbol=CIG&limit=20 no keyThe newswire, newest first. source is desk, press, wire, earnings, statement, dividend, split, market and so on.
/events?since=1234 no keyEverything 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.
/leaderboard?board=all no keyboard=all ranks by net worth; board=month ranks by percent gained since the 1st (the one that crowns the hall of fame).
/traders/{acctNo} no keyA trader's public profile: worth, positions, badges, rank, recent trades.
/earnings no keyUpcoming reports and the latest ones, with revenue, expectation, verdict, stock reaction, stream stats, dividend and the streamer's statement.
/streamers no keyListed streamers, live ones first, with viewers, title and price.
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).
/movers?since=1234 no keyOldest 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.
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.
| type | When | Contains |
|---|---|---|
hello | Right after connecting, and after each subscribe | market (state, next open, Composite) and tickers: a full snapshot of what you're subscribed to. |
quote | Whenever a subscribed ticker's price changes | ticker, the same shape as GET /tickers/{symbol} without details. |
market | When the Composite moves or the session changes (open, close, weekend) | market. |
event | Only with movers or events on; for your tickers plus exchange-wide ones | event, the same shape as one item from GET /movers. |
pong | Reply to your ping | Your id back and the server time. |
error | Something you sent didn't make sense | code and message. The connection stays open. |
{ "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.
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 + '%');
}
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())
Trader key. Everything goes through the same engine as the site.
/me trader keyYour account: cash, worth, profit, this month's gain, positions (shorts have negative shares), short room, margin risk, bailout status, badges.
/me/activity?limit=50 trader keyYour trades (with realized profit) and cash movements: dividends, borrow fees, bailouts, gifts and fines from the desk.
/trades trader keyTrade 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, ... }
}
/orders?status=open trader keyYour limit and stop orders. status=all includes filled, cancelled, rejected and expired ones.
/orders trader keyPlace 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.
/orders/{id} trader keyCancel an open order.
/bailout trader keyTake 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.
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.
X-UCX-Sandbox: true, and /me says "sandbox": true, so a bot can refuse to start on the wrong key./sandbox/reset sandbox keyWipe 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.
Trader key. Standing rules the exchange runs for you, up to five at a time.
/autopilot trader keyYour rules (running ones first, plus anything that finished in the last three days), each with a plain-English description and its latest note.
/autopilot trader keyStart a rule. Pick a kind:
| kind | Fields | What it does |
|---|---|---|
dca | symbol, 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. |
trail | symbol, 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. |
bracket | symbol, up (1–500), down (1–90) | Sells everything at +up% or −down% from your average cost, whichever comes first. Reversed for a short. |
rebalance | targets: "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"}'
/autopilot/{id} trader keyStop a rule.
Channel key, from the streamer dashboard.
/channel channel keyYour 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.
/channel/holders?limit=25 channel keyWho holds your ticker, biggest first. Short sellers show with negative shares.
/channel/press channel keyPublish a press release: headline (up to 160 characters) and impactPct (−5 to 5). Three a day.
/channel/statement channel keyYour earnings call line: text (up to 160 characters) and tone (bullish, neutral or gloomy). Open for 48 hours after each report, once per report.
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();
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)}`);
}
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"}'
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}%')
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.