Coinbase International Exchange API
cURL
curl --request GET \ --url https://api.international.coinbase.com/api/v1/index/{index}/composition-history \ --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", "divisor": 3935813421.91702, "timestamp": "2024-11-11T14:47:26Z", "inception_timestamp": "2020-12-31T00:00:00Z", "last_rebalance": "2024-08-30T00:00:00Z", "constituents": [ { "symbol": "BTC-USD", "name": "Bitcoin", "rank": 1, "cap_factor": "0.456192678887042", "amount": "19745468", "market_cap": "1625637364529.9463", "index_market_cap": "741603864223.787", "weight": "0.5130230783794717", "running_weight": "0.5130230783794717" } ] }
Retrieves a history of index composition records in a descending time order. The results are an array of index composition data recorded at different “timestamps”.
const indexService = new IndexService(client); indexService.getIndexCompositionHistory({ index: 'COIN50', }).then(async (response) => { console.log('Index Composition History: ', response); })
Show child attributes
Was this page helpful?