A serverless crypto trading bot that uses technical analysis to generate buy/sell signals and exectute trades on the Lykke echange
HINT: Lykke went out of business early 2025, the repository is onyl for demonstrational purpose
DISCLAIMER: Crypto markets are highly volatile, and using trade bot can cause total loss. Use at your own risk
The trade bot is built as a set of AWS Lambda functions that interact with the Lykke Exchange API to:
- Ingest cryptocurrency price data from Lykke Exchange
- Apply technical analysis algorithms (MACD, RSI) to generate buy/sell signals
- Execute trades on the exchange based on signals
The system consists of three main components:
- Fetches current price data from Lykke Exchange
- Stores data in MongoDB
- Calculates technical indicators (MACD, RSI)
- Generates buy/sell signals based on indicator thresholds
- Notifies the order executor via SNS when a trading opportunity is identified
- Listens for buy/sell signals from the ticker ingestor
- Checks account balances on the Lykke Exchange
- Executes market orders when there's sufficient balance
- Can operate in simulation mode for testing without placing real orders
- Displays transaction history
- Monitors account balances
- Python 3.11+
- AWS Lambda for serverless computing
- MongoDB Atlas for price data storage
- Amazon SNS for notifications between components
- gRPC for Lykke Exchange API communication
- Protobuf for data serialization
The bot currently supports three trading strategies:
- MACD Strategy: Generates buy signals on bullish crossovers and sell signals on bearish crossovers
- RSI Strategy: Generates buy signals when RSI is oversold (<30) and sell signals when RSI is overbought (>70)
- MACD-RSI Combined Strategy: Generates signals only when both indicators agree (e.g., buy when MACD shows bullish crossover AND RSI is oversold)
- Python 3.11+
- MongoDB DB (eg. through MongoDB Atlas)
- Lykke Exchange API token
- AWS account with Lambda, SNS permissions
The following environment variables must be set:
LYKKE_HFT_TOKEN=your_lykke_api_token
MONGO_HOST=your_mongodb_host
MONGO_CREDENTIALS=your_mongodb_credentials
TRADES_SIMULATED=true/false
ORDER_SNS_TOPIC=your_sns_topic_arn
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Deploy lambda functions to your AWS environment