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

# Open Orders

> Read live orders, including parked conditional orders.

Read live orders, including parked conditional orders. This is an unsigned `POST /account` query with
`type: "openOrders"`, not a separate endpoint.

## Query target

Use a master or sub-account public key. Attached isolated-account orders are included and identified by `iso` and `isoPubkey`.

`originalSize` and remaining `size` are signed: positive means buy, negative means sell. `filledSize` is non-negative. Responses use `gtc`, `ioc`, `postOnly`, `postOnlySlide`, and `postOnlyJoin`. This current-state query is not paginated.


## OpenAPI

````yaml api-reference/account/openapi-open-orders.yaml POST /account
openapi: 3.0.3
info:
  title: Bulk Trade API - Open Orders
  version: 1.0.0
servers:
  - url: https://mainnet-api1.bulk.trade/api/v1
    description: Mainnet
  - url: https://exchange-api.bulk.trade/api/v1
    description: Testnet
security: []
paths:
  /account:
    post:
      summary: Open Orders
      description: >-
        Read live orders, including parked conditional orders. No signature
        required. Use a master or sub-account public key. Attached
        isolated-account orders are included and identified by `iso` and
        `isoPubkey`.
      operationId: queryAccountOpenOrders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - type
                - user
              properties:
                type:
                  type: string
                  enum:
                    - openOrders
                  default: openOrders
                user:
                  type: string
                  description: >-
                    Paste the account public key (base58). No account is
                    selected for you.
            example:
              type: openOrders
              user: ''
      responses:
        '200':
          description: >-
            Current account state in externally tagged array rows; illustrative
            example, not live data for the supplied account
          content:
            application/json:
              example:
                - openOrder:
                    symbol: BTC-USD
                    orderId: Fpa3oVuL3UzjNANAMZZdmrn6D1Zhk83GmBuJpuAWG51F
                    price: 99000
                    originalSize: 0.1
                    size: 0.1
                    filledSize: 0
                    vwap: 0
                    maker: true
                    reduceOnly: false
                    orderType: limit
                    trigger: null
                    tif: gtc
                    status: resting
                    timestamp: 1699564800000000000
                    iso: false
              schema:
                type: array
                items:
                  type: object
                  additionalProperties: false
                  required:
                    - openOrder
                  properties:
                    openOrder:
                      type: object
                      description: Order status and details
                      properties:
                        symbol:
                          type: string
                          description: Market symbol
                        orderId:
                          type: string
                          description: Order ID (base58) - use for cancellation
                        price:
                          type: number
                          description: >-
                            Order price (for conditional roots this is projected
                            from trigger threshold when direct price is not set)
                        originalSize:
                          type: number
                          description: >-
                            Original order size (signed; negative values
                            indicate sell-side intent)
                        size:
                          type: number
                          description: >-
                            Remaining size (signed; negative values indicate
                            sell-side intent; `trigger` baskets use `0` because
                            they are action containers, not direct sized orders)
                        filledSize:
                          type: number
                          description: Filled size
                        vwap:
                          type: number
                          description: Volume-weighted average fill price (0 if no fills)
                        maker:
                          type: boolean
                          description: true if order is maker (resting on book)
                        reduceOnly:
                          type: boolean
                          description: true if reduce-only order
                        orderType:
                          type: string
                          enum:
                            - limit
                            - market
                            - stop
                            - takeProfit
                            - range
                            - trigger
                            - trailing
                          description: Inferred order type for snapshots/open-orders
                        trigger:
                          allOf:
                            - type: object
                              required:
                                - px
                              properties:
                                isAbove:
                                  type: boolean
                                  description: >-
                                    Optional trigger direction when encoded;
                                    omitted when unavailable
                                px:
                                  type: number
                                  description: Trigger threshold price
                                lim:
                                  type: number
                                  description: >-
                                    Optional post-trigger limit price; omitted
                                    for market execution
                                oco:
                                  type: string
                                  description: Optional linked OCO sibling order ID
                                pxHi:
                                  type: number
                                  description: >-
                                    Optional upper trigger threshold for
                                    range/OCO
                                limHi:
                                  type: number
                                  description: >-
                                    Optional upper post-trigger limit for
                                    range/OCO
                                trb:
                                  type: integer
                                  format: uint32
                                  description: >-
                                    Trailing distance in bps (trailing orders
                                    only)
                                stb:
                                  type: integer
                                  format: uint32
                                  description: >-
                                    Favorable reset step in bps (trailing orders
                                    only)
                          nullable: true
                          description: >-
                            Trigger metadata for conditional/trigger orders,
                            otherwise `null`
                        tif:
                          type: string
                          enum:
                            - gtc
                            - ioc
                            - postOnly
                            - postOnlySlide
                            - postOnlyJoin
                          description: Time in force
                        status:
                          type: string
                          enum:
                            - pending
                            - placed
                            - resting
                            - working
                            - modified
                            - filled
                            - partiallyFilled
                            - cancelled
                            - cancelledRiskLimit
                            - cancelledSelfCrossing
                            - cancelledReduceOnly
                            - cancelledIoc
                            - rejectedInvalid
                            - rejectedRiskLimit
                            - rejectedCrossing
                            - rejectedDuplicate
                            - triggered
                            - siblingCancelled
                            - triggerFailed
                          description: Order status
                        timestamp:
                          type: integer
                          format: int64
                          description: Order placement time (nanoseconds)
                        iso:
                          type: boolean
                          description: >-
                            `true` if this row belongs to a per-instrument
                            isolated account, otherwise `false`
        '404':
          description: >-
            The current-state account or history scope was not found. History
            requests return the structured error envelope when a JSON body is
            present.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        enum:
                          - INVALID_HISTORY_QUERY
                          - INVALID_HISTORY_LIMIT
                          - INVALID_SLOT_RANGE
                          - CURSOR_INVALID
                          - ACCOUNT_NOT_FOUND
                          - HISTORY_NOT_COVERED
                          - CURSOR_EXPIRED
                          - HISTORY_STATE_NOT_READY
                          - HISTORY_BUSY
                          - HISTORY_STORAGE_ERROR
                      message:
                        type: string
        '408':
          description: >-
            Response timeout (60 seconds for orders, 5 seconds for current-state
            snapshot requests). An order may still execute; reconcile before
            submitting a replacement.
        '422':
          description: Unsupported query type or malformed current-state account body
          content:
            text/plain:
              schema:
                type: string
        '429':
          description: >-
            Request or action rate limit reached. Back off before retrying; the
            body may be plain text or empty.
        '500':
          description: >-
            Current-state request failure or history storage/decoding failure.
            History requests return the structured error envelope when a JSON
            body is present.
          content:
            application/json:
              schema:
                $ref: 92747a84-f5ba-4170-b0f9-dc547bba7833
        '503':
          description: >-
            History state is not ready, bounded read capacity is saturated, or
            the API is locked
          content:
            application/json:
              schema:
                oneOf:
                  - 2b30b8a9-e4ca-449b-a790-84d1baccab47
                  - type: object
                    required:
                      - code
                      - error
                    properties:
                      code:
                        type: string
                        enum:
                          - API_LOCKED
                      error:
                        type: string
      security: []

````

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