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

Question/Suggestion: How is the amount determined to make an offer? #38

Closed Shoananas closed 7 years ago

Shoananas commented 7 years ago

Hello,

I am wondering how the amount to offer is determined. Because I often see big amounts in offer and I'm not sure if it's the most efficient thing to do. Sometimes the bot lends 0.4 btc for 0.14% and 1 hour later, the bot lends 0.01 btc for 0.26% (a recent example but I've seen it with bigger variance).

The reverse may also happen but people tend not to return the loans earlier when the rates are higher than when they took the loan (from what I saw with my account) The problem here is that if the big loans are not returned, we can't get the advantage of the spikes.

I am wondering if the best option here would be to split the offers into small amounts, even if we will also lend more often during the bad spikes.

If I'm not wrong in my thoughts and there is a need to test the behavior, maybe add a configuration var to set the maximum amount of btc per loan? so we can all test it the way we want and give you feedback. I don't know how much work it would be though.

Regards,

dutu commented 7 years ago

Hope I have answered some of your questions and concerns.

Shoananas commented 7 years ago

I didn't know the margin trading was working like that. I went and searched for more info and now I think I get it and I understand why people are taking loans (it was pretty mysterious to me before).

I agree with your explanation about the average loan holding time and the natural splitting that will happen if I keep the bot running.

I'm not sure if I understand the aim of splitting the offered amount in multiple offers with smaller amounts. Regardless if it is one offer or multiple offers, Poloniex will take the amount it needs to borrow to other users, when the loan is returned it will return the amount regardless if it's part of one loan or multiple smaller loans. Hence I don't see the benefit in offering multiple split offers instead of one single offer.

Still, I saw my account running with a bot splitting the bitcoins a lot and there were a lot of trades during the day (the last trades (displayed by default in poloniex UI) within 1-2 hours, always), with this bot I have a 14 hours range at the moment. It would just speed up the process of having a lot of small amount loans by putting a maximum number of btc per trade imo (even if I don't know how it works in poloniex side, it is what I saw with another bot). For today though, this bot benefits me more than the old one I used because I didn't lend much during low spikes.

Thank you for your explanations!