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