Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.06 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.06 KB

Simple telegram bot to notify about EMA signal

TODO

  • Refactor code using Monad transformer
  • Article or video to explain about
    • Items in the order
        > Function composition
        > Monoid 
        > Functor 
        > Applicative 
        > Monad 
        > Why we said monad can't compose 
        > Monad Transformer
    
    • Monad transformer

Export env variables

# taapi key
export TA_API_KEY="paste your ta api key here"

# telegram chanel/group id
export CHAT_ID="paste your telegram chat group/chanel here"

# bot_key in format botxyz:AAAAA
export TELEGRAM_BOT_KEY="paste your telegram bot key here"

Run haskell binary file

# cabal run simple-telegram-bot \
    $SYMBOL \
    $INTERVAL \
    $BACKTRACKS \
    $THRESHOLD_PERCENTAGE

cabal run simple-telegram-bot "BTC/USDT" "1h" 24 1

Run bash script

link to ema.sh file

# need to export env variables as above step
./scripts/ema.sh "BTC/USDT" "1h" 12 2