/bfx-lending-bot

BFX lending bot runs automatic funding in Bitfinex. (AWS based)

Primary LanguageTypeScript

BFX Lending Bot

BFX lending bot runs automatic funding in Bitfinex. (AWS based)

Prerequisites

Prepare Required Tools and Configurations

  1. Install required tools

    brew install awscli aws-cdk
  2. Create a AWS IAM user account with AWSLambdaFullAccess, IAMFullAccess and AWSCloudFormationFullAccess permission policy.

  3. Create access keys in security creadential tab.

  4. Configure local environment with awscli.

    aws configure
  5. Initialize CDK toolkit

    cdk bootstrap
    

Define Bot Configurations

  1. Create a Bitfinex account and create access keys.

  2. Copy .env.example to .env and fill the env variables.

    # Bitfinex API access keys
    API_KEY=
    API_SECRET=
    
    # config
    SYMBOL=fUSD
    EACH_OFFER=200
    LOWEST_OFFER=100
    BASE_RATE=0.04
    JUMP_RATE=0.06
    KEEP_MONEY=0
  3. Support multiple currencies.

    # config
    SYMBOL=fUSD,fUST
    EACH_OFFER=500,500
    LOWEST_OFFER=400,200
    BASE_RATE=0.03,0.04
    JUMP_RATE=0.06,0.06
    KEEP_MONEY=2000,0

Usage

Deploy whole stack to AWS cloud with a single command.

$ yarn deploy

Execute under development mode (typescript)

$ yarn dev

Support

It will be nice if you can support me by using the promo code to register Bitfinex.

Promo Code: u_ymELCkS

promo