Powered by:
Laravel 9 Starter
TA-Lib
(Trader PHP Extension)
Binance Connector PHP
ReactPHP
Ratchet
Telegram Notifications Channel for Laravel
"tama" is the codename of the project which aims to create a crypto bot that:
- Provide trading information.
- Test/Run automated trading strategies.
The project is still in progress.
- Launch:
- Bot: Exchange/Ticker/Interval => Price => Indication
- Broadcast: Indication => Actions
- Orchestration: Bot => Indication => Broadcast
- Chatbot: Message => Execute
- Phase 1:
- Exchange supported: Binance (Spot market)
- Indication supported: RSI divergences
- Orchestration supported:
- On-demand (use exchange API)
- Real-time (use exchange websocket connection)
- Action supported:
- Report:
- Type:
- Plaintext
- To:
- Telegram
- Type:
- Report:
- Chatbot:
- Platform supported:
- Telegram via Webhook
- Execution supported:
- Provide system information
- Provide trading information
- Manage trading subscriptions
- Platform supported:
- Phase 2 (current):
- Automated trading strategy: Capital/Risk/Bot => Indication => Buy|Sell => Exchange
- Order type support:
- Market
- Tool for testing trading strategy with historical data
- Add a "Trade" action to broadcast
- Support to run fake trading strategies to test in the real world
- Support chatbot
- Order type support:
- Better indication from more oscillators/indicators
- Automated trading strategy: Capital/Risk/Bot => Indication => Buy|Sell => Exchange
- Phase 3:
- Run automated trading strategies in the real world
- Phase 4:
- AI integration for better indication & risk management based on testing with historical data
- Support more exchanges
- Laravel > Server Requirements
- PHP >= 8.1
- Trader PHP Extension
- Redis PHP Extension (recommended) or predis package
- MySQL 8.x / MariaDB 10.x
- Redis 7.x
After cloning the sourcecode, run following commands at the root directory:
# Install packages
composer install
# Setup the .env file if none exists
php artisan setup
# Again, setup the sourcecode (incl. database migration and seeding)
php artisan setup
Create a bot and fill its information in the .env file.
TELEGRAM_BOT_NAME=
TELEGRAM_BOT_USERNAME=
TELEGRAM_BOT_TOKEN=
TELEGRAM_BOT_WEBHOOK_SECRET=
TELEGRAM_BOT_NAME
& TELEGRAM_BOT_USERNAME
is the name & username of the bot
and TELEGRAM_BOT_TOKEN
is the authentication token generated after creating the bot.
See: https://core.telegram.org/bots#creating-a-new-bot.
TELEGRAM_BOT_WEBHOOK_SECRET
is the secret token used to create the webhook.