Provide the base symbol generator implementation
More...
Provide the base symbol generator implementation
Definition at line 27 of file BaseSymbolGenerator.cs.
◆ BaseSymbolGenerator()
Base constructor implementation for Symbol generator
- Parameters
-
settings | random data generation run settings |
random | produces random values for use in random data generation |
Definition at line 59 of file BaseSymbolGenerator.cs.
◆ Create()
Creates a ad-hoc symbol generator depending on settings
- Parameters
-
settings | random data generator settings |
random | produces random values for use in random data generation |
- Returns
- New symbol generator
Definition at line 74 of file BaseSymbolGenerator.cs.
◆ GenerateRandomSymbols()
IEnumerable<Symbol> QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.GenerateRandomSymbols |
( |
| ) |
|
◆ GenerateAsset()
abstract IEnumerable<Symbol> QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.GenerateAsset |
( |
string |
ticker = null | ) |
|
|
protectedpure virtual |
◆ NextSymbol()
Symbol QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.NextSymbol |
( |
SecurityType |
securityType, |
|
|
string |
market, |
|
|
string |
ticker = null |
|
) |
| |
Generates random symbol, used further down for asset
- Parameters
-
securityType | security type |
market | market |
ticker | Optionally can provide a ticker to use |
- Returns
- Random symbol
Definition at line 138 of file BaseSymbolGenerator.cs.
◆ NextTickerFromSymbolPropertiesDatabase()
string QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.NextTickerFromSymbolPropertiesDatabase |
( |
SecurityType |
securityType, |
|
|
string |
market |
|
) |
| |
|
protected |
Return a Ticker matching an entry in the Symbol properties database
- Parameters
-
securityType | security type |
market | |
- Returns
- Random Ticker matching an entry in the Symbol properties database
Definition at line 182 of file BaseSymbolGenerator.cs.
◆ GetRandomExpiration()
DateTime QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.GetRandomExpiration |
( |
SecurityExchangeHours |
marketHours, |
|
|
DateTime |
minExpiry, |
|
|
DateTime |
maxExpiry |
|
) |
| |
|
protected |
Generates random expiration date on a friday within specified time range
- Parameters
-
marketHours | market hours |
minExpiry | minimum expiration date |
maxExpiry | maximum expiration date |
- Returns
- Random date on a friday within specified time range
Definition at line 210 of file BaseSymbolGenerator.cs.
◆ NextUpperCaseString()
string QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.NextUpperCaseString |
( |
int |
minLength, |
|
|
int |
maxLength |
|
) |
| |
Generates a random string within the specified lengths.
- Parameters
-
minLength | The minimum length, inclusive |
maxLength | The maximum length, inclusive |
- Returns
- A new upper case string within the specified lengths
Definition at line 231 of file BaseSymbolGenerator.cs.
◆ GetAvailableSymbolCount()
abstract int QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.GetAvailableSymbolCount |
( |
| ) |
|
|
pure virtual |
◆ Random
◆ Settings
◆ MarketHoursDatabase
MarketHoursDatabase QuantConnect.ToolBox.RandomDataGenerator.BaseSymbolGenerator.MarketHoursDatabase |
|
getprotected |
◆ SymbolPropertiesDatabase
The documentation for this class was generated from the following file: