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

# Galore practice API and SDKs

Send rules and a trade. Galore says whether the trade fits, and why. Hosted, free, no key.

` rules ` and ` order ` use the live service's shapes: ` rules ` is the ` permissions ` object of ` draft_existing_permissions ` and ` order ` is the order of ` submit_existing_order `, so the same objects work there. The extra top-level ` agent ` names the AI sending the trade; live, that comes from its sign-in. It checks only what you send: no brokerage, prices or accounts, and nothing is saved. Rules that need brokerage data, such as daily loss, are accepted and listed in ` notChecked `. Every answer says ` "practice": true `.

## Try it with curl

```
curl -s https://trygalore.com/api/sandbox/example-rules   | curl -s https://trygalore.com/api/sandbox/check -H 'Content-Type: application/json' -d @-
```

The first call returns a valid body (` agent `, ` rules `, and an ` order ` good for one minute); the second checks it. Edit the JSON to see a trade stopped. Spec: [OpenAPI 3.1](https://trygalore.com/api/sandbox/openapi.json).

## Python

```
pip install galore-sdk

from galore_sdk import Galore

galore = Galore()                       # practice API, no key
start = galore.example_rules()
result = galore.check(start["agent"], start["rules"], start["order"])
print(result["decision"], result["summary"])
```

[galore-sdk on PyPI](https://pypi.org/project/galore-sdk/). Python 3.9 or later, no dependencies.

## JavaScript and TypeScript

```
npm install galore-sdk

import { Galore } from 'galore-sdk';

const galore = new Galore();            // practice API, no key
const { agent, rules, order } = await galore.exampleRules();
const result = await galore.check(agent, rules, order);
console.log(result.decision, result.summary);
```

[galore-sdk on npm](https://www.npmjs.com/package/galore-sdk). Node.js 18 or later, browsers and edge runtimes, no dependencies, types included.

## Command line

```
npx galore-sdk check --symbol AAPL --side buy --qty 2 --price 190
pip install galore-sdk && galore check --symbol AAPL --side buy --qty 2 --price 190
```

## Agent skill

Teach Claude Code, Codex, Cursor and other agents how to use Galore:

```
npx skills add mehek-builds/galore-sdk
```

Or read it directly: [SKILL.md](https://trygalore.com/.well-known/agent-skills/galore/SKILL.md), listed in [/.well-known/agent-skills/index.json](https://trygalore.com/.well-known/agent-skills/index.json).

## What comes back

Decisions

| decision | Meaning |
| --- | --- |
| ` allowed ` | Every rule passed. On the live service the trade goes to the brokerage. |
| ` stopped ` | A rule failed. The trade never reaches the brokerage. |
| ` held ` | This ` eventId ` was already sent. Read its status; never send it again. |
| ` needs_person ` | Above ` confirmAboveUsd `: the person confirms it in their own browser. |

Each item in ` checks ` has ` rule `, ` passed ` and a plain ` detail `. Bad input returns HTTP 400 with ` error.field ` naming the field.

## Rule fields

- ` connectionId `: the brokerage account (live, from the ` brokerage ` tool; here any name).

- ` agents ` (up to 20), ` instruments `, ` sides `, ` timeInForce `: what may trade, and how.

- ` maxQuantity `, ` maxOrderUsd `: most per trade.

- ` maxDailySubmittedUsd `, ` maxOrdersPerDay `: most per day.

- ` maxSnapshotAgeMs `, ` expiresAt ` (Unix epoch milliseconds) and ` disclosure `, the fixed text in the example.

- Optional: ` confirmAboveUsd `, ` maxPositionUsd `, ` duplicateWindowSeconds `.

Order fields: ` eventId `, ` connectionId `, ` instrument `, ` side `, ` quantity `, ` limitPrice `, ` orderType ` (` limit `), ` timeInForce ` and ` validUntil ` (milliseconds, at most five minutes ahead). Optional ` context `: ` ordersToday `, ` submittedTodayUsd `, ` positionUsd `, ` availableQuantity `, ` recentEventIds `, and ` now ` to fix the clock in tests.

## Move to real trades

Add ` https://connect.trygalore.com/mcp ` to your AI as an MCP connector and sign in with a Galore account. Call ` galore_connection ` for the real ` connectionId `, then ` draft_existing_permissions ` with your rules: the person approves them once, in their own browser. After that ` preview_existing_order ` checks a trade without sending it, ` submit_existing_order ` sends it under the approved rules, and ` existing_order_status ` reads the result. Code without MCP calls the same tools at ` POST https://connect.trygalore.com/v1/tools/<name> ` ([OpenAPI](https://connect.trygalore.com/connect/openapi.json)). [Sign up](https://app.trygalore.com/signup).

## Pricing

The practice API, SDKs and skill are free. Live trade checks need a Galore membership: $19 a month, Night Stop included, never a cut of trades. Business pricing is custom; [talk to us](https://trygalore.com/contact).

[Developer docs](https://trygalore.com/developers) · [SDK source](https://github.com/mehek-builds/galore-sdk) · [Run the full runtime locally](https://trygalore.com/developers/gate-evaluation)

Reviewed 5 December 2026
