Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Office > Finance

    pINET 0R3

    Download button

    No screenshots available
    Downloads: 572  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Bommarito | More programs
    Public Domain / FREE
    February 27th, 2006, 23:16 GMT
    ROOT / Office / Finance

     Read user reviews (0)  Refer to a friend  Subscribe

    pINET description

    pINET implements a Python interface for the NASDAQ INET XML service.

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

    Installation:

    · Place pINET.py in the directory your source resides in (site-lib, if you'd like, but there's no setup.py yet)
    · Replace the token variable with your INET developer token (http://data.inetats.com/members/ws/newtoken.jsp)
    · import pINET ...

    Examples:

    · test.st.py: single-threaded example
    · test.mt.py: multi-threaded example

    API:

    Single-threaded (see test.st.py)
    · requestOrders (symbol): returns up to 50 open orders on both sides in form:
    { 'buy':
    [{'price': ..., 'shares': ..., 'type': ...}, ...],
    'sell':
    [{'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 test.mt.py)
    · 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 setup.py install script and unit.py 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.



    Product's homepage

      


    TAGS:

    Python interface | NASDAQ interface | stock orders | pINET | NASDAQ | INET



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM