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.27.tar.gz (11.9 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.27-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blockhouse-1.0.27.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for blockhouse-1.0.27.tar.gz
Algorithm Hash digest
SHA256 2e5097c518a70addd27d74209fc750528d92b61bc657f4366c056bc99b39d9d3
MD5 a0c98b364b5b5f0853b4bbf9d1ddca10
BLAKE2b-256 d5ed1c53769e566897edd37d4a9a2eaa6429c6ece98b0655d6591a2a59e62e91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blockhouse-1.0.27-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for blockhouse-1.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 b9390cbed0b5e15e5852af9a8d88dda0c0060207ecd8702a3a5caf3745602b77
MD5 54d62e2b5bdbaa97b0e8c9a2f42537e5
BLAKE2b-256 29b68d8069e6d7942ae94bfba3178aac1b4540e84fb6d90b5a3f783bb67ec6bf

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