dutu / poloLender

Free, open source, high performance bot for lending funds on Poloniex exchange
https://github.com/dutu/poloLender
Other
160 stars 47 forks source link

Feature request: max order size #52

Closed stranger29 closed 7 years ago

stranger29 commented 7 years ago

It would be really nice if max order size setting could be added. As from my experience having orders limited to 0.1~0.2 btc increases overall return rate

dutu commented 7 years ago

Are you sugesting to split one big offer in several small offers, or how should the parameter work?

stranger29 commented 7 years ago

@dutu exactly, so, there are two ways: A)Simple one is to add max order setting, so bot splits offers accordingly.

B) Complex one is to implement something like cryptolend has:

Initial split strategy When the amount available is over X% of your balance, this strategy will split your fund over a period of time, so that it's not lent all at once and so you can benefit from an average rate over time. (c) cryptolend

In this scenario, I believe whole new lending logic must be implemented :( 1)if available balance more than "initial split threshold" i.e. 65%, move all funds to virtual "initial splt" fund 2)Lend from this fund base on "max offer for initial split" setting and "delay between offers during initial split" setting 3)Once it's done either use current logic or if set use regular "max offer" setting.

dutu commented 7 years ago

@stranger29 A) there is no difference by offering a big amount or the same amount split in several smaller offers. Poloniex will take required amount and it doesn't really mater if it's one offer or several smaller. When the loan is returned same thing. The same amount is returned regardless if it's one big amount or several smaller.

b) the bot offers loans at a rate which statistically gives the best return. this is calculated based on loan history and average loan holding time. Splitting a loan and keep some percentage aside for offering it later will certainty decrease the return.

You are referring to cryptolend bot - but really that method is trying to "average rate over time" - instead this bot is making use of statistical calculation to determine the best return rate (averaging rate over time will jut average it down).

stranger29 commented 7 years ago

@dutu Ok, I'll watch the bot stats and compare results. It looks like it balances itself over the time (I mean I have a lot of smaller loans now). I also noticed that there are some "dust size" loans (i.e. 0.00012816BTC) maybe it at least should have "minimal offer" setting?

So, could you please explain how it catches those spikes in rates if they are outside of "average loan holding time" ? Maybe there should be a setting to make bot behavior more aggressive (wait longer in order to lend at higher rate) ?

dutu commented 7 years ago

@stranger29 there is a minimal offer, which is the minimum amount Poloniex allows for lending. Other than that I see no reason to not lend an amount just because it's small.

For the second question please read the FAQ and see it it answers it.

stranger29 commented 7 years ago

@dutu Ok, I just see really low amounts lent, as low as "0.00013587BTC" looks like it's due to partial return and has nothing to do with the bot. Yeah, I saw FAQ but I would really like to know what's behind the algorithm :)