@quotient-forecasting/cassie-core
v0.2.0
Published
Venue adapters, risk engine, signals, wallet, and sizing primitives for Cassie
Readme
@quotient-forecasting/cassie-core
The engine behind cassie: venue adapters, the strategy engine, the risk module, the encrypted keystore, the signal client, and alerting.
Most people want the CLI, not this package:
npm install --global @quotient-forecasting/cassieInstall this one to build a strategy or a runtime against the same primitives.
npm install @quotient-forecasting/cassie-coreimport { Engine, createAdapter, parseBotConfig } from "@quotient-forecasting/cassie-core";
const config = parseBotConfig(JSON.parse(configJson));
const adapter = createAdapter(config.venue, { urls: config.venueUrls, creds });
const engine = new Engine({ botId: config.id, config, adapter, account, strategy, signals, alerter, state, log });
await engine.tick();Engine.tick is idempotent: it takes a tick id derived from the interval slot and guards
on a monotonic sequence in the StateStore, so a repeated slot is skipped rather than
traded twice. Every order it places passes the risk module first.
Venues: Polymarket and Hyperliquid. Each adapter carries a verifiedAgainst date; SDK
versions are pinned exactly, and a bump has to be re-verified against live venue docs.
