{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fxsocket-com/json-schema/fxsocket-com-post-v1-orders-request-schema.json",
  "title": "PostV1OrdersRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fxsocket-com-openapi-generated.yml#/components/schemas/PostV1OrdersRequest",
  "type": "object",
  "properties": {
    "defaults": {
      "type": "object",
      "description": "Values every leg inherits: symbol, operation, volume, price, slippage, stop_loss, take_profit, stop_limit_price, expiration, comment, expert_id."
    },
    "orders": {
      "type": "array",
      "description": "One entry per order."
    },
    "orders[].account_id": {
      "type": "string",
      "description": "One of your accounts, as returned by GET /v1/accounts."
    },
    "orders[].operation": {
      "type": "string",
      "description": "buy, sell, buyLimit, sellLimit, buyStop, sellStop, buyStopLimit or sellStopLimit (case‑insensitive)."
    },
    "orders[].volume": {
      "type": "number",
      "description": "Lots. Must be greater than 0."
    },
    "orders[].symbol": {
      "type": "string",
      "description": "Symbol for the leg, overrides defaults."
    },
    "orders[].price": {
      "type": "number",
      "description": "Price for the leg."
    },
    "orders[].slippage": {
      "type": "integer",
      "description": "Slippage for the leg."
    },
    "orders[].stop_loss": {
      "type": "number",
      "description": "Stop loss for the leg."
    },
    "orders[].take_profit": {
      "type": "number",
      "description": "Take profit for the leg."
    },
    "orders[].stop_limit_price": {
      "type": "number",
      "description": "Stop limit price for the leg."
    },
    "orders[].expiration": {
      "type": "string",
      "description": "Expiration for the leg."
    },
    "orders[].comment": {
      "type": "string",
      "description": "Comment for the leg."
    },
    "orders[].expert_id": {
      "type": "string",
      "description": "Expert ID for the leg."
    }
  },
  "required": [
    "orders",
    "orders[].account_id"
  ]
}