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

# Get trades (admin)

> **Limit: 10 requests per 1 second**

`GET /v1/admin/trades`

Return client's trades history within a time range for admin usage.

Only return the latest 500 entries.

Supports two query modes:
- **Per-user mode:** Provide either `user_account` or `user_address`. `start_t` and `end_t` are optional.
- **Broker mode:** Omit both `user_account` and `user_address`. Both `start_t` and `end_t` are required, and the time range cannot exceed 180 days.




## OpenAPI

````yaml orderly.openapi get /v1/admin/trades
openapi: 3.0.1
info:
  title: EVM
  description: ''
  version: 1.0.0
servers:
  - url: https://api.orderly.org
    description: Mainnet
  - url: https://testnet-api.orderly.org
    description: Testnet
security: []
tags:
  - name: public
  - name: private
paths:
  /v1/admin/trades:
    get:
      tags:
        - private
      summary: Get trades (admin)
      description: >
        **Limit: 10 requests per 1 second**


        `GET /v1/admin/trades`


        Return client's trades history within a time range for admin usage.


        Only return the latest 500 entries.


        Supports two query modes:

        - **Per-user mode:** Provide either `user_account` or `user_address`.
        `start_t` and `end_t` are optional.

        - **Broker mode:** Omit both `user_account` and `user_address`. Both
        `start_t` and `end_t` are required, and the time range cannot exceed 180
        days.
      parameters:
        - name: symbol
          in: query
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: start_t
          in: query
          description: >-
            Start of the query range as a 13-digit Unix timestamp in
            milliseconds. Required in broker mode and optional in per-user mode.
            The broker-mode range cannot exceed 180 days.
          required: false
          example: ''
          schema:
            type: number
        - name: end_t
          in: query
          description: >-
            End of the query range as a 13-digit Unix timestamp in milliseconds.
            Required in broker mode and optional in per-user mode. The
            broker-mode range cannot exceed 180 days.
          required: false
          example: ''
          schema:
            type: number
        - name: page
          in: query
          description: the page you wish to query. start from 1
          required: false
          example: ''
          schema:
            type: number
        - name: size
          in: query
          description: 'the page size you wish to query. (max: 500)'
          required: false
          example: ''
          schema:
            type: number
        - name: user_account
          in: query
          description: >-
            Target user account for per-user mode. Provide either `user_account`
            or `user_address`. Omit both to use broker mode, which requires
            `start_t` and `end_t`.
          required: false
          example: ''
          schema:
            type: string
        - name: user_address
          in: query
          description: >-
            Target user address for per-user mode. Provide either `user_address`
            or `user_account`. Omit both to use broker mode, which requires
            `start_t` and `end_t`.
          required: false
          example: ''
          schema:
            type: string
        - $ref: '#/components/parameters/orderly_timestamp'
        - $ref: '#/components/parameters/orderly_account_id'
        - $ref: '#/components/parameters/orderly_key'
        - $ref: '#/components/parameters/orderly_signature'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminTradesResponse'
components:
  parameters:
    orderly_timestamp:
      name: orderly-timestamp
      in: header
      description: Timestamp of the signed request in milliseconds.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: '1649920583000'
    orderly_account_id:
      name: orderly-account-id
      in: header
      description: Account ID of the authenticated account.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: 6.858456565150415e+75
    orderly_key:
      name: orderly-key
      in: header
      description: Public orderly key used to sign the request.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: ed25519:8tm7dnKYkSc3FzgPuJaw1wztr79eeZpN35nHW5pL5XhX
    orderly_signature:
      name: orderly-signature
      in: header
      description: Signature of the request payload generated with the orderly key.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: >-
        dG4bkKiqG0dUYLzViRZkvbI6Sy239JxAdNMIBxFZ4w030Jofr0ORV06GHtvXZkaZaWUXE+XAU3fnzKN/5fDeBQ==
  schemas:
    AdminTradesResponse:
      allOf:
        - $ref: '#/components/schemas/BasicResponse'
        - type: object
          required:
            - data
          properties:
            data:
              type: object
              required:
                - meta
                - rows
              properties:
                meta:
                  $ref: '#/components/schemas/PaginationMeta'
                rows:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: number
                        example: 2
                      user_id:
                        type: number
                        example: 12345
                      account_id:
                        description: Account ID associated with the trade.
                        type: string
                        example: >-
                          0x114f583aea808c5812e16109b6c087660285a26f0a31dcc0f9b54f1a6a0fefbd
                      user_address:
                        description: Wallet address associated with the trade.
                        type: string
                        example: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619'
                      symbol:
                        type: string
                        example: PERP_BTC_USDC
                      fee:
                        type: number
                        example: 0.0001
                        description: >-
                          Total per-execution fee, including `order_enum_fee`
                          when present. Subtract `order_enum_fee` to derive the
                          non-enum trade fee.
                      fee_asset:
                        type: string
                        example: USDC
                        description: >-
                          fee. use Base as unit when BUY, use Quote as unit when
                          SELL
                      side:
                        type: string
                        example: BUY
                      order_id:
                        type: number
                        example: 1
                      executed_price:
                        type: number
                        example: 123
                      executed_quantity:
                        type: number
                        example: 0.05
                      executed_timestamp:
                        type: number
                        example: 1567382401000
                      is_maker:
                        type: number
                        example: 1
                      realized_pnl:
                        type: number
                        example: 0
                      match_id:
                        type: number
                        example: 1773456866666462000
                      margin_token:
                        type: string
                        example: USDC
                      margin_change_qty:
                        type: number
                        example: 0
                      margin_mode:
                        type: string
                        example: CROSS
                      order_enum_fee:
                        type: number
                        description: >-
                          Additional per-execution fee paid in full to the
                          fee-owning broker, in `fee_asset` units. Exclude this
                          amount from executing-builder and affiliate fee-share
                          calculations.
                        example: 0.05
                        nullable: true
                      order_enum_fee_rate:
                        type: number
                        description: >-
                          Custom trading fee rate applied at execution time.
                          Subtract this value from the trade fee rate to derive
                          the effective rate excluding the custom fee.
                        example: 0.005
                        nullable: true
    BasicResponse:
      required:
        - success
      type: object
      properties:
        success:
          description: Indicates whether the request was successful.
          type: boolean
          example: true
        timestamp:
          description: Server timestamp in milliseconds.
          type: integer
          example: 1702989203989
    PaginationMeta:
      required:
        - current_page
        - records_per_page
        - total
      type: object
      properties:
        total:
          type: integer
          example: 9
        records_per_page:
          type: integer
          example: 25
        current_page:
          type: integer
          example: 1
          description: start from 1

````