Get current market price of trading pair
get
https://api.cryptomus.com/v2/user-api/exchange/markets/price
Request
Query parameters
Name | Parameter type | Definition |
---|---|---|
symbol* | string | Trading pair symbol |
Parameter type
stringDefinition
Trading pair symbol
* - mandatory parameter
Response example
1{
2 "price": "100308.94" // current asset price
3}
COPYPossible 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}
COPYResponse 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