Hi, I have created my own datalayer to access scandinavian stock exchanges.
Here's my issue right now, the symbol mapping don't work as expected.
- As an example of a mapping file: recsi.ose.csv. It has this content:
20200220,rec.ose
20201129,rec.ose
20501231,recsi.ose
- Which means at the date of 2020-11-30 it changed from REC -> RECSI
- This code:
self.SetStartDate(2021, 2, 9)
self.SetEndDate(2021, 2, 10)
self.AddEquity("RECSI.OSE", Resolution.Tick, 'nor')
self.AddEquity("RECSI.OSE", Resolution.Minute, 'nor')
self.Consolidate("RECSI.OSE", Resolution.Hour, self.HourBarHandler) ALG.historyHour = self.History(ticker, timedelta(20), Resolution.Hour)
ALG.historyMinute = self.History(ticker, timedelta(20), Resolution.Minute)
ALG.historyTick = self.History(ticker, timedelta(20), Resolution.Tick)When i Export these three PANDAS to excel, it shows:
- https://1drv.ms/u/s!ApGpUzcVR1sv6BUywgmMnw_4DjA4?e=cijB6A
It resolves correctly, as the data it contains is from "RECSI.OSE", but the ticker in the dataset is the old ticker (RSI.OSE)
- So my question is why does this happen?
In quantbook it all works fine.
Any idea?