Skip to main content

Parse IEX market data streams

Project description

iexparsing

A collection of parsers for IEX.

Use the parsers to gather relevant quotes and trades information.

Currently, only IEX-TP and TOPS parsing is supported.

IEX-TP Parsing Example

from iexparsing import iextp

session = iextp.Session()

outbound_segment = session.decode_packet(b'\x01\x00\xFF\xFF\x01\x00\x00\x00\x00\x00\x87\x42\x07\x00\x02\x00\x8c\xa6\x21\x00\x00\x00\x00\x00\xca\xc3\x00\x00\x00\x00\x00\x00\xec\x45\xc2\x20\x96\x86\x6d\x14\x01\x00\x69\x02\x00\xBE\xEF')
print(outbound_segment)
IEX-TP outbound segment: [b'i', b'\xbe\xef']

You can then pass outbound_segment.messages to a messages-protocol parser, e.g. TOPS.

TOPS Parsing Example

from iexparsing import tops

session = tops.Session()
    
print(session.decode_message(b'\x51\x00\xac\x63\xc0\x20\x96\x86\x6d\x14\x5a\x49\x45\x58\x54\x20\x20\x20\xe4\x25\x00\x00\x24\x1d\x0f\x00\x00\x00\x00\x00\xec\x1d\x0f\x00\x00\x00\x00\x00\xe8\x03\x00\x00'))
best bid: 9700 ZIEXT shares for 99.05 USD; best ask: 1000 ones for 99.07 USD @ 2016-08-23 19:30:32.572716

TODO

  • Make a basic parser
  • Write documentation
  • Report errors
  • Add a DEEP parser
  • Parse trading breaks

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iexparsing-0.2.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

iexparsing-0.2.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file iexparsing-0.2.1.tar.gz.

File metadata

  • Download URL: iexparsing-0.2.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.18.16-zen1-1-zen

File hashes

Hashes for iexparsing-0.2.1.tar.gz
Algorithm Hash digest
SHA256 08a68e065bf889633e7c8e9f8e0ffcb1693cc0f191dcbd20ad4088f1df43d744
MD5 8b27fe016931656910abef55d9dcc750
BLAKE2b-256 94d05e501fa641cd8ecf2b810d1b58b48abec25a3c2530814595c22ef49db8f1

See more details on using hashes here.

File details

Details for the file iexparsing-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: iexparsing-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.18.16-zen1-1-zen

File hashes

Hashes for iexparsing-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 720ce8fdaebec0d122e6c71c150218e8a52c0b6a4ee4b1d4efb6b51e3cbde1d3
MD5 5f520f09c1903863287dbd80b2155bb4
BLAKE2b-256 47dd488feced023b1c6bfd92faff90624dfa15bfa0252747fb95d9c95c48ac51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page