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

# Get open orders

> ### Parameters

| Parameter | Required | Type | Description |
| --------- | -------- | ---- | ----------- |
| account | yes | string (hex) | Ethereum-style account address for the sub-account context. |
| pagination_data | yes | object | Pagination segment containing `pageNumber` and `pageSize` (serialized per gateway contract). |

### Response fields

| Parameter | Required | Type | Description |
| --------- | -------- | ---- | ----------- |
| `orders` | no | array \| null | — |
| `orders[].filledQuantity` | yes | string | — |
| `orders[].instrumentId` | yes | integer (int64) | An instrument identifier (8-byte hash). |
| `orders[].orderId` | yes | integer (int64) | — |
| `orders[].orderType` | yes | string | — |
| `orders[].price` | yes | string | — |
| `orders[].quantity` | yes | string | — |
| `orders[].side` | yes | string | — |
| `orders[].timestamp` | yes | integer (int64) | — |
| `orders[].trader` | yes | string (hex) | An Ethereum-style account address (20 bytes). |
| `orders[].triggerPrice` | no | string \| null | — |
| `orders[].triggerType` | no | string | — |
| `orders[].twapFilledQuantity` | no | string \| null | — |
| `orders[].twapFrequency` | no | integer \| null | — |
| `orders[].twapInterval` | no | integer \| null | — |
| `orders[].twapOriginalQuantity` | no | string \| null | — |
| `orders[].twapRandomize` | no | boolean \| null | — |
| `pageNumber` | yes | integer | — |
| `pageSize` | yes | integer | — |

### Response example

A sample **`200`** JSON body is attached to this operation as an OpenAPI **example** (Mintlify shows it in the example panel, similar to other exchange API docs).



## OpenAPI

````yaml /specs/openapi.json get /open-orders
openapi: 3.1.0
info:
  title: RocketFi REST API
  description: REST API for Rocket Chain / RocketFi integrations.
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://beta.rocketfi.io
    description: Beta
  - url: https://testnet.rocket-cluster-1.com
    description: Testnet
  - url: https://devnet.rocket-cluster-1.com
    description: Devnet
security: []
tags:
  - name: Service
    description: Health and availability.
  - name: Market data
    description: Instruments, candles, fees, leverage, and funding data.
  - name: Account
    description: Account nonce, fees, collateral, positions, and orders.
  - name: Trading
    description: Transactions and order activity.
  - name: Vault and bridge
    description: Vaults, history, and bridge events.
  - name: Faucet (testnet)
    description: Testnet faucet for development.
paths:
  /open-orders:
    get:
      tags:
        - Account
      summary: Get open orders
      description: >-
        ### Parameters


        | Parameter | Required | Type | Description |

        | --------- | -------- | ---- | ----------- |

        | account | yes | string (hex) | Ethereum-style account address for the
        sub-account context. |

        | pagination_data | yes | object | Pagination segment containing
        `pageNumber` and `pageSize` (serialized per gateway contract). |


        ### Response fields


        | Parameter | Required | Type | Description |

        | --------- | -------- | ---- | ----------- |

        | `orders` | no | array \| null | — |

        | `orders[].filledQuantity` | yes | string | — |

        | `orders[].instrumentId` | yes | integer (int64) | An instrument
        identifier (8-byte hash). |

        | `orders[].orderId` | yes | integer (int64) | — |

        | `orders[].orderType` | yes | string | — |

        | `orders[].price` | yes | string | — |

        | `orders[].quantity` | yes | string | — |

        | `orders[].side` | yes | string | — |

        | `orders[].timestamp` | yes | integer (int64) | — |

        | `orders[].trader` | yes | string (hex) | An Ethereum-style account
        address (20 bytes). |

        | `orders[].triggerPrice` | no | string \| null | — |

        | `orders[].triggerType` | no | string | — |

        | `orders[].twapFilledQuantity` | no | string \| null | — |

        | `orders[].twapFrequency` | no | integer \| null | — |

        | `orders[].twapInterval` | no | integer \| null | — |

        | `orders[].twapOriginalQuantity` | no | string \| null | — |

        | `orders[].twapRandomize` | no | boolean \| null | — |

        | `pageNumber` | yes | integer | — |

        | `pageSize` | yes | integer | — |


        ### Response example


        A sample **`200`** JSON body is attached to this operation as an OpenAPI
        **example** (Mintlify shows it in the example panel, similar to other
        exchange API docs).
      operationId: get_open_orders
      parameters:
        - name: account
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/AccountAddress'
          description: Ethereum-style account address for the sub-account context.
        - name: pagination_data
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/PaginationData'
          description: >-
            Pagination segment containing `pageNumber` and `pageSize`
            (serialized per gateway contract).
      responses:
        '200':
          description: Open orders by account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOpenOrdersResponse'
              example:
                orders: []
                pageNumber: 0
                pageSize: 25
components:
  schemas:
    AccountAddress:
      type: string
      format: hex
      description: An Ethereum-style account address (20 bytes).
    PaginationData:
      type: object
      properties:
        pageNumber:
          $ref: '#/components/schemas/usize'
        pageSize:
          $ref: '#/components/schemas/usize'
    GetOpenOrdersResponse:
      type: object
      required:
        - pageNumber
        - pageSize
      properties:
        orders:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/OpenOrderView'
        pageNumber:
          $ref: '#/components/schemas/usize'
        pageSize:
          $ref: '#/components/schemas/usize'
    usize:
      type: integer
      minimum: 0
    OpenOrderView:
      type: object
      required:
        - orderId
        - trader
        - orderType
        - instrumentId
        - price
        - quantity
        - filledQuantity
        - side
        - timestamp
      properties:
        filledQuantity:
          type: string
        instrumentId:
          $ref: '#/components/schemas/InstrumentId'
        orderId:
          $ref: '#/components/schemas/u64'
        orderType:
          $ref: '#/components/schemas/OrderType'
        price:
          type: string
        quantity:
          type: string
        side:
          $ref: '#/components/schemas/OrderSide'
        timestamp:
          $ref: '#/components/schemas/u64'
        trader:
          $ref: '#/components/schemas/AccountAddress'
        triggerPrice:
          type:
            - string
            - 'null'
        triggerType:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TriggerType'
        twapFilledQuantity:
          type:
            - string
            - 'null'
        twapFrequency:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        twapInterval:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        twapOriginalQuantity:
          type:
            - string
            - 'null'
        twapRandomize:
          type:
            - boolean
            - 'null'
    InstrumentId:
      type: integer
      format: int64
      description: An instrument identifier (8-byte hash).
      minimum: 0
    u64:
      type: integer
      format: int64
      minimum: 0
    OrderType:
      type: string
      enum:
        - Limit
        - Market
        - Twap
    OrderSide:
      type: string
      enum:
        - Buy
        - Sell
    TriggerType:
      type: string
      enum:
        - StopLoss
        - TakeProfit

````