curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getmarketpricebypair \
--header 'Content-Type: application/json' \
--data '{
"sell_token_id": "",
"buy_token_id": "1002000"
}'
{
"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": "",
"buy_token_id": "1002000"
}'
{
"sell_token_id": "<string>",
"buy_token_id": "<string>",
"prices": [
{
"sell_token_quantity": "<string>",
"buy_token_quantity": "<string>",
"timestamp": 123
}
]
}
sell_token_id
— token ID being sold (use empty string for TRX)buy_token_id
— token ID being purchased (use empty string for TRX)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:
Market price for trading pair
The response is of type object
.