When I just do
symbol('CASC')
I get an error which is expected.
There are multiple assets that have used the symbol CASC. You must use
set_symbol_lookup_date() before using symbol(). The table below shows
when each company traded using the symbol CASC.
ASSET FIRST TRADED LAST TRADED
CASCADIAN THERAPEUTICS INC 1993-01-03 2016-07-24
CASCADE CORPORATION 1993-01-03 2013-03-27
However the dates overlap (the start date for Cascadian Theraputics is wrong) so when I do:
set_symbol_lookup_date('1998-01-01')
symbol('CASC')
it should return Cascade Corporation (sid 1265) but it returns Cascadian Theraputics (sid 883).
My goal is to bring historical data in using fetcher so I believe I need to lookup by symbol and not sid. Is there anyway that I could remedy this?