Skip to content

    Options Order

    verified

    A single-leg or multi-leg option order intent, broker-agnostic.

    Verification note

    Verified against Rebel Trade order builder and OptionsRobot deep-link translator.

    Example payload

    Realistic wire-shaped payload a conforming producer would emit. Validates against the schema above.

    {
      "legs": [
        {
          "ticker": "TSLA",
          "side": "CALL",
          "action": "BUY_TO_OPEN",
          "strike": 260,
          "expiry": "2026-08-15",
          "quantity": 3
        },
        {
          "ticker": "TSLA",
          "side": "CALL",
          "action": "SELL_TO_OPEN",
          "strike": 275,
          "expiry": "2026-08-15",
          "quantity": 3
        }
      ],
      "order_type": "LIMIT",
      "limit_price": 4.25,
      "time_in_force": "DAY"
    }

    JSON Schema

    draft/2020-12
    {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "$id": "https://rebeltrade.com/options-schema/registry/executions/options-order@0.1.0",
      "type": "object",
      "required": [
        "legs",
        "order_type",
        "time_in_force"
      ],
      "properties": {
        "legs": {
          "type": "array",
          "minItems": 1,
          "maxItems": 4,
          "items": {
            "type": "object",
            "required": [
              "ticker",
              "side",
              "action",
              "strike",
              "expiry",
              "quantity"
            ],
            "properties": {
              "ticker": {
                "type": "string"
              },
              "side": {
                "enum": [
                  "CALL",
                  "PUT"
                ]
              },
              "action": {
                "enum": [
                  "BUY_TO_OPEN",
                  "SELL_TO_OPEN",
                  "BUY_TO_CLOSE",
                  "SELL_TO_CLOSE"
                ]
              },
              "strike": {
                "type": "number"
              },
              "expiry": {
                "type": "string",
                "format": "date"
              },
              "quantity": {
                "type": "integer",
                "minimum": 1
              }
            }
          }
        },
        "order_type": {
          "enum": [
            "MARKET",
            "LIMIT",
            "STOP",
            "STOP_LIMIT"
          ]
        },
        "limit_price": {
          "type": "number"
        },
        "time_in_force": {
          "enum": [
            "DAY",
            "GTC",
            "IOC",
            "FOK"
          ]
        }
      }
    }