GET
/
api
/
v1
/
index
/
{index}
/
price
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"
}
const indexService = new IndexService(client);

indexService.getIndexPrice({
    index: 'COIN50',
}).then(async (response) => {
    console.log('Index Price: ', response);
})

For more information, please visit the INTX TS SDK.

Authorizations

CB-ACCESS-KEY
string
header
required

The Client ID that owns the API Key for the request

CB-ACCESS-PASSPHRASE
string
header
required

The pass phrase affiliated with the API Key

CB-ACCESS-SIGN
string
header
required

A HMAC SHA-256 signature using the API Key secret on the string TIMESTAMP, METHOD, REQUEST_PATH, BODY

CB-ACCESS-TIMESTAMP
string
header
required

The timestamp of when the request is being made

Path Parameters

index
string
required

Identifies the index by name (e.g., COIN50)

Response

200
application/json

Latest index price

The response is of type object.