TIINGO_remote_data_access-Copy1 Remote Data Access Tiingo Examples ¶ Need a FREE TIINGO API key In [52]: import os import pandas_datareader as pdr import pandas as pd import pandas import matplotlib as mpl % matplotlib inline !pip3 install tiingo[pandas] ¶ Set TIINGO_API_KEY in your environment variables in your .bash_profile, OR pass a dictionary with 'api_key' as a key into the TiingoClient. In [53]: config = {} # To reuse the same HTTP Session across API calls (and have better performance), include a session key. config [ 'session' ] = True # If you don't have your API key as an environment variable, # pass it in via a configuration dictionary. config [ 'api_key' ] = "Your Tiingo API Key" # Initialize client = TiingoClient ( config ) Get Ticker ¶ In [54]: ticker_...
Posts
Showing posts from March, 2021