mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 03:08:56 +08:00
BUG: Ensure symbols are made upper case in db
This commit is contained in:
@@ -319,6 +319,9 @@ class AssetDBWriter(with_metaclass(ABCMeta)):
|
||||
equities_output['first_traded'] = \
|
||||
equities_output['first_traded'].apply(self.convert_datetime)
|
||||
|
||||
# Convert symbols to upper case.
|
||||
equities_output['symbol'] = equities_output.symbol.str.upper()
|
||||
|
||||
# ******** Generate futures data ********
|
||||
|
||||
futures_defaults = {
|
||||
@@ -370,6 +373,10 @@ class AssetDBWriter(with_metaclass(ABCMeta)):
|
||||
futures_output['expiration_date'] = \
|
||||
futures_output['expiration_date'].apply(self.convert_datetime)
|
||||
|
||||
# Convert symbols and root_symbols to upper case.
|
||||
futures_output['symbol'] = futures_output.symbol.str.upper()
|
||||
futures_output['root_symbol'] = futures_output.root_symbol.str.upper()
|
||||
|
||||
# ******** Generate exchanges data ********
|
||||
|
||||
exchanges_defaults = {
|
||||
|
||||
Reference in New Issue
Block a user