Very interesting project!
Can you elaborate a bit on what algorithm the bot uses to determine the lending rate at which it will put the offer? Will it always try to lend as much as possible or can you set limits like "lend out 1k per hour"?
I'm actually in bed using a tablet right now, so I can get you a much more detailed reply tomorrow if this doesn't clear it up, but here is a copy/paste of basically the same question answered over on reddit:
(also, there is no setting to limit the amount it lends per hour. It tries to keep everything lent all the time. My philosophy, and the last year of experience, has taught me that hours of interest lost waiting for a slightly higher rate will end up losing far more than you'll ever make up on the slightly higher rates. Also, as this bot splits available money among several loans, after a while, you end up having a lot of small loans out, which means there is almost always a loan closing, so there's almost always at least a little available to lend when rates do spike. If you really want to keep some available for spikes, there is a High Hold setting that lets you basically set aside $x to lend at a minimum of y% / day )
From Reddit:
http://www.reddit.com/r/bitfinex/comments/2mt0nv/marginbot_a_bitfinex_margin_lending_management_bot/basically, if you look at the settings image:
theres a couple of settings of interest:
- Gap Top
- Gap Bottom
- Spread Lends
basically it splits your current available money into (
Spread Lends) loans, then it loads the full lendbook from bitfinex. It skips through the lendbook until it hits (
Gap Bottom) $USD in total value, and offers the first loan at this rate -.0001%/day.
If your
Spread Lends is higher than 1, it will then try to evenly spread the rest of your money between the
Gap Bottom setting and the
Gap Top setting. For Example:
Gap Bottom = $25,000
Gap Top = $100,000
Spread Lends = 3
so, it will look through the lendbook, find the rate where where the total offers = $25,000 for lend 1
then it'll find the rate where total offers = $62,500 (midway between $25,000 and $100,000) for lend offer 2
then it'll find the rate where total offers = $100,000 for lend offer 3
However, it will never lend lower than your
Minimum Lend Rate setting. Also, it will make all offers for 2 days, unless the rate is above your "
Minimum for 30 Day" setting, then it'll make the offer for 30 days. This is so it can catch flash runs and try to keep high rate loans out for as long as possible.