DMA Embedded Python Engine
Build 21
|
Server Capabilities. More...
Functions | |
string | DMA::version () |
Return server version. More... | |
PyList | DMA::getStats (Context cxt) |
Return Engine Stats. More... | |
bool | DMA::ioctl (Context cxt, string cmd, int val) |
Configure server. More... | |
string | DMA::getError () |
Return Python errno if set. More... | |
Server Capabilities.
string DMA::getError | ( | ) |
Return Python errno if set.
The Python errno is set BEFORE exception thrown
PyList DMA::getStats | ( | Context | cxt | ) |
Return Engine Stats.
Engine Stats returned as a 5-element Python List:
Index | Type | Description |
---|---|---|
0 | int | Current Number of Live Orders |
1 | int | Current Number of Price Levels |
2 | int | Total Securities |
3 | int | Total Books (Native, Implied, Combined) |
4 | int | Total Messages Processed |
cxt | - Context driven into Python |
bool DMA::ioctl | ( | Context | cxt, |
string | cmd, | ||
int | val | ||
) |
Configure server.
Supported ioctl() commands:
Command | Value | Description |
---|---|---|
COUNT_ORDERS | 0 | Do not Count all Orders |
COUNT_ORDERS | 1 | Count all Orders |
COUNT_PRCLVLS | 0 | Do not Count all Price Levels |
COUNT_PRCLVLS | 1 | Count all Price Levels |
ERROR_CONFLATE | <num> | (Same) Error Conflation Value |
cxt | - Context driven into Python |
cmd | - Command - COUNT_ORDERS, etc. |
val | - Command-specific value |
string DMA::version | ( | ) |
Return server version.