{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debyko-com/json-schema/debyko-com-post-v1-trades-request-schema.json",
  "title": "PostV1TradesRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/debyko-com-openapi-generated.yml#/components/schemas/PostV1TradesRequest",
  "type": "object",
  "properties": {
    "trade_id": {
      "type": "string"
    },
    "venue": {
      "type": "string"
    },
    "instrument": {
      "type": "string"
    },
    "side": {
      "type": "string"
    },
    "opened_at": {
      "type": "string"
    },
    "closed_at": {
      "type": "string"
    },
    "entry_price": {
      "type": "string"
    },
    "exit_price": {
      "type": "string"
    },
    "size": {
      "type": "string"
    },
    "size_unit": {
      "type": "string"
    },
    "leverage": {
      "type": "string"
    },
    "fees": {
      "type": "string"
    },
    "funding": {
      "type": "string"
    },
    "account": {
      "type": "string"
    },
    "exit_reason": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "fills": {
      "type": "array"
    },
    "debyko_firing_id": {
      "type": "string"
    }
  },
  "required": [
    "trade_id",
    "venue",
    "instrument",
    "side",
    "opened_at",
    "closed_at",
    "entry_price",
    "exit_price",
    "size",
    "account"
  ]
}