forex-trading-ai-agent
About AI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
Links
README
From the repo.
K.I.T. - Knight Industries Trading
ā POWERED BY TRADERLIFESTYLE ON YOUTUBE ā
Fork: This tree is maintained by datagridSolution. Upstream lineage traces to the K.I.T. project referenced in package.json history.
Your Autonomous AI Financial Agent š¤š°
K.I.T. is your personal AI trading agent - like having a professional trader working for you 24/7. Just tell it what you want, and it handles everything else.
"One man can make a difference... especially with proper position sizing."
- K.I.T.
š One-Line Installation
Windows (CMD)
cd C:\ && git clone https://github.com/kayzaa/k.i.t.-bot.git && cd k.i.t.-bot && npm install && npm run build && npm link && kit start
Linux / macOS
cd ~ && git clone https://github.com/kayzaa/k.i.t.-bot.git && cd k.i.t.-bot && npm install && npm run build && sudo npm link && kit start
That's it! Dashboard opens automatically at http://localhost:18799/
After installation, use kit from anywhere:
kit start # Start gateway + dashboard
kit --help # Show all commands
šÆ Two Ways to Use K.I.T.
1ļøā£ As Your Personal AI Trader (No Coding!)
Just install, connect, and chat. K.I.T. does the rest.
kit start # Start K.I.T.
kit connect binance # Connect exchange
kit connect telegram # Connect Telegram
# Done! Chat with K.I.T. via Telegram
K.I.T. can:
- š Trade autonomously based on your goals
- š¬ Understand natural language ("Buy BTC when RSI below 30")
- š” Copy signals from Telegram channels automatically
- š Alert you about important market events
- š Analyze any market on request
- š”ļø Manage risk automatically
2ļøā£ As a Framework for Developers
Build your own trading bots, apps, and services.
import { createBot } from 'kit';
const bot = createBot({ exchange: 'binance', strategy: 'rsi' });
bot.start();
š See Developer SDK
š Quick Start
Install
# Clone repository
git clone https://github.com/kayzaa/k.i.t.-bot.git
cd k.i.t.-bot
# Install dependencies
npm install
# Build
npm run build
# Start
npm start
Initialize
# Interactive setup wizard
kit init
# Or start with demo mode (no API keys needed!)
kit init --demo
Start Trading
# Start the Gateway
kit gateway start
# Check your portfolio
kit portfolio
# Analyze a pair
kit analyze BTC/USDT
# Execute your first trade (demo mode)
kit trade buy BTC/USDT 100 --demo
That's it! š K.I.T. is running.
⨠Features
| Feature | Description |
|---|---|
| š¤ Autonomous Trading | Trades 24/7/365 across all markets |
| š Portfolio Management | Unified view across all exchanges |
| š Technical Analysis | RSI, MACD, Bollinger, MA, and more |
| š”ļø Risk Management | Stop-loss, position sizing, daily limits |
| ā®ļø Backtesting | Test strategies with historical data |
| š Alerts | Price, indicator, and portfolio alerts |
| š° News Integration | Sentiment analysis and event tracking |
| š¬ Multi-Channel | Control via Telegram, Discord, CLI |
| š ļø Developer SDK | Build your own trading bots & apps |
| š Pine Script Generator | Create TradingView indicators & strategies |
| š„ Social Trading | Copy signals from bots & top traders |
| š¦ Twitter Integration | Auto-post signals & analysis to Twitter/X |
š° Supported Markets
| Market | Exchanges/Brokers | Status |
|---|---|---|
| šŖ Crypto | Binance, Kraken, Coinbase, OKX, Bybit | ā Ready |
| š± Forex | MetaTrader 4/5, RoboForex, IC Markets, OANDA, Pepperstone, XM | ā Ready |
| š Stocks | Interactive Brokers, Alpaca | š§ Beta |
| š¦ DeFi | Uniswap, Aave, Lido | š Planned |
š New Skills
š TradingView Script Generator
Generate Pine Script v5 code for TradingView from simple descriptions:
# Generate RSI indicator
kit pine indicator --type rsi --name "My RSI"
# Generate MA crossover strategy
kit pine strategy --name "MA Cross" --indicators "ema:9,ema:21" --entry "cross_above" --exit "cross_below"
# Generate from description
kit pine describe "Create a strategy that buys when RSI is below 30"
Features:
- Natural language ā Pine Script conversion
- Indicator templates (RSI, MACD, Bollinger, EMA)
- Strategy templates with TP/SL
- Auto-generate K.I.T. webhook alerts
š See TradingView Script Skill
š„ Social Trading
Copy trades from signal providers, Telegram bots, and top traders:
# Add a signal source
kit social add telegram @CryptoSignalsVIP
# List sources
kit social sources
# View performance
kit social stats
Supported Sources:
- š± Telegram channels & bots
- š¬ Discord servers
- š¦ Twitter/X accounts
- š Custom webhooks
- š Binance Copy Trading
Features:
- Universal signal parser (multiple formats)
- Risk-adjusted position sizing
- Duplicate detection
- Performance tracking per source
š See Social Trading Skill
š¦ Twitter Posting
Automatically share signals and analysis on Twitter/X:
# Post a signal
kit twitter signal BTC/USDT LONG 45000 --tp 47000 --sl 44000
# Post analysis
kit twitter analysis ETH/USDT --timeframe 4H
# Post custom tweet
kit twitter post "Market update..." --image chart.png
Auto-Post Features:
- š Trading signals with charts
- š Technical analysis summaries
- š Daily/weekly performance reports
- ā ļø Market alerts
Safety:
- Rate limiting (max posts per hour/day)
- Content validation
- Automatic disclaimer inclusion
š See Twitter Posting Skill
š ļø 66 Professional Skills
K.I.T. comes packed with 66 trading skills - your complete trading arsenal!
š¤ AI & Analysis (8)
| Skill | Description |
|---|---|
ai-predictor | ML price predictions (LSTM, XGBoost) |
ai-screener | AI market screening |
sentiment-analyzer | Social/news sentiment |
market-analysis | 50+ technical indicators |
news-tracker | Breaking news alerts |
quant-engine | Factor models & alpha |
order-flow | Market microstructure |
correlation-matrix | Asset correlations |
š Trading (12)
| Skill | Description |
|---|---|
auto-trader | Autonomous trading |
smart-router | TWAP/VWAP execution |
smart-order-router | Best execution routing |
signal-copier | Copy trading signals |
options-trader | Options with Greeks |
binary-options | Binary options analysis |
stock-trader | Stock trading |
paper-trading | Risk-free practice |
twap-bot | Time-weighted execution |
session-timer | Market sessions |
lot-size-calculator | Position sizing |
pip-calculator | Forex pip values |
š Automation (10)
| Skill | Description |
|---|---|
grid-bot | Grid trading |
leveraged-grid | Margin grid trading |
trailing-grid | Dynamic trailing grids |
dca-bot | Dollar cost averaging |
task-scheduler | Schedule any task |
alert-system | Price/indicator alerts |
multi-condition-alerts | Complex alert logic |
signal-bot | Generate & broadcast |
rebalancer | Portfolio rebalancing |
portfolio-rebalancer | Advanced rebalancing |
ā” Arbitrage (5)
| Skill | Description |
|---|---|
arbitrage-finder | Cross-exchange arb |
arbitrage-hunter | Aggressive hunting |
spot-futures-arb | Cash & carry |
funding-rate-arb | Perp funding capture |
liquidity-monitor | Depth tracking |
š DeFi (5)
| Skill | Description |
|---|---|
defi-connector | Protocol integration |
defi-dashboard | DeFi portfolio |
defi-yield | Yield farming optimizer |
debank-aggregator | DeBank data |
wallet-connector | Multi-wallet |
š” Social (6)
| Skill | Description |
|---|---|
social-trading | Social copy trading |
copy-trader | Copy specific traders |
whale-tracker | Large wallet tracking |
twitter-posting | Auto-post signals |
social-feed | Trading feed |
kitbot-forum | Community integration |
š”ļø Risk & Tax (6)
| Skill | Description |
|---|---|
tax-calculator | FIFO/LIFO tax calc |
tax-tracker | Trade tax tracking |
risk-calculator | Position risk |
risk-ai | AI risk analysis |
compliance | Regulatory checks |
prop-firm-manager | Funded accounts |
š° Portfolio (8)
| Skill | Description |
|---|---|
portfolio-tracker | Multi-exchange view |
performance-report | Trading metrics |
trade-journal | Trading diary |
backtester | Strategy testing |
dividend-manager | Dividend tracking |
multi-asset | Multi-asset portfolio |
economic-calendar | Economic events |
payment-processor | Crypto payments |
š Connectors (6)
| Skill | Description |
|---|---|
exchange-connector | Universal exchange API |
metatrader | MT4/MT5 integration |
etoro-connector | eToro integration |
tradingview-script | Pine Script generator |
tradingview-webhook | Alert receiver |
tradingview-realtime | Real-time data |
š Full Skills Documentation
šļø Architecture
kit/
āāā gateway/ # The Brain
ā āāā server.ts # WebSocket Gateway
ā āāā autopilot.ts # Autonomous Decision Engine
ā āāā scheduler.ts # Task Automation
ā āāā skill-loader.ts # Plugin System
ā
āāā skills/ # Modular Capabilities
ā āāā exchange-connector/ # Exchange APIs
ā āāā portfolio-tracker/ # Holdings & P&L
ā āāā alert-system/ # Price Alerts
ā āāā market-analysis/ # Technical Analysis
ā āāā auto-trader/ # Strategy Execution
ā āāā metatrader/ # MT4/MT5 Integration
ā āāā signal-copier/ # Copy Trading
ā āāā backtester/ # Historical Testing
ā āāā tradingview-script/ # Pine Script Generator š
ā āāā social-trading/ # Social Copy Trading š
ā āāā twitter-posting/ # Twitter Integration š
ā
āāā workspace/ # Your Agent's Home
ā āāā SOUL.md # K.I.T.'s Personality
ā āāā AGENTS.md # Trading Instructions
ā āāā TOOLS.md # Your Configuration
ā
āāā cli/ # Command Line Interface
šÆ Operating Modes
1. Manual Mode (Training Wheels)
Every trade requires your approval. K.I.T. suggests, you decide.
kit autopilot disable
2. Semi-Auto Mode (Co-Pilot)
Small trades execute automatically. Large or risky trades need approval.
kit autopilot enable --mode semi-auto
kit autopilot threshold 500 # Auto-approve trades under $500
3. Full-Auto Mode (Autopilot)
K.I.T. takes full control. You get daily reports. It handles the rest.
kit autopilot enable --mode full-auto
š§ CLI Commands
Gateway
kit gateway start # Start the Gateway
kit gateway stop # Stop the Gateway
kit gateway status # Check status
Portfolio
kit portfolio # Portfolio summary
kit portfolio pnl # P&L analysis
Trading
kit trade buy <pair> <amount> # Buy
kit trade sell <pair> <amount> # Sell
kit trade positions # Open positions
Analysis
kit analyze <pair> # Full analysis
kit market <pair> # Price & volume
š”ļø Safety & Risk Management
Built-in Protections
| Protection | Default | Description |
|---|---|---|
| Max Daily Loss | 5% | Stop trading after 5% daily loss |
| Max Drawdown | 15% | Emergency stop at 15% from peak |
| Max Position | 10% | No single position > 10% of portfolio |
Kill Switch
kit trade kill # Instantly close all positions
šØāš» Developer SDK
K.I.T. is not just a trading bot - it's a framework!
import { createBot, RSIStrategy } from 'kit';
// Create your own bot in 10 lines
const bot = createBot({
name: 'MyBot',
exchange: 'binance', // or: kraken, mt5, roboforex...
pair: 'BTC/USDT',
strategy: new RSIStrategy(),
risk: { stopLoss: 0.02, takeProfit: 0.04 },
});
bot.start();
What you can build:
- š¤ Trading Bots (Grid, DCA, Arbitrage, Signal Copier)
- š± Telegram/Discord Bots
- š Web Dashboards
- š Portfolio Trackers
- š Alert Systems
- š” Signal Services
š Examples
See the examples/ folder:
basic-bot.ts- Simple trading botsignal-copier-example.ts- Copy signals from Telegramportfolio-tracker-example.ts- Track portfolio across exchangestradingview-script-example.ts- Generate Pine Script indicators & strategies šsocial-trading-example.ts- Copy trades from bots & signal providers štwitter-posting-example.ts- Auto-post signals & analysis to Twitter š
š¤ Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
# Fork & clone
git clone https://github.com/YOUR_USERNAME/k.i.t.-bot.git
cd k.i.t.-bot
# Install dependencies
npm install
# Run tests
npm test
# Development mode
npm run dev
ā ļø Disclaimer
K.I.T. is a tool, not financial advice. Trading involves risk.
- ā ļø Always start with paper/demo trading
- ā ļø Never risk more than you can afford to lose
- ā ļø Past performance doesn't guarantee future results
- ā ļø You are responsible for your own financial decisions
š License
MIT License - Build something amazing!
K.I.T. - Because your wealth deserves an AI that never sleeps. š
š¬ POWERED BY TRADERLIFESTYLE ON YOUTUBE š¬
GitHub ⢠Quick Start ⢠Changelog ⢠YouTube
Collected info
- ā 144 stars
- ā 872 forks
- Language: TypeScript
- Source updated: 9/21/2026