Skip to main content
Glama

Arena Predictions

Exit a position

sell_trade
DestructiveIdempotent

Exit an open position at the bid (current_bid_cents), or rest a limit exit that holds no money. No bid: a market sell cannot. A closed trade answers its terminal state. route=best may split: fills lists each leg. route=kalshi sells at Kalshi's bid. contract_note on every exit of a non-Kalshi fill. dry_run=true sells nothing (a limit exit shows crosses_now). Selling is never gated by a membership. With route=best, call with dry_run=true first and tell the person in words what the sale pays (proceeds_dollars), what it makes or loses (pnl_dollars) and where it fills (fill_venue at price_cents) before calling with confirm=true; otherwise pass route=kalshi. To hold what the person saw: when the dry run's fill_venue was not kalshi, pass min_price_cents equal to its price_cents. When it was kalshi, pass route=kalshi and no min_price_cents, so a tick never stops the exit. confirm=true and a fresh idempotency_key, except dry_run. live=true sells on Kalshi. poly_intl=true sells on Polymarket International (not US). Pass one. Default is paper. This server places paper trades only: a call with live or poly_intl is refused (live_not_hosted).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
liveNoKalshi sell. Not poly_intl.
sideNo
routeNoDefault best.
tickerNo
confirmNoREQUIRED to sell: true. Not with dry_run.
dry_runNoPreview; sells nothing.
token_idNopoly_intl CLOB token.
trade_idNoFrom get_positions.
contractsNo
poly_intlNoPolymarket International sell. Not live, not US.
expires_atNoISO time a gtc order stops resting.
time_in_forceNogtc (default) rests up to 365 days; ioc and fok fill now or come back canceled.
idempotency_keyNoREQUIRED to sell: a fresh UUID v4. Not with dry_run.
min_price_centsNoMarket sells: refuse a bid below this (server-enforced).
limit_price_centsNoA LIMIT exit at this price or better.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fillsNo
notesNo
orderNo
routeNo
tradeNo
filledNo
placedNo
statusNo
venuesNo
dry_runNo
web_urlNo
trade_idNo
contractsNo
rule_noteNo
expires_atNo
fill_venueNo
order_typeNo
route_noteNo
crosses_nowNo
pnl_dollarsNo
price_centsNo
route_reasonNo
contract_noteNo
time_in_forceNo
already_closedNo
proceeds_dollarsNo
limit_price_centsNo
kalshi_price_centsNo
price_improvement_centsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources