Skip to main content

A simple OUCH 5.0 parser

Project description

OUCH_Parser

A simple parser for OUCH messages

Introduction

OUCH 5.0 is a text-based protocol for interaction between parties in financial trading. Banks, brokers, clearing firms, exchanges, and other general market participants use OUCH protocol for all phases of electronic trading.

This package provides a simple parser to interpret and store OUCH messages after they have been used for electronic trading purposes. It does not create OUCH messages or receive them in real time. It supports the decoding and formatting of OUCH messages.

Licence

The module is licensed under the MIT license.

Parsing Messages

To parse an OUCH message, first create an instance of the Parser class.

parser = Parser.Parser()

parser.parse(data) will parse the encoded OUCH messages that you pass in. You should enter data of type bytes, str, List[bytes], List[str], or List[int]. Results are stored inside the parser object

parser.getMessages() will return a Python dictionary containing all the data stored inside your parser object

parser.reset() will clear the data stored inside your parser

Contributing

Comments, suggestions, bug reports, bug fixes – all contributions to this project are welcomed. Please use this project’s GitHub page for access to the latest source code, and please open an issue for comments, suggestions, and bugs.

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

simpleouch-0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simpleouch-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file simpleouch-0.0.1.tar.gz.

File metadata

  • Download URL: simpleouch-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for simpleouch-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d80310d8e10904d1adc8e636392f2085e2902b13cc18eabc6b7308c242ed730b
MD5 e1217c2fdd0c9d30b74d46773d1f8687
BLAKE2b-256 0ba844cd073be5943fd4a0f697569fb72fcbddc5152b60c48183d4e09f7bcfd4

See more details on using hashes here.

File details

Details for the file simpleouch-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: simpleouch-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for simpleouch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9812a5ca8ac034813bd1aebb20fc203c69c20591e1bc1dd5f0b8a981869ff96a
MD5 9d27e3598684877e8db8943d96271b8a
BLAKE2b-256 157f1cc6ee00646a269cde5fad55a0759344e41782860f4312260c510770e1d2

See more details on using hashes here.

Supported by

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