BitBotFactory / MikaLendingBot

Automated lending on Cryptocurrency exchanges Poloniex and Bitfinex
http://poloniexlendingbot.readthedocs.io/en/latest/index.html
MIT License
1.11k stars 344 forks source link

xdayspread not working #536

Closed coulterj closed 7 years ago

coulterj commented 7 years ago

I am using Bitfinex and can't seem to get the new xdayspread working. Everything over .02 lends for 30 days, but there is nothing ever in between.

xdaythreshold = 0.02 xdays = 30 xdayspread = 2

coulterj commented 7 years ago

Is it possible to see an example config where this is working?

Dallas62 commented 7 years ago
#Minimum daily lend rate in percent (0.0031-5)
#Setting to 0.0031 is about 1% a year, not worth it.
mindailyrate = 0.0031

#Maximum lending rate. 2% is good choice because it's default at margin trader interface.
#5% is the maximum rate accepted by the exchange (0.003-5)
maxdailyrate = 5

#The number of offers to split the available balance across the [gaptop, gapbottom] range. (1-20)
spreadlend = 10

#The depth of lendbook to move through before placing the first (gapbottom) and last (gaptop) offer.
#If gapbottom is set to 0, the first offer will be at the lowest possible rate.
#However some low value is recommended to skip dust offers.
# Gap modes: Raw, RawBTC, Relative
gapMode = RawBTC
gapbottom = 40
gaptop = 200

#Daily lend rate threshold after which we offer lends for x days as opposed to 2.
#If set to 0 all offers will be placed for a 2 day period (0.003-5)
# Poloniex max lending period: 60 days
# Bitfinex max lending period: 30 days
xdaythreshold = 0.1
xdays = 30
#When xdayspread is set, lending days will be incremented linear from 2 days at (xdaythreshold/xdayspread) lent rate
#to (xdays) days at (xdaythreshold) lent rate. (0-10)
xdayspread = 10

An example that works ;)

coulterj commented 7 years ago

That works. Help me to understand the numbers. In my example above when the rate was at .024, there was no movement on the days. With your settings, the days are moving.

I guess I don't understand how the xdaythreshold of 0.1 and the interest rate of .02 correlate. I just assumed if any interest rate above the xdaythreshold it would raise the days.