Skip to content

Microservice to send Binance/Kucoin asset summary through LINE Notify

License

Notifications You must be signed in to change notification settings

cjtim/line-notify-binance-asset

Repository files navigation

Deploy

Support

  • Binance POST /
  • Kucoin POST /kucoin

setup

  • environment variable

    • REQ_AUTH_KEY (allow only request headers Authorization with this value to proceed)
  • Runtime Python 3.8

  • Recommend Ram 512 mb

POST Body

  • Binance - POST /

    {
    	"binanceApiKey": "XXXXX",
    	"binanceSecretKey": "XXXXX",
    	"lineNotifyToken": "XXXXX",
    	"prices": {
    		// this is the price you buy the coin
    		// so program can calulate your profit
    		"FTT": 53.3,
    		"CELR": 0.08513,
    		"POND": 0.2216663301,
    		"LUNA": 16.1,
    		"SXP": 5.271,
    		"FTM": 0.43663,
    		"NEAR": 6.59
    	}
    }
  • Kucoin - POST /kucoin

    {
    	"kucoinApiKey": "xxxxxxxxxxxxx",
    	"kucoinSecretKey": "xxxxx-xxxx-xxxxx-xxxxx",
    	"kucoinPassphrase": "xxxxxxxxxxxxxxxx",
    	"lineNotifyToken": "xxxxxxxxxxxxxxxxxxx",
    	"prices": {
    		"BURP": 0.11
    	}
    }

Cronjob

screenshot