> ## 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 asset history

> **Limit 10 requests per 60 seconds**

`GET /v1/admin/asset/history`

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/asset/history
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/asset/history:
    get:
      tags:
        - private
      summary: Get asset history
      description: >
        **Limit 10 requests per 60 seconds**


        `GET /v1/admin/asset/history`


        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: token
          in: query
          description: token name you want to search
          required: false
          example: ''
          schema:
            type: string
        - name: side
          in: query
          description: '`DEPOSIT`/`WITHDRAW`'
          required: false
          example: ''
          schema:
            type: string
        - name: status
          in: query
          description: '`PENDING`/`PENDING_REBALANCE`/`PROCESSING`/`COMPLETED`/`FAILED`'
          required: false
          example: ''
          schema:
            type: string
            enum:
              - PENDING
              - PENDING_REBALANCE
              - PROCESSING
              - COMPLETED
              - FAILED
        - 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: start from 1
          required: false
          example: ''
          schema:
            type: number
        - name: size
          in: query
          description: ''
          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/AdminAssetHistoryResponse'
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:
    AdminAssetHistoryResponse:
      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:
                    $ref: '#/components/schemas/AdminAssetHistoryRecord'
    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
    AdminAssetHistoryRecord:
      allOf:
        - $ref: '#/components/schemas/AssetHistoryRecord'
        - type: object
          properties:
            block_time:
              description: >-
                Block timestamp associated with the asset history record in
                milliseconds.
              type: number
              example: 1688699193034
            account_id:
              description: Account ID associated with the asset history record.
              type: string
              example: >-
                0x114f583aea808c5812e16109b6c087660285a26f0a31dcc0f9b54f1a6a0fefbd
            user_address:
              description: Wallet address associated with the asset history record.
              type: string
              example: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619'
    AssetHistoryRecord:
      type: object
      required:
        - id
        - tx_id
        - side
        - token
        - amount
        - fee
        - trans_status
        - created_time
        - updated_time
        - chain_id
      properties:
        id:
          type: string
          example: '230707030600002'
        tx_id:
          description: On-chain transaction hash associated with the transfer.
          type: string
          example: '0x4b0714c63cc7abae72bf68e84e25860b88ca651b7d27dad1e32bf4c027fa5326'
        side:
          description: Transfer direction of the record.
          type: string
          example: WITHDRAW
        token:
          description: Token symbol involved in the transfer.
          type: string
          example: USDC
        amount:
          description: Transfer amount.
          type: number
          example: 555
        fee:
          description: Fee charged for the transfer.
          type: number
          example: 0
        trans_status:
          description: Current processing status of the transfer.
          type: string
          enum:
            - PENDING
            - PENDING_REBALANCE
            - PROCESSING
            - COMPLETED
            - FAILED
          example: FAILED
        created_time:
          description: Timestamp when the transfer request was created in milliseconds.
          type: number
          example: 1688699193034
        updated_time:
          description: Timestamp of the latest transfer update in milliseconds.
          type: number
          example: 1688699193096
        chain_id:
          description: Chain ID associated with the transfer.
          type: string
          example: '986532'

````