All Projects → LuPoYi → ftx-keep-lending

LuPoYi / ftx-keep-lending

Licence: other
FTX - lending all available balance(USD/USDT) per hour using crontab

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to ftx-keep-lending

ftx-lending-bot
Renew lending amount on FTX
Stars: ✭ 55 (+205.56%)
Mutual labels:  lending, ftx
add-tradingview-alerts-tool
Automated entry of TradingView alerts for bot trading tools such as 3Commas, Alertatron, CryptoHopper, etc.
Stars: ✭ 467 (+2494.44%)
Mutual labels:  ftx
goftx
FTX exchange golang library
Stars: ✭ 28 (+55.56%)
Mutual labels:  ftx
lndr-mobile
LNDR mobile app in React Native
Stars: ✭ 14 (-22.22%)
Mutual labels:  lending
iou-slack-bot
💸 IOU Slack Bot - Keep track of your debts with your peers.
Stars: ✭ 13 (-27.78%)
Mutual labels:  lending
moon-doge
Buy DogeCoin automatically when Elon Musk tweet about it, and sell after profit
Stars: ✭ 20 (+11.11%)
Mutual labels:  ftx
cryptogalaxy
Get any cryptocurrencies ticker and trade data in real time from multiple exchanges and then save it in multiple storage systems.
Stars: ✭ 96 (+433.33%)
Mutual labels:  ftx
ftx-api-wrapper-python3
FTX Exchange API wrapper in python3
Stars: ✭ 31 (+72.22%)
Mutual labels:  ftx
FTX.Net
No description or website provided.
Stars: ✭ 31 (+72.22%)
Mutual labels:  ftx
ftx-php
PHP wrapper for FTX.com REST API
Stars: ✭ 17 (-5.56%)
Mutual labels:  ftx
MT5-TradingToolCrypto
All the tradingtools: crypto integration to metatrader including cryptobridgepro, crypto charts, paymentbot, indicators, robots are located here. Just download the zip folder, drag and drop into Metatrader 5 directory
Stars: ✭ 70 (+288.89%)
Mutual labels:  ftx

FTX - Lending or staking all available balance per hour using crontab - Hourly Compounding

How to use

  • Upgrade Node.js to 14.x
sudo apt update
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt-get install -y nodejs
node -v
  • yarn

  • cp config.json.backup config.json

    • change config.json by using your own api key, secret and set up which subaccount and lendingCoins and stakingCoins you want.
  • node main.js

    • use tmux, screen or docker to keep the process running.

Set up your config.json

  • Use your own YOUR_FTX_API_KEY YOUR_FTX_API_SECRET
  • Set up subAccount
  • Update which coin you want to lend
    • if you want to lend all coins of this sub account, you can just set "isLendingAllCoins": true
    • or if you want specific coins to lend, you should set it like this: "lendingCoins": [{ "coin": "ETH"}]
  • Update which coin you want to stake (only FTT UBXT SRM FIDA SOL RAY):
    • "stakingCoins": [{ "coin": "SOL" }, { "coin": "RAY" }]
{
  "FTX_API_KEY": "YOUR_FTX_API_KEY",
  "FTX_API_SECRET": "YOUR_FTX_API_SECRET",
  "CRON_JOB_AT_MINUTE": 30,
  "accounts": [
    {
      "subAccount": "YOUR_LENDING_ALL_SUB_ACCOUNT",
      "isLendingAllCoins": true
    },
    {
      "subAccount": "YOUR_SUB_ACCOUNT",
      "isLendingAllCoins": false,
      "lendingCoins": [
        { "coin": "SNX", "keepBalance": 0, "minimunHourlyRate": 0.000001 },
        { "coin": "1INCH", "keepBalance": 10, "minimunHourlyRate": 0.000001, "decimals": 8 }
      ],
      "stakingCoins": [{ "coin": "SOL" }]
    }
  ]
}

Notes

  • If you use default account 'Main Account', set subAccount to emtpy string "subAccount": ""
  • If you get 'Size too large' very often, try to set "decimals": 6
  • minimun Hourly Rate 0.000001% => Minimum Yearly Rate 0.8760%

Result example

2021-02-10T09:40:00.229Z USD getBalance 261.742728 => 261.742728 freeBalance 0.23926331
2021-02-10T09:40:00.306Z USD offersResult { result: null, success: true } 261.742728
2021-02-10T09:40:00.394Z ETH getBalance 1.78598968 => 1.78598968 freeBalance 0.00013262
2021-02-10T09:40:00.495Z ETH offersResult { result: null, success: true } 1.78598968
2021-02-10T09:40:00.588Z 1INCH getBalance 620.37422189 => 620.37422188 freeBalance 0.0473561
2021-02-10T09:40:00.677Z 1INCH offersResult { result: null, success: true } 620.37422188

Others

docker-compose

$ docker-compose up -d  //start
$ docker-compose down --rmi all //down
  • if annual rate is 10%, use hourly compounding you will get 10.5%
  • if annual rate is 20%, use hourly compounding you will get 22.1%
  • if annual rate is 30%, use hourly compounding you will get 34.9%
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].