> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotstuff.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Place Order

> Send POST request to /exchange, or use the ExchangeClient SDKs.

Batch place orders.


## OpenAPI

````yaml openapi/exchange/trading/place-order.json POST /exchange
openapi: 3.0.3
info:
  title: Hotstuff Exchange API — Place Order
  version: 1.0.0
servers:
  - url: https://api.hotstuff.trade
security: []
paths:
  /exchange:
    post:
      summary: Place Order
      operationId: exchangeTradingPlaceOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                action:
                  type: object
                  properties:
                    data:
                      type: object
                      properties:
                        orders:
                          type: array
                          items:
                            type: object
                            properties:
                              instrumentId:
                                type: integer
                              side:
                                type: string
                                enum:
                                  - b
                                  - s
                                description: >-
                                  side of the order, one of `b` (buy) or `s`
                                  (sell)
                              positionSide:
                                type: string
                                enum:
                                  - BOTH
                                  - LONG
                                  - SHORT
                                description: >-
                                  position side, one of `BOTH` (for one-way
                                  mode), `LONG` (for long position leg in hedge
                                  mode), or `SHORT` (for short position leg in
                                  hedge mode)
                              price:
                                type: string
                                description: >-
                                  limit price (must be valid multiple of tick
                                  size)
                              size:
                                type: string
                                description: >-
                                  order size (must be valid multiple of lot
                                  size)
                              tif:
                                type: string
                                enum:
                                  - GTC
                                  - IOC
                                  - FOK
                                description: time in force, one of `GTC`, `IOC`, `FOK`
                              ro:
                                type: boolean
                                description: reduce-only order flag
                              po:
                                type: boolean
                                description: post-only order flag
                              cloid:
                                type: string
                                description: >-
                                  client order id recommended to pass a hex
                                  string, set to empty string for normal orders
                              triggerPx:
                                type: string
                                description: >-
                                  trigger price for TP/SL orders, set to empty
                                  string for normal orders
                              isMarket:
                                type: boolean
                                description: if true, the order is a market order
                              tpsl:
                                type: string
                                enum:
                                  - ''
                                  - tp
                                  - sl
                                description: >-
                                  TP/SL type, one of `tp` or `sl`, or empty
                                  string for normal orders
                              grouping:
                                type: string
                                description: >-
                                  grouping type, one of `position` (for
                                  position-based grouping) or `normal` (for
                                  normal grouping), or empty string for no
                                  grouping
                                enum:
                                  - ''
                                  - position
                                  - normal
                            required:
                              - instrumentId
                              - side
                              - positionSide
                              - price
                              - size
                              - tif
                              - ro
                              - po
                              - cloid
                              - triggerPx
                              - isMarket
                              - tpsl
                              - grouping
                        brokerConfig:
                          type: object
                          description: builder config for the order (optional)
                          properties:
                            broker:
                              type: string
                              description: builder's address
                            fee:
                              type: string
                              description: >-
                                builder fee to charge, e.g. set '0.0005' to set
                                broker fee as 0.05% i.e 5bps. Must be less than
                                max fee rate set by the user
                          required:
                            - broker
                            - fee
                        expiresAfter:
                          type: integer
                          description: >-
                            pass unix timestamp in milliseconds after which the
                            order will expire. This is checked against the block
                            timestamp by validators during validation
                        nonce:
                          type: integer
                      required:
                        - orders
                        - expiresAfter
                        - nonce
                    type:
                      type: string
                  required:
                    - data
                    - type
                signature:
                  type: string
                nonce:
                  type: integer
              required:
                - action
                - signature
                - nonce
              example:
                action:
                  data:
                    orders:
                      - instrumentId: 1
                        side: b
                        positionSide: BOTH
                        price: '92291'
                        size: '0.00597'
                        tif: IOC
                        ro: false
                        po: false
                        cloid: 9c29fda4-79b4-47da-a788-568703333134
                        triggerPx: ''
                        isMarket: true
                        tpsl: ''
                        grouping: ''
                    expiresAfter: 1769690725903
                    nonce: 1769687125903
                  type: placeOrder
                signature: >-
                  0xe39195212e76aa39cb8d91ebbd0da51aa3c9f540c5a121f6ae57fd682458a44b...
                nonce: 1769687125903
            examples:
              default:
                summary: Example request
                value:
                  action:
                    data:
                      orders:
                        - instrumentId: 1
                          side: b
                          positionSide: BOTH
                          price: '92291'
                          size: '0.00597'
                          tif: IOC
                          ro: false
                          po: false
                          cloid: 9c29fda4-79b4-47da-a788-568703333134
                          triggerPx: ''
                          isMarket: true
                          tpsl: ''
                          grouping: ''
                      expiresAfter: 1769690725903
                      nonce: 1769687125903
                    type: placeOrder
                  signature: >-
                    0xe39195212e76aa39cb8d91ebbd0da51aa3c9f540c5a121f6ae57fd682458a44b...
                  nonce: 1769687125903
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  tx_hash:
                    type: string
                  tx_type:
                    type: integer
                  error:
                    type: string
                  data:
                    type: object
                    properties:
                      status:
                        type: object
                        properties:
                          oid:
                            type: integer
                        required:
                          - oid
                    required:
                      - status
                  address:
                    type: string
              example:
                tx_hash: >-
                  0x0651207eef3271391dba93b96bb7d961a6d7b490fdfe9ee7a22b8c5f842b5867
                tx_type: 1301
                error: ''
                data:
                  status:
                    oid: 77738308
                address: '0x9908658A316D743159F001026F1ef08aa8F0b55B'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.