Base class for security databases, including market hours and symbol properties.
More...
|
| static void | Reset () |
| | Resets the database, forcing a reload when reused. Called in tests where multiple algorithms are run sequentially, and we need to guarantee that every test starts with the same environment. More...
|
| |
| static string | GetDatabaseSymbolKey (Symbol symbol) |
| | Gets the correct string symbol to use as a database key More...
|
| |
Base class for security databases, including market hours and symbol properties.
Definition at line 26 of file BaseSecurityDatabase.cs.
◆ BaseSecurityDatabase()
Initializes a new instance of the BaseSecurityDatabase<T, TEntry> class
- Parameters
-
| entries | The full listing of exchange hours by key |
| fromDataFolder | Method to load the database form the data folder |
| updateEntry | Method to update a database entry |
Definition at line 61 of file BaseSecurityDatabase.cs.
◆ Reset()
Resets the database, forcing a reload when reused. Called in tests where multiple algorithms are run sequentially, and we need to guarantee that every test starts with the same environment.
Definition at line 76 of file BaseSecurityDatabase.cs.
◆ ContainsKey() [1/3]
Determines if the database contains the specified key
- Parameters
-
- Returns
- True if an entry is found, otherwise false
Definition at line 138 of file BaseSecurityDatabase.cs.
◆ ContainsKey() [2/3]
Check whether an entry exists for the specified market/symbol/security-type
- Parameters
-
| market | The market the exchange resides in, i.e, 'usa', 'fxcm', ect... |
| symbol | The particular symbol being traded |
| securityType | The security type of the symbol |
Definition at line 149 of file BaseSecurityDatabase.cs.
◆ ContainsKey() [3/3]
Check whether an entry exists for the specified market/symbol/security-type
- Parameters
-
| market | The market the exchange resides in, i.e, 'usa', 'fxcm', ect... |
| symbol | The particular symbol being traded (Symbol class) |
| securityType | The security type of the symbol |
Definition at line 160 of file BaseSecurityDatabase.cs.
◆ GetDatabaseSymbolKey()
Gets the correct string symbol to use as a database key
- Parameters
-
- Returns
- The symbol string used in the database ke
Definition at line 174 of file BaseSecurityDatabase.cs.
◆ DataFolderDatabaseLock
◆ DataFolderDatabase
◆ Entries
◆ CustomEntries
The documentation for this class was generated from the following file: