{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blofin/json-schema/blofin-post-api-v1-spot-trade-order-request-schema.json",
  "title": "PostApiV1SpotTradeOrderRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blofin-spot-api-openapi.yml#/components/schemas/PostApiV1SpotTradeOrderRequest",
  "type": "object",
  "properties": {
    "instType": {
      "type": "string",
      "description": "Instrument type SPOT : Spot"
    },
    "instId": {
      "type": "string",
      "description": "Instrument ID, e.g. BTC-USDT"
    },
    "side": {
      "type": "string",
      "description": "Order side, buy sell"
    },
    "orderType": {
      "type": "string",
      "description": "Order type market : market order limit : limit order post_only : Post-only order fok : Fill-or-kill order ioc : Immediate-or-cancel order"
    },
    "price": {
      "type": "string",
      "description": "Order price. Not applicable to market"
    },
    "size": {
      "type": "string",
      "description": "Quantity to buy or sell"
    },
    "targetCurrency": {
      "type": "string",
      "description": "Whether the target currency uses the quote or base currency. base_currency quote_currency Only applicable to Market Orders"
    },
    "clientOrderId": {
      "type": "string",
      "description": "Client Order ID as assigned by the client A combination of case-sensitive alphanumerics, all numbers, or all letters of up to 32 characters."
    },
    "brokerId": {
      "type": "string",
      "description": "Broker ID provided by BloFin. A combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters."
    }
  },
  "required": [
    "instType",
    "instId",
    "side",
    "orderType",
    "price",
    "size"
  ]
}