Automated cryptocurrency trading system with smart order routing
Project description
Bjarkan Local
A local implementation of the Bjarkan Smart Order Router (SOR) system for personal trading.
Features
- Real-time market data aggregation from multiple exchanges
- Fee-aware orderbook processing
- VWAP calculations
- Smart order routing and execution
- Trade monitoring and filtering
Installation
pip install -r requirements.txt
Configuration
- Create a
.env
file with your BetterStack token:
BETTERSTACK_TOKEN=your_token_here
- Use the sample configurations in
instructions.py
as templates for your setup.
Usage
import asyncio
from bjarkan_local import OrderbookData, TradesData, OrderExecutor
from bjarkan_local.models import OrderbookConfig, TradesConfig, OrderConfig, APIConfig
# See instructions.py for configuration examples
async def main():
# Initialize your configurations
orderbook_config = OrderbookConfig(...)
trades_config = TradesConfig(...)
api_configs = [APIConfig(...)]
# Initialize components
orderbook_data = OrderbookData(orderbook_config)
trades_data = TradesData(trades_config)
executor = OrderExecutor(orderbook_config, api_configs)
# Start data collection
await orderbook_data.start()
await trades_data.start()
# Execute orders
result = await executor.execute_order(order_config)
if __name__ == "__main__":
asyncio.run(main())
License
Private use only.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bjarkan_local-0.1.0.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file bjarkan_local-0.1.0.tar.gz
.
File metadata
- Download URL: bjarkan_local-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f5650f31a5b57f7cc1ddf6ff1a967e90e2e7bf7a6061bf59b54264dc5ea72a |
|
MD5 | aa8ba384148267eb1518f22bfae391d6 |
|
BLAKE2b-256 | 4ae97298f302429a8e2bb58a8beafec9abff3ebe6ec9c3aca52658e85b29139f |
File details
Details for the file bjarkan_local-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: bjarkan_local-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f9d96dca17f8730949912d3dfa835b34f00cbde3fb24ef1b4d5481d51bcbf4a |
|
MD5 | 954ff14b8d39f387de55479a05187b0b |
|
BLAKE2b-256 | f2af7b1251d41805f6fb0b2902e98191e685a8345a1ebc30de173248512b2cd5 |