Giter Club home page Giter Club logo

ftx_lending's Introduction

FTX_lending

Contents

Prerequisites

In this project, we will dockerize all the necessary dependencies. Therefore, here will show the steps of installing all the necessary dependencies by docker only. If installing the dependencies in your local or virtual environment is more preferable in your case, please feel free to go through DockerFIle and docker-compose.yml as your reference.

  1. Docker

    Version:

    • 20.10.5

    Installation:

    • wget -qO- https://get.docker.com/ | sed 's/lxc-docker/lxc-docker-20.10.5/' | sh

    Grant Permission:

    • sudo usermod -aG docker <username>
    • example for AWS ubuntu default user sudo usermod -aG docker ubuntu

  2. Docker Compose

    Version:

    • 12.8.2

    Installation:

    • sudo curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

    Executable Permission:

    • sudo chmod +x /usr/local/bin/docker-compose
  3. Clone the repo and get into the repo

    • git clone https://github.com/cfcdavidchan/FTX_lending.git
    • cd FTX_lending
  4. Create the config file

    • cp ./config.ini.sample ./config.ini
    • Input all the input and the belows steps will show how to obtain all the necessary API key or explain what the config means.
  5. FTX config

    API KEY & API SECRET

    • Browsing FTX Profit page and create API KEY and API SECRET. Please remember to save the API SECRET which will never be showed after you close it

    coins

    • The target coins the you are willing to update
    • e.g. coins = USD,BTC remember that there is only comma without space between

    coins_hold

    • The amount of a currecy that you want to hold on hand and not lend it out.
    • e.g. USD,0;BTC,100 means you want to lend out all the USD and you want to hold 100 units BTC on hand.
  6. Telegram config

    Add BotFather in telegram

    • search @BotFather in telegram

    Create your own telgram bot

    • type /newbot and follow the step to type the name of the bot and the username of the bot

    Obtain the API

    • In the reply message from BotFather you will find the api of your bot and you could start chat with your bot by clicking t.me/<bot name>

    Send a message to your bot

    • click start and send a message to your bot
    • Sending a message is very important step because we need this message to get your telegram id

    Add to config

    • add Telegram API to config.ini
    • add your telegram id, which you sent the message to the bot in the previos step, to config.ini
  7. Running the container

    Execute the application

    • docker-compose up --build
  8. Checking whether the container is runing

    • docker ps

ftx_lending's People

Contributors

cfcdavidchan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.