Commit Graph

8 Commits

Author SHA1 Message Date
Michael Handschuh 6362d101c1 Append type to custom data symbol
This is being done in an effort to prevent symbol collisions within the
custom data (SecurityType.Base) namespace. The custom data type's name,
is used for disambiguation. As written, this change will break several
user algorithms that still rely on using the implicit string -> Symbol
lift. Providing this type information is optional an currently only being
used by AddData<T> methods. Other consumers of SecurityType.Base symbols
arn't at risk for collision, such as the UserDefinedUniverse, ScheduledUniverse
and others that are LEAN controlled. In order to maintain backwards compatibility,
the SymbolCache was updated to do a hard search when the requested ticker was
not found, looking for the prefix ('ticker.').

Fixes #3332
2019-09-24 10:34:35 -03:00
Michael Handschuh bc522062d9 Check for invalid characters '|' and ' ' 2016-04-20 12:15:36 -04:00
Michael Handschuh 8ffeafae51 Adds SymbolCache.TryRemove methods 2016-04-07 14:18:10 -04:00
snugs 2b584fadd2 Adds SymbolCache tests for uncached and sid strings 2015-12-10 14:10:51 -05:00
snugs 9e660ffcbe Remove usages of Symbol implicits from non-algorithm projects 2015-11-18 18:15:31 -05:00
snugs a38373ed29 Adds SymbolCache.TryGetSymbol and TryGetTicker 2015-11-18 12:55:50 -05:00
snugs 18edd22e68 Rename SymbolCache.Get to SymbolCache.GetSymbol 2015-11-18 12:55:49 -05:00
snugs 9f7e1964ff Make Symbol implicit operators inverse operations
Having a symbol implicit to string and then string to symbol must be
inverse operations, consider the case we pass Symbol data.Symbol to a
method expecting a string, and then that same method invokes another
method expecting a Symbol, we'll need it to resolve back to the original
symbol.
2015-11-18 12:55:48 -05:00