{"openapi":"3.1.0","info":{"title":"Unhinged Creator Exchange API","version":"1.0.0","description":"Play-money stock market for streamers. Read the market with no key; trade with a trader key; manage a listing with a channel key. Money is always integer cents and times are ISO 8601 UTC. Live prices are pushed over a WebSocket at wss://ucx.cigaming.dev/api/v1/ws (see the docs). Human-friendly docs: https://ucx.cigaming.dev/developers"},"servers":[{"url":"https://ucx.cigaming.dev/api/v1"}],"components":{"securitySchemes":{"traderKey":{"type":"http","scheme":"bearer","description":"A trader key (ucx_t_…) from your account panel. Acts on that one brokerage account. A sandbox key (ucx_s_…) works everywhere a trader key does, on a separate test account whose trades never move prices or show up in public."},"channelKey":{"type":"http","scheme":"bearer","description":"A channel key (ucx_c_…) from the streamer dashboard. Acts for that one listing."}},"responses":{"E400":{"description":"The request is malformed: a missing or invalid field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E401":{"description":"No key, or the key is invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E403":{"description":"The key works but is the wrong kind for this endpoint, or its account is closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E404":{"description":"No such ticker, order, rule or trader.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E409":{"description":"Conflict, for example a statement was already posted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E422":{"description":"The exchange said no: not enough cash, nothing to sell, short limit reached, market rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E429":{"description":"Rate limited. Wait for the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E503":{"description":"Trading is halted (the whole exchange or this ticker).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["bad_request","unauthorized","forbidden","not_found","conflict","rejected","rate_limited","halted","server_error"]},"message":{"type":"string","description":"Plain English, safe to show to a person."}}}},"example":{"error":{"code":"rejected","message":"Not enough cash. You can afford 12 CIG, after the $4.99 fee."}}},"Ticker":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["stock","index"],"description":"index = UCXF, the fund that follows the board."},"price":{"type":"integer","description":"Last price. In cents."},"bid":{"type":"integer","description":"What a sell fills near. In cents."},"ask":{"type":"integer","description":"What a buy fills near. In cents."},"change":{"type":"integer","description":"Change since the reference close (yesterday's while open; the most recent one otherwise). In cents."},"changePct":{"type":"number"},"prevClose":{"type":"integer","description":"The reference close. In cents."},"open":{"type":"integer","description":"First price of the most recent session. In cents."},"high":{"type":"integer","description":"Session high. In cents."},"low":{"type":"integer","description":"Session low. In cents."},"volume":{"type":"integer","description":"Shares traded in the most recent session."},"afterHours":{"type":"boolean","description":"True outside the regular session."},"halted":{"type":"boolean"},"haltReason":{"type":["string","null"],"enum":["desk","circuit",null]},"haltUntil":{"type":["string","null"],"format":"date-time"},"streamer":{"type":["object","null"],"properties":{"login":{"type":"string"},"name":{"type":"string"},"live":{"type":"boolean"},"viewers":{"type":["integer","null"]},"title":{"type":["string","null"]}}}},"example":{"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,"haltReason":null,"haltUntil":null,"streamer":{"login":"cigaming","name":"CiGaming","live":false,"viewers":null,"title":null}}},"Details":{"type":"object","properties":{"averageDailyVolume":{"type":"integer","description":"Shares a day over the last week. Bigger orders relative to this move the price more."},"shortInterest":{"type":"integer","description":"Shares currently sold short."},"daysToCover":{"type":"number"},"borrowRatePerDay":{"type":"number","description":"Daily fee on short positions, as a fraction (0.001 = 0.1%)."},"reportsEarnings":{"type":"boolean"},"nextEarningsAt":{"type":["string","null"],"format":"date-time"},"dividends12m":{"type":"integer","description":"Dividends per share over the last year. In cents."},"lastEarnings":{"type":["object","null"],"properties":{"at":{"type":"string","format":"date-time"},"revenue":{"type":"integer","description":"Reported revenue. In cents."},"expected":{"type":"integer","description":"Analyst expectation. In cents."},"verdict":{"type":"string","enum":["beat","miss","inline"]},"movePct":{"type":"number"},"hoursLive":{"type":"number"},"subs":{"type":"integer"},"daysLive":{"type":"integer"},"dividend":{"type":"integer","description":"Dividend per share declared with it. In cents."}}},"lastSplit":{"type":["object","null"],"properties":{"ratio":{"type":"integer"},"at":{"type":"string","format":"date-time"}}}}},"Position":{"type":"object","properties":{"symbol":{"type":"string"},"shares":{"type":"integer","description":"Negative for a short."},"short":{"type":"boolean"},"price":{"type":"integer","description":"Current price. In cents."},"value":{"type":"integer","description":"shares × price (negative for a short). In cents."},"averageCost":{"type":"integer","description":"Average price paid, or received for a short. In cents."},"profit":{"type":"integer","description":"Unrealized profit or loss. In cents."}}},"Account":{"type":"object","properties":{"acctNo":{"type":"string","example":"CX-123456"},"name":{"type":"string"},"cash":{"type":"integer","description":"Cash. Can go negative after covering a short. In cents."},"worth":{"type":"integer","description":"Cash plus positions. In cents."},"profit":{"type":"integer","description":"Worth minus the $10,000 start. In cents."},"fees":{"type":"integer","description":"Trade fees paid. In cents."},"bailouts":{"type":"integer"},"month":{"type":"object","properties":{"label":{"type":"string"},"gain":{"type":"integer","description":"Gain this month, excluding bailouts, gifts and Axeonos purchases. In cents."},"gainPct":{"type":"number"}}},"shortExposure":{"type":"integer","description":"Value of all shorts. In cents."},"shortRoom":{"type":"integer","description":"How much more you can short. In cents."},"marginRisk":{"type":"boolean","description":"True when shorts are getting close to a margin call."},"canBailout":{"type":"boolean"},"nextBailout":{"type":"integer","description":"Next bailout amount. In cents."},"positions":{"type":"array","items":{"$ref":"#/components/schemas/Position"}},"badges":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"at":{"type":"string","format":"date-time"}}}},"profileUrl":{"type":"string","format":"uri"}}},"Trade":{"type":"object","properties":{"symbol":{"type":"string"},"side":{"type":"string","enum":["buy","sell","short","cover"]},"shares":{"type":"integer"},"fill":{"type":"integer","description":"Price per share you got. In cents."},"total":{"type":"integer","description":"fill × shares, before the fee. In cents."},"fee":{"type":"integer","description":"Always 499. In cents."},"realized":{"type":["integer","null"],"description":"Profit on a sell or cover, in cents."},"impactPct":{"type":"number","description":"How much your order moved the price."},"priceAfter":{"type":"integer","description":"Price right after your trade. In cents."},"session":{"type":"string","enum":["open","extended"]}}},"Order":{"type":"object","properties":{"id":{"type":"integer"},"symbol":{"type":"string"},"side":{"type":"string","enum":["buy","sell","short","cover"]},"type":{"type":"string","enum":["limit","stop"]},"shares":{"type":["integer","null"],"description":"null means all (sell and cover only)."},"price":{"type":"integer","description":"Limit or stop price. In cents."},"status":{"type":"string","enum":["open","filling","filled","cancelled","rejected","expired"]},"fill":{"type":["integer","null"]},"filledShares":{"type":["integer","null"]},"error":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"doneAt":{"type":["string","null"],"format":"date-time"}}},"Mover":{"type":"object","properties":{"id":{"type":"integer"},"at":{"type":"string","format":"date-time"},"kind":{"type":"string"},"category":{"type":"string","enum":["stream","news","corporate","flow","session","other"]},"movesPrice":{"type":"boolean"},"symbol":{"type":["string","null"]},"text":{"type":"string"},"impactPct":{"type":["number","null"],"description":"How far it was meant to move the price, in percent."},"session":{"type":"string","enum":["open","extended"],"description":"Outside regular hours, half the move lands now and half at the opening bell."},"price":{"type":["integer","null"],"description":"Price right after, in cents."},"data":{"type":"object"}}},"Event":{"type":"object","properties":{"id":{"type":"integer"},"kind":{"type":"string","description":"bell, bell_close, trade, news, circuit, raid, sub, gift, bits, follow, hype, reward, earnings, statement, dividend, dividend_declared, split, margin, order, autopilot, gap, market_open, market_close, market, halt, grant, bailout, season, sale, ipo, delist…"},"symbol":{"type":["string","null"]},"text":{"type":"string","description":"Ready to show as-is."},"data":{"type":"object"},"at":{"type":"string","format":"date-time"}}}}},"paths":{"/":{"get":{"tags":["Discovery"],"summary":"What this is and who you are","security":[{},{"traderKey":[]},{"channelKey":[]}],"responses":{"200":{"description":"Info","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/market":{"get":{"tags":["Market"],"summary":"Market clock and the UCX Composite","security":[{},{"traderKey":[]},{"channelKey":[]}],"responses":{"200":{"description":"Market state","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["open","premarket","afterhours","weekend","holiday"]},"label":{"type":"string"},"open":{"type":"boolean"},"sessionOpensAt":{"type":"string","format":"date-time"},"sessionClosesAt":{"type":"string","format":"date-time"},"nextOpenAt":{"type":"string","format":"date-time"},"composite":{"type":"object","properties":{"value":{"type":"number"},"change":{"type":"number"},"changePct":{"type":"number"}}},"halted":{"type":"boolean"},"tickers":{"type":"integer"}}}}}}}}},"/tickers":{"get":{"tags":["Market"],"summary":"Every ticker with a live quote","security":[{},{"traderKey":[]},{"channelKey":[]}],"responses":{"200":{"description":"Tickers","content":{"application/json":{"schema":{"type":"object","properties":{"tickers":{"type":"array","items":{"$ref":"#/components/schemas/Ticker"}}}}}}}}}},"/tickers/{symbol}":{"get":{"tags":["Market"],"summary":"One ticker, with earnings, dividends, short interest and liquidity","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"symbol","in":"path","required":true,"description":"Ticker, 2 to 6 letters (case doesn't matter).","schema":{"type":"string","example":"CIG"}}],"responses":{"200":{"description":"Ticker","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Ticker"},{"type":"object","properties":{"blurb":{"type":["string","null"]},"details":{"$ref":"#/components/schemas/Details"}}}]}}}},"400":{"$ref":"#/components/responses/E400"},"404":{"$ref":"#/components/responses/E404"}}}},"/tickers/{symbol}/history":{"get":{"tags":["Market"],"summary":"Price history for charts","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"symbol","in":"path","required":true,"description":"Ticker, 2 to 6 letters (case doesn't matter).","schema":{"type":"string","example":"CIG"}},{"name":"range","in":"query","required":false,"description":"How far back. 1h and 1d come back in minute steps, 1w hourly, 1m every few hours.","schema":{"type":"string","enum":["1h","1d","1w","1m"],"default":"1d"}}],"responses":{"200":{"description":"Points","content":{"application/json":{"schema":{"type":"object","properties":{"symbol":{"type":"string"},"range":{"type":"string"},"points":{"type":"array","items":{"type":"object","properties":{"t":{"type":"string","format":"date-time"},"price":{"type":"integer"}}}}}}}}},"400":{"$ref":"#/components/responses/E400"},"404":{"$ref":"#/components/responses/E404"}}}},"/tickers/{symbol}/trades":{"get":{"tags":["Market"],"summary":"Recent trades in one ticker (players and NPCs)","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"symbol","in":"path","required":true,"description":"Ticker, 2 to 6 letters (case doesn't matter).","schema":{"type":"string","example":"CIG"}},{"name":"limit","in":"query","required":false,"description":"How many (1–100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Trades","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/E400"},"404":{"$ref":"#/components/responses/E404"}}}},"/trades":{"get":{"tags":["Market"],"summary":"Recent trades across the exchange","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many (1–100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Trades","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Trading"],"summary":"Trade at market","security":[{"traderKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key within 10 minutes returns the first result.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol","side","shares"],"properties":{"symbol":{"type":"string"},"side":{"type":"string","enum":["buy","sell","short","cover"]},"shares":{"oneOf":[{"type":"integer","minimum":1,"maximum":5000},{"type":"string","enum":["all","max"]}],"description":"\"all\" sells or covers everything; \"max\" buys or shorts as much as you can."}}},"example":{"symbol":"CIG","side":"buy","shares":10}}}},"responses":{"201":{"description":"Filled","content":{"application/json":{"schema":{"type":"object","properties":{"trade":{"$ref":"#/components/schemas/Trade"},"account":{"$ref":"#/components/schemas/Account"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/composite/history":{"get":{"tags":["Market"],"summary":"UCX Composite history","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"range","in":"query","required":false,"description":"How far back. 1h and 1d come back in minute steps, 1w hourly, 1m every few hours.","schema":{"type":"string","enum":["1h","1d","1w","1m"],"default":"1d"}}],"responses":{"200":{"description":"Points","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/E400"}}}},"/news":{"get":{"tags":["Market"],"summary":"The newswire","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"symbol","in":"query","required":false,"description":"Only this ticker.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"How many (1–100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"News","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/E400"}}}},"/events":{"get":{"tags":["Market"],"summary":"Everything that happens, in order (poll this)","description":"Without since: the most recent events. With since: everything after that id, oldest first. Keep the returned cursor and pass it as since next time.","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"since","in":"query","required":false,"description":"Return events after this id.","schema":{"type":"integer"}},{"name":"symbol","in":"query","required":false,"description":"Only this ticker.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"How many (1–100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Events","content":{"application/json":{"schema":{"type":"object","properties":{"cursor":{"type":"integer"},"events":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}}}},"400":{"$ref":"#/components/responses/E400"}}}},"/movers":{"get":{"tags":["Market"],"summary":"Everything that moves prices, in one shape (poll this, or use the WebSocket)","description":"Stream events, news and leaks, earnings and dividends, big trades and order fills, margin calls, gaps, halts and the bells, each with category, impactPct and the price right after. Includes the small moves from follows and viewer swings that never get a banner. Pass the returned cursor as since next time. upcoming lists the clock, earnings in the next 14 days and halted tickers.","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"since","in":"query","required":false,"description":"Return movers after this id.","schema":{"type":"integer"}},{"name":"symbol","in":"query","required":false,"description":"Only this ticker (exchange-wide ones are still included).","schema":{"type":"string"}},{"name":"category","in":"query","required":false,"description":"Comma-separated: stream, news, corporate, flow, session, other.","schema":{"type":"string"}},{"name":"all","in":"query","required":false,"description":"true to include events that don't move a price (badges, bailouts, declarations).","schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","required":false,"description":"How many (1–200).","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"Movers","content":{"application/json":{"schema":{"type":"object","properties":{"cursor":{"type":"integer"},"movers":{"type":"array","items":{"$ref":"#/components/schemas/Mover"}},"upcoming":{"type":"object"}}}}}},"400":{"$ref":"#/components/responses/E400"}}}},"/leaderboard":{"get":{"tags":["Market"],"summary":"Richest traders, or best of the month","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"board","in":"query","required":false,"description":"all = net worth, month = % gained since the 1st.","schema":{"type":"string","enum":["all","month"],"default":"all"}},{"name":"limit","in":"query","required":false,"description":"How many (1–50).","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Leaderboard","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/E400"}}}},"/traders/{acctNo}":{"get":{"tags":["Market"],"summary":"A trader's public profile","security":[{},{"traderKey":[]},{"channelKey":[]}],"parameters":[{"name":"acctNo","in":"path","required":true,"description":"Like CX-123456.","schema":{"type":"string"}}],"responses":{"200":{"description":"Profile","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/E400"},"404":{"$ref":"#/components/responses/E404"}}}},"/earnings":{"get":{"tags":["Market"],"summary":"Earnings calendar and recent reports","security":[{},{"traderKey":[]},{"channelKey":[]}],"responses":{"200":{"description":"Earnings","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/streamers":{"get":{"tags":["Market"],"summary":"Listed streamers, live ones first","security":[{},{"traderKey":[]},{"channelKey":[]}],"responses":{"200":{"description":"Streamers","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/me":{"get":{"tags":["Trading"],"summary":"Your account","security":[{"traderKey":[]}],"responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"}}}},"/me/activity":{"get":{"tags":["Trading"],"summary":"Your trades and cash movements (dividends, fees, bailouts…)","security":[{"traderKey":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many (1–200).","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"Activity","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"}}}},"/orders":{"get":{"tags":["Trading"],"summary":"Your limit and stop orders","security":[{"traderKey":[]}],"parameters":[{"name":"status","in":"query","required":false,"description":"open (default) or all.","schema":{"type":"string","enum":["open","all"]}},{"name":"limit","in":"query","required":false,"description":"How many (1–100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Orders","content":{"application/json":{"schema":{"type":"object","properties":{"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"}}},"post":{"tags":["Trading"],"summary":"Place a limit or stop order","description":"A limit that's already good enough fills immediately (filledNow: true). A stop that would fire immediately is rejected.","security":[{"traderKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 64 characters. Retrying with the same key within 10 minutes returns the first response instead of acting twice.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol","side","type","shares","price"],"properties":{"symbol":{"type":"string"},"side":{"type":"string","enum":["buy","sell","short","cover"]},"type":{"type":"string","enum":["limit","stop"]},"shares":{"oneOf":[{"type":"integer","minimum":1,"maximum":5000},{"const":"all"}]},"price":{"type":"integer","description":"In cents."}}},"example":{"symbol":"CIG","side":"buy","type":"limit","shares":20,"price":3000}}}},"responses":{"201":{"description":"Order placed (or filled now)","content":{"application/json":{"schema":{"type":"object","properties":{"filledNow":{"type":"boolean"},"order":{"$ref":"#/components/schemas/Order"},"trade":{"$ref":"#/components/schemas/Trade"},"account":{"$ref":"#/components/schemas/Account"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/orders/{id}":{"delete":{"tags":["Trading"],"summary":"Cancel an open order","security":[{"traderKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Order id.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Cancelled","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"}}}},"/autopilot":{"get":{"tags":["Autopilot"],"summary":"Your autopilot rules","security":[{"traderKey":[]}],"responses":{"200":{"description":"Rules","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"}}},"post":{"tags":["Autopilot"],"summary":"Start a rule (up to 5)","description":"dca: symbol, amount (cents), every (day|week). trail: symbol, pct. bracket: symbol, up, down (percent from your average cost). rebalance: targets, as \"UCXF 60, CIG 20\" or {\"UCXF\":60,\"CIG\":20}.","security":[{"traderKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 64 characters. Retrying with the same key within 10 minutes returns the first response instead of acting twice.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["dca","trail","bracket","rebalance"]},"symbol":{"type":"string"},"amount":{"type":"integer"},"every":{"type":"string","enum":["day","week"]},"pct":{"type":"number"},"up":{"type":"number"},"down":{"type":"number"},"targets":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"number"}}]}}},"example":{"kind":"dca","symbol":"UCXF","amount":20000,"every":"day"}}}},"responses":{"201":{"description":"Rule started","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/autopilot/{id}":{"delete":{"tags":["Autopilot"],"summary":"Stop a rule","security":[{"traderKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Rule id.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Stopped","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"}}}},"/bailout":{"post":{"tags":["Trading"],"summary":"Take a government bailout (worth under $100 only)","security":[{"traderKey":[]}],"responses":{"201":{"description":"Bailed out","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/sandbox/reset":{"post":{"tags":["Sandbox"],"summary":"Wipe the sandbox account back to cash (sandbox keys only)","security":[{"traderKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"cash":{"type":"integer","minimum":0,"maximum":100000000,"default":1000000,"description":"Starting cash in cents."}}},"example":{"cash":1000000}}}},"responses":{"200":{"description":"Reset","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"account":{"$ref":"#/components/schemas/Account"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/channel":{"get":{"tags":["Channel"],"summary":"Your listing: ticker, holders, earnings progress, statement due","security":[{"channelKey":[]}],"responses":{"200":{"description":"Channel","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"}}}},"/channel/holders":{"get":{"tags":["Channel"],"summary":"Who holds (or is short) your ticker","security":[{"channelKey":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many (1–100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Holders","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"}}}},"/channel/press":{"post":{"tags":["Channel"],"summary":"Publish a press release (3 a day, ±5%)","security":[{"channelKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 64 characters. Retrying with the same key within 10 minutes returns the first response instead of acting twice.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["headline"],"properties":{"headline":{"type":"string","maxLength":160},"impactPct":{"type":"number","minimum":-5,"maximum":5}}},"example":{"headline":"CiGaming Inc announces a second arcade cabinet","impactPct":3}}}},"responses":{"201":{"description":"Published","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/channel/statement":{"post":{"tags":["Channel"],"summary":"Earnings call statement (within 48 hours of a report)","security":[{"channelKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 64 characters. Retrying with the same key within 10 minutes returns the first response instead of acting twice.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text","tone"],"properties":{"text":{"type":"string","maxLength":160},"tone":{"type":"string","enum":["bullish","neutral","gloomy"]}}},"example":{"text":"Record month. Next month: two pizzas on camera.","tone":"bullish"}}}},"responses":{"201":{"description":"Published","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}}}}