{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dwellir/json-schema/dwellir-post-portfolio-events-orders-request-schema.json",
  "title": "PostPortfolioEventsOrdersRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/dwellir-openapi-generated.yml#/components/schemas/PostPortfolioEventsOrdersRequest",
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "Market ticker to trade"
    },
    "side": {
      "type": "string",
      "description": "bid = long yes, ask = long no"
    },
    "count": {
      "type": "string",
      "description": "Contracts, fixed-point string"
    },
    "price": {
      "type": "string",
      "description": "Price in dollars, fixed-point string (e.g., \"0.0100\")"
    },
    "time_in_force": {
      "type": "string",
      "description": "Order time in force (good_till_canceled, immediate_or_cancel, fill_or_kill)"
    },
    "self_trade_prevention_type": {
      "type": "string",
      "description": "Self‑trade prevention type (taker_at_cross or maker)"
    },
    "client_order_id": {
      "type": "string",
      "description": "Optional client‑generated UUID to allow safe retries"
    }
  },
  "required": [
    "ticker",
    "side",
    "count",
    "price",
    "time_in_force",
    "self_trade_prevention_type"
  ]
}