pINET 0R3 review

by on

pINET implements a Python interface for the NASDAQ INET XML service

License: Public Domain
File size: 8K
Developer: Michael Bommarito
0 stars award from

pINET implements a Python interface for the NASDAQ INET XML service. pINET allows access to real-time stock orders, executions, and statistics.


Place in the directory your source resides in (site-lib, if you'd like, but there's no yet)
Replace the token variable with your INET developer token (
import pINET ...

Examples: single-threaded example multi-threaded example


Single-threaded (see
requestOrders (symbol): returns up to 50 open orders on both sides in form:
{ 'buy':
[{'price': ..., 'shares': ..., 'type': ...}, ...],
[{'price': ..., 'shares': ..., 'type': ...}, ...]

requestExecs (symbol): returns up to last 100 INET executions in form:
[ {'price': ..., 'shares': ..., 'time': ..., 'type': ...} ... ]

requestStats (symbol): returns open, booked, and matched share statistics in form:
{ 'book': {'shares': ..., 'orders': ...},
'open': {'shares': ..., 'orders': ...},
'match': {'shares': ..., 'price': ...}

Multi-threaded (see
class RequesterThread
RequesterThread(symbol, type):
-symbol: NASDAQ symbol
-type: {reqOrders, reqExecs, reqStats}

RequesterThread.ID contains the thread's job ID, which in turn is used as the key by the pINET.jobQueue dictionary.

What's New in This Release:
The Top List API has been implemented and the source has been fully documented with examples via pydoc.
The install script and test script have also been integrated into the release.
Lastly among minor fixes, there is also a beta Tk interface that allows tracking of the top volume list and any NASDAQ symbol, displaying price, ask and bid, volume, and five-day graph.

pINET 0R3 keywords