Coinbase International Exchange API
cURL
curl --request GET \ --url https://api.international.coinbase.com/api/v1/index/{index}/price \ --header 'CB-ACCESS-KEY: <api-key>' \ --header 'CB-ACCESS-PASSPHRASE: <api-key>' \ --header 'CB-ACCESS-SIGN: <api-key>' \ --header 'CB-ACCESS-TIMESTAMP: <api-key>'
{ "product_id": "COIN50", "status": "STATE_OK", "timestamp": "2024-11-11T20:42:33Z", "price": "388.91871799439963", "price_24hr_change": "8.940862872710408" }
Retrieves the latest index price
const indexService = new IndexService(client); indexService.getIndexPrice({ index: 'COIN50', }).then(async (response) => { console.log('Index Price: ', response); })
Was this page helpful?