3bm / LineBot-with-BitMEX

line-bot-using-bitmex-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BitMEX Line Bot

  1. 即時查詢BitMEX合約/Coinmarket所有幣種價格
    Get latest contract details from BitMEX and price of any coin listed on coinmarket by using Line Bot.
  2. BitMEX 獲利提醒
    ROE notification.

需求 Requirement

  • Node.js
    • version > 7.10
  • Line Bot Account

安裝 Install

npm install

設定 Setting

Environment variable

  • channelAccessToken
  • channelId
  • channelSecret
  • MONGODB_URI

Example

channelAccessToken=YOUR LINE BOT TOKEN
channelId=YOUR LINE BOT CHANNEL ID
channelSecret=YOUR LINE BOT SECRET
MONGODB_URI=mongodb://XXXX:XXXXX@ds000105.mlab.com:27105/OOOO

使用方法 Usage

ngrok http 3000

Put "Forward URL" into Line "Webhook URL". Like this:

And then:

npm start

DEMO

QR code of my Line bot:

Add my bot as a friend and type "bot help" for more information.

參考資料 Reference

LINE BOT

BitMEX API

About

line-bot-using-bitmex-api

License:MIT License


Languages

Language:JavaScript 100.0%