Book life-cycle events : Init, Cache Update, etc.
More...
Book life-cycle events : Init, Cache Update, etc.
void DMA::OnInitialize |
( |
Context |
cxt, |
|
|
int |
sid |
|
) |
| |
Called when a registered Security is created off tape.
Useful to initialize Python-specific stuff for the record, for example create an associated Book class instance in Python.
- Parameters
-
cxt | - Context |
sid | - Unique Security ID |
void DMA::OnQuote |
( |
Context |
cxt, |
|
|
int |
sid |
|
) |
| |
Called when a real-time update has been processed.
- Parameters
-
cxt | - Context |
sid | - Unique Security ID |
void DMA::OnTrade |
( |
Context |
cxt, |
|
|
int |
sid |
|
) |
| |
Called when a registered Security trades.
- Parameters
-
cxt | - Context |
sid | - Unique Security ID |