Update Cache Symbols

A useful utility for demonstating the use of the update/remove cache symbols functions.


In [1]:
import pandas as pd
import pinkfish as pf

Update time series for the symbols below.
Time series will be fetched for any symbols not already cached.


In [2]:
pf.update_cache_symbols(symbols=['msft', 'orcl', 'tsla'])


updating symbols:
MSFT ORCL TSLA 

Remove the time series for TSLA


In [3]:
pf.remove_cache_symbols(symbols=['tsla'])


removing symbols:
TSLA 

Update time series for all symbols in the cache directory


In [4]:
pf.update_cache_symbols()


updating symbols:
BUD INTC TLT CLX GDX VZ HRL CL K ^GSPC ORCL 
GIS HSY MSFT BTI DOV MO BRK-B JNJ PM SPY 
HD DIS KO ADP MRK KMI BMY T SO MCD 
CMCSA KMB LMT NUE PG V RDS-B XOM UL GLD 
LLY 

Remove time series for all symbols in the cache directory


In [5]:
# WARNING!!! - if you uncomment the line below, you'll wipe out
# all the symbols in your cache directory
#pf.remove_cache_symbols()