K.I.T. Documentation

Welcome to the official documentation for K.I.T. (Knight Industries Trading) - your autonomous AI financial agent for automated trading.

🚀 New to K.I.T.?

Start with the Quick Start Guide to get trading in under 5 minutes.

Installation

K.I.T. can be installed globally using npm (Node Package Manager). Ensure you have Node.js 18 or higher installed on your system.

System Requirements

Install via npm

npm install -g kit-trading

Verify Installation

kit --version
Note: If you encounter permission errors on Linux/macOS, you may need to use sudo or configure npm to use a different directory.

Quick Start Guide

Get K.I.T. up and running in three simple steps:

Step 1: Install K.I.T.

npm install -g kit-trading

Step 2: Configure Your API Keys

kit config
# Follow the interactive prompts to add your exchange API keys

Step 3: Start Trading

kit start

That's it! K.I.T. will now monitor markets and execute trades based on your configured strategies.

Configuration

K.I.T. uses a configuration file to store your settings, API keys, and trading preferences.

Configuration File Location

Operating System Location
Windows %APPDATA%\kit-trading\config.json
macOS ~/.config/kit-trading/config.json
Linux ~/.config/kit-trading/config.json

Example Configuration

{
  "exchanges": {
    "binance": {
      "apiKey": "YOUR_API_KEY",
      "secretKey": "YOUR_SECRET_KEY",
      "testnet": false
    }
  },
  "trading": {
    "skills": ["trend-following", "rsi", "macd"],
    "riskPerTrade": 2,
    "maxOpenPositions": 5
  },
  "notifications": {
    "telegram": {
      "enabled": true,
      "botToken": "YOUR_BOT_TOKEN",
      "chatId": "YOUR_CHAT_ID"
    }
  }
}

Binance Integration

K.I.T. supports Binance for cryptocurrency trading, including both spot and futures markets.

Setting Up Binance API

  1. Log in to your Binance account
  2. Navigate to API Management
  3. Create a new API key with trading permissions
  4. Copy your API Key and Secret Key
  5. Run kit config binance and paste your keys
Security: Never share your API keys. Enable IP restrictions in Binance for added security.

MetaTrader 5 Integration

Trade forex and CFDs through MetaTrader 5 with K.I.T.'s MT5 integration module.

Requirements

kit config mt5
# Enter your MT5 account details when prompted

BinaryFaster Integration

K.I.T. integrates with BinaryFaster for binary options trading with automated signal execution.

kit config binaryfaster
# Enter your BinaryFaster API credentials

Telegram Integration

Control K.I.T. and receive trade notifications through Telegram.

Setting Up Telegram Bot

  1. Message @BotFather on Telegram
  2. Send /newbot and follow the prompts
  3. Copy your bot token
  4. Get your chat ID by messaging your bot
  5. Run kit config telegram

Available Commands

Command Description
/statusView current bot status
/balanceCheck account balances
/positionsView open positions
/startStart trading
/stopStop trading
/reportGet performance report

Trading Skills

K.I.T. comes with 37+ built-in trading strategies called "skills". Each skill can be enabled or disabled based on your preferences.

Available Skills

Skill Type Description
trend-followingTrendFollows market trends using moving averages
mean-reversionCounter-trendTrades price reversions to mean
momentumMomentumTrades based on price momentum
rsiOscillatorRSI overbought/oversold signals
macdMomentumMACD crossover strategy
bollingerVolatilityBollinger Bands breakout strategy
pattern-recognitionMLAI pattern detection
hybrid-mlMLCombined ML strategies

Enabling Skills

kit skills enable trend-following rsi macd
kit skills disable momentum

Risk Management

K.I.T. includes robust risk management features to protect your capital.

Key Features

kit config risk
# Configure risk parameters interactively

Portfolio Tracking

Track your entire portfolio across all connected exchanges with real-time performance metrics.

kit portfolio
# View current portfolio status

kit report daily
# Generate daily performance report

API Reference

K.I.T. exposes a REST API for programmatic control. By default, it runs on port 3000.

GET  /api/status        - Get bot status
GET  /api/balance       - Get account balances
GET  /api/positions     - Get open positions
POST /api/start         - Start trading
POST /api/stop          - Stop trading

Troubleshooting

Common Issues

API Key Invalid

Ensure your API keys are correct and have the necessary permissions (trading, withdrawal if needed).

Connection Errors

Check your internet connection and firewall settings. Ensure the exchange API is accessible from your network.

Insufficient Balance

Ensure you have sufficient funds in your trading account and that position sizing is configured correctly.

For more help, visit our GitHub Issues or join the Telegram community.