galore-sdk
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 thegalorespectroscopy 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(thiseventIdwas already sent; read its status, never resend),needs_person(aboveconfirmAboveUsd; the person confirms in their own browser).summary: one plain line.checks: every rule withpassedanddetail.practice: alwaystruehere.
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| galore_sdk-0.1.1.tar.gz | 7.2 kB | With provenance | Details for galore_sdk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| galore_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for galore_sdk-0.1.1-py3-none-any.whl |
Total release size: 15.5 kB
Release files / galore_sdk-0.1.1.tar.gz
| Download URL | galore_sdk-0.1.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1614155e627d3d70d18264c802b2ee21bcdd038bfefa1925e60e835ea916da23
|
|
BLAKE2b-256 checksum How to use checksums |
c9aa5865931b6c632091828dc68bd91f40efb7afb47ff21f5bd569a914bf64c1
|
| 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 logRelease files / galore_sdk-0.1.1-py3-none-any.whl
| Download URL | galore_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
851847b8e6878f71b1bc202a5b23f1fa6988a7a05fb930182a6be0ca9b3dfbfe
|
|
BLAKE2b-256 checksum How to use checksums |
a055fd3e37be3748b403478c884ca238d4897e47a65018e5cce21415630f67de
|
| 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 logSecurity for galore-sdk 0.1.1
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.
Attestation for galore_sdk-0.1.1.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 logA 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.