Skip to main content

galore-sdk: Galore AI trading guardrails API

Galore checks every trade an AI sends against rules a person approved once, before the trade reaches their brokerage (Alpaca, Robinhood, Interactive Brokers, Kalshi, Polymarket). It never picks trades, holds money or gives advice.

This is Galore from trygalore.com, the AI trade-check service. It is not the GaLore PyTorch optimizer (galore-torch) or the galore spectroscopy package.

The SDK talks to Galore's hosted practice API: no key, no account, nothing saved. rules and order match the live draft_existing_permissions (permissions) and submit_existing_order (order) schemas, so the same objects work there; the extra agent argument names the AI (live, its sign-in does).

pip install galore-sdk
from galore_sdk import Galore, make_order, make_rules

galore = Galore()                     # hosted practice API, no key

rules = make_rules(
    agents=["my-trading-agent"],
    instruments=["AAPL", "MSFT"],
    max_order_usd=2000,
    max_daily_usd=5000,
    max_quantity=10,
)
order = make_order(instrument="AAPL", side="buy", quantity=2, limit_price=190)
# make_order gives a fresh eventId; reuse an order's eventId only to retry that same trade.

result = galore.check("my-trading-agent", rules, order)
print(result["decision"])             # allowed | stopped | held | needs_person
for check in result["checks"]:
    print(check["rule"], check["passed"], check["detail"])

Command line: galore check --symbol AAPL --qty 2 --price 190.

Errors raise galore_sdk.GaloreError with .status, .code and .field (the bad input). Python 3.9+, no dependencies.

What comes back

  • decision: allowed (every rule passed), stopped (a rule failed; the trade never reaches the brokerage), held (this eventId was already sent; read its status, never resend), needs_person (above confirmAboveUsd; the person confirms in their own browser).
  • summary: one plain line. checks: every rule with passed and detail. practice: always true here.

Rule fields (live permissions shape): connectionId, agents, instruments, sides, timeInForce, maxQuantity, maxOrderUsd, maxDailySubmittedUsd, maxOrdersPerDay, maxSnapshotAgeMs, expiresAt (ms), disclosure; optional confirmAboveUsd, maxPositionUsd. Live-only fields that need brokerage data are accepted and listed in notChecked. Optional context: ordersToday, submittedTodayUsd, positionUsd, availableQuantity, recentEventIds.

Real trades

Add https://connect.trygalore.com/mcp to your AI as an MCP connector and sign in with a Galore account ($19 a month, Night Stop included). The person approves the rules in their own browser; the same rules and order objects work there (galore_connection for the real connectionId, draft_existing_permissions with the rules as permissions, then submit_existing_order).

Docs: https://trygalore.com/developers/sandbox · Source: https://github.com/mehek-builds/galore-sdk · License: MIT

Metadata

Release files for galore-sdk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for galore-sdk 0.1.3
File Size Uploaded Provenance Actions
galore_sdk-0.1.3.tar.gz 7.4 kB With provenance Details for galore_sdk-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for galore-sdk 0.1.3
File Interpreter ABI Platform Actions
galore_sdk-0.1.3-py3-none-any.whl Python 3 none any Details for galore_sdk-0.1.3-py3-none-any.whl

Total release size: 15.8 kB

Release files / galore_sdk-0.1.3.tar.gz

Download URL galore_sdk-0.1.3.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
90d7035bfc5ad416a88377ce3b6e447d8be88724275d3899a63921950958d93c
BLAKE2b-256 checksum
How to use checksums
da0f1beec0f4aba8c997162625636ed5956303fd18dadf1c638517047feedca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / galore_sdk-0.1.3-py3-none-any.whl

Download URL galore_sdk-0.1.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f73c989fa5c4625b1e28487e43968fa9ac2c12fe19e04f5a6fb5cadbed52cc2b
BLAKE2b-256 checksum
How to use checksums
3a2184611a09d84f390658fd415aa882a164c45b07fbc55e1f596d6d1eb15593
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for galore-sdk 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for galore_sdk-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page