14 #ifndef __PYDMA_ENGINE_FCN
15 #define __PYDMA_ENGINE_FCN
261 bool ioctl( Context cxt,
string cmd,
int val );
336 void OnQuote( Context cxt,
int sid );
344 void OnTrade( Context cxt,
int sid );
359 void log(
string ty,
string msg );
366 void logRaw(
string msg );
411 void registerTickerByRegEx( Context cxt,
string regEx );
413 #endif // DOXYGEN_OMIT
446 int hour(
double tm );
671 PyList
pause( Context cxt );
679 PyList
resume( Context cxt );
685 #endif // __PYDMA_ENGINE_FCN
PyList lvc_getOrders(Context cxt, int sid, bool buy, int level, BookType bkTy)
Return all Orders from specified Price Level from Security by ID.
bool _bImplied
True if Update to Implied Book; False for Native.
Definition: pyEngine.h:201
Definition: pyEngine.h:195
Definition: pyEngine.h:116
long _OrdID
Order ID (If order-based feed)
Definition: pyEngine.h:128
int minute(double tm)
Return minute, not using localtime()
void registerTickers(Context cxt, list tickers)
Register a Python list, CSV list or single ticker to receive updates.
int _Price
Price Level.
Definition: pyEngine.h:118
bool ioctl(Context cxt, string cmd, int val)
Configure server.
Definition: pyEngine.h:170
Implied Book.
Definition: pyEngine.h:67
void logRaw(string msg)
Log raw message.
int _Time
Last Update Time in Nanos since Jan 1, 1970.
Definition: pyEngine.h:124
double replayTime(Context cxt)
Return replay (tape) time.
string dateTime(double tm)
Return string-ified Unix time as YYYY-MM-DD HH:MM:SS.uuuuuu.
Action
Update Action : Add, Delete, etc.
Definition: pyEngine.h:76
PyList getBook(Context cxt, int depth, BookType bkTy)
Return Book contents from current Security.
int _SecID
Security ID.
Definition: pyEngine.h:172
PyList getUpdate(Context cxt)
Return the current real-time update message.
void log(string ty, string msg)
Log INFO, WARNING or ERROR message.
Add Price Level to Book.
Definition: pyEngine.h:78
int seconds_Today(double tm)
Return number of seconds today, not using localtime()
int _NumOrds
Number of Orders.
Definition: pyEngine.h:122
string getSecurityName(Context cxt)
Return name of Security receiving the real-time update.
int hour(double tm)
Return hour not using localtime()
PyList getOrders(Context cxt, bool buy, int level, BookType bkTy)
Return all Orders from specified Price Level from current Security.
Delete Price Level from Book.
Definition: pyEngine.h:82
Delete ALL Price Levels in Book above this one.
Definition: pyEngine.h:86
double wallTime(Context cxt)
Return local (wall) time.
void OnStart(Context cxt)
Called after all records have been OnInitialize()'ed and data is ready to flow.
int _NumUpdAsk
Num Updates to Book - ASK Side.
Definition: pyEngine.h:178
PyList getStats(Context cxt)
Return Engine Stats.
void OnEngineUnload(Context cxt)
Called when Engine is unloaded.
BookType
Book Type - Native, Implied, Combined.
Definition: pyEngine.h:63
string getSecurityID(Context cxt)
Return unique ID of Security receiving the real-time update.
long _OrdID
Order ID (If order-based feed)
Definition: pyEngine.h:147
void OnEngineLoad(Context cxt)
Called when Engine is loaded.
int _NumUpdBid
Num Updates to Book - BID Side.
Definition: pyEngine.h:176
Action _Action
Action Type.
Definition: pyEngine.h:197
int _Size
Total Quantity at Level.
Definition: pyEngine.h:120
PyList resume(Context cxt)
Resume pumping of data.
PyList pause(Context cxt)
Pause pumping of data.
int second(double tm)
Return second, not using localtime()
int _Size
Total Quantity at Level.
Definition: pyEngine.h:149
void OnInitialize(Context cxt, int sid)
Called when a registered Security is created off tape.
Combined Book.
Definition: pyEngine.h:69
int _NumUpd
Num Updates to Book.
Definition: pyEngine.h:174
Native Book.
Definition: pyEngine.h:65
Modify Price Level in Book.
Definition: pyEngine.h:80
Delete ALL Price Levels in Book.
Definition: pyEngine.h:84
The Embedded DMA Python Interpreter.
Definition: pyEngine.h:210
void OnTrade(Context cxt, int sid)
Called when a registered Security trades.
string getError()
Return Python errno if set.
string version()
Return server version.
PyList getTrade(Context cxt)
Return the current real-time Trade message.
int _Level
Level Number; Top = 0.
Definition: pyEngine.h:126
bool _bBuy
True if Update to BID; False for ASK.
Definition: pyEngine.h:199
void OnQuote(Context cxt, int sid)
Called when a real-time update has been processed.
int _Time
Last Update Time in Nanos since Jan 1, 1970.
Definition: pyEngine.h:151
Definition: pyEngine.h:145
PyList lvc_getBook(Context cxt, int sid, int depth, BookType bkTy)
Return Book contents from any Security by ID.