alphavantage bist100 api does not respond

446 views Asked by At
1

There are 1 answers

0
Jakub On

You can get the data running this python script.

Make sure you do pip install alpha_vantage first

import pandas as pd
import json
import requests
import datetime
from pandas import DataFrame
from datetime import datetime as dt
from alpha_vantage.timeseries import TimeSeries


stock_ticker = 'SPY'
api_key = 'yourkey'

ts = TimeSeries (key=api_key, output_format = "pandas")
data_daily, meta_data = ts.get_intraday(symbol=stock_ticker, interval ='1min', outputsize ='full')

print(data_daily)

enter image description here