curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getmarketorderbyaccount \
--header 'Content-Type: application/json' \
--data '
{
"address": "41b487cdb2d8dc7b2a8e5e7e7b4e3e8b8b8b8b8b",
"offset": 0,
"limit": 20
}
'{
"orders": [
{
"order_id": "<string>",
"owner_address": "<string>",
"create_time": 123,
"sell_token_id": "<string>",
"sell_token_quantity": "<string>",
"buy_token_id": "<string>",
"buy_token_quantity": "<string>",
"sell_token_quantity_remain": "<string>",
"buy_token_quantity_remain": "<string>",
"state": "<string>"
}
]
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getmarketorderbyaccount \
--header 'Content-Type: application/json' \
--data '
{
"address": "41b487cdb2d8dc7b2a8e5e7e7b4e3e8b8b8b8b8b",
"offset": 0,
"limit": 20
}
'{
"orders": [
{
"order_id": "<string>",
"owner_address": "<string>",
"create_time": 123,
"sell_token_id": "<string>",
"sell_token_quantity": "<string>",
"buy_token_id": "<string>",
"buy_token_quantity": "<string>",
"sell_token_quantity_remain": "<string>",
"buy_token_quantity_remain": "<string>",
"state": "<string>"
}
]
}address — hexadecimal address of the account whose market orders you want to queryoffset — (optional) starting position for pagination (default: 0)limit — (optional) maximum number of orders to return (default: 20, max: 100)orders — array of market order objects, each containing:
order_id — unique identifier for the market orderowner_address — hexadecimal address of the order creatorcreate_time — timestamp when the order was createdsell_token_id — token ID being sold (empty for TRX)sell_token_quantity — quantity of tokens being soldbuy_token_id — token ID being purchased (empty for TRX)buy_token_quantity — quantity of tokens being purchasedsell_token_quantity_remain — remaining quantity available for salebuy_token_quantity_remain — remaining quantity to be purchasedstate — current order status (ACTIVE, INACTIVE, CANCELED, etc.)wallet/getmarketorderbyaccount method is used for:
Was this page helpful?