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

https://github.com/huaying/bitfinex-lending-bot

Bitfinex Lending Bot automates the funding on Bitfinex 自動放貸機器人
https://github.com/huaying/bitfinex-lending-bot

bitfinex bot funding javascript lending-bot lending-strategies nodejs

Last synced: 5 months ago
JSON representation

Bitfinex Lending Bot automates the funding on Bitfinex 自動放貸機器人

Awesome Lists containing this project

README

          

# Bitfinex Lending Bot
The project is written in React (create-react-app) and nodejs (expressjs).

Screen Shot 2020-03-14 at 8 51 21 PM

## Prerequisite
yarn, docker, docker-compose

## Installation
- Create a new file `.env` under the current directory and put your key, secret and timezone here.
```
API_KEY=xxx
API_SECRET=xxx

TZ=Asia/Taipei
```

- Copy `server/custom-config.example.js` to `server/custom-config.js`, we can playground with the numbers in this config.

- Run `yarn` to install required packages

## Run the bot
If you just want to start the bot and automatically lend your money out, you only need to start the backend service.
It will check your remaining/submit funding offers every 3 minutes.

```
docker-compose up
```

## Run the auto submit once
Although the bot checks and submits offers regularly, you can run the script directly.

```
yarn auto-submit
```

## Start the ui (optional)

```
yarn start
```

### Deploy to your own server:

api: `docker-compose up -d` and serve it in a proxy server such as nginx

ui: `REACT_APP_API_URL='https://yourserverurl.com' yarn build`