curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getmarketpricebypair \
--header 'Content-Type: application/json' \
--data '
{
"sell_token_id": "1000006",
"buy_token_id": "1000001",
"visible": true
}
'{
"sell_token_id": "<string>",
"buy_token_id": "<string>",
"prices": [
{
"sell_token_quantity": "<string>",
"buy_token_quantity": "<string>",
"timestamp": 123
}
]
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getmarketpricebypair \
--header 'Content-Type: application/json' \
--data '
{
"sell_token_id": "1000006",
"buy_token_id": "1000001",
"visible": true
}
'{
"sell_token_id": "<string>",
"buy_token_id": "<string>",
"prices": [
{
"sell_token_quantity": "<string>",
"buy_token_quantity": "<string>",
"timestamp": 123
}
]
}sell_token_id — TRC10 token ID being sold, as a numeric string (for example, “1000006”).buy_token_id — TRC10 token ID being purchased, as a numeric string.visible — optional boolean. Some node builds require visible: true.sell_token_id — token ID being soldbuy_token_id — token ID being purchasedprices — array of recent price points containing:
sell_token_quantity — quantity of sell tokenbuy_token_quantity — quantity of buy tokentimestamp — when this price point was recordedwallet/getmarketpricebypair method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getmarketpricebypair' \
--header 'Content-Type: application/json' \
--data '{
"sell_token_id": "1000006",
"buy_token_id": "1000001",
"visible": true
}'
Market price for trading pair
Was this page helpful?