Api Documentation

API Documentation & Keys

Interact with the NHB ecosystem programmatically using these public endpoints.

You can fetch the live NHB price by sending a GET request to: https://nhbcoin.com/api/price

Example response: {"nhbcoin_price_usd": 3.80}

  • https://nhbcoin.com/api/price

For currency conversions to BTC, ETH, EUR, etc., use: https://nhbcoin.com/api/rates

Example response: {"nhbcoin_price_usd":3.80, "conversion_rates":{"EUR":3.52,"BTC":0.0001,...}}

  • https://nhbcoin.com/api/rates

Retrieve historical NHB price with open-high-low-close (OHLC) data. Example request: GET https://nhbcoin.com/api/ohlc?start=2025-03-13T00:00:00&end=2025-03-13T23:59:59

Required authentication:

  • Header x-api-key: YOUR_API_KEY
  • Query param ?api_key=YOUR_API_KEY

Example successful response: { "success": true, "data": [{ "timestamp": "2025-03-13T00:00:00.000Z", "open": 3.8, "high": 4.1, "low": 3.7, "close": 3.95, "volume": 123.45, "netLiquidity": 5000, "treasuryFunds": 2000, "tokensInCirculation": 10000 }, ...] }

  • https://nhbcoin.com/api/ohlc