Install Geometer Markets
This content is not available in your language yet.
Geometer Markets ships as one statically linked Go binary (geometer-markets) plus a zero-dependency Python package (geometer-markets) that bundles the matching platform binary. Every core command, every opt-in module (gauntlet, monitor, scenarios, tca), and the embedded local Guard Console compile into this single executable — there are zero per-module Docker containers or extra installs. Pick the installation path that matches your stack.
Option 1: Install with pip (Python and CLI)
Section titled “Option 1: Install with pip (Python and CLI)”If you write bots or strategies in Python, install the geometer-markets package from PyPI:
pip install geometer-marketsPlatform wheels include the geometer-markets binary for:
- macOS (
arm64andamd64) - Linux (
amd64andarm64) - Windows (
amd64)
The Python SDK (geometer_markets.strategy, geometer_markets.guard, geometer_markets.backtest) is open source under Apache-2.0 and uses only the Python standard library (Python 3.11 or newer). Installing the wheel also puts the geometer-markets command on your PATH.
Verify the installation:
geometer-markets --versionOption 2: Standalone Go binary or container image
Section titled “Option 2: Standalone Go binary or container image”If you do not use Python — or you are deploying the Order Guard on a headless Linux server — download the signed release archive for your platform from the Geometer Releases repository under markets/.
Every release includes:
- Platform archives (
macos-arm64,macos-amd64,linux-amd64,linux-arm64,windows-amd64) SHA256SUMSand signature files for checksum verification before unpacking- Software Bill of Materials (SBOM)
- A server container image for headless Linux hosts
Example verification and install on Linux amd64:
# Verify the archive checksum against SHA256SUMS before unpackingsha256sum -c SHA256SUMS --ignore-missing
# Extract and move the binary onto your PATHtar -xzf geometer-markets-linux-amd64.tar.gzinstall -m 0755 geometer-markets ~/.local/bin/geometer-marketsgeometer-markets --versionIf you write strategies in Go, you can also import the Go strategy helpers module and compile standalone binaries that speak the local gm-strategy/1 protocol.
Note on JavaScript and @geometer/markets on npm
Section titled “Note on JavaScript and @geometer/markets on npm”Geometer Markets runs natively as a Go executable with a Python SDK, not as a Node.js runtime. The @geometer/markets npm namespace is reserved for the Geometer brand rather than shipping an active runtime package.
If your trading bot or tooling is written in TypeScript or Node.js, run the geometer-markets guard binary locally and send standard JSON HTTP requests to http://127.0.0.1:7878/v1/ (or /kite/ for Kite Connect shapes) using built-in fetch.
Requirements
Section titled “Requirements”| Need | Details |
|---|---|
| Operating system | macOS, Linux, or Windows (amd64 / arm64). |
| Python (optional) | Python 3.11 or newer if using pip install geometer-markets. |
| Google Cloud CLI (optional) | gcloud installed and signed in to your own Google Cloud project only if you use geometer-markets address create --gcp. |
| Broker API app (live only) | Your own broker developer app credentials; not needed for backtest or paper modes. |
Initialize your first workspace (geometer-markets init)
Section titled “Initialize your first workspace (geometer-markets init)”Run the setup wizard in a new folder:
mkdir my-trading-box && cd my-trading-boxgeometer-markets initThe wizard asks four plain questions:
- Broker: choose
paperto start locally with no broker account, or pick your broker (zerodha,upstox,composite,xts,noren,fyers, orgroww). - Limits: review and confirm the starting
limits.jsonvalues. The wizard displays fixed, generic starting numbers clearly marked as uncustomized defaults and requires your explicit confirmation or edits before writing the file — it never computes limits from your personal capital. - Where it runs:
local(this machine) orserver(a cloud VM). - Starter language:
pythonorgo.
When init finishes, it writes a complete paper workspace:
| File / Directory | Purpose |
|---|---|
config.json |
Loopback Order Guard configuration (127.0.0.1:7878, paper mode by default). |
limits.json |
Validated fail-flat risk limits you confirmed. |
state.db |
Local SQLite state holding hashed local keys, placement claims, and address history. |
vault.enc |
AES-256-GCM encrypted vault (0600) storing your newly generated Ed25519 record-signing key (on desktop, keys can use your OS keychain). |
records/<account>/paper/ |
Initialized hash chain containing the opening limits_change entry and first signed checkpoint. |
bot.py (or bot.go) |
A white-box starter example targeting NSE:NIFTYBEES. |
The wizard prints two important values to your terminal:
- Your scoped paper key (
gm_paper_<key_id>_<secret>), printed once and stored only as a SHA-256 hash. Save it in your environment or secrets manager. - Your full 64-hex Ed25519 public key (
signer_pub_key), which you can pin later when verifying records offline.
Next step
Section titled “Next step”- Follow the Quickstart to run your first deterministic backtest, paper bot, and offline record check in under 10 minutes.
- Run
geometer-markets modulesor read Opt-in modules and Guard Console to previewgauntlet,monitor,scenarios, andtcawith--demo, open the local Guard Console (http://127.0.0.1:7878/admin), or refresh a paid lease withgeometer-markets licence renew.