> For the complete documentation index, see [llms.txt](https://docs.ticko.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ticko.xyz/api-documentation/trade/rest-api/batch-place-orders.md).

# Batch Place Orders

## Batch Place Orders

> Places up to 20 orders for the same \`symbol\_id\`. Each order is validated and executed independently.\
> \
> \*\*Signing Type: A\*\*\
> \
> \*\*Rate-limit weight\*\*\
> \
> \- \*\*By IP:\*\* \`1\`\
> \- \*\*By address:\*\* \`1 + floor(batch\_length / 10)\` where \`batch\_length\` is the number of orders

```json
{"openapi":"3.1.0","info":{"title":"Ticko API","version":"1.0"},"tags":[{"name":"Trade","description":"Order lifecycle: place, modify, cancel (single and batch), chase, cancel-all, plus open orders, order history, and executions. All write endpoints are signed (Signing Type A)."}],"servers":[{"url":"https://api.testnet.ticko.xyz/v1","description":"Testnet"}],"paths":{"/trade/orders/batch":{"post":{"operationId":"batchPlaceOrders","summary":"Batch Place Orders","tags":["Trade"],"description":"Places up to 20 orders for the same `symbol_id`. Each order is validated and executed independently.\n\n**Signing Type: A**\n\n**Rate-limit weight**\n\n- **By IP:** `1`\n- **By address:** `1 + floor(batch_length / 10)` where `batch_length` is the number of orders","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"symbol_id":{"type":"integer","description":"Shared trading pair ID."},"orders":{"type":"array","description":"Up to 20 order objects. Each item uses place-order business fields except `symbol_id`.","items":{"type":"object","properties":{"client_order_id":{"type":"string","description":"Client order ID, maximum 36 characters."},"is_buy":{"type":"boolean","description":"`true` for buy, `false` for sell."},"order_type":{"type":"string","enum":["limit","market"],"description":"`limit` or `market`. Not required when `orders[].algo_order_type` is `tpsl`."},"time_in_force":{"type":"string","enum":["gtc","fok","ioc"],"description":"For limit orders: `gtc`, `fok`, or `ioc`. Default `gtc`."},"quantity":{"type":"string","description":"Order quantity."},"price":{"type":"string","description":"Limit price. For limit orders, exactly one of `price` or `price_match` is required."},"slippage":{"type":"string","description":"Market order slippage, from `0.0001` to `0.1`."},"position_side":{"type":"string","enum":["both","long","short"],"description":"Perpetuals: `both`, `long`, or `short`. Omit for spot."},"margin_mode":{"type":"string","enum":["cross","isolated"],"description":"Perpetuals: `cross` or `isolated`. Omit for spot."},"market_order_type":{"type":"string","enum":["base","quote"],"description":"Market order quote mode. Perpetuals use `base`; spot supports `base` or `quote`."},"stp_mode":{"type":"string","enum":["cancel_maker","cancel_taker","cancel_both","none"],"description":"`cancel_maker`, `cancel_taker`, `cancel_both`, or `none`. Default `cancel_maker`."},"price_match":{"type":"string","enum":["queue_1","queue_5","counter_party_1","counter_party_5"],"description":"`queue_1`, `queue_5`, `counter_party_1`, or `counter_party_5`. Cannot be used with `post_only`."},"algo_order_type":{"type":"string","enum":["conditional","tpsl","attached_tpsl"],"description":"`conditional`, `tpsl`, or `attached_tpsl`."},"conditional":{"type":"object","description":"Required for conditional orders.","properties":{"trigger_price":{"type":"string","description":"Required when `conditional` is present. Trigger price."},"trigger_by":{"type":"string","enum":["last_price","mark_price","oracle_price"],"description":"Required when `conditional` is present. Spot supports `last_price`; perpetuals support `last_price`, `mark_price`, or `oracle_price`."}}},"tpsl":{"type":"object","description":"Required for TPSL / attached TPSL.","properties":{"tpsl_mode":{"type":"string","enum":["full","partial"],"description":"Required when `tpsl` is present. `full` or `partial`."},"tp_trigger_price":{"type":"string","description":"Take-profit trigger price. Required for the TP leg."},"tp_trigger_by":{"type":"string","enum":["last_price","mark_price","oracle_price"],"description":"Take-profit trigger price source. Spot supports `last_price`; perpetuals support `last_price`, `mark_price`, or `oracle_price`."},"tp_order_type":{"type":"string","enum":["market","limit"],"description":"Take-profit child order type: `market` or `limit`."},"tp_order_price":{"type":"string","description":"Take-profit limit price. Required when `orders[].tpsl.tp_order_type` is `limit`."},"sl_trigger_price":{"type":"string","description":"Stop-loss trigger price. Required for the SL leg."},"sl_trigger_by":{"type":"string","enum":["last_price","mark_price","oracle_price"],"description":"Stop-loss trigger price source. Spot supports `last_price`; perpetuals support `last_price`, `mark_price`, or `oracle_price`."},"sl_order_type":{"type":"string","enum":["market","limit"],"description":"Stop-loss child order type: `market` or `limit`."},"sl_order_price":{"type":"string","description":"Stop-loss limit price. Required when `orders[].tpsl.sl_order_type` is `limit`."}}},"flags":{"type":"array","items":{"type":"string"},"description":"`post_only` and/or `reduce_only`."}},"required":["is_buy","quantity"]}}},"required":["symbol_id","orders"]},{"$ref":"#/components/schemas/SigningFieldsA"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Envelope"},{"type":"object","properties":{"data":{"type":"object","properties":{"tx_hash":{"type":"string","description":"Transaction hash."},"results":{"type":"array","description":"Per-order results in request order.","items":{"type":"object","properties":{"order_id":{"type":["string","null"],"description":"Order ID on success."},"client_order_id":{"type":["string","null"],"description":"Client order ID."},"state":{"type":"string","description":"Order state."},"code":{"type":"string","description":"`\"0\"` on success, otherwise error code."},"msg":{"type":"string","description":"Error message. Empty on success."}}}}}}}}]}}}}}}}},"components":{"schemas":{"SigningFieldsA":{"type":"object","required":["signer_address","nonce","expires_after","signature"],"properties":{"signer_address":{"type":"string","description":"Address of the user wallet or Agent key that signs the request."},"target_address":{"type":"string","description":"Account being operated. If omitted, defaults to `signer_address`."},"nonce":{"type":"integer","description":"Millisecond timestamp nonce. Must be unique per signer."},"expires_after":{"type":"integer","description":"Millisecond timestamp after which the request expires."},"signature":{"$ref":"#/components/schemas/Signature"}}},"Signature":{"type":"object","required":["r","s","v"],"description":"ECDSA signature over the EIP-712 `signing_hash`.","properties":{"r":{"type":"string","description":"32-byte hex string with `0x` prefix."},"s":{"type":"string","description":"32-byte hex string with `0x` prefix."},"v":{"type":"integer","enum":[27,28],"description":"Recovery identifier, `27` or `28`."}}},"Envelope":{"type":"object","description":"Standard success response envelope. `data` is defined per endpoint.","properties":{"code":{"type":"string","description":"`\"0\"` on success."},"msg":{"type":"string","description":"Empty on success."},"trace_code":{"type":"string","description":"Backend trace identifier. Empty on success."}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ticko.xyz/api-documentation/trade/rest-api/batch-place-orders.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
