Source: [https://trygalore.com/developers](https://trygalore.com/developers)

# 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](https://trygalore.com/developers/sandbox).

```
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 ` ([galore-sdk on PyPI](https://pypi.org/project/galore-sdk/)). JavaScript: ` npm install galore-sdk ` ([galore-sdk on npm](https://www.npmjs.com/package/galore-sdk)). Agent skill: ` npx skills add mehek-builds/galore-sdk `. Source: [github.com/mehek-builds/galore-sdk](https://github.com/mehek-builds/galore-sdk).

The practice API only answers. Live, Galore places the order itself: a trade your rules don't allow is never sent, and ignoring the answer doesn't send it.

## 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](https://connect.trygalore.com/connect). To try everything first, use the [sandbox](https://trygalore.com/developers/sandbox): practice API, no key, nothing saved.

## Connect an AI

Add the [Galore MCP server](https://trygalore.com/developers/mcp), ` 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](https://connect.trygalore.com/connect/api) ([OpenAPI](https://connect.trygalore.com/connect/openapi.json)). This website has its own read-only [site API](https://trygalore.com/openapi.json).

## Try it without a brokerage account

[Run Galore locally](https://trygalore.com/developers/gate-evaluation). 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](https://trygalore.com/developers/gate-integration-contract) or the [source](https://github.com/mehek-builds/galore-gate-evaluation).

Want something smaller? Run the [Python pre-trade check](https://trygalore.com/learn/pre-trade-check-python) (also [in Google Colab](https://colab.research.google.com/drive/1W2TIFshiaCURdcc3IWUjuIsaX5f28jnk)) or the [SQLite retry journal](https://trygalore.com/learn/prevent-duplicate-trading-orders). 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](https://trygalore.com/developers/sandbox).

## 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](https://trygalore.com/developers/gate-integration-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.

Fields in submit_checked_order

| 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_entries ` stops new trades and keeps protective sales. ` kill_all ` is 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](https://app.trygalore.com/signup) and connect their AI at [connect.trygalore.com](https://connect.trygalore.com/). Outside insurance is not offered yet. For a custom setup for your app or brokerage, [talk to us](https://trygalore.com/contact).

## Brokerage already connected in your AI tool?

See [keep your brokerage and AI tool](https://trygalore.com/developers/broker-and-ai-tool-integration).

[Pilot checklist and pricing](https://trygalore.com/developers/evaluate-pre-trade-gateway) · [Trace a trade that did not fill](https://trygalore.com/learn/trade-approved-but-not-filled) · [Compare approaches](https://trygalore.com/compare/pre-trade-tools) · [Changelog](https://trygalore.com/changelog) · [Example source](https://github.com/mehek-builds/galore-examples) · [Watch the walkthrough](https://trygalore.com/watch/pre-trade-check-python)

[Which AI placed a trade, and who allowed it?](https://trygalore.com/learn/trading-agent-authorization-audit-trail)

Reviewed 5 December 2026
