Skip to main content

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

  1. Create a .env file with your BetterStack token:
BETTERSTACK_TOKEN=your_token_here
  1. 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


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.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

bjarkan_local-0.1.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file bjarkan_local-0.1.1.tar.gz.

File metadata

  • Download URL: bjarkan_local-0.1.1.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

Hashes for bjarkan_local-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b544c302a1715f5ef7da4c7432b2d9bef6982dbc79f4d868c434c868a79a4bd6
MD5 d8c8cc54d8874451efd30bbc9147a3d9
BLAKE2b-256 95c523be20aed59db1f06f7bcd72daf2a1d220417a50d025d4c8f5e7517c400f

See more details on using hashes here.

File details

Details for the file bjarkan_local-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bjarkan_local-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56d28d172fa251d3cfb7bfc5bb8c4f3444a74474d7ad0e367552833aeb39ebec
MD5 b615dbf9ea6c9b8455dacea4e9bacf41
BLAKE2b-256 bc0a710b0cb46628a3eb4d6f828957b50cd000bf2a5d8e069b554dec1f17dbb8

See more details on using hashes here.

Supported by

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