Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cjtim/line-notify-binance-asset

Microservice to send Binance/Kucoin asset summary through LINE Notify
https://github.com/cjtim/line-notify-binance-asset

binance-api cloud-functions cryptocurrency gcp heroku kucoin-api line-notify microservice python3

Last synced: 15 days ago
JSON representation

Microservice to send Binance/Kucoin asset summary through LINE Notify

Awesome Lists containing this project

README

        

# [microservice-binance-cronjob](https://github.com/cjtim/microservice-binance-cronjob)

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/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 /`

```json
{
"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`

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

## Cronjob

- [https://cron-job.org/](https://cron-job.org/)

- using POST method

![screenshot](https://raw.githubusercontent.com/cjtim/line-notify-binance-asset/master/img/screenshot.jpg)