Geometer markets · Framework
Write your strategy once in Python or Go; run backtest, paper and live on one deterministic engine.
Your strategy reads a market view and outputs target positions. The Go engine turns targets into orders, runs them through the Order Guard, and produces the same digest every time a backtest replays.
What it does, and what stays outside it
What Framework handles
- Runs one Go engine across backtest, paper and live modes; strategies talk to it over a versioned local stdio JSON protocol (gm-strategy/1).
- Ships dated, source-cited NSE and BSE reference data: trading calendars, holidays, lot sizes, tick rules, expiry series and dated fee schedules.
- Simulates T+1 delivery settlement, intraday square-off cut-offs, circuit price bands and tick rounding in backtests and paper runs.
- Includes realistic paper trading against live or replayed prices on the same guard and limits file you use live.
- Provides open Apache-2.0 white-box code examples on index instruments and an MCP server so AI agents can trade only within your guard limits.
What it does not do
- Does not include strategies for sale, ranked leaderboards or stock picks.
- Does not sell or redistribute exchange market data — backtests use your broker's historical data or files you supply.
- Does not let live runs skip the Order Guard: live mode always sends orders through the same local guard API.
In practice
A Python strategy — code example only, on an index ETF
Running the same file under backtest, paper or run uses the exact same strategy code, risk checks and charge calculations.
Full reference in the docsfrom geometer_markets import Strategy, run
# Code example only (index ETF) to illustrate the API shape.
class CrossOver(Strategy):
universe = ["NSE:NIFTYBEES"]
every = "5m"
def decide(self, view):
fast = view.sma("NSE:NIFTYBEES", 20)
slow = view.sma("NSE:NIFTYBEES", 50)
if fast is None or slow is None:
return self.hold()
qty = 100 if fast > slow else 0
return self.target(
{"NSE:NIFTYBEES": qty},
reason=f"sma20 {fast:.2f} vs sma50 {slow:.2f}",
)
if __name__ == "__main__":
run(CrossOver) # geometer-markets backtest | paper | runLimits to know upfront
Bring your own data and logic. Geometer Markets supplies the engine, reference tables and guard — never trade ideas, strategies for sale or market-data feeds.
Paper fills are simulations. Live liquidity, slippage and exchange queues can differ from simulated fills, even with realistic fees and price bands.
Deadlines on live strategies. If a strategy process misses its reply deadline three times in a row, the engine trips that strategy's stop switch to no new risk.
The other parts of Geometer markets
- Order GuardSits between your bot and your broker and checks every order before it leaves.
- Static IPv6 AddressOne reserved Mumbai IPv6 address on your own cloud account, bound directly to outgoing broker sockets.
- Signed Record & Daily ReportHash-chained decisions, fills with charges, offline verification and an evening summary.
Try it with pretend orders first
Install it, answer four questions, and test your limits with pretend orders before you go near a live broker.