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

# Get Account Orders

> Retrieve all orders for a specific account



## OpenAPI

````yaml https://spec.speakeasy.com/aries/aries/aries-trading-platform-api-with-code-samples get /v1/accounts/{id}/orders
openapi: 3.0.3
info:
  title: Aries Trading Platform API
  description: >-
    Complete API documentation for the Aries trading platform including user
    management, authentication, account management, order management, market
    data, and analytics
  contact:
    name: Aries Financial
    email: dev@aries.com
  version: 1.0.0
servers:
  - url: https://api.tradearies.dev
    description: Production server
security: []
tags:
  - name: Accounts
    description: Account management endpoints for positions, orders, and balances
  - name: Analytics
    description: >-
      Analytics endpoints for market data analysis including top gainers,
      losers, volume leaders, sector analysis, analyst ratings, market breadth,
      and net inflow
  - name: Authentication
    description: User authentication endpoints
  - name: Calendars
    description: Calendar endpoints for economic events and historical data
  - name: Market Data
    description: >-
      Market data endpoints for symbol search, real-time data access, and equity
      details
  - name: Orders
    description: >-
      Order management endpoints for placing, updating, canceling, and
      previewing orders
  - name: Users
    description: User management endpoints
  - name: Health
    description: Service health endpoints
paths:
  /v1/accounts/{id}/orders:
    get:
      tags:
        - Accounts
      summary: Get Account Orders
      description: Retrieve all orders for a specific account
      operationId: getAccountOrders
      parameters:
        - name: id
          in: path
          description: Account ID
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of orders to return (0 = no limit)
          required: false
          schema:
            type: integer
            minimum: 0
            format: int64
            default: 0
      responses:
        '200':
          description: Account orders retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrdersResponse'
        '400':
          description: Bad request - missing account ID or invalid limit parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid authentication
        '403':
          description: Forbidden - insufficient permissions for account
        '404':
          description: Account not found
        '429':
          description: Rate limit exceeded
        '500':
          description: Internal server error
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: python
          label: Python (SDK)
          source: |-
            from finance_dev import FinanceDev, models
            import os


            with FinanceDev(
                security=models.Security(
                    client_id=os.getenv("FINANCEDEV_CLIENT_ID", ""),
                    client_secret=os.getenv("FINANCEDEV_CLIENT_SECRET", ""),
                ),
            ) as fd_client:

                res = fd_client.accounts.get_account_orders(id="<id>", limit=0)

                # Handle response
                print(res)
        - lang: java
          label: Java (SDK)
          source: >-
            package hello.world;


            import java.lang.Exception;

            import org.openapis.openapi.AriesJava;

            import org.openapis.openapi.models.errors.ErrorResponse;

            import
            org.openapis.openapi.models.operations.GetAccountOrdersResponse;


            public class Application {

                public static void main(String[] args) throws ErrorResponse, Exception {

                    AriesJava sdk = AriesJava.builder()
                            .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
                        .build();

                    GetAccountOrdersResponse res = sdk.accounts().getOrders()
                            .id("<id>")
                            .limit(0L)
                            .call();

                    if (res.getOrdersResponse().isPresent()) {
                        // handle response
                    }
                }
            }
components:
  schemas:
    GetOrdersResponse:
      type: array
      items:
        $ref: '#/components/schemas/OrderData'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        codes:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: Error code
              description:
                type: string
                description: Error description
    OrderData:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: Internal order ID
        status:
          type: string
          description: Order status
        orderAction:
          type: string
          description: Order action type
        userId:
          type: integer
          format: int64
          description: User ID who placed the order
        sterlingOrderId:
          type: string
          description: Sterling order identifier
        symbol:
          type: string
          description: Trading symbol
        avgPrice:
          type: string
          description: Average fill price
        quantityFilled:
          type: string
          description: Quantity filled
        postEffect:
          type: string
          description: Post-trade effect
        submittedAt:
          type: string
          format: date-time
          description: When order was submitted
        updatedAt:
          type: string
          format: date-time
          description: When order was last updated
        instrument:
          type: string
          description: Financial instrument type
        quantity:
          type: string
          description: Order quantity
        orderRejectionReason:
          type: string
          description: Reason for order rejection if applicable
        type:
          type: string
          description: Order type (market, limit, etc.)
        tradeAction:
          type: string
          description: Trade action (buy, sell)
        stopPrice:
          type: string
          description: Stop price for stop orders
        limitPrice:
          type: string
          description: Limit price for limit orders
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````