addedOutput schema / properties / simulation
Added value: +{
+ "additionalProperties": false,
+ "properties": {
+ "corporate_actions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "after_fill_sequence": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "cost_basis_reporting": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "entry_fee_basis_reporting": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "observed_at": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_adjustments": {
+ "default": [],
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "order_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "quantity_after": {
+ "anyOf": [
+ {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "quantity_before": {
+ "anyOf": [
+ {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "trigger_after": {
+ "anyOf": [
+ {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "trigger_before": {
+ "anyOf": [
+ {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "order_id",
+ "quantity_after",
+ "quantity_before",
+ "trigger_after",
+ "trigger_before"
+ ],
+ "title": "SplitOrderAdjustment",
+ "type": "object"
+ },
+ "maxItems": 256,
+ "type": "array"
+ },
+ "phase": {
+ "const": "applied",
+ "default": "applied",
+ "type": "string"
+ },
+ "position_after": {
+ "decimalBounds": {
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "position_before": {
+ "decimalBounds": {
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "record": {
+ "additionalProperties": false,
+ "properties": {
+ "effective_at": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "event_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "instrument": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "published_at": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "ratio_new": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "ratio_old": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "record_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "state": {
+ "const": "active",
+ "default": "active",
+ "type": "string"
+ }
+ },
+ "required": [
+ "effective_at",
+ "event_id",
+ "instrument",
+ "published_at",
+ "ratio_new",
+ "ratio_old",
+ "record_id",
+ "state"
+ ],
+ "title": "ActiveStockSplit",
+ "type": "object"
+ },
+ "sequence": {
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "after_fill_sequence",
+ "cost_basis_reporting",
+ "entry_fee_basis_reporting",
+ "observed_at",
+ "order_adjustments",
+ "phase",
+ "position_after",
+ "position_before",
+ "record",
+ "sequence"
+ ],
+ "title": "SplitSettlement",
+ "type": "object"
+ },
+ "maxItems": 500,
+ "type": "array"
+ },
+ "fills": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "closed_quantity": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "equity_after": {
+ "decimalBounds": {
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "fee_reporting": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "default": "0",
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "instrument": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "notional_reporting": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "observed_at": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "position_after": {
+ "decimalBounds": {
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "price": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "quantity": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "quote_to_reporting": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "realized_pnl": {
+ "decimalBounds": {
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "reduce_only": {
+ "default": false,
+ "type": "boolean"
+ },
+ "sequence": {
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "side": {
+ "enum": [
+ "buy",
+ "sell"
+ ],
+ "type": "string"
+ }
+ },
+ "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"
+ ],
+ "title": "SettledFill",
+ "type": "object"
+ },
+ "maxItems": 500,
+ "type": "array"
+ },
+ "reporting_currency": {
+ "type": "string"
+ },
+ "specification": {
+ "additionalProperties": false,
+ "properties": {
+ "conditional_fills": {
+ "default": "live_range_touch",
+ "enum": [
+ "completed_bar_touch",
+ "live_range_touch"
+ ],
+ "type": "string"
+ },
+ "conversions": {
+ "default": [],
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assumption": {
+ "maxLength": 300,
+ "minLength": 1,
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z][A-Z0-9]{1,15}$",
+ "type": "string"
+ },
+ "kind": {
+ "const": "fixed",
+ "default": "fixed",
+ "type": "string"
+ },
+ "rate": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "assumption",
+ "currency",
+ "rate"
+ ],
+ "title": "FixedConversion",
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "pattern": "^[A-Z][A-Z0-9]{1,15}$",
+ "type": "string"
+ },
+ "feed_id": {
+ "pattern": "^[a-z][a-z0-9_]{0,63}$",
+ "type": "string"
+ },
+ "inverted": {
+ "default": false,
+ "type": "boolean"
+ },
+ "kind": {
+ "const": "feed",
+ "default": "feed",
+ "type": "string"
+ }
+ },
+ "required": [
+ "currency",
+ "feed_id"
+ ],
+ "title": "FeedConversion",
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 16,
+ "type": "array"
+ },
+ "execution_feeds": {
+ "items": {
+ "pattern": "^[a-z][a-z0-9_]{0,63}$",
+ "type": "string"
+ },
+ "maxItems": 16,
+ "minItems": 1,
+ "type": "array"
+ },
+ "feeds": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "adjustment": {
+ "default": "raw",
+ "enum": [
+ "raw",
+ "split_adjusted",
+ "total_return"
+ ],
+ "type": "string"
+ },
+ "allow_gaps": {
+ "default": false,
+ "type": "boolean"
+ },
+ "calendar": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "pattern": "^[a-z][a-z0-9_]{0,63}$",
+ "type": "string"
+ },
+ "instrument": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "interval": {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ "lookback": {
+ "default": 500,
+ "maximum": 5000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "required_history": {
+ "default": 1,
+ "maximum": 5000,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "calendar",
+ "id",
+ "instrument",
+ "interval"
+ ],
+ "title": "FeedSpec",
+ "type": "object"
+ },
+ "maxItems": 32,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fill_callback_orders": {
+ "default": "next_trading_minute",
+ "enum": [
+ "next_execution_bar",
+ "next_trading_minute"
+ ],
+ "type": "string"
+ },
+ "instruments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "allow_short": {
+ "default": false,
+ "type": "boolean"
+ },
+ "asset_class": {
+ "enum": [
+ "crypto",
+ "equity",
+ "etf",
+ "stock",
+ "index",
+ "commodity"
+ ],
+ "type": "string"
+ },
+ "base_currency": {
+ "anyOf": [
+ {
+ "pattern": "^[A-Z][A-Z0-9]{1,15}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "perpetual": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "contract": {
+ "const": "linear",
+ "type": "string"
+ },
+ "funding_interval_ms": {
+ "const": 3600000,
+ "type": "number"
+ },
+ "leverage": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "liquidation": {
+ "const": "hyperliquid_isolated_v1",
+ "type": "string"
+ },
+ "margin_mode": {
+ "const": "isolated",
+ "type": "string"
+ },
+ "margin_tiers": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "lower_bound": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "max_leverage": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "lower_bound",
+ "max_leverage"
+ ],
+ "title": "MarginTier",
+ "type": "object"
+ },
+ "maxItems": 8,
+ "minItems": 1,
+ "type": "array"
+ },
+ "min_order_notional": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "default": "10",
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "price_basis": {
+ "const": "execution_trades",
+ "type": "string"
+ }
+ },
+ "required": [
+ "contract",
+ "funding_interval_ms",
+ "leverage",
+ "liquidation",
+ "margin_mode",
+ "margin_tiers",
+ "price_basis"
+ ],
+ "title": "PerpetualSpec",
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "quantity_step": {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "quote_currency": {
+ "pattern": "^[A-Z][A-Z0-9]{1,15}$",
+ "type": "string"
+ },
+ "symbol": {
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "venue": {
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "asset_class",
+ "id",
+ "quantity_step",
+ "quote_currency",
+ "symbol",
+ "venue"
+ ],
+ "title": "InstrumentSpec",
+ "type": "object"
+ },
+ "maxItems": 16,
+ "minItems": 1,
+ "type": "array"
+ },
+ "intrabar_ambiguity": {
+ "default": "minute_detail_stop_first",
+ "enum": [
+ "reject",
+ "minute_detail_stop_first"
+ ],
+ "type": "string"
+ },
+ "reporting_currency": {
+ "default": "USD",
+ "pattern": "^[A-Z][A-Z0-9]{1,15}$",
+ "type": "string"
+ },
+ "schedules": {
+ "default": [],
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "ambiguous_time": {
+ "default": "first",
+ "enum": [
+ "first",
+ "second"
+ ],
+ "type": "string"
+ },
+ "hour": {
+ "maximum": 23,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "id": {
+ "pattern": "^[a-z][a-z0-9_]{0,63}$",
+ "type": "string"
+ },
+ "minute": {
+ "maximum": 59,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "nonexistent_time": {
+ "const": "skip",
+ "default": "skip",
+ "type": "string"
+ },
+ "timezone": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "weekdays": {
+ "items": {
+ "maximum": 6,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 7,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "hour",
+ "id",
+ "minute",
+ "timezone",
+ "weekdays"
+ ],
+ "title": "ScheduleSpec",
+ "type": "object"
+ },
+ "maxItems": 16,
+ "type": "array"
+ },
+ "schema_version": {
+ "const": 2,
+ "default": 2,
+ "type": "number"
+ }
+ },
+ "required": [
+ "execution_feeds",
+ "feeds",
+ "instruments"
+ ],
+ "title": "SimulationSpec",
+ "type": "object"
+ },
+ "valuations": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "available_capital": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "equity": {
+ "decimalBounds": {
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "gross_exposure": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "insolvent": {
+ "type": "boolean"
+ },
+ "margin": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "isolated_margin": {
+ "decimalBounds": {
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "liquidation_price": {
+ "anyOf": [
+ {
+ "decimalBounds": {
+ "gt": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maintenance_margin": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "isolated_margin",
+ "liquidation_price",
+ "maintenance_margin"
+ ],
+ "title": "MarginValuation",
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "margin_deficit": {
+ "decimalBounds": {
+ "ge": 0,
+ "maxDigits": 42
+ },
+ "pattern": "^-?(0|[1-9][0-9]{0,41})(\\.[0-9]{1,18})?$",
+ "type": "string"
+ },
+ "observed_at": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "available_capital",
+ "equity",
+ "gross_exposure",
+ "insolvent",
+ "margin_deficit",
+ "observed_at"
+ ],
+ "title": "PortfolioValuation",
+ "type": "object"
+ },
+ "maxItems": 500,
+ "type": "array"
+ }
+ },
+ "required": [
+ "reporting_currency",
+ "specification"
+ ],
+ "type": "object"
+}