## 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:
```bash
pip install blockhouse
```
Using as a Python Library
```python
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
```python
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "blockhouse",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, blockhouse, sdk, stock, market, trading, algotrading, finance, financial, stocks, market, data, api, wrapper",
"author": "Blockhouse Labs",
"author_email": "<mail@blockhouse.com>",
"download_url": "https://files.pythonhosted.org/packages/9e/c3/cc29b25682ef6790de159357a0793a8ecabfde648446475e4f274d5347c3/blockhouse-1.0.11.tar.gz",
"platform": null,
"description": "\r\n## Blockhouse SDK API Package\r\r\n\r\r\nThis 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.\r\r\n\r\r\n## Table of Contents\r\r\n\r\r\n1. Features\r\r\n2. Usage\r\r\n3. Available Functions\r\r\n4. License\r\r\n5. Contributing\r\r\n6. Support\r\r\n7. Changelog\r\r\n\r\r\n## Features\r\r\n\r\r\n- Fetch trade data from the Blockhouse API and send them to our kafka topic.\r\r\n\r\r\n## Usage\r\r\n\r\r\nGet the API key from the Blockhouse API and install the package using pip:\r\r\n\r\r\n```bash\r\r\npip install blockhouse\r\r\n```\r\r\n\r\r\nUsing as a Python Library\r\r\n\r\r\n```python\r\r\nfrom blockhouse import Transfer\r\r\n\r\r\nclient = Transfer(api_key=\"your_api_key_here\")\r\r\n\r\r\nsend = client.send_file(local_file_path=\"test123.txt\", bucket_name=\"blockhouse-sdk\")\r\r\n\r\r\nprint(send)\r\r\n\r\r\ntrades = client.trades_data()\r\r\n\r\r\nprint(trades)\r\r\n```\r\r\n\r\r\nSending SOR data to the Blockhouse API\r\r\n\r\r\n```python\r\r\nfrom blockhouse import TradeClient\r\r\n\r\r\nclient = TradeClient(\"your_api_key_here\")\r\r\nres = client.send_trade(\r\r\n order_id=\"12345\",\r\r\n symbol=\"AAPL\",\r\r\n quantity=100,\r\r\n side=\"buy\",\r\r\n price=150.50,\r\r\n order_type=\"limit\",\r\r\n)\r\r\nprint(res)\r\r\n```\r\r\n\r\r\n## Available Functions:\r\r\n\r\r\n- TransferData: Fetch trade data from the Blockhouse API and send them to our kafka topic.\r\r\n\r\r\n## License\r\r\n\r\r\nThis project is licensed under the MIT License. See the LICENSE file for more details.\r\r\n\r\r\n## Contributing\r\r\n\r\r\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\r\r\n\r\r\n## Support\r\r\n\r\r\nIf you encounter any issues or have questions, feel free to open email us.\r\r\n\r\r\n## Changelog\r\r\n\r\r\nVersion 1.0.9\r\r\n\r\r\n- Added the ability to send files to the Blockhouse API.\r\r\n- Added the ability to fetch trade data from the Blockhouse API.\r\r\n- Added the ability to send SOR data to the Blockhouse API and create FIX messages.\r\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Blockhouse SDK",
"version": "1.0.11",
"project_urls": null,
"split_keywords": [
"python",
" blockhouse",
" sdk",
" stock",
" market",
" trading",
" algotrading",
" finance",
" financial",
" stocks",
" market",
" data",
" api",
" wrapper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1da4621eb9dd07dd7be802828c27198676335d1eba29c32e1b2bc0c662eec265",
"md5": "7530acae163cae3d7c9eceb0c3a611a2",
"sha256": "855aec103ac8f488d9d2dd29d7dbd9e1cbfd9e59529365c35ff9235048ffe452"
},
"downloads": -1,
"filename": "blockhouse-1.0.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7530acae163cae3d7c9eceb0c3a611a2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7081,
"upload_time": "2025-01-17T04:31:06",
"upload_time_iso_8601": "2025-01-17T04:31:06.094618Z",
"url": "https://files.pythonhosted.org/packages/1d/a4/621eb9dd07dd7be802828c27198676335d1eba29c32e1b2bc0c662eec265/blockhouse-1.0.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9ec3cc29b25682ef6790de159357a0793a8ecabfde648446475e4f274d5347c3",
"md5": "dbd633849a60a337a91bf8af5669ca2d",
"sha256": "b74138e0c34a9e05f0d987002064c0c1c562d182a7c9407db0e60f77fcacdb47"
},
"downloads": -1,
"filename": "blockhouse-1.0.11.tar.gz",
"has_sig": false,
"md5_digest": "dbd633849a60a337a91bf8af5669ca2d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5800,
"upload_time": "2025-01-17T04:31:08",
"upload_time_iso_8601": "2025-01-17T04:31:08.458318Z",
"url": "https://files.pythonhosted.org/packages/9e/c3/cc29b25682ef6790de159357a0793a8ecabfde648446475e4f274d5347c3/blockhouse-1.0.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-17 04:31:08",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "blockhouse"
}