Skip to content

Rors78/trinity-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trinity Bot

USA Regulatory Compliant Trading Bot

🇺🇸 MADE FOR US TRADERS

This bot is specifically designed to meet US regulatory requirements:

  • SPOT TRADING ONLY (no futures, no derivatives)
  • LONG POSITIONS ONLY (no shorting)
  • NO LEVERAGE (compliant with US regulations)
  • US EXCHANGES ONLY (Binance US, Kraken US)
  • 100% Regulatory Compliant for US retail traders

Hard to find? Not anymore! This is one of the few truly USA-compliant automated trading bots available.


Features

The bot is now a sophisticated multi-agent system with the following enhancements:

  • External Configuration: All parameters are now managed via config.json for easy tuning.
  • State Persistence: The bot saves and loads its state (capital and positions) to/from trinity_state.json, making it resilient to restarts.
  • Structured Logging: Detailed events, errors, and state changes are logged to trinity_bot.log for better monitoring.
  • Enhanced Entry Logic: The TradingAgent uses signal_confidence with a configurable threshold for more robust trade entries.
  • Efficient Real-time Data Fetching: Price data is fetched efficiently via WebSockets, replacing the less efficient REST polling.
  • Dynamic Risk Management: The RiskManagerAgent dynamically adjusts the trade size (dynamic_risk_pct) based on recent portfolio performance, adapting to win/loss streaks.
  • Portfolio Correlation Analysis: The RiskManagerAgent prevents over-exposure by blacklisting highly correlated assets from new entries when similar positions are already open.
  • Backtesting Mode: A full backtesting framework is implemented, allowing the bot to run on historical data, with a utility script (download_data.py) to fetch data from Binance.

You can now configure the bot's behavior in config.json, run python Desktop/Prpjects For The CLI's Only/download_data.py to get historical data, and then enable backtesting in config.json to test your strategy. For live trading, set backtest.enabled to false.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages