El Salvador
Company API endpoints for Bitcoin treasury, holdings, price, profile, and performance data.
Request format
curl -X GET "https://newhedge.io/api/v2/companies/el-salvador/METRIC_NAME?api_token=YOUR_TOKEN"
api_token (required) — 24 character token.
:metric_name — one of the company metric names listed below.
200 with JSON payload, 401 for missing/invalid token, 404 for missing resources.
Metrics
Each company metric is fetched independently.
Bitcoin Acquisitions
Bitcoin acquisition history for the company.
https://newhedge.io/api/v2/companies/el-salvador/bitcoin-acquisitions?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your Newhedge API token.
[
{
"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
}
]
Bitcoin Holdings
Historical Bitcoin holdings for the company.
https://newhedge.io/api/v2/companies/el-salvador/bitcoin-holdings?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your Newhedge API token.
[
[
1778976000000,
7474.37
],
[
1779062400000,
7474.37
],
[
1779148800000,
7474.37
]
]
Bitcoin Holdings USD
Historical USD value of the company's Bitcoin holdings.
https://newhedge.io/api/v2/companies/el-salvador/bitcoin-holdings-usd?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your Newhedge API token.
[
[
1778976000000,
578739422.6882
],
[
1779062400000,
575109943.3599
],
[
1779148800000,
573732715.9437
]
]
Price Data
Historical market price data stored on the company profile.
https://newhedge.io/api/v2/companies/el-salvador/price-data?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your Newhedge API token.
{
"message": "Data unavailable for this company"
}
Company Data
Company profile, fundamentals, and related reference data.
https://newhedge.io/api/v2/companies/el-salvador/company-data?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your Newhedge API token.
{
"message": "Data unavailable for this company"
}
Performance Metrics
Calculated performance metrics for the company.
https://newhedge.io/api/v2/companies/el-salvador/performance-metrics?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your Newhedge API token.
{
"message": "Data unavailable for this company"
}
Treasury Metrics
Bitcoin treasury summary metrics for the company.
https://newhedge.io/api/v2/companies/el-salvador/treasury-metrics?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your Newhedge API token.
{
"btc_percent_company": 0.0,
"total_btc_percentage": 0.036,
"share_price_change_state": "up"
}