SPB Git

Repository Public

signal-output.schema.json 922 B 33 lines json

1{2  "$schema": "https://json-schema.org/draft/2020-12/schema",3  "$id": "https://sp-wallet.local/schema/signal-output.schema.json",4  "title": "Output of python -m spq.signal (one line on stdout, exit code 0)",5  "type": "object",6  "required": [7    "strategy_sha256",8    "as_of",9    "weights"10  ],11  "properties": {12    "strategy_sha256": {13      "type": "string",14      "pattern": "^[0-9a-f]{64}$"15    },16    "as_of": {17      "type": "string",18      "format": "date-time",19      "description": "bar-open time (UTC) of the last closed bar the decision is based on"20    },21    "weights": {22      "type": "object",23      "additionalProperties": {24        "type": "number",25        "minimum": 0,26        "maximum": 127      },28      "description": "one entry per symbol of META['universe'] (per symbol of the input for a universe-generic strategy); sum <= 1, the rest is cash"29    }30  },31  "additionalProperties": false32}33
Files main
Menu

Theme