可以自動放貸的機器人,支援 Bitfinex 和 Poloniex,而且有 docker compose 可以一鍵跑完還有 Web UI 介面,潮。
https://github.com/BitBotFactory/poloniexlendingbot
## 重要的參數:
- gapbottom
- gaptop
- gapMode
gapbottom 跟 gaptop
gapbottom 就是指要「跳過」多少 loan offers,這裡的「跳過」是指數量
例如下圖:現在共有 194 顆 BTC 想要用 0.017 的 rate 借出,那如果我 gapbottom 設 200 就是指我想要用比前 200 顆 BTC 想要借 rate 還要更好的 rate 借出,在此例就是會用 0.018 以上的 rate 借出。
gaptop 就是我最多借到多少 rate,像以下圖為例如果 gaptop 超過 4509 (超多人掛在 0.02 rate) 那基本上就是不可能借出了
那為什麼要有 gaptop 呢?這就跟 spreadlend 有關。
spreadlend 就是指在 gapbottom 和 gaptop 之間你要拆成幾個 loan offers 去借,假設是 10 好了,那麼就會幫你在這個區間平均 create 10 個 offer。
例如我有 10 BTC,spreadlend 10,那就會幫我建立 10 個出借 1 BTC 且 rate 在 gaptop 到 gapbottom 之間的 loan offers,至於 rate 是多少則是參考其他 offers 來算出來的。
那什麼是 gapMode? gapMode 就是指「算 gapbottom 和 gaptop」的「算法」,目前有三種 gapMode
* Raw
這是最簡單的一種,假設我選 `gapMode = Raw` 然後 gapbottom 設 10,那就是如果我借 ETH 就跳過 10 ETH,如果我借 BTC 就跳過 10 BTC
* RawBTC
這跟 Raw 很像,但唯一不同的點是他都是以 BTC 為單位,以上面選 `gapMode = RawBTC` 然後 gapbottom 設 10 的例子來說好了,如果我借 BTC 就跳過 10 BTC,但如果我借 ETH 他就會跳過「等值 10 BTC 的 ETH」,假設 1 BTC = 9 ETH,那就會跳過 90 ETH
* Relative
相較於 RawBTC 是以 BTC 為基礎,Relative 則是已你有的錢為基礎,假設我有 20 BTC 100 ETH,那選 `gapMode = Relative ` 然後 gapbottom 設 10 的例子來看的話就是我要跳過
- 出借 BTC 時,跳過 10% * 20 BTC = 2 BTC
- 出借 ETH 時,跳過 10% * 100 ETH = 10 ETH
## 次重要的參數
* mindailyrate: 最低接受多少 rate
* spreadlend: 拆幾單
* xdays: 借款週期,設 0 就是 2 days
* minloansize: 最低的 loan offer amount,因為程式會一直拆 loan offers,有可能會拆到很碎,所以需要設這個阻止程式一直往下拆
## Bonus
* 另外這個 bot 還支援各種通知,例如 slack, telegram, email, irc.... etc,只要在設定檔加些東西就行了,很簡單 http://poloniexlendingbot.readthedocs.io/en/latest/configuration.html#notifications
* Web UI 介面,潮


沒有留言:
張貼留言