El Salvador

Company API endpoints for Bitcoin treasury, holdings, price, profile, and performance data.

How to call

Request format

GET
curl -X GET "https://newhedge.io/api/v2/companies/el-salvador/METRIC_NAME?api_token=YOUR_TOKEN"
Query params

api_token (required) — 24 character token.

Path params

:metric_name — one of the company metric names listed below.

Responses

200 with JSON payload, 401 for missing/invalid token, 404 for missing resources.

Metrics

Each company metric is fetched independently.

4 metrics
Metric

Bitcoin Acquisitions

Bitcoin acquisition history for the company.

Endpoint
https://newhedge.io/api/v2/companies/el-salvador/bitcoin-acquisitions?api_token=YOUR_TOKEN

Replace `YOUR_TOKEN` with your Newhedge API token.

Sample response
200 Successful response
[
  {
    "date": 1755043200000,
    "type": "buy",
    "coin_id": "bitcoin",
    "source_url": "https://bitcoin.gob.sv/wallet/ONBTC",
    "holding_balance": 6267.0,
    "holding_net_change": 2.0,
    "transaction_value_usd": 246739.98,
    "average_entry_value_usd": 0.0,
    "transaction_value_calculated": true
  },
  {
    "date": 1755129600000,
    "type": "buy",
    "coin_id": "bitcoin",
    "source_url": "https://bitcoin.gob.sv/wallet/ONBTC",
    "holding_balance": 6268.0,
    "holding_net_change": 1.0,
    "transaction_value_usd": 118393.86,
    "average_entry_value_usd": 0.0,
    "transaction_value_calculated": true
  },
  {
    "date": 1763424000000,
    "type": "buy",
    "coin_id": "bitcoin",
    "source_url": "https://bitcoin.gob.sv/",
    "holding_balance": 7474.37,
    "holding_net_change": 1090.0,
    "transaction_value_usd": 100416373.0,
    "average_entry_value_usd": 92125.11,
    "transaction_value_calculated": false
  }
]
Metric

Bitcoin Holdings

Historical Bitcoin holdings for the company.

Endpoint
https://newhedge.io/api/v2/companies/el-salvador/bitcoin-holdings?api_token=YOUR_TOKEN

Replace `YOUR_TOKEN` with your Newhedge API token.

Sample response
200 Successful response
[
  [
    1790812800000,
    7474.37
  ],
  [
    1790899200000,
    7474.37
  ],
  [
    1790985600000,
    7474.37
  ]
]
Metric

Bitcoin Holdings USD

Historical USD value of the company's Bitcoin holdings.

Endpoint
https://newhedge.io/api/v2/companies/el-salvador/bitcoin-holdings-usd?api_token=YOUR_TOKEN

Replace `YOUR_TOKEN` with your Newhedge API token.

Sample response
200 Successful response
[
  [
    1790812800000,
    624462386.2892001
  ],
  [
    1790899200000,
    633698241.0671
  ],
  [
    1790985600000,
    631558852.1420001
  ]
]
Metric

Treasury Metrics

Bitcoin treasury summary metrics for the company.

Endpoint
https://newhedge.io/api/v2/companies/el-salvador/treasury-metrics?api_token=YOUR_TOKEN

Replace `YOUR_TOKEN` with your Newhedge API token.

Sample response
200 Successful response
{
  "btc_percent_company": 0.0,
  "total_btc_percentage": 0.036,
  "share_price_change_state": "up"
}
Not available for this company
  • price-data (Price Data) returns 404 {"error":"Data unavailable for this company"}
  • company-data (Company Data) returns 404 {"error":"Data unavailable for this company"}
  • performance-metrics (Performance Metrics) returns 404 {"error":"Data unavailable for this company"}