---
updatedAt: 2026-04-21T10:05:03.000Z
agentTools:
  projectIndex: https://docs.glb.osl.com/llms.txt
---

# Batch Place Orders

Batch submission of orders, order list property objects are same as the place order interface, default limit is 10.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Futures Trading OpenAPI",
    "description": "OSL Trading Platform OpenAPI Documentation",
    "version": "1.0.0"
  },
  "tags": [
    {
      "name": "Trading",
      "description": "Trading related interfaces"
    }
  ],
  "paths": {
    "/openapi/v1/batchOrders": {
      "post": {
        "tags": [
          "Trading"
        ],
        "summary": "Batch Place Orders",
        "description": "Batch submission of orders, order list property objects are same as the place order interface, default limit is 10.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "batchOrders"
                ],
                "type": "object",
                "properties": {
                  "batchOrders": {
                    "type": "array",
                    "description": "Order list: same properties as the order placement interface;",
                    "items": {
                      "required": [
                        "category",
                        "side",
                        "symbol",
                        "type"
                      ],
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "string",
                          "description": "Transaction type: FUTURE/SPOT; currently only FUTURE is supported",
                          "example": "FUTURE"
                        },
                        "symbol": {
                          "type": "string",
                          "description": "Trading pair",
                          "example": "BTCUSDC"
                        },
                        "side": {
                          "type": "string",
                          "description": "Side: SELL/BUY",
                          "example": "BUY"
                        },
                        "positionSide": {
                          "type": "string",
                          "description": "Position side: Optional in one-way margin mode, default BOTH; required in hedge mode, optional LONG/SHORT",
                          "example": "BOTH"
                        },
                        "newClientOrderId": {
                          "type": "string",
                          "description": "Client Order ID: Only supports [a-zA-Z0-9-_], if not provided, a UUID will be automatically generated",
                          "example": "574366a1-7ac1-4edc-a2c8-135d4b710847"
                        },
                        "isolated": {
                          "type": "boolean",
                          "description": "Is isolated: default false",
                          "example": false
                        },
                        "type": {
                          "type": "string",
                          "description": "Order type: LIMIT/MARKET/STOP/TAKE_PROFIT/STOP_MARKET/TAKE_PROFIT_MARKET",
                          "example": "LIMIT"
                        },
                        "timeInForce": {
                          "type": "string",
                          "description": "Time in force: GTC/FOK/IOC/POST_ONLY; default GTC; cannot be filled for MARKET/STOP_MARKET/TAKE_PROFIT_MARKET",
                          "example": "GTC"
                        },
                        "quantity": {
                          "type": "number",
                          "description": "Quantity: One of quantity or amount; mutually exclusive with closePosition; required for LIMIT/MARKET/STOP/TAKE_PROFIT/STOP_MARKET/TAKE_PROFIT_MARKET types when closePosition is not provided",
                          "example": 0.01
                        },
                        "price": {
                          "type": "number",
                          "description": "Price: Required for LIMIT/STOP/TAKE_PROFIT; cannot be filled for MARKET/STOP_MARKET/TAKE_PROFIT_MARKET",
                          "example": 60000
                        },
                        "stopPrice": {
                          "type": "number",
                          "description": "Stop price: Required for STOP/STOP_MARKET/TAKE_PROFIT/TAKE_PROFIT_MARKET; cannot be filled for other types",
                          "example": 59000
                        },
                        "closePosition": {
                          "type": "boolean",
                          "description": "Close all after triggering: Only supports STOP/STOP_MARKET/TAKE_PROFIT/TAKE_PROFIT_MARKET; mutually exclusive with quantity, amount, and reduceOnly",
                          "example": false
                        },
                        "reduceOnly": {
                          "type": "boolean",
                          "description": "Is reduce only: Default false in one-way mode; cannot be true in hedge mode; mutually exclusive with closePosition",
                          "example": false
                        },
                        "workingType": {
                          "type": "string",
                          "description": "Trigger type: LAST_PRICE/MARK_PRICE; default LAST_PRICE",
                          "example": "LAST_PRICE"
                        },
                        "newOrderRespType": {
                          "type": "string",
                          "description": "Response type: ACK/RESULT; default ACK; MARKET orders directly return execution results when RESULT is used",
                          "example": "ACK"
                        },
                        "selfTradePreventionMode": {
                          "type": "string",
                          "description": "Self-trade prevention mode: EXPIRE_TAKER/EXPIRE_MAKER/EXPIRE_BOTH; default EXPIRE_TAKER",
                          "example": "EXPIRE_TAKER"
                        },
                        "amount": {
                          "type": "number",
                          "description": "Notional value: One of quantity or amount; if amount is provided, quantity can be omitted, and the system converts the quantity based on price and rounds up to the nearest integer multiple of the step size; mutually exclusive with closePosition",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "batchOrders": [
                  {
                    "category": "FUTURE",
                    "symbol": "BTCUSDC",
                    "side": "BUY",
                    "newClientOrderId": "574366a1-7ac1-4edc-a2c8-135d4b710847",
                    "type": "LIMIT",
                    "price": "61000",
                    "quantity": "0.01",
                    "timeInForce": "GTC"
                  },
                  {
                    "category": "FUTURE",
                    "symbol": "BTCUSDC",
                    "side": "BUY",
                    "newClientOrderId": "574366a1-7ac1-4edc-a2c8-135d4b710848",
                    "type": "LIMIT",
                    "price": "62000",
                    "quantity": "0.01",
                    "timeInForce": "GTC"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Batch orders placed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "orderId": {
                        "type": "integer",
                        "description": "Order ID",
                        "format": "int64",
                        "example": 2184213131143033600
                      },
                      "clientOrderId": {
                        "type": "string",
                        "description": "Client custom order ID",
                        "example": "574366a1-7ac1-4edc-a2c8-135d4b710847"
                      },
                      "symbol": {
                        "type": "string",
                        "description": "Trading pair",
                        "example": "BTCUSDC"
                      },
                      "type": {
                        "type": "string",
                        "description": "Order type",
                        "example": "LIMIT"
                      },
                      "positionSide": {
                        "type": "string",
                        "description": "Position side",
                        "example": "BOTH"
                      },
                      "timeInForce": {
                        "type": "string",
                        "description": "Time in force",
                        "example": "GTC"
                      },
                      "side": {
                        "type": "string",
                        "description": "Side",
                        "example": "BUY"
                      },
                      "isolated": {
                        "type": "boolean",
                        "description": "Whether to use isolated margin",
                        "example": false
                      },
                      "origQty": {
                        "type": "string",
                        "description": "Original quantity",
                        "example": "0.01000000"
                      },
                      "price": {
                        "type": "string",
                        "description": "Order price",
                        "example": "60000.00000000"
                      },
                      "executedQty": {
                        "type": "string",
                        "description": "Executed quantity",
                        "example": "0.00000000"
                      },
                      "status": {
                        "type": "string",
                        "description": "Order status",
                        "example": "NEW"
                      },
                      "cumQuote": {
                        "type": "string",
                        "description": "Cumulative quote value",
                        "example": "0.00000000"
                      },
                      "avgPrice": {
                        "type": "string",
                        "description": "Average price",
                        "example": "0.00000000"
                      },
                      "stopPrice": {
                        "type": "string",
                        "description": "Stop price",
                        "example": "0.00000000"
                      },
                      "closePosition": {
                        "type": "boolean",
                        "description": "Whether to close the entire position after trigger or Whether this is a conditional full-close order",
                        "example": false
                      },
                      "origType": {
                        "type": "string",
                        "description": "Order type before trigger",
                        "example": "LIMIT"
                      },
                      "updateTime": {
                        "type": "integer",
                        "description": "Update timestamp",
                        "format": "int64",
                        "example": 1775114495594736600
                      },
                      "workingType": {
                        "type": "string",
                        "description": "Trigger price type",
                        "example": "LAST_PRICE"
                      },
                      "reduceOnly": {
                        "type": "boolean",
                        "description": "Whether the order is reduce-only",
                        "example": false
                      }
                    }
                  }
                },
                "example": [
                  {
                    "orderId": "2184225083340763904",
                    "clientOrderId": "574366a1-7ac1-4edc-a2c8-135d4b710847",
                    "symbol": "BTCUSDC",
                    "type": "LIMIT",
                    "positionSide": "BOTH",
                    "timeInForce": "GTC",
                    "side": "BUY",
                    "isolated": false,
                    "origQty": "0.01000000",
                    "price": "61000.00000000",
                    "executedQty": "0.00000000",
                    "status": "NEW",
                    "cumQuote": "0.00000000",
                    "avgPrice": "0.00000000",
                    "stopPrice": "0.00000000",
                    "closePosition": false,
                    "origType": "LIMIT",
                    "updateTime": "1775115920404202415",
                    "workingType": "LAST_PRICE",
                    "reduceOnly": false
                  }
                ]
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.osl.com"
    }
  ],
  "x-readme": {}
}
```