Skip to main content

Blockhouse SDK

Project description

Blockhouse SDK API Package

This is a Python SDK package that is used for various functionality from the Blockhouse API. The package is published on PyPI and can be installed using pip.

Table of Contents

  1. Features
  2. Usage
  3. Available Functions
  4. License
  5. Contributing
  6. Support
  7. Changelog

Features

  • Fetch trade data from the Blockhouse API and send them to our kafka topic.

Usage

Get the API key from the Blockhouse API and install the package using pip:

pip install blockhouse

Using as a Python Library

from blockhouse import Transfer

client = Transfer(api_key="your_api_key_here")

send = client.send_file(local_file_path="test123.txt", bucket_name="blockhouse-sdk")

print(send)

trades = client.trades_data()

print(trades)

Sending SOR data to the Blockhouse API

from blockhouse import TradeClient

client = TradeClient("your_api_key_here")
res = client.send_trade(
    order_id="12345",
    symbol="AAPL",
    quantity=100,
    side="buy",
    price=150.50,
    order_type="limit",
)
print(res)

Available Functions:

  • TransferData: Fetch trade data from the Blockhouse API and send them to our kafka topic.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

Support

If you encounter any issues or have questions, feel free to open email us.

Changelog

Version 1.0.9

  • Added the ability to send files to the Blockhouse API.
  • Added the ability to fetch trade data from the Blockhouse API.
  • Added the ability to send SOR data to the Blockhouse API and create FIX messages.

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

blockhouse-1.0.21.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

blockhouse-1.0.21-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file blockhouse-1.0.21.tar.gz.

File metadata

  • Download URL: blockhouse-1.0.21.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for blockhouse-1.0.21.tar.gz
Algorithm Hash digest
SHA256 f15dfbd33cc9fd2c69cacadf0b71c9741d350a8fe477686b821072915d1c0dab
MD5 3b20944486c6a90b564e1e43506273d8
BLAKE2b-256 6dad3b4a18cc027cb672ae6ce3ed7e8740caaf315e98363ba1c9dc4a42ef3d07

See more details on using hashes here.

File details

Details for the file blockhouse-1.0.21-py3-none-any.whl.

File metadata

  • Download URL: blockhouse-1.0.21-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for blockhouse-1.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 90226931fd4d9c64bddca73e957eaef18fdfcd4a91cab7edb5805e43769760a4
MD5 9afd28d4164a506b24be1780edc3f3fd
BLAKE2b-256 7a625ab72bcc80f3fbf5f8dbd020dfa4d0da1e1861eb0b35b4d9233f19f198d6

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