|
Lean
$LEAN_TAG$
|
Provides access to a security's data via it's type. This implementation supports dynamic access by type name. More...
Public Member Functions | |
| DynamicSecurityData (IRegisteredSecurityDataTypesProvider registeredTypes, SecurityCache cache) | |
| Initializes a new instance of the DynamicSecurityData class More... | |
| DynamicMetaObject | GetMetaObject (Expression parameter) |
| Returns the T:System.Dynamic.DynamicMetaObject responsible for binding operations performed on this object. More... | |
| bool | HasData< T > () |
| Gets whether or not this dynamic data instance has data stored for the specified type More... | |
| bool | HasProperty (string name) |
| Gets whether or not this dynamic data instance has a property with the specified name. This is a case-insensitive search. More... | |
| T | Get< T > () |
| Gets the last item in the data list for the specified type More... | |
| IReadOnlyList< T > | GetAll< T > () |
| Gets the data list for the specified type More... | |
| PyObject | Get (Type type) |
| Get the matching cached object in a python friendly accessor More... | |
| IList | GetAll (Type type) |
| Get all the matching types with a python friendly overload. More... | |
| object | SetProperty (string name, object value) |
| Sets the property with the specified name to the value. This is a case-insensitve search. More... | |
| object | GetProperty (string name) |
| Gets the property's value with the specified name. This is a case-insensitve search. More... | |
Provides access to a security's data via it's type. This implementation supports dynamic access by type name.
Definition at line 33 of file DynamicSecurityData.cs.
| QuantConnect.Securities.DynamicSecurityData.DynamicSecurityData | ( | IRegisteredSecurityDataTypesProvider | registeredTypes, |
| SecurityCache | cache | ||
| ) |
Initializes a new instance of the DynamicSecurityData class
| registeredTypes | Provides all the registered data types for the algorithm |
| cache | The security cache |
Definition at line 47 of file DynamicSecurityData.cs.
| DynamicMetaObject QuantConnect.Securities.DynamicSecurityData.GetMetaObject | ( | Expression | parameter | ) |
Returns the T:System.Dynamic.DynamicMetaObject responsible for binding operations performed on this object.
| parameter | The expression tree representation of the runtime value. |
Definition at line 56 of file DynamicSecurityData.cs.
| bool QuantConnect.Securities.DynamicSecurityData.HasData< T > | ( | ) |
Gets whether or not this dynamic data instance has data stored for the specified type
Definition at line 64 of file DynamicSecurityData.cs.
| bool QuantConnect.Securities.DynamicSecurityData.HasProperty | ( | string | name | ) |
Gets whether or not this dynamic data instance has a property with the specified name. This is a case-insensitive search.
| name | The property name to check for |
Definition at line 75 of file DynamicSecurityData.cs.
Gets the last item in the data list for the specified type
Definition at line 88 of file DynamicSecurityData.cs.
| IReadOnlyList<T> QuantConnect.Securities.DynamicSecurityData.GetAll< T > | ( | ) |
Gets the data list for the specified type
Definition at line 97 of file DynamicSecurityData.cs.
| PyObject QuantConnect.Securities.DynamicSecurityData.Get | ( | Type | type | ) |
Get the matching cached object in a python friendly accessor
| type | Type to search for |
Definition at line 107 of file DynamicSecurityData.cs.
| IList QuantConnect.Securities.DynamicSecurityData.GetAll | ( | Type | type | ) |
Get all the matching types with a python friendly overload.
| type | Search type |
Definition at line 127 of file DynamicSecurityData.cs.
| object QuantConnect.Securities.DynamicSecurityData.SetProperty | ( | string | name, |
| object | value | ||
| ) |
Sets the property with the specified name to the value. This is a case-insensitve search.
| name | The property name to set |
| value | The new property value |
Definition at line 139 of file DynamicSecurityData.cs.
| object QuantConnect.Securities.DynamicSecurityData.GetProperty | ( | string | name | ) |
Gets the property's value with the specified name. This is a case-insensitve search.
| name | The property name to access |
Definition at line 149 of file DynamicSecurityData.cs.