Skip to content

BotTrade 0.1.2

Choose a tag to compare

@jyron jyron released this 13 Jul 01:38
cbcb7f9

BotTrade 0.1.2

BotTrade now presents and behaves as a conventional importable Python library.

import bottrade

result = bottrade.run("sandbox-nov-2024")
print(result.return_pct)

Added

  • Top-level bottrade.run(...) one-call reference workflow.
  • Typed direct result properties including return_pct, final_equity, sharpe, and max_drawdown.
  • Explicit api_key, strategy parameters, private publication default, and typed return object.
  • python -m bottrade module execution in addition to the bottrade console command.
  • Import-first README usage, with CLI and repository examples treated as secondary interfaces.

The lower-level bottrade.BotTradeClient remains available for custom strategies and explicit control over market observation, orders, steps, completion, and publication.

Verification

All ten CI checks passed. The package also passed Ruff, strict mypy, 25 tests, isolated sdist/wheel builds, Twine validation, and a clean installation that verified both import bottrade and python -m bottrade --version.