binancash

Easy to get data from cnbc.com, it is free

Обучение
NASDAQ:AAPL   Apple Inc
It is a note for developer
Sometime, we need stock data to write strategy checking logic by python. Data from cnbc.com is good and it is free. How to get it?
There are 2 steps to do:
Step 1: install library python
pip install cnbcfinance
Step 2: Get history or get quote realtime
# Get history data
from cnbcfinance import get_history_df
data = get_history_df('AAPL', '30m')

# Get quote
from cnbcfinance import get_history_df
data = get_quota('AAPL')

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.