|
|
| type |
| |
|
| instruments |
| |
|
| generic_security_constructor |
| |
|
|
string | SYMBOL_TEMPLATE = "COMPOSITE::{symbol}" |
| |
|
string | INSTRUMENT_SYMBOL_TEMPLATE = "INSTRUMENT::COMPOSITE::{symbol}" |
| |
◆ __init__()
| def composite.CompositeInstrument.__init__ |
( |
|
self, |
|
|
* |
instruments, |
|
|
|
generic_security_constructor |
|
) |
| |
Generic Composite Instrument - an instrument that's composed of multiple assets, example:
Currency Forward instruments - composed of spot currency and forward rates
A composite instrument will need to implement the create_instrument and initialize_instrument functions
and have a generic security constructor for calculating its returns on top of the tradable assets.
◆ create_instrument()
| def composite.CompositeInstrument.create_instrument |
( |
|
self | ) |
|
◆ initialize_instrument()
| def composite.CompositeInstrument.initialize_instrument |
( |
|
self | ) |
|
The documentation for this class was generated from the following file: