HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2014, 02:41:30 AM |
|
This is an awesome project, but I don't know much about the intricacies of coding, but how can a user be sure that there is nothing in the bot to send you an api key, do a withdraw to an unknown BTC account, or sabotage the account by trading lending funds to BTC at a terrible rate?
Thanks,
The full source code is available at the Github repository, and has been reviewed by everyone in this thread I imagine. I believe a few bitfinex employees themselves have also looked at the code and while they didn't endorse the bot in any way, they also didn't warn against its use, as I'm sure they would be inclined to do if they thought I was trying to steal from their customers. Beyond that all I can say is your best bet would be to look through the code itself. Even without a good understanding of PHP, it should be pretty easy to spot anything that would constitute me trying to send data back to any urls I control, and there isn't any in the code. If you have any friends that are coders, you could also have them take a look I guess.
|
|
|
|
Sukrim
Legendary
Offline
Activity: 2618
Merit: 1007
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2014, 09:26:15 AM Last edit: November 29, 2014, 12:47:30 PM by Sukrim |
|
This is an awesome project, but I don't know much about the intricacies of coding, but how can a user be sure that there is nothing in the bot to send you an api key, do a withdraw to an unknown BTC account, or sabotage the account by trading lending funds to BTC at a terrible rate?
Thanks,
The full source code is available at the Github repository, and has been reviewed by everyone in this thread I imagine. Not by me at least so far, I might have to do it though, as the returns seem viable (I'd still love to see data points back to before November, back when swaps rates were more sideways). I am not much of a fan of PHP and setting up MySQL just to run something that checks a market every 10 minutes and sends a couple orders - also I don't need the UI and stuff like that, so I might just carve out the algorithm and put it into a smaller commandline only bot... Not to spam more about data collection, I'l just edit my thanks in this post: as the returns seem viable (I'd still love to see data points back to before November, back when swaps rates were more sideways).
I put up returns through January already... about 5 posts back ![Wink](https://bitcointalk.org/Smileys/default/wink.gif) ... thanks! ![Cheesy](https://bitcointalk.org/Smileys/default/cheesy.gif)
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2014, 05:24:19 PM |
|
as the returns seem viable (I'd still love to see data points back to before November, back when swaps rates were more sideways).
I put up returns through January already... about 5 posts back ![Wink](https://bitcointalk.org/Smileys/default/wink.gif) I just updated the shared spreadsheet at:https://docs.google.com/spreadsheets/d/1QYSVhW_PM8V7kk64ar5KPauB504H3hswGZPopbHmc3w/edit?usp=sharingwith a new tab that has full data for as far back as I have it. However, this account was used for lots of other stuff in the past, so i marked the data up a bit to represent how reliable it is. Anything in red I'd be wary of, I was doing a lot of other things back then. Yellow means it probably is pretty accurate, but a few days may be a bit off, no color is probably pretty reliable (95% of days being completely accurate, the rest close enough to not matter much), and the green days are 100% representative of this bot's returns. If other people want to share data in this same format, it will make comparison much easier going forwards... (looking back at this chart, man I miss last January.... those were the days...)
|
|
|
|
noggin-scratcher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 29, 2014, 11:48:20 PM |
|
Just going to check you're aware; the shared spreadsheet only seems to have permissions granted for viewing, not for other users to add/edit. Not sure what your intentions were - can plausibly imagine that being how you want it (so that no-one can come along and mess with it maliciously), but equally I know I've intended to share something as group-editable before and instead not even managed to grant viewing permissions.
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 30, 2014, 04:43:04 PM |
|
Just going to check you're aware; the shared spreadsheet only seems to have permissions granted for viewing, not for other users to add/edit. Not sure what your intentions were - can plausibly imagine that being how you want it (so that no-one can come along and mess with it maliciously), but equally I know I've intended to share something as group-editable before and instead not even managed to grant viewing permissions.
yeah, it was supposed to be editable, sorry about that. Should be set right now. I don't use google sheets much, thought i had it set right. For anyone who wants to add their own returns, I would ask that you just create a new tab, so we can keep the existing info in place.
|
|
|
|
jabetizo
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 02, 2014, 07:41:03 PM |
|
I'm having trouble installing... Step 1 and 2 go through smoothly but after clicking "Complete Install", I just get a blank page.
I'm running Debian 7.
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 03, 2014, 03:51:55 PM |
|
I'm having trouble installing... Step 1 and 2 go through smoothly but after clicking "Complete Install", I just get a blank page.
I'm running Debian 7.
Hmm... can you tell if it correctly made the database tables? Do you have any errors in your apache http error log?
|
|
|
|
jabetizo
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 03, 2014, 04:50:13 PM |
|
I'm having trouble installing... Step 1 and 2 go through smoothly but after clicking "Complete Install", I just get a blank page.
I'm running Debian 7.
Hmm... can you tell if it correctly made the database tables? Do you have any errors in your apache http error log? mysql> show tables from mbot; +---------------------+ | Tables_in_mbot | +---------------------+ | BFXLendBot_CronRuns | | BFXLendBot_Tracking | | BFXLendBot_Users | | BFXLendBot_Vars | +---------------------+ 4 rows in set (0.01 sec) The tables are made but are all empty. error log: [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: doInstall in /var/www/mbot/install.php on line 9 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: doInstall in /var/www/mbot/install.php on line 135 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: doInstall in /var/www/mbot/install.php on line 287 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installDBHost in /var/www/mbot/install.php on line 289 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installDBPrefix in /var/www/mbot/install.php on line 290 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installDBName in /var/www/mbot/install.php on line 348 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installDBUser in /var/www/mbot/install.php on line 351 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installDBPassword in /var/www/mbot/install.php on line 354 [Wed Dec 03 11:30:25 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installEmail in /var/www/mbot/install.php on line 380 [Wed Dec 03 11:31:39 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installAdminUser in /var/www/mbot/install.php on line 442, referer: http://123.123.123.123/mbot/install.php [Wed Dec 03 11:31:39 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installAdminEmail in /var/www/mbot/install.php on line 445, referer: http://123.123.123.123/mbot/install.php [Wed Dec 03 11:31:39 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installAdminPassword in /var/www/mbot/install.php on line 448, referer: http://123.123.123.123/mbot/install.php [Wed Dec 03 11:31:39 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installAdminBFXKey in /var/www/mbot/install.php on line 451, referer: http://123.123.123.123/mbot/install.php [Wed Dec 03 11:31:39 2014] [error] [client 123.123.123.123] PHP Notice: Undefined index: installAdminBFXSec in /var/www/mbot/install.php on line 454, referer: http://123.123.123.123/mbot/install.php [Wed Dec 03 11:33:00 2014] [error] [client 123.123.123.123] PHP Fatal error: Call to undefined function curl_init() in /var/www/mbot/inc/ExchangeAPIs/bitfinex.php on line 110, referer: http://123.123.123.123/mbot/install.php Thanks! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 03, 2014, 05:33:13 PM |
|
[Wed Dec 03 11:33:00 2014] [error] [client 123.123.123.123] PHP Fatal error: Call to undefined function curl_init() in /var/www/mbot/inc/ExchangeAPIs/bitfinex.php on line 110, referer: http://123.123.123.123/mbot/install.php Thanks! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) You don't seem to have curl support enabled on your PHP install, which is typically standard. CURL is required to use the bitfinex API. See http://php.net/manual/en/curl.installation.php for help compiling with CURL
|
|
|
|
jabetizo
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 03, 2014, 05:58:51 PM |
|
My bad, it's my first time using a VPS. It's working like a charm now, thank you! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 03, 2014, 06:02:46 PM |
|
My bad, it's my first time using a VPS. It's working like a charm now, thank you! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Glad to hear it. I added CURL support to the requirements on the front page, so hopefully your experience will help others in the future. If I got really ambitious some day I could actually have the installer check for all the required components when it runs, but that seems like a lot of work for such a limited scope product.... ![Roll Eyes](https://bitcointalk.org/Smileys/default/rolleyes.gif)
|
|
|
|
fandango66
Newbie
Offline
Activity: 10
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 04, 2014, 01:11:41 PM |
|
Great work! Testing it now..
What would be the easiest way to pause the bot? Stop the cron jobs?
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 04, 2014, 02:55:39 PM |
|
Great work! Testing it now..
What would be the easiest way to pause the bot? Stop the cron jobs?
Yeah, stopping the crons would be your best bet. Right now there's no built in pause button per se, but sometimes when I want to keep some of my money available when it comes off loan, I'll use a High Hold set to a really high interest rate. That way if something crazy happens and interest spikes to 1% or something the money will still go out, but in all likelihood it will be there waiting for me when I need it. I have been asked for a pause feature a couple of times now though, so I may roll that into the next update. I would be pretty easy to add.
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 08, 2014, 07:38:00 PM |
|
For anyone who may be interested in such things, I've set up an account running MarginBot with the Following settings: Spread Available Lends 4 Minimum Lend Rate 0.0650% Minimum for 30 Day 0.1250% High Hold Amount $0.00 Gap Bottom $25,000.00 Gap Top $125,000.00 ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Ffuckedgox.com%2FMBot%2FmbotTestSettings.PNG&t=665&c=dzcQzMCGQLxe3A) And the results are automatically posted here daily: http://fuckedgox.com/MBot/#mbRetSo Far I'm averaging pretty much on par with FRR after fees, but with a more realistic FRR efficiency rate of 70%, I'm getting about 28% higher returns.
|
|
|
|
noggin-scratcher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 09, 2014, 12:46:12 PM |
|
with a more realistic FRR efficiency rate of 70% Looking at the height of the FRR wall, and the low volume taken in the last 24hours, I've been assuming the efficiency would be drastically lower than that... I have no data either way, but I'd be quite interested if someone did have a firm idea of just how long the waiting time to get a swap taken at FRR is right now.
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 09, 2014, 04:34:11 PM |
|
with a more realistic FRR efficiency rate of 70% Looking at the height of the FRR wall, and the low volume taken in the last 24hours, I've been assuming the efficiency would be drastically lower than that... I have no data either way, but I'd be quite interested if someone did have a firm idea of just how long the waiting time to get a swap taken at FRR is right now. My assumption is that it is much lower than that too. 40% wouldn't surprise me at all. I set it at 70% so that there would be no doubt my comparison is reasonable and fair, if not skewed against me...
|
|
|
|
jabetizo
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 09, 2014, 06:40:50 PM |
|
For anyone who may be interested in such things, I've set up an account running MarginBot with the Following settings:
Spread Available Lends 4 Minimum Lend Rate 0.0650% Minimum for 30 Day 0.1250% High Hold Amount $0.00 Gap Bottom $25,000.00 Gap Top $125,000.00
Are these settings based on tests? I've been wondering which settings to use and the most intuitive solution for me would be to lend everything at Gap Bottom around $5000, to make sure it gets taken ASAP. Getting lucky and "catching" higher rates at the Gap Top seems just as probable as getting unlucky and the interest rates lowering during that time... ![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif)
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 09, 2014, 09:58:41 PM |
|
For anyone who may be interested in such things, I've set up an account running MarginBot with the Following settings:
Spread Available Lends 4 Minimum Lend Rate 0.0650% Minimum for 30 Day 0.1250% High Hold Amount $0.00 Gap Bottom $25,000.00 Gap Top $125,000.00
Are these settings based on tests? I've been wondering which settings to use and the most intuitive solution for me would be to lend everything at Gap Bottom around $5000, to make sure it gets taken ASAP. Getting lucky and "catching" higher rates at the Gap Top seems just as probable as getting unlucky and the interest rates lowering during that time... ![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif) They are based on testing I've done. Setting a gap bottom of $5000 is very low in my opinion, and likely to have you catching lots of random very low loan offers. For instance, right now there's an offer for $4001.83 at 0.055 then the next step is at %0.0675 . While your $5000 bottom wouldn't trigger on that offer, it would come close, and I see random low offers like that on the books all the time. I've found that around $25,000 is where the realistic bottom is, and misses the random low crap. I've also found that even on a slow day, $25,000 tends to get taken very quickly. However, the high gap of $125,000 may be a bit high, depending on how much you have in the account. On accounts with only a few $1,000 or less, a more aggressive and probably better overall setting would be: Spread Available Lends 2 Minimum Lend Rate 0.0650% Minimum for 30 Day 0.1250% High Hold Amount $0.00 Gap Bottom $15,000.00 Gap Top $50,000.00
As with all things though, your own testing should trump my opinion. I'm sure there are settings that would result in better returns than I get, and I'm sure account balance and other factors play a role.
|
|
|
|
jabetizo
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 09, 2014, 10:47:42 PM |
|
They are based on testing I've done. Setting a gap bottom of $5000 is very low in my opinion, and likely to have you catching lots of random very low loan offers. For instance, right now there's an offer for $4001.83 at 0.055 then the next step is at %0.0675 . While your $5000 bottom wouldn't trigger on that offer, it would come close, and I see random low offers like that on the books all the time. I've found that around $25,000 is where the realistic bottom is, and misses the random low crap. I've also found that even on a slow day, $25,000 tends to get taken very quickly. However, the high gap of $125,000 may be a bit high, depending on how much you have in the account.
What is the reasoning behind using a Gap Top? With a Gap Top the money will not always be lent out, and during this "lost time", the rates can go either higher or lower - if they go lower you are facing a double loss (lost time and lower rates). Do the higher rates you catch with a Gap Top make this risk worthwhile? Why not just set the "Spread Available Lends" to 1, so all offers go $25,000 deep? However, the high gap of $125,000 may be a bit high, depending on how much you have in the account.
Why should the Gap Top be lower if you have less money? Thanks ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
HowardF (OP)
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 100
I do Stuff, and stuff.....
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 10, 2014, 03:14:03 AM Last edit: December 10, 2014, 04:40:53 AM by HowardF |
|
What is the reasoning behind using a Gap Top? With a Gap Top the money will not always be lent out, and during this "lost time", the rates can go either higher or lower - if they go lower you are facing a double loss (lost time and lower rates). Do the higher rates you catch with a Gap Top make this risk worthwhile? Why not just set the "Spread Available Lends" to 1, so all offers go $25,000 deep?
The way it tends to play out in my testing (and on my year old live account) is like this: After a few weeks, my loans will split into 100's of small chunks. Since each chuck is typically on a 2 day loan, dozens end up closing each hour. Every 10 minutes the bot will check that balance and split it into 4 offers. The lowest offer, set at the $25k mark is almost always taken quickly. During slightly above average movement periods, the next chunk at the second highest rate will be taken in that 10 minute period as well (this is usually only a few .001's of a % higher, but since it was taken in the same hour, it was worth the effort). The next 2 splits likely won't get taken during that 10 minute period unless the market is going crazy. So, the 10 minute bot will run, split what's left of those 2 higher points into 4 loans again, and start all over with the lowest 2 likely to get taken, and the highest 2 not. This will continue to happen until my available balance gets too low too split more than 2 times (under $150, since the smallest loan is $50). Then it will put that final balance up at the lowest rate, where it will promptly get taken. Generally, all of this takes less than an hour, maybe 2, so I've effectively lost no interest payments while gambling on a possible mini run that gets a little cash out at a higher rate. The other benefit is the constant splitting of loans into smaller chunks. This keeps my balance split across many small loans, which creates a constant stream of closing loans, and available balance, which in turn keeps me in a good position to catch any sudden rise in rates when the FRR wall is broken. In general, downward trends are slow and methodical, but the FRR wall breaks are fast and short lived, and there is nothing in the world more annoying than seeing the wall break and interest hit .75%, but having no available balance to take advantage of it. In average to good market conditions this has always worked well for me, eaking out a few extra % on my loans. In particularly slow markets, i tend to adjust these settings to make sure the money always lends out in an hour or less. While this is a bot, for best results, it does need occasional tweaking due to market conditions... ![Wink](https://bitcointalk.org/Smileys/default/wink.gif) However, the high gap of $125,000 may be a bit high, depending on how much you have in the account.
Why should the Gap Top be lower if you have less money? Thanks ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Lower balances mean less available money, which means you'll likely not have enough for multiple splits ($50 / split minimum), so if your available balance is only $120 and your account has a high gap of $125k, it will create 2 splits (instead of the 3 or 4 it would do with more balance), and it will put the second split at the top where it likely won't get hit. With smaller balances your better off setting the split to 2 (or 1 if it's a really small balance, under $500 or so) and the top somewhere that's more likely to get hit in a 10 minute period. Again though, this is just my philosophy, and I'm sure there are better ones out there. That's why I designed the bot to let users set things their own way. ( sorry if this is a thick read or if any of it doesn't make sense, I just typed this all out on a tablet in bed and this forum and auto correct do not like each other....)
|
|
|
|
|