Skip to content

GetNewmPrice

Walter Lara edited this page Aug 8, 2024 · 2 revisions

Get NEWM Price

Allows to query the NEWM token price in USD.

Request

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}

✅ Success Response

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
}

❌ Error Responses

1. Forbidden

Code: 403 FORBIDDEN

Condition: If reCAPTCHA fails.

Headers:

Content-Type: application/json

Content example:

{
    "code": 403,
    "description": "Forbidden",
    "cause": "Recaptcha failed"
}

See Also

Get ADA Price

Clone this wiki locally