Code Monkey home page Code Monkey logo

binance-spot-order-notification-heroku's Introduction

Welcome to Binance Spot Order Notifier(NodeJS) 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.

Please contact us for Future Order notification bot. Telegram: @Killer_PD

Version License: MIT Twitter: PiyushDixit_

- when new commit happens, you need to create new heroku app using Deploy to heroku button, So that you can use the new feature.
- Supported Order Type: LIMIT, MARKET, STOP LOSS, STOP LOSS LIMIT, TAKE PROFIT, TAKE PROFIT LIMIT, LIMIT MAKER
- OCO not supported

Donate using Binance Pay

Scan this QR Code Using Binance App Scanner

BinancePayQR


Setup before Deploy to Heroku

SETUP TELEGRAM BOT

  1. Create account on Telegram (skip if you have)
  2. Create Telegram Bot Goto Bot help follow steps at the END Copy TOKEN save to Notepad for later use
  3. Open created Bot and click START
  4. Goto @getuseridbot and click START and copy NUMERIC VALUE this is your CHAT ID save to Notepad for later use

SETUP BINANCE ACCOUNT

  1. Signup for Binance (skip if you have)
  2. Enable Two-factor Authentication (skip if you're done already)
  3. Go API Center, Create New Api Key and follow steps and at the END, SET API restrictions to **ENABLE READING ** only
  4. Copy API Key and Secret Key save to Notepad for later use

DEPLOY TO HEROKU

  1. Create account on Heroku (skip if you have)
  2. Login to Heroku (if you are not)
  3. Click Deploy

fullUntitled

  1. Give any name in "App name" field
  2. Fill required fields in "Config Vars"
  3. Click "Deploy app"
  4. When you see , "Your app was successfully deployed." then your bot started automatically.
  5. important step for preventing idling heroku app. Click "View" and copy URL when new tab open in your browser save to Notepad for later use

DSCapture

  1. Goto UptimeRobot and Create free account
  2. Click "Add New Monitor"
  3. Monitor Type : HTTPS
  4. Friendly Name : any name
  5. URL (or IP): paste URL of your app. (you copy URL in Step 9)
  6. Monitoring Interval : 20 minutes
  7. Click " Create Monitor "
  8. Now Enjoy

Give a ⭐️ if this project helped you!


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"
NOTIFICATION_SETTINGS="[{'NEW': 1, 'CANCELED': 1, 'TRADE': 1},{'LIMIT': 1, 'MARKET': 1, 'STOP_LOSS': 1},{'BUY': 1, 'SELL': 1}]"

NOTIFICATION_SETTINGS Description

- 0 is Disable and 1 is Enable
- when 'NEW': 0 it means you will not notify when new order created.
- when 'LIMIT': 0 it means you will not notify any LIMIT order.
- Example 1 : if you want only Filled orders alert,
  so settings are [{'NEW': 0, 'CANCELED': 0, 'TRADE': 1},{'LIMIT': 1, 'MARKET': 1, 'STOP_LOSS': 1},{'BUY': 1, 'SELL': 1}]
- Example 2 : if you want only Sell Filled orders alert,
  so settings are [{'NEW': 0, 'CANCELED': 0, 'TRADE': 1},{'LIMIT': 1, 'MARKET': 1, 'STOP_LOSS': 1},{'BUY': 0, 'SELL': 1}]
- All settings depends on another settings.

Time zone string example "Asia/Kolkata" and this is not required. See Time zone string here

  • 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

Show your support

Give a ⭐️ if this project helped you!

Donate

If this library helped you out feel free to donate.

  • BTC: bc1qqewkmv335jdrt0jz6rn9sdm4jltd60qfw24fr9
  • ETH: 0xE7212AAD5A8cE7eb02eF9Bee05332A679811dAf1
  • NEO: AUp6giUAxQ3Y3RY8bUCuHrTa7HU25Ltuh4

My Binance Pay ID

182311933

📝 License

Copyright © 2021 @PiyushDixit96.
This project is MIT licensed.


binance-spot-order-notification-heroku's People

Contributors

piyushdixit96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.