Premiss MCP
This server allows users to create Python trading strategies and backtest them against historical data for crypto, stocks, and ETFs. It enables discovering markets, testing rules, inspecting trades, and comparing performance against buy-and-hold strategies within a connected workspace.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://app.premissai.com/api/mcp/claudeWhat its tools do
13 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (9)
Can change data (4)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Endpoint and vendor documentation share a domain
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
What you can do with it
- Create Python trading strategies
- Backtest strategies against historical data
- Inspect trades and equity curves
- Compare performance with buy and hold
Source and maintenance
Protocol and capabilities
- Server
- premiss 0.2.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 13 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
13 advertised
get_capabilities — Premiss capabilities
Read this connection's available tools and supported research coverage. Does not read account data, save research, or run a simulation.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"schema_version",
"release_stage",
"available_tools",
"available",
"research_scope",
"unavailable_operations"
],
"properties": {
"available": {
"type": "object",
"required": [
"account_linking",
"historical_simulations",
"saved_research",
"paper_reports"
],
"properties": {
"paper_reports": {
"type": "boolean"
},
"saved_research": {
"type": "boolean"
},
"account_linking": {
"type": "boolean"
},
"historical_simulations": {
"type": "boolean"
}
},
"additionalProperties": false
},
"release_stage": {
"enum": [
"transport_prototype",
"research"
],
"type": "string"
},
"research_scope": {
"type": "object",
"required": [
"market_groups",
"paper_bar_sizes",
"trading_modes",
"max_bars_per_test_feed",
"max_bars_per_dataset",
"strategy_model",
"event_handlers",
"default_entry_sizing",
"portfolio_rebalancing",
"custom_python",
"market_discovery_tool",
"template_shortcuts"
],
"properties": {
"custom_python": {
"type": "boolean",
"const": true
},
"market_groups": {
"type": "array",
"items": {
"type": "object",
"required": [
"group",
"markets",
"examples",
"bar_sizes"
],
"properties": {
"group": {
"enum": [
"crypto",
"index",
"commodity",
"stock"
],
"type": "string"
},
"markets": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"examples": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 5
},
"bar_sizes": {
"type": "array",
"items": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string"
}
}
},
"additionalProperties": false
}
},
"trading_modes": {
"type": "object",
"required": [
"default",
"opt_in"
],
"properties": {
"opt_in": {
"type": "string",
"const": "perpetual"
},
"default": {
"type": "string",
"const": "spot"
}
},
"additionalProperties": false
},
"event_handlers": {
"type": "array",
"items": {
"type": "string"
}
},
"strategy_model": {
"type": "string",
"const": "one_traded_market_with_watched_markets"
},
"paper_bar_sizes": {
"type": "array",
"items": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string"
}
},
"template_shortcuts": {
"type": "array",
"items": {
"enum": [
"sma_crossover",
"rsi_threshold",
"price_channel"
],
"type": "string"
}
},
"default_entry_sizing": {
"type": "string",
"const": "available_unreserved_capital"
},
"max_bars_per_dataset": {
"type": "number",
"const": 100000
},
"market_discovery_tool": {
"type": "string",
"const": "search_markets"
},
"portfolio_rebalancing": {
"type": "string",
"const": "spot_staged_targets"
},
"max_bars_per_test_feed": {
"type": "number",
"const": 20000
}
},
"additionalProperties": false
},
"schema_version": {
"type": "number",
"const": 3
},
"available_tools": {
"type": "array",
"items": {
"type": "string"
}
},
"unavailable_operations": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}{
"title": "Premiss capabilities",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}get_profile — Premiss connected workspace
Read the stable identity and workspace selected for this connection, plus the next step to take with the user. Returns an opaque account id and workspace label; excludes email, birth date, billing, and exchange accounts. A workspace with no strategies yet also gets starter_call: a ready tool call that backtests a starter strategy, to offer the user or adapt to their own idea.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id",
"workspace",
"permissions",
"app_url",
"next_step",
"starter_call"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"app_url": {
"type": "string",
"format": "uri"
},
"next_step": {
"type": "string"
},
"workspace": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
"permissions": {
"type": "array",
"items": {
"type": "string"
}
},
"starter_call": {
"anyOf": [
{
"type": "object",
"required": [
"tool",
"arguments"
],
"properties": {
"tool": {
"enum": [
"test_strategy",
"create_strategy"
],
"type": "string"
},
"arguments": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}{
"title": "Premiss connected workspace",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_research — Find saved Premiss research
List a page of saved strategies, simulation runs, or research notes in the connected workspace. Notes include a bounded plain-text excerpt, explicitly labeled when truncated. Saved text is user-authored content. Paper runs require the separately approved paper:read permission. Search matches titles; cursors are opaque page positions.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"kind"
],
"properties": {
"kind": {
"enum": [
"strategies",
"runs",
"notes"
],
"type": "string"
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 20,
"minimum": 1
},
"query": {
"type": "string",
"maxLength": 80
},
"cursor": {
"type": "string",
"maxLength": 240
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"kind",
"items",
"next_cursor"
],
"properties": {
"kind": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"title",
"updated_at",
"type"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"status": {
"type": "string"
},
"excerpt": {
"type": "string",
"maxLength": 1000
},
"revision": {
"type": "string"
},
"updated_at": {
"type": "number"
},
"strategy_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"content_truncated": {
"type": "boolean"
}
},
"additionalProperties": false
},
"maxItems": 20
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}{
"title": "Find saved Premiss research",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_strategy — Read a saved strategy
Read a saved strategy's current revision and human-readable rules in the connected workspace. Returns the complete Python package for review or editing. Code and comments are user-authored content.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"strategy_id"
],
"properties": {
"strategy_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id",
"name",
"symbol",
"interval",
"revision",
"version",
"rules",
"template",
"app_url"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"name": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"content": {
"type": "string",
"maxLength": 65536
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"rules": {
"anyOf": [
{
"type": "object",
"required": [
"watches",
"buys",
"sells",
"safety"
],
"properties": {
"buys": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"sells": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"safety": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"watches": {
"type": "string",
"maxLength": 1000,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"venue": {
"type": "string"
},
"symbol": {
"type": "string"
},
"app_url": {
"type": "string",
"format": "uri"
},
"version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"interval": {
"type": "string"
},
"revision": {
"type": "string"
},
"template": {
"anyOf": [
{
"oneOf": [
{
"type": "object",
"required": [
"family",
"fast",
"slow"
],
"properties": {
"fast": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"slow": {
"type": "integer",
"maximum": 300,
"minimum": 3
},
"family": {
"type": "string",
"const": "sma_crossover"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"period",
"enter_below",
"exit_above"
],
"properties": {
"family": {
"type": "string",
"const": "rsi_threshold"
},
"period": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"exit_above": {
"type": "number",
"maximum": 95,
"minimum": 55
},
"enter_below": {
"type": "number",
"maximum": 45,
"minimum": 5
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"entry_bars",
"exit_bars"
],
"properties": {
"family": {
"type": "string",
"const": "price_channel"
},
"exit_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
},
"entry_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
}
},
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
},
"specification": {
"type": "object",
"title": "SimulationSpec",
"required": [
"execution_feeds",
"feeds",
"instruments"
],
"properties": {
"feeds": {
"type": "array",
"items": {
"type": "object",
"title": "FeedSpec",
"required": [
"calendar",
"id",
"instrument",
"interval"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"calendar": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"interval": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"lookback": {
"type": "integer",
"default": 500,
"maximum": 5000,
"minimum": 1
},
"adjustment": {
"enum": [
"raw",
"split_adjusted",
"total_return"
],
"type": "string",
"default": "raw"
},
"allow_gaps": {
"type": "boolean",
"default": false
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"required_history": {
"type": "integer",
"default": 1,
"maximum": 5000,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 32,
"minItems": 1
},
"schedules": {
"type": "array",
"items": {
"type": "object",
"title": "ScheduleSpec",
"required": [
"hour",
"id",
"minute",
"timezone",
"weekdays"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"hour": {
"type": "integer",
"maximum": 23,
"minimum": 0
},
"minute": {
"type": "integer",
"maximum": 59,
"minimum": 0
},
"timezone": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"weekdays": {
"type": "array",
"items": {
"type": "integer",
"maximum": 6,
"minimum": 0
},
"maxItems": 7,
"minItems": 1
},
"ambiguous_time": {
"enum": [
"first",
"second"
],
"type": "string",
"default": "first"
},
"nonexistent_time": {
"type": "string",
"const": "skip",
"default": "skip"
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 16
},
"conversions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "FixedConversion",
"required": [
"assumption",
"currency",
"rate"
],
"properties": {
"kind": {
"type": "string",
"const": "fixed",
"default": "fixed"
},
"rate": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"assumption": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "FeedConversion",
"required": [
"currency",
"feed_id"
],
"properties": {
"kind": {
"type": "string",
"const": "feed",
"default": "feed"
},
"feed_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"inverted": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]
},
"default": [],
"maxItems": 16
},
"instruments": {
"type": "array",
"items": {
"type": "object",
"title": "InstrumentSpec",
"required": [
"asset_class",
"id",
"quantity_step",
"quote_currency",
"symbol",
"venue"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"venue": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"symbol": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"perpetual": {
"anyOf": [
{
"type": "object",
"title": "PerpetualSpec",
"required": [
"contract",
"funding_interval_ms",
"leverage",
"liquidation",
"margin_mode",
"margin_tiers",
"price_basis"
],
"properties": {
"contract": {
"type": "string",
"const": "linear"
},
"leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"liquidation": {
"type": "string",
"const": "hyperliquid_isolated_v1"
},
"margin_mode": {
"type": "string",
"const": "isolated"
},
"price_basis": {
"type": "string",
"const": "execution_trades"
},
"margin_tiers": {
"type": "array",
"items": {
"type": "object",
"title": "MarginTier",
"required": [
"lower_bound",
"max_leverage"
],
"properties": {
"lower_bound": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"max_leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1
},
"min_order_notional": {
"type": "string",
"default": "10",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"funding_interval_ms": {
"type": "number",
"const": 3600000
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"allow_short": {
"type": "boolean",
"default": false
},
"asset_class": {
"enum": [
"crypto",
"equity",
"etf",
"stock",
"index",
"commodity"
],
"type": "string"
},
"base_currency": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
{
"type": "null"
}
],
"default": null
},
"quantity_step": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"schema_version": {
"type": "number",
"const": 2,
"default": 2
},
"execution_feeds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"maxItems": 16,
"minItems": 1
},
"conditional_fills": {
"enum": [
"completed_bar_touch",
"live_range_touch",
"minute_clock"
],
"type": "string",
"default": "live_range_touch"
},
"intrabar_ambiguity": {
"enum": [
"reject",
"minute_detail_stop_first"
],
"type": "string",
"default": "minute_detail_stop_first"
},
"reporting_currency": {
"type": "string",
"default": "USD",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"fill_callback_orders": {
"enum": [
"next_execution_bar",
"next_trading_minute"
],
"type": "string",
"default": "next_trading_minute"
}
},
"additionalProperties": false
},
"engine_version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
},
"additionalProperties": false
}{
"title": "Read a saved strategy",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}search_markets — Find supported markets
Search the markets Premiss covers by name, ticker or alias (bitcoin, BTCUSDT, SPY, gold, oil): crypto, indices, commodities and US stocks. Returns registry ids with their class, tier (full, or history only with daily paper bots) and bar sizes. A miss returns the closest markets. Does not return prices or bars.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"group": {
"enum": [
"crypto",
"index",
"commodity",
"stock"
],
"type": "string"
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 60,
"minimum": 1
},
"query": {
"type": "string",
"default": "",
"maxLength": 120
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"match",
"markets"
],
"properties": {
"match": {
"enum": [
"exact",
"closest",
"all"
],
"type": "string"
},
"markets": {
"type": "array",
"items": {
"type": "object",
"required": [
"market",
"name",
"group",
"kind",
"tier",
"aliases",
"hours",
"status",
"history_from",
"bar_sizes",
"paper_bar_sizes"
],
"properties": {
"kind": {
"enum": [
"crypto",
"stock",
"etf",
"index",
"commodity"
],
"type": "string"
},
"name": {
"type": "string"
},
"tier": {
"enum": [
"full",
"history_only"
],
"type": "string"
},
"group": {
"enum": [
"crypto",
"index",
"commodity",
"stock"
],
"type": "string"
},
"hours": {
"enum": [
"24/7",
"US market hours",
"NYMEX trading days"
],
"type": "string"
},
"market": {
"type": "string"
},
"status": {
"enum": [
"active",
"live_only",
"closing",
"closed"
],
"type": "string"
},
"aliases": {
"type": "array",
"items": {
"type": "string"
}
},
"bar_sizes": {
"type": "array",
"items": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string"
}
},
"history_from": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"paper_bar_sizes": {
"type": "array",
"items": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string"
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}{
"title": "Find supported markets",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}describe_market — Check market coverage
Return one market's bar sizes and stored history, the bar sizes backtests run on, paper-bot bar sizes, trading modes, price sources and data notes. Pass a market id or alias such as BTC, SP500, NVDA or GOLD. Does not return prices or bars.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"market"
],
"properties": {
"market": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Market id or alias from search_markets, such as BTC, SP500, NVDA or GOLD."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"market",
"name",
"group",
"kind",
"tier",
"aliases",
"hours",
"status",
"history_from",
"bar_sizes",
"paper_bar_sizes",
"last_close",
"closing_on",
"stopped_on",
"held",
"backtest_bar_sizes",
"trading_modes",
"max_leverage",
"cutover_at",
"sources",
"notes",
"attribution"
],
"properties": {
"held": {
"anyOf": [
{
"type": "object",
"required": [
"from",
"reason"
],
"properties": {
"from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"reason": {
"enum": [
"split",
"ticker_change"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"kind": {
"enum": [
"crypto",
"stock",
"etf",
"index",
"commodity"
],
"type": "string"
},
"name": {
"type": "string"
},
"tier": {
"enum": [
"full",
"history_only"
],
"type": "string"
},
"group": {
"enum": [
"crypto",
"index",
"commodity",
"stock"
],
"type": "string"
},
"hours": {
"enum": [
"24/7",
"US market hours",
"NYMEX trading days"
],
"type": "string"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"market": {
"type": "string"
},
"status": {
"enum": [
"active",
"live_only",
"closing",
"closed"
],
"type": "string"
},
"aliases": {
"type": "array",
"items": {
"type": "string"
}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"source",
"from",
"to",
"proxy"
],
"properties": {
"to": {
"type": "number"
},
"from": {
"type": "number"
},
"proxy": {
"anyOf": [
{
"type": "object",
"required": [
"symbol",
"ratio"
],
"properties": {
"ratio": {
"type": "number"
},
"symbol": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"source": {
"enum": [
"binance",
"iex",
"eia",
"hyperliquid"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"bar_sizes": {
"type": "array",
"items": {
"type": "object",
"required": [
"bar_size",
"history_from",
"last_close"
],
"properties": {
"bar_size": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string"
},
"last_close": {
"type": [
"number",
"null"
]
},
"history_from": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"closing_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"cutover_at": {
"type": [
"number",
"null"
]
},
"last_close": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"stopped_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"attribution": {
"type": "array",
"items": {
"type": "string"
}
},
"history_from": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"max_leverage": {
"type": [
"number",
"null"
]
},
"trading_modes": {
"type": "array",
"items": {
"enum": [
"spot",
"perpetual"
],
"type": "string"
}
},
"paper_bar_sizes": {
"type": "array",
"items": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string"
}
},
"backtest_bar_sizes": {
"type": "array",
"items": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string"
}
}
},
"additionalProperties": false
}{
"title": "Check market coverage",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_strategy_guide — Read the strategy Python API
Read Premiss's Python package format, the event strategy API (on_bar, on_schedule, on_fill and the other handlers), spot and perpetual modes, execution timing and examples. Custom indicators, entry/exit logic and risk rules use the same engine as the Premiss app.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"guide"
],
"properties": {
"guide": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Read the strategy Python API",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}create_strategy — Save a strategy
Save a new private strategy using custom Python files and complete rules text, on any Premiss-supported market and timeframe. Accepts either files (strategy.py plus helper modules) and rules, or a convenience template. Uses the same package format as the app. Custom code is loaded in the sandbox before saving. Returns code and revision; saving does not run a backtest.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"request_key",
"name",
"symbol",
"interval"
],
"properties": {
"name": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"content": {
"type": "string",
"maxLength": 65536
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"rules": {
"type": "object",
"required": [
"watches",
"buys",
"sells",
"safety"
],
"properties": {
"buys": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"sells": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"safety": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"watches": {
"type": "string",
"maxLength": 1000,
"minLength": 1
}
},
"additionalProperties": false
},
"symbol": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Market id or alias from search_markets, such as BTC, SP500, NVDA or GOLD."
},
"interval": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string",
"description": "Bar size the strategy trades. Each market's bar sizes are in describe_market. Backtests run on every bar size the market offers; paper bots run on 1h bars and longer on every plan and on 5m bars and longer on Pro."
},
"template": {
"oneOf": [
{
"type": "object",
"required": [
"family",
"fast",
"slow"
],
"properties": {
"fast": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"slow": {
"type": "integer",
"maximum": 300,
"minimum": 3
},
"family": {
"type": "string",
"const": "sma_crossover"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"period",
"enter_below",
"exit_above"
],
"properties": {
"family": {
"type": "string",
"const": "rsi_threshold"
},
"period": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"exit_above": {
"type": "number",
"maximum": 95,
"minimum": 55
},
"enter_below": {
"type": "number",
"maximum": 45,
"minimum": 5
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"entry_bars",
"exit_bars"
],
"properties": {
"family": {
"type": "string",
"const": "price_channel"
},
"exit_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
},
"entry_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
}
},
"additionalProperties": false
}
]
},
"request_key": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Idempotency UUID identifying one requested write and its unchanged arguments."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id",
"name",
"symbol",
"interval",
"revision",
"version",
"rules",
"template",
"app_url"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"name": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"content": {
"type": "string",
"maxLength": 65536
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"rules": {
"anyOf": [
{
"type": "object",
"required": [
"watches",
"buys",
"sells",
"safety"
],
"properties": {
"buys": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"sells": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"safety": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"watches": {
"type": "string",
"maxLength": 1000,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"venue": {
"type": "string"
},
"symbol": {
"type": "string"
},
"app_url": {
"type": "string",
"format": "uri"
},
"version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"interval": {
"type": "string"
},
"revision": {
"type": "string"
},
"template": {
"anyOf": [
{
"oneOf": [
{
"type": "object",
"required": [
"family",
"fast",
"slow"
],
"properties": {
"fast": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"slow": {
"type": "integer",
"maximum": 300,
"minimum": 3
},
"family": {
"type": "string",
"const": "sma_crossover"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"period",
"enter_below",
"exit_above"
],
"properties": {
"family": {
"type": "string",
"const": "rsi_threshold"
},
"period": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"exit_above": {
"type": "number",
"maximum": 95,
"minimum": 55
},
"enter_below": {
"type": "number",
"maximum": 45,
"minimum": 5
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"entry_bars",
"exit_bars"
],
"properties": {
"family": {
"type": "string",
"const": "price_channel"
},
"exit_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
},
"entry_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
}
},
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
},
"specification": {
"type": "object",
"title": "SimulationSpec",
"required": [
"execution_feeds",
"feeds",
"instruments"
],
"properties": {
"feeds": {
"type": "array",
"items": {
"type": "object",
"title": "FeedSpec",
"required": [
"calendar",
"id",
"instrument",
"interval"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"calendar": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"interval": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"lookback": {
"type": "integer",
"default": 500,
"maximum": 5000,
"minimum": 1
},
"adjustment": {
"enum": [
"raw",
"split_adjusted",
"total_return"
],
"type": "string",
"default": "raw"
},
"allow_gaps": {
"type": "boolean",
"default": false
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"required_history": {
"type": "integer",
"default": 1,
"maximum": 5000,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 32,
"minItems": 1
},
"schedules": {
"type": "array",
"items": {
"type": "object",
"title": "ScheduleSpec",
"required": [
"hour",
"id",
"minute",
"timezone",
"weekdays"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"hour": {
"type": "integer",
"maximum": 23,
"minimum": 0
},
"minute": {
"type": "integer",
"maximum": 59,
"minimum": 0
},
"timezone": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"weekdays": {
"type": "array",
"items": {
"type": "integer",
"maximum": 6,
"minimum": 0
},
"maxItems": 7,
"minItems": 1
},
"ambiguous_time": {
"enum": [
"first",
"second"
],
"type": "string",
"default": "first"
},
"nonexistent_time": {
"type": "string",
"const": "skip",
"default": "skip"
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 16
},
"conversions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "FixedConversion",
"required": [
"assumption",
"currency",
"rate"
],
"properties": {
"kind": {
"type": "string",
"const": "fixed",
"default": "fixed"
},
"rate": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"assumption": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "FeedConversion",
"required": [
"currency",
"feed_id"
],
"properties": {
"kind": {
"type": "string",
"const": "feed",
"default": "feed"
},
"feed_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"inverted": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]
},
"default": [],
"maxItems": 16
},
"instruments": {
"type": "array",
"items": {
"type": "object",
"title": "InstrumentSpec",
"required": [
"asset_class",
"id",
"quantity_step",
"quote_currency",
"symbol",
"venue"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"venue": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"symbol": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"perpetual": {
"anyOf": [
{
"type": "object",
"title": "PerpetualSpec",
"required": [
"contract",
"funding_interval_ms",
"leverage",
"liquidation",
"margin_mode",
"margin_tiers",
"price_basis"
],
"properties": {
"contract": {
"type": "string",
"const": "linear"
},
"leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"liquidation": {
"type": "string",
"const": "hyperliquid_isolated_v1"
},
"margin_mode": {
"type": "string",
"const": "isolated"
},
"price_basis": {
"type": "string",
"const": "execution_trades"
},
"margin_tiers": {
"type": "array",
"items": {
"type": "object",
"title": "MarginTier",
"required": [
"lower_bound",
"max_leverage"
],
"properties": {
"lower_bound": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"max_leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1
},
"min_order_notional": {
"type": "string",
"default": "10",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"funding_interval_ms": {
"type": "number",
"const": 3600000
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"allow_short": {
"type": "boolean",
"default": false
},
"asset_class": {
"enum": [
"crypto",
"equity",
"etf",
"stock",
"index",
"commodity"
],
"type": "string"
},
"base_currency": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
{
"type": "null"
}
],
"default": null
},
"quantity_step": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"schema_version": {
"type": "number",
"const": 2,
"default": 2
},
"execution_feeds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"maxItems": 16,
"minItems": 1
},
"conditional_fills": {
"enum": [
"completed_bar_touch",
"live_range_touch",
"minute_clock"
],
"type": "string",
"default": "live_range_touch"
},
"intrabar_ambiguity": {
"enum": [
"reject",
"minute_detail_stop_first"
],
"type": "string",
"default": "minute_detail_stop_first"
},
"reporting_currency": {
"type": "string",
"default": "USD",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"fill_callback_orders": {
"enum": [
"next_execution_bar",
"next_trading_minute"
],
"type": "string",
"default": "next_trading_minute"
}
},
"additionalProperties": false
},
"engine_version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
},
"additionalProperties": false
}{
"title": "Save a strategy",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}update_strategy — Edit a strategy
Replace the complete Python package and rules of an existing strategy using its exact current saved revision. Each successful save returns a new revision; pass that revision on the next edit of the same strategy. The submitted package replaces all existing files. The code is loaded in the sandbox before saving. Supports all Premiss markets and timeframes. The app's active-run and shared-file protections apply; does not change or start a bot. Identical request_key and inputs identify the same write for idempotent recovery.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"request_key",
"strategy_id",
"revision",
"symbol",
"interval",
"files",
"rules"
],
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"content": {
"type": "string",
"maxLength": 65536
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"rules": {
"type": "object",
"required": [
"watches",
"buys",
"sells",
"safety"
],
"properties": {
"buys": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"sells": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"safety": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"watches": {
"type": "string",
"maxLength": 1000,
"minLength": 1
}
},
"additionalProperties": false
},
"symbol": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Market id or alias from search_markets, such as BTC, SP500, NVDA or GOLD."
},
"interval": {
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1d",
"1w"
],
"type": "string",
"description": "Bar size the strategy trades. Each market's bar sizes are in describe_market. Backtests run on every bar size the market offers; paper bots run on 1h bars and longer on every plan and on 5m bars and longer on Pro."
},
"revision": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"request_key": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Idempotency UUID identifying one requested write and its unchanged arguments."
},
"strategy_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id",
"name",
"symbol",
"interval",
"revision",
"version",
"rules",
"template",
"app_url"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"name": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"content": {
"type": "string",
"maxLength": 65536
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"rules": {
"anyOf": [
{
"type": "object",
"required": [
"watches",
"buys",
"sells",
"safety"
],
"properties": {
"buys": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"sells": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"safety": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"watches": {
"type": "string",
"maxLength": 1000,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"venue": {
"type": "string"
},
"symbol": {
"type": "string"
},
"app_url": {
"type": "string",
"format": "uri"
},
"version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"interval": {
"type": "string"
},
"revision": {
"type": "string"
},
"template": {
"anyOf": [
{
"oneOf": [
{
"type": "object",
"required": [
"family",
"fast",
"slow"
],
"properties": {
"fast": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"slow": {
"type": "integer",
"maximum": 300,
"minimum": 3
},
"family": {
"type": "string",
"const": "sma_crossover"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"period",
"enter_below",
"exit_above"
],
"properties": {
"family": {
"type": "string",
"const": "rsi_threshold"
},
"period": {
"type": "integer",
"maximum": 100,
"minimum": 2
},
"exit_above": {
"type": "number",
"maximum": 95,
"minimum": 55
},
"enter_below": {
"type": "number",
"maximum": 45,
"minimum": 5
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"family",
"entry_bars",
"exit_bars"
],
"properties": {
"family": {
"type": "string",
"const": "price_channel"
},
"exit_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
},
"entry_bars": {
"type": "integer",
"maximum": 300,
"minimum": 2
}
},
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
},
"specification": {
"type": "object",
"title": "SimulationSpec",
"required": [
"execution_feeds",
"feeds",
"instruments"
],
"properties": {
"feeds": {
"type": "array",
"items": {
"type": "object",
"title": "FeedSpec",
"required": [
"calendar",
"id",
"instrument",
"interval"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"calendar": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"interval": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"lookback": {
"type": "integer",
"default": 500,
"maximum": 5000,
"minimum": 1
},
"adjustment": {
"enum": [
"raw",
"split_adjusted",
"total_return"
],
"type": "string",
"default": "raw"
},
"allow_gaps": {
"type": "boolean",
"default": false
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"required_history": {
"type": "integer",
"default": 1,
"maximum": 5000,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 32,
"minItems": 1
},
"schedules": {
"type": "array",
"items": {
"type": "object",
"title": "ScheduleSpec",
"required": [
"hour",
"id",
"minute",
"timezone",
"weekdays"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"hour": {
"type": "integer",
"maximum": 23,
"minimum": 0
},
"minute": {
"type": "integer",
"maximum": 59,
"minimum": 0
},
"timezone": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"weekdays": {
"type": "array",
"items": {
"type": "integer",
"maximum": 6,
"minimum": 0
},
"maxItems": 7,
"minItems": 1
},
"ambiguous_time": {
"enum": [
"first",
"second"
],
"type": "string",
"default": "first"
},
"nonexistent_time": {
"type": "string",
"const": "skip",
"default": "skip"
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 16
},
"conversions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "FixedConversion",
"required": [
"assumption",
"currency",
"rate"
],
"properties": {
"kind": {
"type": "string",
"const": "fixed",
"default": "fixed"
},
"rate": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"assumption": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "FeedConversion",
"required": [
"currency",
"feed_id"
],
"properties": {
"kind": {
"type": "string",
"const": "feed",
"default": "feed"
},
"feed_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"inverted": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]
},
"default": [],
"maxItems": 16
},
"instruments": {
"type": "array",
"items": {
"type": "object",
"title": "InstrumentSpec",
"required": [
"asset_class",
"id",
"quantity_step",
"quote_currency",
"symbol",
"venue"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"venue": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"symbol": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"perpetual": {
"anyOf": [
{
"type": "object",
"title": "PerpetualSpec",
"required": [
"contract",
"funding_interval_ms",
"leverage",
"liquidation",
"margin_mode",
"margin_tiers",
"price_basis"
],
"properties": {
"contract": {
"type": "string",
"const": "linear"
},
"leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"liquidation": {
"type": "string",
"const": "hyperliquid_isolated_v1"
},
"margin_mode": {
"type": "string",
"const": "isolated"
},
"price_basis": {
"type": "string",
"const": "execution_trades"
},
"margin_tiers": {
"type": "array",
"items": {
"type": "object",
"title": "MarginTier",
"required": [
"lower_bound",
"max_leverage"
],
"properties": {
"lower_bound": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"max_leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1
},
"min_order_notional": {
"type": "string",
"default": "10",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"funding_interval_ms": {
"type": "number",
"const": 3600000
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"allow_short": {
"type": "boolean",
"default": false
},
"asset_class": {
"enum": [
"crypto",
"equity",
"etf",
"stock",
"index",
"commodity"
],
"type": "string"
},
"base_currency": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
{
"type": "null"
}
],
"default": null
},
"quantity_step": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"schema_version": {
"type": "number",
"const": 2,
"default": 2
},
"execution_feeds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"maxItems": 16,
"minItems": 1
},
"conditional_fills": {
"enum": [
"completed_bar_touch",
"live_range_touch",
"minute_clock"
],
"type": "string",
"default": "live_range_touch"
},
"intrabar_ambiguity": {
"enum": [
"reject",
"minute_detail_stop_first"
],
"type": "string",
"default": "minute_detail_stop_first"
},
"reporting_currency": {
"type": "string",
"default": "USD",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"fill_callback_orders": {
"enum": [
"next_execution_bar",
"next_trading_minute"
],
"type": "string",
"default": "next_trading_minute"
}
},
"additionalProperties": false
},
"engine_version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
},
"additionalProperties": false
}{
"title": "Edit a strategy",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}start_backtest — Start a historical backtest
Queue a backtest of any saved strategy in the connected workspace; the run records a spot buy-and-hold of its traded market beside it. Accepts custom code and existing app strategies. Uses the app's sandbox validation, supported markets, bar sizes and date rules; a test uses up to 20,000 bars per feed, and a fitted period is stated in adjustments. Requires the exact saved revision. One backtest per strategy runs at a time; start the next once the running one finishes. Uses 10,000 simulated capital and the costs the strategy carries: Hyperliquid's taker fee of 0.045% per trade when it runs as a perpetual and no costs as spot for a strategy created now, zero for one saved earlier. The report states the costs a run used. Returns an acceptance receipt with run ids, revision (the strategy revision to pass to start_backtest again), tested_revision (the tested code and parameters), queue (runs ahead in the shared backtest queue and an estimated wait) and poll_after_seconds, the interval before the next status check. Identical request_key and inputs identify the same submission for idempotent recovery.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"request_key",
"strategy_id",
"revision",
"start_date"
],
"properties": {
"end_date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"revision": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"start_date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"request_key": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Idempotency UUID identifying one requested write and its unchanged arguments."
},
"strategy_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"run_id",
"strategy_id",
"revision",
"start_ts",
"end_ts",
"total_bars",
"status",
"app_url",
"poll_after_seconds",
"request_key"
],
"properties": {
"queue": {
"anyOf": [
{
"type": "object",
"required": [
"runs_ahead",
"estimated_wait_seconds",
"poll_after_seconds"
],
"properties": {
"runs_ahead": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"poll_after_seconds": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"estimated_wait_seconds": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"end_ts": {
"type": "number"
},
"run_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"status": {
"type": "string",
"const": "accepted"
},
"app_url": {
"type": "string",
"format": "uri"
},
"revision": {
"type": "string"
},
"start_ts": {
"type": "number"
},
"data_note": {
"type": "string"
},
"total_bars": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "null"
}
]
},
"adjustments": {
"type": "array",
"items": {
"type": "string"
}
},
"request_key": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"strategy_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"warmup_from": {
"type": "number"
},
"tested_rules": {
"anyOf": [
{
"type": "object",
"required": [
"watches",
"buys",
"sells",
"safety"
],
"properties": {
"buys": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"sells": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"safety": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"watches": {
"type": "string",
"maxLength": 1000,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"specification": {
"type": "object",
"title": "SimulationSpec",
"required": [
"execution_feeds",
"feeds",
"instruments"
],
"properties": {
"feeds": {
"type": "array",
"items": {
"type": "object",
"title": "FeedSpec",
"required": [
"calendar",
"id",
"instrument",
"interval"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"calendar": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"interval": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"lookback": {
"type": "integer",
"default": 500,
"maximum": 5000,
"minimum": 1
},
"adjustment": {
"enum": [
"raw",
"split_adjusted",
"total_return"
],
"type": "string",
"default": "raw"
},
"allow_gaps": {
"type": "boolean",
"default": false
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"required_history": {
"type": "integer",
"default": 1,
"maximum": 5000,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 32,
"minItems": 1
},
"schedules": {
"type": "array",
"items": {
"type": "object",
"title": "ScheduleSpec",
"required": [
"hour",
"id",
"minute",
"timezone",
"weekdays"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"hour": {
"type": "integer",
"maximum": 23,
"minimum": 0
},
"minute": {
"type": "integer",
"maximum": 59,
"minimum": 0
},
"timezone": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"weekdays": {
"type": "array",
"items": {
"type": "integer",
"maximum": 6,
"minimum": 0
},
"maxItems": 7,
"minItems": 1
},
"ambiguous_time": {
"enum": [
"first",
"second"
],
"type": "string",
"default": "first"
},
"nonexistent_time": {
"type": "string",
"const": "skip",
"default": "skip"
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 16
},
"conversions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "FixedConversion",
"required": [
"assumption",
"currency",
"rate"
],
"properties": {
"kind": {
"type": "string",
"const": "fixed",
"default": "fixed"
},
"rate": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"assumption": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "FeedConversion",
"required": [
"currency",
"feed_id"
],
"properties": {
"kind": {
"type": "string",
"const": "feed",
"default": "feed"
},
"feed_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"inverted": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]
},
"default": [],
"maxItems": 16
},
"instruments": {
"type": "array",
"items": {
"type": "object",
"title": "InstrumentSpec",
"required": [
"asset_class",
"id",
"quantity_step",
"quote_currency",
"symbol",
"venue"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"venue": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"symbol": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"perpetual": {
"anyOf": [
{
"type": "object",
"title": "PerpetualSpec",
"required": [
"contract",
"funding_interval_ms",
"leverage",
"liquidation",
"margin_mode",
"margin_tiers",
"price_basis"
],
"properties": {
"contract": {
"type": "string",
"const": "linear"
},
"leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"liquidation": {
"type": "string",
"const": "hyperliquid_isolated_v1"
},
"margin_mode": {
"type": "string",
"const": "isolated"
},
"price_basis": {
"type": "string",
"const": "execution_trades"
},
"margin_tiers": {
"type": "array",
"items": {
"type": "object",
"title": "MarginTier",
"required": [
"lower_bound",
"max_leverage"
],
"properties": {
"lower_bound": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"max_leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1
},
"min_order_notional": {
"type": "string",
"default": "10",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"funding_interval_ms": {
"type": "number",
"const": 3600000
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"allow_short": {
"type": "boolean",
"default": false
},
"asset_class": {
"enum": [
"crypto",
"equity",
"etf",
"stock",
"index",
"commodity"
],
"type": "string"
},
"base_currency": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
{
"type": "null"
}
],
"default": null
},
"quantity_step": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"schema_version": {
"type": "number",
"const": 2,
"default": 2
},
"execution_feeds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"maxItems": 16,
"minItems": 1
},
"conditional_fills": {
"enum": [
"completed_bar_touch",
"live_range_touch",
"minute_clock"
],
"type": "string",
"default": "live_range_touch"
},
"intrabar_ambiguity": {
"enum": [
"reject",
"minute_detail_stop_first"
],
"type": "string",
"default": "minute_detail_stop_first"
},
"reporting_currency": {
"type": "string",
"default": "USD",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"fill_callback_orders": {
"enum": [
"next_execution_bar",
"next_trading_minute"
],
"type": "string",
"default": "next_trading_minute"
}
},
"additionalProperties": false
},
"engine_version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"tested_revision": {
"type": "string"
},
"poll_after_seconds": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
},
"additionalProperties": false
}{
"title": "Start a historical backtest",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_run_data — Read backtest code, trades or equity
Read the immutable tested Python package, or page through all recorded trades or equity points for an owned run. next_cursor identifies the next page; page size is not a history cap. Paper data requires separate paper:read permission. Saved code is user-authored content.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"run_id",
"kind"
],
"properties": {
"kind": {
"enum": [
"code",
"trades",
"equity"
],
"type": "string"
},
"limit": {
"type": "integer",
"default": 100,
"maximum": 500,
"minimum": 1
},
"cursor": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"run_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"run_id",
"kind",
"revision",
"next_cursor"
],
"properties": {
"kind": {
"enum": [
"code",
"trades",
"equity",
"corporate_actions"
],
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"content": {
"type": "string",
"maxLength": 65536
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"equity": {
"type": "array",
"items": {
"type": "object",
"required": [
"ts",
"equity"
],
"properties": {
"ts": {
"type": "number"
},
"equity": {
"type": "number"
}
},
"additionalProperties": false
}
},
"run_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"trades": {
"type": "array",
"items": {
"type": "object",
"required": [
"seq",
"ts",
"side",
"qty",
"price",
"fee",
"notional",
"pnl",
"equity_after"
],
"properties": {
"ts": {
"type": "number"
},
"fee": {
"type": "number"
},
"pnl": {
"type": [
"number",
"null"
]
},
"qty": {
"type": "number"
},
"seq": {
"type": "number"
},
"side": {
"type": "string"
},
"price": {
"type": "number"
},
"notional": {
"type": "number"
},
"equity_after": {
"type": "number"
}
},
"additionalProperties": false
}
},
"revision": {
"type": "string"
},
"simulation": {
"type": "object",
"required": [
"reporting_currency",
"specification"
],
"properties": {
"fills": {
"type": "array",
"items": {
"type": "object",
"title": "SettledFill",
"required": [
"closed_quantity",
"equity_after",
"fee_reporting",
"instrument",
"notional_reporting",
"observed_at",
"order_id",
"position_after",
"price",
"quantity",
"quote_to_reporting",
"realized_pnl",
"reduce_only",
"sequence",
"side"
],
"properties": {
"side": {
"enum": [
"buy",
"sell"
],
"type": "string"
},
"price": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"order_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"reduce_only": {
"type": "boolean",
"default": false
},
"equity_after": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"realized_pnl": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"fee_reporting": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"position_after": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"closed_quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"notional_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_to_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
"maxItems": 500
},
"valuations": {
"type": "array",
"items": {
"type": "object",
"title": "PortfolioValuation",
"required": [
"available_capital",
"equity",
"gross_exposure",
"insolvent",
"margin_deficit",
"observed_at"
],
"properties": {
"equity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"margin": {
"anyOf": [
{
"type": "object",
"title": "MarginValuation",
"required": [
"isolated_margin",
"liquidation_price",
"maintenance_margin"
],
"properties": {
"isolated_margin": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"liquidation_price": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"maintenance_margin": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"insolvent": {
"type": "boolean"
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"gross_exposure": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"margin_deficit": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"available_capital": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
"maxItems": 500
},
"specification": {
"type": "object",
"title": "SimulationSpec",
"required": [
"execution_feeds",
"feeds",
"instruments"
],
"properties": {
"feeds": {
"type": "array",
"items": {
"type": "object",
"title": "FeedSpec",
"required": [
"calendar",
"id",
"instrument",
"interval"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"calendar": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"interval": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"lookback": {
"type": "integer",
"default": 500,
"maximum": 5000,
"minimum": 1
},
"adjustment": {
"enum": [
"raw",
"split_adjusted",
"total_return"
],
"type": "string",
"default": "raw"
},
"allow_gaps": {
"type": "boolean",
"default": false
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"required_history": {
"type": "integer",
"default": 1,
"maximum": 5000,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 32,
"minItems": 1
},
"schedules": {
"type": "array",
"items": {
"type": "object",
"title": "ScheduleSpec",
"required": [
"hour",
"id",
"minute",
"timezone",
"weekdays"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"hour": {
"type": "integer",
"maximum": 23,
"minimum": 0
},
"minute": {
"type": "integer",
"maximum": 59,
"minimum": 0
},
"timezone": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"weekdays": {
"type": "array",
"items": {
"type": "integer",
"maximum": 6,
"minimum": 0
},
"maxItems": 7,
"minItems": 1
},
"ambiguous_time": {
"enum": [
"first",
"second"
],
"type": "string",
"default": "first"
},
"nonexistent_time": {
"type": "string",
"const": "skip",
"default": "skip"
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 16
},
"conversions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "FixedConversion",
"required": [
"assumption",
"currency",
"rate"
],
"properties": {
"kind": {
"type": "string",
"const": "fixed",
"default": "fixed"
},
"rate": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"assumption": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "FeedConversion",
"required": [
"currency",
"feed_id"
],
"properties": {
"kind": {
"type": "string",
"const": "feed",
"default": "feed"
},
"feed_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"inverted": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]
},
"default": [],
"maxItems": 16
},
"instruments": {
"type": "array",
"items": {
"type": "object",
"title": "InstrumentSpec",
"required": [
"asset_class",
"id",
"quantity_step",
"quote_currency",
"symbol",
"venue"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"venue": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"symbol": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"perpetual": {
"anyOf": [
{
"type": "object",
"title": "PerpetualSpec",
"required": [
"contract",
"funding_interval_ms",
"leverage",
"liquidation",
"margin_mode",
"margin_tiers",
"price_basis"
],
"properties": {
"contract": {
"type": "string",
"const": "linear"
},
"leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"liquidation": {
"type": "string",
"const": "hyperliquid_isolated_v1"
},
"margin_mode": {
"type": "string",
"const": "isolated"
},
"price_basis": {
"type": "string",
"const": "execution_trades"
},
"margin_tiers": {
"type": "array",
"items": {
"type": "object",
"title": "MarginTier",
"required": [
"lower_bound",
"max_leverage"
],
"properties": {
"lower_bound": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"max_leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1
},
"min_order_notional": {
"type": "string",
"default": "10",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"funding_interval_ms": {
"type": "number",
"const": 3600000
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"allow_short": {
"type": "boolean",
"default": false
},
"asset_class": {
"enum": [
"crypto",
"equity",
"etf",
"stock",
"index",
"commodity"
],
"type": "string"
},
"base_currency": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
{
"type": "null"
}
],
"default": null
},
"quantity_step": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"schema_version": {
"type": "number",
"const": 2,
"default": 2
},
"execution_feeds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"maxItems": 16,
"minItems": 1
},
"conditional_fills": {
"enum": [
"completed_bar_touch",
"live_range_touch",
"minute_clock"
],
"type": "string",
"default": "live_range_touch"
},
"intrabar_ambiguity": {
"enum": [
"reject",
"minute_detail_stop_first"
],
"type": "string",
"default": "minute_detail_stop_first"
},
"reporting_currency": {
"type": "string",
"default": "USD",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"fill_callback_orders": {
"enum": [
"next_execution_bar",
"next_trading_minute"
],
"type": "string",
"default": "next_trading_minute"
}
},
"additionalProperties": false
},
"corporate_actions": {
"type": "array",
"items": {
"type": "object",
"title": "SplitSettlement",
"required": [
"after_fill_sequence",
"cost_basis_reporting",
"entry_fee_basis_reporting",
"observed_at",
"order_adjustments",
"phase",
"position_after",
"position_before",
"record",
"sequence"
],
"properties": {
"phase": {
"type": "string",
"const": "applied",
"default": "applied"
},
"record": {
"type": "object",
"title": "ActiveStockSplit",
"required": [
"effective_at",
"event_id",
"instrument",
"published_at",
"ratio_new",
"ratio_old",
"record_id",
"state"
],
"properties": {
"state": {
"type": "string",
"const": "active",
"default": "active"
},
"event_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ratio_new": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"ratio_old": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"record_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"effective_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"published_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
"sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"position_after": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"position_before": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"order_adjustments": {
"type": "array",
"items": {
"type": "object",
"title": "SplitOrderAdjustment",
"required": [
"order_id",
"quantity_after",
"quantity_before",
"trigger_after",
"trigger_before"
],
"properties": {
"order_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"trigger_after": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"quantity_after": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"trigger_before": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"quantity_before": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 256
},
"after_fill_sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"cost_basis_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"entry_fee_basis_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
"maxItems": 500
},
"reporting_currency": {
"type": "string"
}
},
"additionalProperties": false
},
"next_cursor": {
"type": [
"number",
"string",
"null"
]
}
},
"additionalProperties": false
}{
"title": "Read backtest code, trades or equity",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_run_report — Read historical or paper evidence
Read the status and bounded performance report for one run in the connected workspace. Returns the tested market, interval, revision (the tested code), strategy_revision (the strategy's current revision, accepted by start_backtest and update_strategy), recorded rules when verifiable, the run's adjustments and data note. Engine runs carry the spot buy-and-hold recorded with the run in simulation.metrics.buy_and_hold; old-engine runs keep their paired baseline. Paper reads require paper:read and do not start, stop, qualify, or modify a bot. Legacy runs without supported assumptions are labeled. Does not return raw market feeds.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"run_id"
],
"properties": {
"run_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
}
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"run_id",
"strategy_id",
"mode",
"status",
"symbol",
"interval",
"venue",
"engine_version",
"strategy_version",
"tested_rules",
"revision",
"strategy_revision",
"start_ts",
"end_ts",
"last_ts",
"metrics",
"assumptions",
"baseline",
"limitations",
"app_url"
],
"properties": {
"mode": {
"enum": [
"backtest",
"paper"
],
"type": "string"
},
"costs": {
"anyOf": [
{
"type": "object",
"required": [
"fees_paid",
"fills"
],
"properties": {
"fills": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"fees_paid": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"error": {
"type": [
"string",
"null"
]
},
"queue": {
"anyOf": [
{
"type": "object",
"required": [
"runs_ahead",
"estimated_wait_seconds",
"poll_after_seconds"
],
"properties": {
"runs_ahead": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"poll_after_seconds": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"estimated_wait_seconds": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"venue": {
"type": "string"
},
"end_ts": {
"type": [
"number",
"null"
]
},
"run_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"status": {
"type": "string"
},
"symbol": {
"type": "string"
},
"app_url": {
"type": "string",
"format": "uri"
},
"last_ts": {
"type": [
"number",
"null"
]
},
"metrics": {
"anyOf": [
{
"type": "object",
"required": [
"initial_capital",
"final_equity",
"total_return_pct",
"cagr_pct",
"max_drawdown_pct",
"sharpe",
"num_trades",
"win_rate_pct",
"profit_factor",
"exposure_pct",
"bars_processed",
"first_ts",
"last_ts"
],
"properties": {
"sharpe": {
"type": [
"number",
"null"
]
},
"last_ts": {
"type": [
"number",
"null"
]
},
"cagr_pct": {
"type": [
"number",
"null"
]
},
"first_ts": {
"type": [
"number",
"null"
]
},
"num_trades": {
"type": "number"
},
"exposure_pct": {
"type": "number"
},
"final_equity": {
"type": "number"
},
"win_rate_pct": {
"type": [
"number",
"null"
]
},
"profit_factor": {
"type": [
"number",
"null"
]
},
"bars_processed": {
"type": "number"
},
"initial_capital": {
"type": "number"
},
"max_drawdown_pct": {
"type": "number"
},
"total_return_pct": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"baseline": {
"anyOf": [
{
"type": "object",
"required": [
"run_id",
"status",
"metrics",
"comparable"
],
"properties": {
"run_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"status": {
"type": "string"
},
"metrics": {
"anyOf": [
{
"type": "object",
"required": [
"initial_capital",
"final_equity",
"total_return_pct",
"cagr_pct",
"max_drawdown_pct",
"sharpe",
"num_trades",
"win_rate_pct",
"profit_factor",
"exposure_pct",
"bars_processed",
"first_ts",
"last_ts"
],
"properties": {
"sharpe": {
"type": [
"number",
"null"
]
},
"last_ts": {
"type": [
"number",
"null"
]
},
"cagr_pct": {
"type": [
"number",
"null"
]
},
"first_ts": {
"type": [
"number",
"null"
]
},
"num_trades": {
"type": "number"
},
"exposure_pct": {
"type": "number"
},
"final_equity": {
"type": "number"
},
"win_rate_pct": {
"type": [
"number",
"null"
]
},
"profit_factor": {
"type": [
"number",
"null"
]
},
"bars_processed": {
"type": "number"
},
"initial_capital": {
"type": "number"
},
"max_drawdown_pct": {
"type": "number"
},
"total_return_pct": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"comparable": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"interval": {
"type": "string"
},
"revision": {
"type": "string"
},
"start_ts": {
"type": "number"
},
"data_note": {
"type": [
"string",
"null"
]
},
"next_step": {
"type": [
"string",
"null"
]
},
"parameters": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"simulation": {
"type": "object",
"required": [
"kind",
"run_id",
"strategy_id",
"name",
"mode",
"status",
"error",
"primary_market",
"period",
"progress_pct",
"revision",
"specification",
"assumptions",
"initialization",
"parameters",
"metrics",
"portfolio",
"pending_orders",
"rebalance",
"corporate_actions",
"data",
"latest_decisions",
"provenance",
"measurement"
],
"properties": {
"data": {
"type": "object",
"title": "SimulationDataManifest",
"required": [
"coverage",
"warnings"
],
"properties": {
"details": {
"type": "array",
"items": {
"type": "object",
"title": "SimulationDetailEntry",
"required": [
"barOpenTime",
"digest",
"instrument",
"minutes",
"unavailable",
"version"
],
"properties": {
"digest": {
"anyOf": [
{
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
{
"type": "null"
}
]
},
"minutes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"version": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"barOpenTime": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"unavailable": {
"type": "boolean"
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 10000
},
"funding": {
"type": "array",
"items": {
"type": "object",
"title": "SimulationFundingEntry",
"required": [
"digest",
"fromTime",
"instrument",
"periods",
"records",
"toTime"
],
"properties": {
"digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"toTime": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"periods": {
"type": "array",
"items": {
"type": "object",
"title": "SimulationFundingPeriod",
"required": [
"fromTime",
"kind",
"source",
"toTime"
],
"properties": {
"kind": {
"enum": [
"actual",
"estimated",
"pre_perp"
],
"type": "string"
},
"source": {
"anyOf": [
{
"type": "string",
"maxLength": 64,
"minLength": 1
},
{
"type": "null"
}
]
},
"toTime": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"fromTime": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
"maxItems": 64
},
"records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"fromTime": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 16
},
"sources": {
"type": "array",
"items": {
"type": "object",
"title": "SimulationSourceEntry",
"required": [
"barSize",
"bars",
"digest",
"feedId",
"fromOpenTime",
"instrument",
"toOpenTime",
"version"
],
"properties": {
"bars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"feedId": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"barSize": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"toOpenTime": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"fromOpenTime": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 256
},
"coverage": {
"type": "array",
"items": {
"type": "object",
"title": "SimulationFeedCoverage",
"required": [
"bars",
"expectedBars",
"expectedExecutionBars",
"feedId",
"firstAvailableAt",
"firstMissingOpen",
"lastAvailableAt",
"missingBars",
"missingEvaluationBars",
"missingExecutionBars",
"requiredWarmupBars",
"sourceDigest",
"warmupBars"
],
"properties": {
"bars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"feedId": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"warmupBars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"missingBars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"expectedBars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sourceDigest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"lastAvailableAt": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"firstAvailableAt": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"firstMissingOpen": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"requiredWarmupBars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"missingExecutionBars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"expectedExecutionBars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"missingEvaluationBars": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
"maxItems": 32
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"title": "SimulationDataWarning",
"required": [
"code",
"feedId",
"message"
],
"properties": {
"code": {
"enum": [
"modeled_publication",
"modeled_open",
"raw_equity",
"warmup_shortfall",
"missing_bars",
"missing_execution_bars",
"missing_funding",
"estimated_funding",
"session_gap_liquidation",
"settlement_fills",
"data_corrected",
"data_gap"
],
"type": "string"
},
"feedId": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"message": {
"type": "string",
"maxLength": 2000,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 256
},
"adjustments": {
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"default": [],
"maxItems": 64
}
},
"additionalProperties": false
},
"kind": {
"type": "string",
"const": "event_simulation"
},
"mode": {
"enum": [
"backtest",
"paper"
],
"type": "string"
},
"name": {
"type": "string"
},
"error": {
"type": [
"string",
"null"
]
},
"period": {
"type": "object",
"required": [
"start_at",
"end_at",
"last_observed_at"
],
"properties": {
"end_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"start_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"last_observed_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"run_id": {
"type": "string"
},
"status": {
"type": "string"
},
"metrics": {
"anyOf": [
{
"type": "object",
"required": [
"kind",
"schema_version",
"reporting_currency",
"initial_capital",
"final_equity",
"peak_equity",
"total_return_pct",
"max_observed_drawdown_pct",
"fees_paid",
"realized_pnl",
"fill_count",
"valuation_observations",
"first_valuation_at",
"last_valuation_at",
"open_positions"
],
"properties": {
"kind": {
"type": "string",
"const": "event_simulation"
},
"fees_paid": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
"fill_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"funding_pnl": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
"peak_equity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
"buy_and_hold": {
"type": "object",
"required": [
"started_at",
"entered_at",
"entry_price",
"quantity",
"cash",
"final_equity",
"total_return_pct"
],
"properties": {
"cash": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
"quantity": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
"entered_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"started_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"entry_price": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
{
"type": "null"
}
]
},
"final_equity": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
{
"type": "null"
}
]
},
"total_return_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"final_equity": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
{
"type": "null"
}
]
},
"realized_pnl": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
"open_positions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"schema_version": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
}
]
},
"initial_capital": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$"
},
"total_return_pct": {
"type": [
"number",
"null"
]
},
"last_valuation_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"liquidation_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"max_leverage_used": {
"type": "number",
"minimum": 0
},
"first_valuation_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"reporting_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"valuation_observations": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"max_observed_drawdown_pct": {
"type": "number",
"minimum": 0
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"revision": {
"type": "object",
"required": [
"version",
"code_hash",
"current_version",
"current_code_hash"
],
"properties": {
"version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"code_hash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"current_version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"current_code_hash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"additionalProperties": false
},
"portfolio": {
"anyOf": [
{
"type": "object",
"title": "PortfolioCheckpoint",
"required": [
"cash",
"fees_paid",
"fill_sequence",
"positions",
"realized_pnl",
"reporting_currency"
],
"properties": {
"cash": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"fees_paid": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"perpetual": {
"anyOf": [
{
"type": "object",
"title": "PerpetualLedger",
"required": [
"funding_pnl",
"funding_sequence",
"isolated_margin",
"liquidation_adjustments",
"liquidation_sequence"
],
"properties": {
"funding_pnl": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"isolated_margin": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"funding_sequence": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"liquidation_sequence": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"liquidation_adjustments": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"positions": {
"type": "array",
"items": {
"type": "object",
"title": "Position",
"required": [
"average_price_reporting",
"cost_basis_reporting",
"entry_fee_basis",
"instrument",
"opened_at",
"quantity"
],
"properties": {
"quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"opened_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"entry_fee_basis": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"cost_basis_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"average_price_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
"default": []
},
"realized_pnl": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"fill_sequence": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"reporting_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"rebalance": {
"anyOf": [
{
"type": "object",
"title": "RebalanceState",
"required": [
"kind",
"order_ids",
"phase",
"submitted_at",
"weights"
],
"properties": {
"kind": {
"type": "string",
"const": "rebalance",
"default": "rebalance"
},
"phase": {
"enum": [
"reducing",
"adding"
],
"type": "string"
},
"weights": {
"type": "object",
"title": "Weights",
"properties": {},
"maxProperties": 16,
"propertyNames": {
"maxLength": 128,
"minLength": 1
},
"additionalProperties": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"le": 1,
"maxDigits": 42
}
}
},
"order_ids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 16,
"minItems": 1
},
"submitted_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"parameters": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
},
"provenance": {
"type": "object",
"required": [
"chunks",
"request_digest",
"result_digest",
"checkpoint_digest"
],
"properties": {
"chunks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"result_digest": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
]
},
"request_digest": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
]
},
"checkpoint_digest": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"assumptions": {
"type": "object",
"required": [
"initial_capital",
"reporting_currency",
"fee_bps",
"slippage_bps",
"execution_window_model"
],
"properties": {
"fee_bps": {
"type": "string"
},
"slippage_bps": {
"type": "string"
},
"initial_capital": {
"type": "string"
},
"reporting_currency": {
"type": "string"
},
"execution_window_model": {
"enum": [
"candle_metadata",
"declared_calendar"
],
"type": "string"
}
},
"additionalProperties": false
},
"measurement": {
"type": "string"
},
"strategy_id": {
"type": "string"
},
"progress_pct": {
"anyOf": [
{
"type": "number",
"maximum": 100,
"minimum": 0
},
{
"type": "null"
}
]
},
"specification": {
"type": "object",
"title": "SimulationSpec",
"required": [
"execution_feeds",
"feeds",
"instruments"
],
"properties": {
"feeds": {
"type": "array",
"items": {
"type": "object",
"title": "FeedSpec",
"required": [
"calendar",
"id",
"instrument",
"interval"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"calendar": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"interval": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"lookback": {
"type": "integer",
"default": 500,
"maximum": 5000,
"minimum": 1
},
"adjustment": {
"enum": [
"raw",
"split_adjusted",
"total_return"
],
"type": "string",
"default": "raw"
},
"allow_gaps": {
"type": "boolean",
"default": false
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"required_history": {
"type": "integer",
"default": 1,
"maximum": 5000,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 32,
"minItems": 1
},
"schedules": {
"type": "array",
"items": {
"type": "object",
"title": "ScheduleSpec",
"required": [
"hour",
"id",
"minute",
"timezone",
"weekdays"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"hour": {
"type": "integer",
"maximum": 23,
"minimum": 0
},
"minute": {
"type": "integer",
"maximum": 59,
"minimum": 0
},
"timezone": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"weekdays": {
"type": "array",
"items": {
"type": "integer",
"maximum": 6,
"minimum": 0
},
"maxItems": 7,
"minItems": 1
},
"ambiguous_time": {
"enum": [
"first",
"second"
],
"type": "string",
"default": "first"
},
"nonexistent_time": {
"type": "string",
"const": "skip",
"default": "skip"
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 16
},
"conversions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "FixedConversion",
"required": [
"assumption",
"currency",
"rate"
],
"properties": {
"kind": {
"type": "string",
"const": "fixed",
"default": "fixed"
},
"rate": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"assumption": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "FeedConversion",
"required": [
"currency",
"feed_id"
],
"properties": {
"kind": {
"type": "string",
"const": "feed",
"default": "feed"
},
"feed_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"inverted": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]
},
"default": [],
"maxItems": 16
},
"instruments": {
"type": "array",
"items": {
"type": "object",
"title": "InstrumentSpec",
"required": [
"asset_class",
"id",
"quantity_step",
"quote_currency",
"symbol",
"venue"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"venue": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"symbol": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"perpetual": {
"anyOf": [
{
"type": "object",
"title": "PerpetualSpec",
"required": [
"contract",
"funding_interval_ms",
"leverage",
"liquidation",
"margin_mode",
"margin_tiers",
"price_basis"
],
"properties": {
"contract": {
"type": "string",
"const": "linear"
},
"leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"liquidation": {
"type": "string",
"const": "hyperliquid_isolated_v1"
},
"margin_mode": {
"type": "string",
"const": "isolated"
},
"price_basis": {
"type": "string",
"const": "execution_trades"
},
"margin_tiers": {
"type": "array",
"items": {
"type": "object",
"title": "MarginTier",
"required": [
"lower_bound",
"max_leverage"
],
"properties": {
"lower_bound": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"max_leverage": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1
},
"min_order_notional": {
"type": "string",
"default": "10",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"funding_interval_ms": {
"type": "number",
"const": 3600000
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"allow_short": {
"type": "boolean",
"default": false
},
"asset_class": {
"enum": [
"crypto",
"equity",
"etf",
"stock",
"index",
"commodity"
],
"type": "string"
},
"base_currency": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
{
"type": "null"
}
],
"default": null
},
"quantity_step": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_currency": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
}
},
"additionalProperties": false
},
"maxItems": 16,
"minItems": 1
},
"schema_version": {
"type": "number",
"const": 2,
"default": 2
},
"execution_feeds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"maxItems": 16,
"minItems": 1
},
"conditional_fills": {
"enum": [
"completed_bar_touch",
"live_range_touch",
"minute_clock"
],
"type": "string",
"default": "live_range_touch"
},
"intrabar_ambiguity": {
"enum": [
"reject",
"minute_detail_stop_first"
],
"type": "string",
"default": "minute_detail_stop_first"
},
"reporting_currency": {
"type": "string",
"default": "USD",
"pattern": "^[A-Z][A-Z0-9]{1,15}$"
},
"fill_callback_orders": {
"enum": [
"next_execution_bar",
"next_trading_minute"
],
"type": "string",
"default": "next_trading_minute"
}
},
"additionalProperties": false
},
"initialization": {
"type": "object",
"required": [
"policy",
"activation_at",
"evaluated_at"
],
"properties": {
"policy": {
"enum": [
"requested_start",
"recorded_start"
],
"type": "string"
},
"evaluated_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
},
"activation_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"pending_orders": {
"type": "array",
"items": {
"type": "object",
"title": "PendingOrder",
"required": [
"eligible_at",
"id",
"intent",
"quantity",
"reserved_capital",
"submitted_at"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"intent": {
"type": "object",
"title": "OrderIntent",
"required": [
"expires_at",
"instrument",
"kind",
"oco_group",
"order_type",
"side",
"size",
"trigger_price"
],
"properties": {
"kind": {
"type": "string",
"const": "order",
"default": "order"
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string"
},
"size": {
"oneOf": [
{
"type": "object",
"title": "CapitalSize",
"required": [
"fraction",
"kind"
],
"properties": {
"kind": {
"type": "string",
"const": "capital",
"default": "capital"
},
"fraction": {
"type": "string",
"default": "1",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"le": 1,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "BudgetSize",
"required": [
"amount",
"kind"
],
"properties": {
"kind": {
"type": "string",
"const": "budget",
"default": "budget"
},
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "QuantitySize",
"required": [
"kind",
"quantity"
],
"properties": {
"kind": {
"type": "string",
"const": "quantity",
"default": "quantity"
},
"quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "PositionSize",
"required": [
"fraction",
"kind"
],
"properties": {
"kind": {
"type": "string",
"const": "position",
"default": "position"
},
"fraction": {
"type": "string",
"default": "1",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"le": 1,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "PositionQuantitySize",
"required": [
"kind",
"quantity"
],
"properties": {
"kind": {
"type": "string",
"const": "position_quantity",
"default": "position_quantity"
},
"quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
}
],
"default": {
"kind": "capital",
"fraction": "1"
}
},
"oco_group": {
"anyOf": [
{
"type": "string",
"maxLength": 64,
"minLength": 1
},
{
"type": "null"
}
],
"default": null
},
"expires_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
],
"default": null
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"order_type": {
"enum": [
"market",
"limit",
"stop"
],
"type": "string",
"default": "market"
},
"trigger_price": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
},
"quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
],
"default": null
},
"live_until": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
],
"default": null
},
"eligible_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"submitted_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"reserved_capital": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
"maxItems": 256
},
"primary_market": {
"type": "object",
"required": [
"symbol",
"interval"
],
"properties": {
"symbol": {
"type": "string"
},
"interval": {
"type": "string"
}
},
"additionalProperties": false
},
"latest_decisions": {
"type": "array",
"items": {
"type": "object",
"required": [
"event",
"intents",
"note"
],
"properties": {
"note": {
"type": [
"string",
"null"
]
},
"event": {
"type": "object",
"title": "StrategyEvent",
"required": [
"corporate_action",
"feed_ids",
"kind",
"observed_at",
"order",
"schedule_id"
],
"properties": {
"kind": {
"enum": [
"start",
"bar",
"schedule",
"fill",
"order",
"corporate_action"
],
"type": "string"
},
"order": {
"anyOf": [
{
"type": "object",
"title": "OrderUpdate",
"required": [
"fill",
"instrument",
"observed_at",
"order_id",
"reason",
"status"
],
"properties": {
"fill": {
"anyOf": [
{
"type": "object",
"title": "SettledFill",
"required": [
"closed_quantity",
"equity_after",
"fee_reporting",
"instrument",
"notional_reporting",
"observed_at",
"order_id",
"position_after",
"price",
"quantity",
"quote_to_reporting",
"realized_pnl",
"reduce_only",
"sequence",
"side"
],
"properties": {
"side": {
"enum": [
"buy",
"sell"
],
"type": "string"
},
"price": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"order_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"reduce_only": {
"type": "boolean",
"default": false
},
"equity_after": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"realized_pnl": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"fee_reporting": {
"type": "string",
"default": "0",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"position_after": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"closed_quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"notional_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"quote_to_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 500,
"minLength": 1
},
{
"type": "null"
}
],
"default": null
},
"status": {
"enum": [
"accepted",
"filled",
"cancelled",
"expired",
"rejected",
"adjusted"
],
"type": "string"
},
"order_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"default": null
},
"feed_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"default": []
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"schedule_id": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
{
"type": "null"
}
],
"default": null
},
"corporate_action": {
"anyOf": [
{
"oneOf": [
{
"type": "object",
"title": "SplitPublication",
"required": [
"phase",
"record"
],
"properties": {
"phase": {
"type": "string",
"const": "published",
"default": "published"
},
"record": {
"oneOf": [
{
"type": "object",
"title": "ActiveStockSplit",
"required": [
"effective_at",
"event_id",
"instrument",
"published_at",
"ratio_new",
"ratio_old",
"record_id",
"state"
],
"properties": {
"state": {
"type": "string",
"const": "active",
"default": "active"
},
"event_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ratio_new": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"ratio_old": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"record_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"effective_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"published_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "CancelledStockSplit",
"required": [
"effective_at",
"event_id",
"instrument",
"published_at",
"record_id",
"state"
],
"properties": {
"state": {
"type": "string",
"const": "cancelled",
"default": "cancelled"
},
"event_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"record_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"effective_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"published_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "SplitSettlement",
"required": [
"after_fill_sequence",
"cost_basis_reporting",
"entry_fee_basis_reporting",
"observed_at",
"order_adjustments",
"phase",
"position_after",
"position_before",
"record",
"sequence"
],
"properties": {
"phase": {
"type": "string",
"const": "applied",
"default": "applied"
},
"record": {
"type": "object",
"title": "ActiveStockSplit",
"required": [
"effective_at",
"event_id",
"instrument",
"published_at",
"ratio_new",
"ratio_old",
"record_id",
"state"
],
"properties": {
"state": {
"type": "string",
"const": "active",
"default": "active"
},
"event_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ratio_new": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"ratio_old": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"record_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"effective_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"published_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
"sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"position_after": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"position_before": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"order_adjustments": {
"type": "array",
"items": {
"type": "object",
"title": "SplitOrderAdjustment",
"required": [
"order_id",
"quantity_after",
"quantity_before",
"trigger_after",
"trigger_before"
],
"properties": {
"order_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"trigger_after": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"quantity_after": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"trigger_before": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"quantity_before": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 256
},
"after_fill_sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"cost_basis_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"entry_fee_basis_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
}
]
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
},
"intents": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"title": "OrderIntent",
"required": [
"expires_at",
"instrument",
"kind",
"oco_group",
"order_type",
"side",
"size",
"trigger_price"
],
"properties": {
"kind": {
"type": "string",
"const": "order",
"default": "order"
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string"
},
"size": {
"oneOf": [
{
"type": "object",
"title": "CapitalSize",
"required": [
"fraction",
"kind"
],
"properties": {
"kind": {
"type": "string",
"const": "capital",
"default": "capital"
},
"fraction": {
"type": "string",
"default": "1",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"le": 1,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "BudgetSize",
"required": [
"amount",
"kind"
],
"properties": {
"kind": {
"type": "string",
"const": "budget",
"default": "budget"
},
"amount": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "QuantitySize",
"required": [
"kind",
"quantity"
],
"properties": {
"kind": {
"type": "string",
"const": "quantity",
"default": "quantity"
},
"quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "PositionSize",
"required": [
"fraction",
"kind"
],
"properties": {
"kind": {
"type": "string",
"const": "position",
"default": "position"
},
"fraction": {
"type": "string",
"default": "1",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"le": 1,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "PositionQuantitySize",
"required": [
"kind",
"quantity"
],
"properties": {
"kind": {
"type": "string",
"const": "position_quantity",
"default": "position_quantity"
},
"quantity": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
}
],
"default": {
"kind": "capital",
"fraction": "1"
}
},
"oco_group": {
"anyOf": [
{
"type": "string",
"maxLength": 64,
"minLength": 1
},
{
"type": "null"
}
],
"default": null
},
"expires_at": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
],
"default": null
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"order_type": {
"enum": [
"market",
"limit",
"stop"
],
"type": "string",
"default": "market"
},
"trigger_price": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "CancelIntent",
"required": [
"kind",
"order_id"
],
"properties": {
"kind": {
"type": "string",
"const": "cancel",
"default": "cancel"
},
"order_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "RebalanceIntent",
"required": [
"kind",
"weights"
],
"properties": {
"kind": {
"type": "string",
"const": "rebalance",
"default": "rebalance"
},
"weights": {
"type": "object",
"title": "Weights",
"properties": {},
"maxProperties": 16,
"propertyNames": {
"maxLength": 128,
"minLength": 1
},
"additionalProperties": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"le": 1,
"maxDigits": 42
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "CancelRebalanceIntent",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"const": "cancel_rebalance",
"default": "cancel_rebalance"
}
},
"additionalProperties": false
}
]
}
}
},
"additionalProperties": false
},
"maxItems": 8
},
"corporate_actions": {
"type": "object",
"required": [
"applied_count",
"latest_chunk_settlements"
],
"properties": {
"applied_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"latest_chunk_settlements": {
"type": "array",
"items": {
"type": "object",
"title": "SplitSettlement",
"required": [
"after_fill_sequence",
"cost_basis_reporting",
"entry_fee_basis_reporting",
"observed_at",
"order_adjustments",
"phase",
"position_after",
"position_before",
"record",
"sequence"
],
"properties": {
"phase": {
"type": "string",
"const": "applied",
"default": "applied"
},
"record": {
"type": "object",
"title": "ActiveStockSplit",
"required": [
"effective_at",
"event_id",
"instrument",
"published_at",
"ratio_new",
"ratio_old",
"record_id",
"state"
],
"properties": {
"state": {
"type": "string",
"const": "active",
"default": "active"
},
"event_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ratio_new": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"ratio_old": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
"record_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"instrument": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"effective_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"published_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
"sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"observed_at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"position_after": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"position_before": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"maxDigits": 42
}
},
"order_adjustments": {
"type": "array",
"items": {
"type": "object",
"title": "SplitOrderAdjustment",
"required": [
"order_id",
"quantity_after",
"quantity_before",
"trigger_after",
"trigger_before"
],
"properties": {
"order_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"trigger_after": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"quantity_after": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"trigger_before": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
},
"quantity_before": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"gt": 0,
"maxDigits": 42
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"default": [],
"maxItems": 256
},
"after_fill_sequence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"cost_basis_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
},
"entry_fee_basis_reporting": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
"decimalBounds": {
"ge": 0,
"maxDigits": 42
}
}
},
"additionalProperties": false
},
"maxItems": 8
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"adjustments": {
"type": "array",
"items": {
"type": "string"
}
},
"assumptions": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"required": [
"version",
"initial_capital",
"fee_bps",
"slippage_bps"
],
"properties": {
"fee_bps": {
"type": "number",
"const": 10
},
"version": {
"type": "number",
"const": 1
},
"slippage_bps": {
"type": "number",
"const": 1
},
"initial_capital": {
"type": "number",
"const": 10000
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"version",
"initial_capital",
"fee_bps",
"slippage_bps"
],
"properties": {
"fee_bps": {
"type": "number",
"maximum": 1000,
"minimum": 0
},
"version": {
"type": "number",
"const": 2
},
"slippage_bps": {
"type": "number",
"maximum": 1000,
"minimum": 0
},
"initial_capital": {
"type": "number",
"const": 10000
}
},
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
},
"limitations": {
"type": "array",
"items": {
"type": "string"
}
},
"strategy_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"tested_rules": {
"anyOf": [
{
"type": "object",
"required": [
"watches",
"buys",
"sells",
"safety"
],
"properties": {
"buys": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"sells": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"safety": {
"type": "string",
"maxLength": 1000,
"minLength": 1
},
"watches": {
"type": "string",
"maxLength": 1000,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"engine_version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"paper_setup_url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"strategy_version": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"strategy_revision": {
"type": "string"
}
},
"additionalProperties": false
}{
"title": "Read historical or paper evidence",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}save_research_note — Save a research note
Save a NEW private note in the connected workspace, with optional exact owned strategy/run evidence references. The note is user-authored content. Does not publish or send it anywhere.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"request_key",
"title",
"note"
],
"properties": {
"note": {
"type": "string",
"maxLength": 4000,
"minLength": 1
},
"title": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"run_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"revision": {
"type": "string",
"maxLength": 128
},
"request_key": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Idempotency UUID identifying one requested write and its unchanged arguments."
},
"strategy_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"note_id",
"title",
"saved",
"app_url"
],
"properties": {
"saved": {
"type": "boolean",
"const": true
},
"title": {
"type": "string"
},
"app_url": {
"type": "string",
"format": "uri"
},
"note_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"additionalProperties": false
}{
"title": "Save a research note",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 3 of 3 checks answered
- 2026-11-29: 4 of 4 checks answered
- 2026-11-30: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 2265 ms
- 95th percentile latency
- 2270 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 2259 ms · metadata changed · 13 tool(s)
- · probe · passed · 2271 ms · metadata changed · 13 tool(s)
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http premiss-mcp https://app.premissai.com/api/mcp/claudeCodex
codex mcp add premiss-mcp --url https://app.premissai.com/api/mcp/claudeCursor
{
"mcpServers": {
"premiss-mcp": {
"url": "https://app.premissai.com/api/mcp/claude"
}
}
}Cline
{
"mcpServers": {
"premiss-mcp": {
"type": "streamableHttp",
"url": "https://app.premissai.com/api/mcp/claude",
"disabled": false
}
}
}VS Code
{
"servers": {
"premiss-mcp": {
"type": "http",
"url": "https://app.premissai.com/api/mcp/claude"
}
}
}Gemini CLI
gemini mcp add --transport http premiss-mcp https://app.premissai.com/api/mcp/claudeClaude Desktop
https://app.premissai.com/api/mcp/claudeWindsurf
{
"mcpServers": {
"premiss-mcp": {
"serverUrl": "https://app.premissai.com/api/mcp/claude"
}
}
}Let your agent find its tools
Find servers like Premiss MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other data and analytics servers
Do you run Premiss MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.