Skip to content

linhntaim/tama

Repository files navigation

tama Logo

Powered by:
Laravel 9 Starter
TA-Lib (Trader PHP Extension)
Binance Connector PHP
ReactPHP
Ratchet
Telegram Notifications Channel for Laravel

About "tama"

"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.

Roadmap

  1. Launch:
    1. Bot: Exchange/Ticker/Interval => Price => Indication
    2. Broadcast: Indication => Actions
    3. Orchestration: Bot => Indication => Broadcast
    4. Chatbot: Message => Execute
  2. Phase 1:
    1. Exchange supported: Binance (Spot market)
    2. Indication supported: RSI divergences
    3. Orchestration supported:
      1. On-demand (use exchange API)
      2. Real-time (use exchange websocket connection)
    4. Action supported:
      1. Report:
        1. Type:
          1. Plaintext
        2. To:
          1. Telegram
    5. Chatbot:
      1. Platform supported:
        1. Telegram via Webhook
      2. Execution supported:
        1. Provide system information
        2. Provide trading information
        3. Manage trading subscriptions
  3. Phase 2 (current):
    1. Automated trading strategy: Capital/Risk/Bot => Indication => Buy|Sell => Exchange
      1. Order type support:
        1. Market
      2. Tool for testing trading strategy with historical data
      3. Add a "Trade" action to broadcast
      4. Support to run fake trading strategies to test in the real world
      5. Support chatbot
    2. Better indication from more oscillators/indicators
  4. Phase 3:
    1. Run automated trading strategies in the real world
  5. Phase 4:
    1. AI integration for better indication & risk management based on testing with historical data
    2. Support more exchanges

Installation

Requirements

Sourcecode

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

Others

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.

See: https://core.telegram.org/bots/api#setwebhook.

About

Crypto Trading Bot (in progress)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages