4.0 KiB
4.0 KiB
Welcome to Binance Spot Order Notifier via Telegram👋
Binance order notification when order created, cancelled or filled etc.. With this repo you will receive telegram notification for your binance spot order status.
This repo sends TELEGRAM ALERTS for BINANCE ORDER STATUS like CREATED, PARTIALLY FILLED, FILLED, CANCELLED, PENDING CANCEL, REJECTED, EXPIRED etc.
Deploy to Heroku
Setup before Deploy to Heroku
SETUP TELEGRAM BOT
- Create account on Telegram (skip if you have)
- Create Telegram Bot Goto Bot help follow steps at the END Copy TOKEN
- Open created Bot and click START
- Goto @getuseridbot and click START and copy NUMERIC VALUE this is your CHAT ID
SETUP BINANCE ACCOUNT
- Signup for Binance (skip if you have)
- Enable Two-factor Authentication (skip if you're done already)
- Go API Center, Create New Api Key and follow steps and at the END, SET API restrictions to **ENABLE READING ** only
- Copy API Key and Secret Key save and Notepad for later use
DEPLOY TO HEROKU
- Give any name in "App name" field
- Fill required fields in "Config Vars"
- Click "Deploy app"
- When you see , "Your app was successfully deployed." then your bot started automatically.
important step for preventing idling heroku app
. Click "View" and copy URL when new tab open in your browser
- Goto UptimeRobot and Create free account
- Click "Add New Monitor"
- Monitor Type : HTTPS
- Friendly Name : any name
- URL (or IP): paste URL of your app. (you copy URL in Step 8)
- Monitoring Interval : 20 minutes
- Click " Create Monitor "
- Now Enjoy
Run Locally
- Download and install NodeJs
- Download Repo and open Repo root folder.
- Create .env in root folder and copy , paste below code
TELEGRAM_TOKEN="you telegram token"
TELEGRAM_CHAT_ID="your telegram chat id"
BINANCE_API_KEY="binance api key"
BINANCE_SECRET_KEY="binance api secret"
TIME_ZONE_STRING="your time zone string"
Time zone string example "Asia/Kolkata"
- Edit required fields in .env file and save
- Open terminal on current folder
- Run this command to install
npm install
- Run this to start
npm start
Author
👤 Piyush Dixit
- Twitter: @PiyushDixit_
- Github: @PiyushDixit96
- Telegram: @Killer_PD
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2021 @PiyushDixit96.
This project is MIT licensed.