Skip to main content

Algorithmic Trading Toolkit — data collection, indicators, strategy, simulation, and live trading

Project description

AlgoTradeKit

Algorithmic Trading Toolkit — collect market data, build indicators and strategies, backtest, and trade live.

pip install AlgoTradeKit

Modules

Module Status Description
data ✅ v0.1.0 Collect OHLCV candles from exchanges
indicator 🔜 planned RSI, EMA, MACD, Bollinger Bands, and custom indicators
strategy 🔜 planned Build and combine trading strategies
simulate 🔜 planned Backtest strategies on historical data
trade 🔜 planned Live trading via exchange API or MT5
visual 🔜 planned Candlestick charts, indicators, live streaming

Quick Start

Collect candle data

from AlgoTradeKit.data import Collector

collector = Collector(source="binance-futures", symbol="BTCUSDT", timeframe="1d")
collector.destination = "data/"
collector.starttime   = "2020/01/01"
collector.collect()

Output:

[AlgoTradeKit] Symbol     : BTCUSDT
[AlgoTradeKit] Source     : binance-futures
[AlgoTradeKit] Timeframe  : 1 Day  (1d)
[AlgoTradeKit] Range      : 2020-01-01 00:00 UTC  →  2026-05-26 00:00 UTC
[AlgoTradeKit] Output     : data/binance-futures_BTCUSDT_1d.csv
[AlgoTradeKit] Existing file : none — starting fresh
[AlgoTradeKit] Found 1 gap(s) to fill

    [██████████████████████████████]  2,338 candles fetched

[AlgoTradeKit] ✓ Saved  2,338 candles  →  data/binance-futures_BTCUSDT_1d.csv

Run it again — it only fetches what's missing:

[AlgoTradeKit] ✓ Everything is up to date — nothing to download.

Supported sources

Source key Market
"binance-spot" Binance Spot
"binance-futures" Binance USD-M Futures

Supported timeframes

1m 3m 5m 15m 30m 1h 2h 4h 6h 8h 12h 1d 3d 1w 1M

Collector options

collector = Collector(source="binance-spot", symbol="ETHUSDT", timeframe="4h")

collector.destination = "data/"           # folder to save CSV (default: ./)
collector.outputname  = "eth_4h.csv"      # custom filename (auto-generated if not set)
collector.starttime   = "2021/01/01"      # required — YYYY/MM/DD or YYYY-MM-DD
collector.endtime     = "2023/01/01"      # optional — defaults to now

collector.collect()                        # returns path to the saved CSV

Convert timeframes

from AlgoTradeKit.data import Converter

# From a CSV file (timeframe is auto-detected)
conv = Converter(source="data/binance-futures_BTCUSDT_1h.csv", target_timeframe="4h")
conv.destination = "data/"
conv.convert()

# From a DataFrame
conv = Converter(source=my_df, source_timeframe="1h", target_timeframe="1d")
conv.convert()

Valid conversions: any timeframe where the target is a whole multiple of the source.


Installation

Requires Python 3.10+

pip install AlgoTradeKit

For development:

git clone https://github.com/YOUR_USERNAME/AlgoTradeKit.git
cd AlgoTradeKit
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

Requirements

  • pandas >= 2.0
  • requests >= 2.28

Roadmap

  • MEXC Spot & Futures
  • MetaTrader 5 (MT5)
  • Bybit, OKX
  • indicator module — RSI, EMA, MACD, Bollinger Bands
  • strategy module — strategy builder with entry/exit logic
  • simulate module — backtesting engine with full report
  • trade module — live trading via exchange API / MT5
  • visual module — charts, live candlestick stream via WebSocket

License

MIT — see LICENSE

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

algotradekit-0.2.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

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

algotradekit-0.2.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file algotradekit-0.2.0.tar.gz.

File metadata

  • Download URL: algotradekit-0.2.0.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for algotradekit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 64cba9fbc7a749e179a9f8d3cd2560c19fa321d9463694acea317268342c545f
MD5 a631be13bc208d901c4b0506761f5925
BLAKE2b-256 4156d7ef9eed53de52c44e73d44323b891c9d7e12ecf74f7315f8b7b7418d09c

See more details on using hashes here.

Provenance

The following attestation bundles were made for algotradekit-0.2.0.tar.gz:

Publisher: publish.yml on AmirMohammadBazdar/AlgoTradeKit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file algotradekit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: algotradekit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for algotradekit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec5aef058f42e89a5a320db4f38bceeef3d707870704dd2365d57cd7689e102d
MD5 58eb01906216ca0bc563e749a5e89f38
BLAKE2b-256 92b54dd22b38d53dd785d09eba2dc168b025e7c3438e359050b442ef8b799233

See more details on using hashes here.

Provenance

The following attestation bundles were made for algotradekit-0.2.0-py3-none-any.whl:

Publisher: publish.yml on AmirMohammadBazdar/AlgoTradeKit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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