PinkaCourt / stockIndexes

1 stars 0 forks source link

апи для сп100/500 #7

Closed PinkaCourt closed 2 years ago

PinkaCourt commented 2 years ago
  1. получаем капитализацию индекса https://query1.finance.yahoo.com/v10/finance/quoteSummary/^GSPC?modules=price
    regularMarketPrice.raw умножаем на 100 000 000
  2. получаем список всех акций индекса https://finnhub.io/api/v1/index/constituents?symbol=^GSPC&token=
  3. по каждой получаем все(почти) данные (включая капитализацию) https://financialmodelingprep.com/api/v3/profile/BRK-B?apikey=
  4. капитализация акций/капитализация индекса