Get current market price of trading pair

get
https://api.cryptomus.com/v2/user-api/exchange/markets/price
COPY

Request

Query parameters

NameParameter typeDefinition
symbol*stringTrading pair symbol

Parameter type

string

Definition

Trading pair symbol

* - mandatory parameter

Response example


1{
2  "price": "100308.94" // current asset price
3}
COPY

Possible codes

404: User or resource not found

422: Invalid input data

500: Internal server error

Possible errors

Example responses:


1{
2  "state": 0,
3  "message": "Standard validation error"
4}
COPY

Response example with error


1{
2  "code": 0,
3  "message": "Validation failed.",
4  "errors": [
5    {
6      "property": "symbol",
7      "value": null,
8      "message": "This value should not be blank."
9    }
10  ]
11}
COPY