SatGate Trading
Latest: v0.2.2
Shared budgets. Any set of connections can join one pool, across agents and venues.
SatGate Trading (Robinhood + Kalshi through SatGate MCP)
SatGate is an economic firewall for AI agents. Between your agent and your
brokers it enforces per-order, daily and weekly caps, shared budgets that count
Robinhood and Kalshi together, an owner approval gate for larger orders, and a
signed receipt for every order call it allows or refuses. This skill covers
trading both venues through https://mcp.satgate.io/mcp: the tool contracts,
how caps count, and the connection rules that matter once real money moves.
Who can use it
Every account admitted from SatGate's early-access list gets Robinhood and Kalshi with real money, under one set of limits. Each person connects their own Robinhood account and their own kalshi.com API key (read and write). SatGate never trades from an account of its own.
When to use
- Connecting a trading agent to Robinhood, Kalshi or both through SatGate.
- Reading SatGate's allowed, blocked and approval answers, or sizing orders against caps.
- Building an unattended trading loop (the scripted-executor pattern below).
Connect
Add https://mcp.satgate.io/mcp to your agent app (OAuth). Apps without a
browser use the device flow: the code expires after 600 seconds, so approve at
https://cloud.satgate.io/approve promptly. A late approval mints nothing. (The
older address satgate-mcp-saas.fly.dev/mcp still answers; use
mcp.satgate.io.)
The owner sets each connection's access when approving it: which services, and for each one Read only or a set of caps. Ready-made choices, the same for both venues:
- Read only: reads only, no order tools, no caps.
- Starter: $50 per order, $50 a day, $250 a week; any order over $20 waits for the owner's OK.
- Small trades: $100 per order, $300 a day, $1,000 a week; asks the owner above $50.
- Custom: the owner's own numbers. No approval gate unless the owner sets one.
Kalshi starts on Read only on the approval screen.
Design connections on purpose:
- One venue per trading bot. A Kalshi-only connection has no Robinhood tools, and the reverse. Put several bots on one shared budget when you want a single cap across both venues.
- Reports and digests: Read only, both services.
- Approve last. Set services and caps before approving. A later owner change ends the current access token; the next refresh picks up the new rules (see below).
Connection lifecycle
- One refresh token, one client. Refresh tokens are single-use and rotate. When a client presents a refresh token that another client already used, SatGate stops the whole connection. Give every process its own connection, or send all refreshes through one process behind a lock. (A client retrying its own unconfirmed refresh within a short grace is fine.)
- Owner changes end the access token, not the connection. After the owner edits caps or services, the current access token stops working. Refresh once with the same client; the new token carries the new rules.
- A stopped connection needs a new sign-in. Refresh then answers
invalid_grantwith "This SatGate connection was stopped. Reconnect SatGate in your app to continue." The answer does not say why it stopped. - Approval status stays with its connection.
satgate_approval_statusanswers only for approvals this connection asked for. A refresh keeps them; a new connection (a fresh sign-in) can't read an earlier connection's approvals and answers "No approval was found for this connection." - Test a token with a full initialize, then tools/list. Today a tools/list
(or DELETE) sent without an
Mcp-Session-Idheader can answer 400 "Mcp-Session-Id required" before the token is checked, so a dead token can look alive.
How caps count
- Kalshi orders count at the most they can cost: a bid counts count x price, an ask counts count x (1 - price).
- Robinhood orders count by
dollar_amount. An order by shares is accepted only as a day limit buy (quantityxlimit_price,time_in_force: gfd), the one share order with a known ceiling. Runsatgate_check_orderto see how any order will count. - Windows: per order, per day and per week. The week runs Monday 00:00 to Monday 00:00, New York time unless the owner picks another zone. A connection's day and week caps, and any shared budget it belongs to, count Robinhood and Kalshi orders together.
- Kalshi per event: an optional cap on the money in one event, counting every agent's orders on the same Kalshi connection. A different Kalshi connection keeps its own count. An event's counted amount stays until SatGate confirms that every recorded market in it has closed or settled.
- Kalshi give-back: cancelling a resting order gives back the part that did not fill. An order Kalshi turns down costs $0. An amend counts the new order in full and gives back the old order's unfilled part. When Kalshi's answer is unclear (a timeout, or an amend that changes only the price), the amount stays counted. Filled amounts are never given back.
satgate_check_ordernever counts and never asks the owner.left_usdis the smallest amount left on that window across every cap the check counted, and it does not say which cap. On an allowed check that figure already subtracts the order you are checking: addcost_usdback for what is left now. On a blockedorder_limitcheck,left_usdfor the failing window is what is left now.- Approval gate: an order above the connection's ask-above amount is held.
Nothing reaches the broker, and the answer gives an approval reference
(
apr_plus 24 hex characters). Approval does not place the order: resend the same call before the approval expires. Asksatgate_approval_statuswith{"approval_id": "apr_..."}; a declined order answersdeclinedwithnext_action: do_not_resend. Held and declined orders cost $0. Status stays readable for 90 days after the decision. - Account locks: a connection can be pinned to one account. A call naming another account is refused before it reaches the broker ("this account_number is not allowed on this connection").
Shared budgets
A shared budget is a named pool of spending room. The owner names it. The tools do not return the name or the pool id.
Any set of connections can join one pool, across agents and venues. A connection's own caps still apply under the pool. An order has to pass both. A pool covers one window, a day or a week, in the pool's own time zone.
See the pool with satgate_get_limits or satgate_budget_check. The entry
with shared: true gives limit, used and remaining. Those figures
include spending by the other agents on the pool. On satgate_get_limits
the entry is in dollar_limits. On satgate_budget_check it is in
spend_limits.
A pool that is used up refuses the order as order_limit. The sentence
uses that pool's limit and what is left of it.
Tool contracts (checked 2026-12-01)
Kalshi:
create_order_v2:{ticker, side: "bid"|"ask" (bid buys YES), count: "20.00", price: "0.4700" (dollars, 0 < price < 1), time_in_force: fill_or_kill|good_till_canceled|immediate_or_cancel, self_trade_prevention_type: taker_at_cross|maker, client_order_id?}.countandpriceare strings; SatGate reads at most 2 decimals ofcount. There is notypefield. Leaving outtime_in_forceorself_trade_prevention_typeis refused and nothing is sent.cancel_order_v2:{order_id, market_ticker, exchange_index?}. Notemarket_tickerhere andtickeron create. Pass the order'sexchange_index(0-1000) for orders off shard 0.- Reads:
get_market_by_tickerandget_market_orderbook(depthup to 100) taketicker.list_markets_by_series_or_eventtakes exactly one ofseries_tickerorevent_ticker, plusstatus(unopened, open, closed, settled),cursorandlimit. get_portfolio_balanceand the other reads pass Kalshi's answer through unchanged; take units from Kalshi's docs.
Robinhood:
place_equity_order(account fieldaccount_number) andplace_crypto_order(account fieldrhs_account_number). Other arguments are Robinhood's own, passed through. Size orders bydollar_amount(see How caps count).preview_crypto_orderandreview_equity_orderare reads: they don't count against caps, and their answers are Robinhood's.
Both:
satgate_check_order{tool, arguments}: free pre-flight. AnswersstructuredContent{result: allowed|blocked, reason_code, cost_usd, left_usd: {day, week, event}}, sometimes withmax_dollarsormax_quantity.satgate_get_limitsandsatgate_budget_check: the connection's caps, allowed tools and what is left.
Receipts
Orders SatGate allows or refuses, and order checks, carry
_meta.satgate_evidence: receipt_id (rcpt_...), receipt_hash (sha256:
plus base64), evidence_pack_id (ep_...), evidence_url, jwks_url and
verify_url. Check the pack's signature against the keys at jwks_url (the
same keys are at https://mcp.satgate.io/.well-known/jwks.json), with no
SatGate login. Each receipt lists the caps the order counted against and their
window totals. A status read refused for its form, such as
satgate_approval_status with a wrong argument name, answers with
_meta.satgate_refusal and no receipt.
The signed receipt names this connection as authority.token_id_hash (a
hash, not the token) and the call as route_or_tool. For an order that
field is mcp:tools/call: plus the tool name. place_equity_order and
place_crypto_order are Robinhood. create_order_v2 and amend_order_v2
are Kalshi. The receipt does not name the shared budget.
Log receipt_id with every executed order. It is the audit trail.
The scripted-executor pattern (unattended trading)
Don't put an LLM in the hot path of a recurring trading loop: model quotas and API limits become the bot's availability. A production bot runs this every 5 minutes with no LLM calls:
loop:
refresh the token if it is close to expiry (one refresher, behind a lock)
read account state through MCP (balance, positions, resting orders, fills)
write snapshot.json
strategy engine (a deterministic script) -> intents.json {cancels, posts}
run the cancels, then the posts, through the order tools
append each result and its receipt_id to a jsonl audit log
Refused calls cost $0, but validate order bodies locally anyway (required fields, 0 < price < 1, counts to 2 decimals) and space calls about 1-3 seconds apart: Kalshi rate-limits hard.
Placing is the step that counts. satgate_check_order holds nothing, so two
agents can both see room. Each cap is reserved in one step. If a later cap is
already full, the earlier reservations are given back. The agent that loses
gets a normal order_limit block. A refused order costs nothing from any cap
and never reaches the venue, but it is still a call. Repeating it can be
refused as rate_limited.
A scripted executor never retries a refused place call in the same cycle. Re-plan on the next pass.
Pitfalls (as of 2026-12-01)
- Form refusals don't name the field yet: "An argument of this call is missing, unknown or not in the form this tool takes." Re-read the tool's schema in tools/list before retrying.
- The hold answer says "Approval reference: apr_..."; the status tool's field
is
approval_id. - Kalshi fills can be fractional (
count_fp, for example "3.40"). Round every count you send to 2 decimals.
Check your setup
After connecting: satgate_get_limits lists the caps and tools you expect;
satgate_check_order on a small order shows the windows; then place and
cancel one small, unfilled resting Kalshi order and check that the windows
return to where they were.
