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

# wallet/getmarketorderbyaccount | TRON

> TRON API method that retrieves all market orders associated with a specific account. wallet/getmarketorderbyaccount on TRON via Chainstack.

TRON API method that retrieves all market orders associated with a specific account. This includes both active and historical buy/sell orders placed on the TRON DEX marketplace.

## Parameters

* `address` — hexadecimal address of the account whose market orders you want to query
* `offset` — (optional) starting position for pagination (default: 0)
* `limit` — (optional) maximum number of orders to return (default: 20, max: 100)

## Response

* `orders` — array of market order objects, each containing:
  * `order_id` — unique identifier for the market order
  * `owner_address` — hexadecimal address of the order creator
  * `create_time` — timestamp when the order was created
  * `sell_token_id` — token ID being sold (empty for TRX)
  * `sell_token_quantity` — quantity of tokens being sold
  * `buy_token_id` — token ID being purchased (empty for TRX)
  * `buy_token_quantity` — quantity of tokens being purchased
  * `sell_token_quantity_remain` — remaining quantity available for sale
  * `buy_token_quantity_remain` — remaining quantity to be purchased
  * `state` — current order status (ACTIVE, INACTIVE, CANCELED, etc.)

## Use case

The `wallet/getmarketorderbyaccount` method is used for:

* Viewing all trading orders for a specific account on TRON DEX.
* Building portfolio management dashboards showing order history.
* Tracking order execution status and remaining quantities.
* Analyzing trading patterns and market participation.
* Creating automated trading monitoring systems.

<Note>
  Market orders on TRON DEX can trade TRX against TRC-10 tokens. Empty token IDs represent TRX in the trading pair. The order state indicates whether the order is still active and available for matching with other orders.
</Note>


## OpenAPI

````yaml openapi/tron_node_api/getmarketorderbyaccount.json post /95e61622bf6a8af293978377718e3b77/wallet/getmarketorderbyaccount
openapi: 3.0.0
info:
  title: wallet/getmarketorderbyaccount TRON API
  version: 1.0.0
  description: Get market orders for an account
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/getmarketorderbyaccount:
    post:
      tags:
        - Market and DEX
      summary: wallet/getmarketorderbyaccount
      operationId: getMarketOrderByAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                  description: Account address in hex format
                offset:
                  type: number
                  description: 'Starting position for pagination (default: 0)'
                limit:
                  type: number
                  description: 'Maximum number of orders to return (default: 20, max: 100)'
              required:
                - address
              example:
                address: 41b487cdb2d8dc7b2a8e5e7e7b4e3e8b8b8b8b8b
                offset: 0
                limit: 20
      responses:
        '200':
          description: Market orders for the account
          content:
            application/json:
              schema:
                type: object
                properties:
                  orders:
                    type: array
                    items:
                      type: object
                      properties:
                        order_id:
                          type: string
                          description: Unique identifier for the market order
                        owner_address:
                          type: string
                          description: Order creator address
                        create_time:
                          type: number
                          description: Order creation timestamp
                        sell_token_id:
                          type: string
                          description: Token ID being sold (empty for TRX)
                        sell_token_quantity:
                          type: string
                          description: Quantity of tokens being sold
                        buy_token_id:
                          type: string
                          description: Token ID being purchased (empty for TRX)
                        buy_token_quantity:
                          type: string
                          description: Quantity of tokens being purchased
                        sell_token_quantity_remain:
                          type: string
                          description: Remaining quantity for sale
                        buy_token_quantity_remain:
                          type: string
                          description: Remaining quantity to purchase
                        state:
                          type: string
                          description: Order status

````