Galore API and developer docs
Your AI proposes a trade. Galore checks it against the rules the person set, sends it to the brokerage and records what happened.
Quick start: hosted, no key
The practice API checks a trade against a person's rules and answers allowed, stopped, held or needs_person, with every rule it checked. No key, no account, nothing saved. Practice API and SDKs.
curl -s https://trygalore.com/api/sandbox/example-rules | curl -s https://trygalore.com/api/sandbox/check -H 'Content-Type: application/json' -d @-This practice API is separate from the local runtime below, which uses its own tool names and fields.
Python: pip install galore-sdk. JavaScript: npm install galore-sdk. Agent skill: npx skills add mehek-builds/galore-sdk.
Get an API key
Self-serve, no sales call: run npx galore-sdk login, or call POST https://connect.trygalore.com/connect/device/start (no key needed) and open the link it returns. The person signs in to Galore and approves the key in their own browser. See and revoke keys at connect.trygalore.com/connect. To try everything first, use the sandbox: practice API, no key, nothing saved.
Connect an AI
Add the Galore MCP server, https://connect.trygalore.com/mcp, to Claude, ChatGPT or any MCP client and sign in. Your own code can call the same tools over the Galore API (OpenAPI). This website has its own read-only site API.
Try it without a brokerage account
Run Galore locally. Release 0.1.0-eval.1 runs the real trade checks over HTTP and MCP with practice money and a simulated broker. A clean install passed 26 end-to-end checks and 447 tests. Read the full contract or the source.
Want something smaller? Run the Python pre-trade check (also in Google Colab) or the SQLite retry journal. Both are teaching examples, not the Galore runtime.
How a trade flows
- The AI drafts rules for one account.
- The person reads the exact rules and approves them. The AI cannot approve for them.
- The AI sends a trade under those rules.
- Galore checks the AI, the account, the rules, whether they are still on, and fresh account and market data. A trade that fails is stopped before your brokerage.
- Galore records the brokerage's answer. An allowed trade is not a fill until the brokerage says so.
What Galore enforces
Each rule is a field the person approves in draft_existing_permissions. A trade that breaks one is stopped before the brokerage, and the answer names the rule.
- Which AIs may trade (
agents) and on which brokerage account (connectionId). - Which symbols (
instruments), buy or sell (sides), and time in force. Limit orders only. - Size: shares per trade (
maxQuantity), dollars per trade (maxOrderUsd) and position size (maxPositionUsd). - Per day: dollars sent (
maxDailySubmittedUsd) and number of trades (maxOrdersPerDay). - Fresh data (
maxSnapshotAgeMs), no repeats inside a window (duplicateWindowSeconds), and the person confirms trades above an amount (confirmAboveUsd). - The rules end at
expiresAt. One off switch stops new buys from every AI.
Try every check with no account: practice API.
If Galore can't be reached
Galore places the order, so if your AI can't reach Galore, nothing is sent through it: the AI gets an error and no trade reaches the brokerage through Galore. If the connection drops after a trade was sent, its result is uncertain. Read existing_order_status instead of sending it again.
Tool names in the local runtime
draft_order_mandate, get_order_mandate, sign_order_mandate, submit_checked_order, gate_status, halt_entries and close_owned_entry. Take arguments and keys from the contract.
What the local submit_checked_order takes
A whole-share buy as a regular-session fill-or-kill limit order, plus a stop that sells if the price drops. No live orders, scripts, money transfers or unsupported instruments.
| Purpose | Fields | Note |
|---|---|---|
| Which trade | eventId, mandateId, symbol | The approved rules and one stable ID for this trade. |
| Price and size | limitPrice, validUntil; size with qty or notionalUsd | See the schema for required combinations and units. |
| Stop | softLine, stopPrice, floorMin | Needs approved rules, the service running, fresh prices and a working brokerage. A price floor can leave a sale unfilled. |
| Price condition | trigger.kind, trigger.threshold | Above or below a price. |
Read wording without placing a trade
preview_checked_order turns a text string into unsaved fields. It checks no brokerage data, approves nothing and places nothing. Incomplete wording returns CLARIFY with EXPLICIT_SUPPORTED_FIELDS_REQUIRED.
Keys
Keep the person's key and the AI's key separate, each bound to one account. Store keys in environment variables or a secret manager. Never send brokerage keys to this website.
Failures to test
- Duplicate scheduler runs settle on one trade.
- Missing data holds new trades.
- An unknown brokerage answer stays open until reconciled.
- Expired or turned-off rules stop new trades.
halt_entriesstops new trades and keeps protective sales.kill_allis different and can turn protection off.- A minimum sale price cannot promise a buyer.
What stays with you
Your app and brokerage keep their own legal and licensing duties. Galore checks trades and keeps records; that is not regulatory approval.
Where it runs today
Galore runs live with real money at the five supported brokerages. Members sign up at app.trygalore.com and connect their AI at connect.trygalore.com. Outside insurance is not offered yet. For a custom setup for your app or brokerage, talk to us.
Brokerage already connected in your AI tool?
See keep your brokerage and AI tool.
Pilot checklist and pricing · Trace a trade that did not fill · Compare approaches · Changelog · Example source · Watch the walkthrough
Which AI placed a trade, and who allowed it?
Read this guide as Markdown · Combined developer reference
Reviewed 5 December 2026
