DMA Embedded Python Engine  Build 21
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
Capabilities

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...
 

Detailed Description

Server Capabilities.

Function Documentation

string DMA::getError ( )

Return Python errno if set.

The Python errno is set BEFORE exception thrown

Returns
Current error if set; None if no error
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
Parameters
cxt- Context driven into Python
Returns
Engine Stats as List - described above
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
Parameters
cxt- Context driven into Python
cmd- Command - COUNT_ORDERS, etc.
val- Command-specific value
Returns
True if cmd is supported in ioctl(); False otherwise
string DMA::version ( )

Return server version.

Returns
Server version