├── .env.example ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── app ├── __init__.py ├── client.py ├── instruments_config │ ├── __init__.py │ ├── models.py │ └── parser.py ├── main.py ├── settings.py ├── sqlite │ ├── __init__.py │ └── client.py ├── stats │ ├── __init__.py │ ├── handler.py │ └── sqlite_client.py ├── strategies │ ├── __init__.py │ ├── base.py │ ├── errors.py │ ├── interval │ │ ├── IntervalStrategy.py │ │ ├── __init__.py │ │ └── models.py │ ├── models.py │ └── strategy_fabric.py └── utils │ ├── __init__.py │ ├── portfolio.py │ ├── quantity.py │ └── quotation.py ├── instruments_config.json.example ├── pytest.ini ├── requirements.txt ├── tests ├── __init__.py └── strategies │ ├── __init__.py │ └── interval │ ├── __init__.py │ └── backtest │ ├── __init__.py │ ├── conftest.py │ └── test_on_historical_data.py └── tools ├── display_stats.py └── get_accounts.py /.env.example: -------------------------------------------------------------------------------- 1 | TOKEN=? 2 | ACCOUNT_ID=? 3 | SANDBOX=True -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/README.md -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/client.py -------------------------------------------------------------------------------- /app/instruments_config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/instruments_config/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/instruments_config/models.py -------------------------------------------------------------------------------- /app/instruments_config/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/instruments_config/parser.py -------------------------------------------------------------------------------- /app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/main.py -------------------------------------------------------------------------------- /app/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/settings.py -------------------------------------------------------------------------------- /app/sqlite/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/sqlite/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/sqlite/client.py -------------------------------------------------------------------------------- /app/stats/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/stats/handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/stats/handler.py -------------------------------------------------------------------------------- /app/stats/sqlite_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/stats/sqlite_client.py -------------------------------------------------------------------------------- /app/strategies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/strategies/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/strategies/base.py -------------------------------------------------------------------------------- /app/strategies/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/strategies/errors.py -------------------------------------------------------------------------------- /app/strategies/interval/IntervalStrategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/strategies/interval/IntervalStrategy.py -------------------------------------------------------------------------------- /app/strategies/interval/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/strategies/interval/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/strategies/interval/models.py -------------------------------------------------------------------------------- /app/strategies/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/strategies/models.py -------------------------------------------------------------------------------- /app/strategies/strategy_fabric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/strategies/strategy_fabric.py -------------------------------------------------------------------------------- /app/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/utils/portfolio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/utils/portfolio.py -------------------------------------------------------------------------------- /app/utils/quantity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/utils/quantity.py -------------------------------------------------------------------------------- /app/utils/quotation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/app/utils/quotation.py -------------------------------------------------------------------------------- /instruments_config.json.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/instruments_config.json.example -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/pytest.ini -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/requirements.txt -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/strategies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/strategies/interval/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/strategies/interval/backtest/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/strategies/interval/backtest/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/tests/strategies/interval/backtest/conftest.py -------------------------------------------------------------------------------- /tests/strategies/interval/backtest/test_on_historical_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/tests/strategies/interval/backtest/test_on_historical_data.py -------------------------------------------------------------------------------- /tools/display_stats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/tools/display_stats.py -------------------------------------------------------------------------------- /tools/get_accounts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertyo1/tinkoff-trading-bot/HEAD/tools/get_accounts.py --------------------------------------------------------------------------------