-
Notifications
You must be signed in to change notification settings - Fork 5
GetNewmPrice
Walter Lara edited this page Aug 8, 2024
·
2 revisions
Allows to query the NEWM token price in USD.
URL: /v1/cardano/prices/newm
Method: GET
Path Parameters: None
Query Parameters: None
Headers:
Accept: application/json
g-recaptcha-platform: {Web|Android|iOS}
g-recaptcha-token: {reCAPTCHA Token for "get_newm_price" action}
Code: 200 OK
Headers:
Content-Type: application/json
Content:
Field | Type | Description | Condition |
---|---|---|---|
usdPrice | uint64 | NEWM token price in USD (6 decimal places). For example, a value of 1234567 means $1.234567 USD | Always |
Content example:
{
"usdPrice": 5000
}
Code: 403 FORBIDDEN
Condition: If reCAPTCHA fails.
Headers:
Content-Type: application/json
Content example:
{
"code": 403,
"description": "Forbidden",
"cause": "Recaptcha failed"
}