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.

Python

pip install galore-sdk

from galore_sdk import Galore

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

galore-sdk on PyPI. 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. 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, listed in /.well-known/agent-skills/index.json.

What comes back

Decisions
decisionMeaning
allowedEvery rule passed. On the live service the trade goes to the brokerage.
stoppedA rule failed. The trade never reaches the brokerage.
heldThis eventId was already sent. Read its status; never send it again.
needs_personAbove 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). Sign up.

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.

Developer docs · SDK source · Run the full runtime locally

Read this guide as Markdown · Combined developer reference

Reviewed 5 December 2026