Skip to main content

Query Exchange Rate

Query the real-time P2P exchange rate for a specified cryptocurrency and fiat currency, returning the market reference price and MEXC's current order-book buy/sell reference prices.

HTTP Request

  • GET /api/v3/fiat/market/reference_price

Required Permission: P2P Account Read

Request Parameters

NameTypeMandatoryDescription
coinIdstringyesCryptocurrency ID (e.g., USDT)
fiatUnitstringyesFiat currency (e.g., BRL, USD)

Request

GET /api/v3/fiat/market/reference_price?coinId=USDT&fiatUnit=BRL

Response Parameters

NameTypeDescription
coinIdstringCryptocurrency ID
fiatUnitstringFiat currency
referencePriceBigDecimalMarket reference price (external market data, may be empty)
marketBuyPriceBigDecimalMEXC order-book buy reference price (empty/0 if no orders)
marketSellPriceBigDecimalMEXC order-book sell reference price (empty/0 if no orders)

Response

{
"msg": "success",
"code": 0,
"data": {
"coinId": "USDT",
"fiatUnit": "BRL",
"referencePrice": 5.85,
"marketBuyPrice": 5.80,
"marketSellPrice": 5.90
}
}