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
| Name | Type | Mandatory | Description |
|---|---|---|---|
| coinId | string | yes | Cryptocurrency ID (e.g., USDT) |
| fiatUnit | string | yes | Fiat currency (e.g., BRL, USD) |
Request
GET /api/v3/fiat/market/reference_price?coinId=USDT&fiatUnit=BRL
Response Parameters
| Name | Type | Description |
|---|---|---|
| coinId | string | Cryptocurrency ID |
| fiatUnit | string | Fiat currency |
| referencePrice | BigDecimal | Market reference price (external market data, may be empty) |
| marketBuyPrice | BigDecimal | MEXC order-book buy reference price (empty/0 if no orders) |
| marketSellPrice | BigDecimal | MEXC 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
}
}