Lending rate error
Bot keeps on lending my ETH at 4.99%, but the gap top and gap bottom is set from 1% to 30% Lending btc works - ok. I hope this can be easily solved.

I have the following config active:
[BOT]
#sleep between iterations, time in seconds
sleeptime = 10
#minimum daily lend rate in percent
mindailyrate = 0.05
#max rate. 2% is good choice because it's default at margin trader interface. 5% is max to be accepted by the exchange
maxdailyrate = 5
#The number of offers to split the available balance uniformly across the [gaptop, gapbottom] range.
spreadlend = 10
#The depth of lendbook (in percent of lendable balance) 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 (say 10%) to skip dust offers
gapbottom = 1
gaptop = 30
#Daily lend rate threshold after which we offer lends for 60 days as opposed to 2. If set to 0 all offers will be placed for a 2 day period
sixtydaythreshold = 0.5
# AutoRenew - if set to 1 the bot will toggle the AutoRenew flag for the loans when you stop it (Ctrl+C) and clear the AutoRenew flag when started
autorenew = 0
#custom config per coin, useful when closing positions etc.
#syntax: [COIN:mindailyrate:maxactiveamount, ... COIN:mindailyrate:maxactiveamount]
#if maxactive amount is 0 - stop lending this coin. in the future you'll be able to limit amount to be lent.
#coinconfig = ["BTC:0.05:1"]
minRate must be used exactly by name. Sometimes bot will lend at lower let's say 0.11 percent although you put 0.2 percent as minRate. And actually after 1-2 hours you can see 0.3 percent on the lending market. Now you gave it at 0.11 and you must wait 2 days. May be separate option for this to be mandatory minRate ?
Sometimes bot will lend at lower let's say 0.11 percent although you put 0.2 percent as minRate.
@sanitariu, that's impossible.
would be nice to keep track of average per day than have an option to not lend under like 10% of daily average. so the application will lend the money only at the best moment of the day. I think this can prevent ppl lending at ridiculus % once a day and lock lot of ppl for 2 day at very low rate and the rest of the day the % is like x2 or x4 of what you are lock to. not sure if what I say seem clear.
@Webonaute, average per day can be calculated, however when you stop lending if rate falls under the average, you're basically also stopping to carry on with average calculation.
Secondly, yes your loan could be locked for 2 days at a very low rate. However, at the moment (for BTC) loan average-holding-time is 3h53m, as such probability to have your loan locked for 2 days is quite small at the moment. (ATM, for ETH alht is 1h14m).
But your questions is very valid: what is the rate for which it is better to wait instead of lending, and for how long do you wait until you decide is more profitable to lend. The answer to these question can be calculated/estimated, but you need a few other parameters (including the average loan-holding-time), which the current bot is not giving.
Average loan-holding-time is now 10h5m and increasing (due to low volatility I guess). Estimated waiting time for higher/more profitable rates is now much longer and increasing. So you see how this parameter impacts on estimating best profitability
@dutu Where are you getting the loan-holding-time from?
I calculate it with tiny loans placed every minute
Agree with @pmknutsen and @rnevet above.
I was running into this issue with several markets. Adding "&limit=1000" to the returnLoanOrders API request fixed it (i.e. by "fixed", I mean that now loans are made off of my configured minimum, and not just placing them at the max). The current behavior is a bit odd in that it a) only grabs a fraction of the book and b) lends at the max rate by default. This seems to lead to unpredictability (i.e. sometimes the rates were set off of my minimums, and sometimes off of the max rate, depending on the book composition at the time of run)
@robby-dermody I agree it's confusing, but only if you don't know what's happening under the hood. We will have the "&limit=1000" thing as a feature soon.
So how do I edit my coinconfig for Xmr , I want to start lending at 0.018 onwards , sorry new to this .thanks for all replys
Should be solved with commit: a81cbbd "Dynamically increase limit of returnLoanOrders request"