Bitcoin Forum
May 06, 2024, 03:58:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 »  All
  Print  
Author Topic: [ANN] MarginBot - A Bitfinex Margin Lending Management Bot  (Read 45868 times)
HowardF (OP)
Full Member
***
Offline Offline

Activity: 145
Merit: 100

I do Stuff, and stuff.....


View Profile
March 08, 2015, 04:09:51 PM
 #101

cool , do you have enough for another job based on php? i need a programmer

Absolutely.  I'm a freelance programmer.  Contact me at howard@fuckedgox.com and I'll be happy to discuss any projects you're working on.


That was one hell of a proffesional email adress you have there Wink seriously tho , i think i might be contacting you into near future if that's a real email i need a php aswell : >

I have many, many domains.  Thats just the one I use here.  If you were in tech in the 90's / early 00's, there was a website called fuckedcompany.com that pretty much everyone knew about and hated / dreaded / loved  depending on their job title.  It was a bit of a play on that.

As for php, I'm happy to discuss any projects.  I am going to be travelling for the next week or so though, so I may be a little slower to respond than normal.  I will get back to you as quickly as available internet allows.


1714967887
Hero Member
*
Offline Offline

Posts: 1714967887

View Profile Personal Message (Offline)

Ignore
1714967887
Reply with quote  #2

1714967887
Report to moderator
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714967887
Hero Member
*
Offline Offline

Posts: 1714967887

View Profile Personal Message (Offline)

Ignore
1714967887
Reply with quote  #2

1714967887
Report to moderator
1714967887
Hero Member
*
Offline Offline

Posts: 1714967887

View Profile Personal Message (Offline)

Ignore
1714967887
Reply with quote  #2

1714967887
Report to moderator
theskillzdatklls
Hero Member
*****
Offline Offline

Activity: 1328
Merit: 563


MintDice.com | TG: t.me/MintDice


View Profile WWW
March 09, 2015, 08:27:19 AM
 #102

nice project




.




  ▄▄▄▄▄▄▄▄▄▄▄▄▄
▄████████▀▀▀▀███▄
███████▀     ████
███████   ███████
█████        ████
███████   ███████
▀██████   ██████▀
  ▀▀▀▀▀   ▀▀▀▀▀

  ▄▄▄▄▄▄▄▄▄▄▄▄▄
▄██▀▀▀▀▀▀▀▀▀▀▀██▄
██    ▄▄▄▄▄ ▀  ██
██   █▀   ▀█   ██
██   █▄   ▄█   ██
██    ▀▀▀▀▀    ██
▀██▄▄▄▄▄▄▄▄▄▄▄██▀
  ▀▀▀▀▀▀▀▀▀▀▀▀▀

            ▄▄▄
█▄▄      ████████▄
 █████▄▄████████▌
▀██████████████▌
  █████████████
  ▀██████████▀
   ▄▄██████▀
    ▀▀▀▀▀

    ██  ██
  ███████████▄
    ██      ▀█
    ██▄▄▄▄▄▄█▀
    ██▀▀▀▀▀▀█▄
    ██      ▄█
  ███████████▀
    ██  ██




               ▄
       ▄  ▄█▄ ▀█▀      ▄
      ▀█▀  ▀   ▄  ▄█▄ ▀█▀
███▄▄▄        ▀█▀  ▀     ▄▄▄███       ▐█▄    ▄█▌   ▐█▌   █▄    ▐█▌   ████████   █████▄     ██    ▄█████▄▄   ▐█████▌
████████▄▄           ▄▄████████       ▐███▄▄███▌   ▐█▌   ███▄  ▐█▌      ██      █▌  ▀██    ██   ▄██▀   ▀▀   ▐█
███████████▄       ▄███████████       ▐█▌▀██▀▐█▌   ▐█▌   ██▀██▄▐█▌      ██      █▌   ▐█▌   ██   ██          ▐█████▌
 ████████████     ████████████        ▐█▌    ▐█▌   ▐█▌   ██  ▀███▌      ██      █▌  ▄██    ██   ▀██▄   ▄▄   ▐█
  ████████████   ████████████         ▐█▌    ▐█▌   ▐█▌   ██    ▀█▌      ██      █████▀     ██    ▀█████▀▀   ▐█████▌
   ▀███████████ ███████████▀
     ▀███████████████████▀
        ▀▀▀█████████▀▀▀
FIND OUT MORE AT MINTDICE.COM
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
March 27, 2015, 11:39:19 PM
 #103

I like the bot but i wonder about the settings i should use. When i use standard settings then loans are given out pretty fast but often for low rates. Today there were many hours of low rates because for some reason (does someone know why) there were many many usd on offer. I ended up getting swaps for 20% less than normal. So when the minimum is 48 hours to lend then 20% of this is 9,6 hours. So if i would have sat up my values that it would wait around that long then i would still get the same like i get now. Plus a higher chance of getting more on other times.

So taking these considerations into account, what USD-Values should i chose? Any advise?

And can someone say why there were so many usd on offer today? It doesnt look like it had an effect on price though.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
HowardF (OP)
Full Member
***
Offline Offline

Activity: 145
Merit: 100

I do Stuff, and stuff.....


View Profile
March 28, 2015, 04:04:30 PM
 #104

I like the bot but i wonder about the settings i should use. When i use standard settings then loans are given out pretty fast but often for low rates. Today there were many hours of low rates because for some reason (does someone know why) there were many many usd on offer. I ended up getting swaps for 20% less than normal. So when the minimum is 48 hours to lend then 20% of this is 9,6 hours. So if i would have sat up my values that it would wait around that long then i would still get the same like i get now. Plus a higher chance of getting more on other times.

So taking these considerations into account, what USD-Values should i chose? Any advise?

And can someone say why there were so many usd on offer today? It doesnt look like it had an effect on price though.

The markets over the last couple of days are back to normal actually.  We had been on a pretty crazy rise for about 3 weeks, which is why things probably seemed a bit weird if you just started doing margin lending.

MarginBot was designed in particular to undercut the FRR so that money would actually lend out (in normal conditions, the FRR is an unbreakable wall that almost never gets crossed, so people who set their money to autorenew lend at the FRR would have very long wait times until their money was actually lent).  The philosophy behind MarginBot is to lend out any money in the account as quickly as possible, while still getting as good as possible of a return.  Money not lent lowers your returns much worse than money lent at a slightly lower % rate.

As for settings, I generally do not give setting advice because everyone has their own needs and return expectations, and the amount you have in your account can have a significant impact on appropriate settings.

As a rough guide though, in the current market, on an account with between say $25,000 - $50,000 setting:

Spread Available Lends:   6
Minimum Lend Rate:        0.025% (or whatever you are comfortable with, we've recently been lower than this, but probably won't get this low again for at least a month or 2)
Minimum for 30 Day:       0.1%
Gap Bottom:                  $20,000
Gap Top:                       $125,000

This should provide a good mix of quickly lending out most of the money (the $20,000 gap bottom goes quickly, then a few of your loans will go out), while keeping a little bit waiting for a better rate if theres a spike.  And since the rates are over 0.1% right now you'll take advantage of the high rates with 30 day loans, but as rates go down, you'll move into a position to keep loans short and wait for another rate spike.

(again, these are just loose suggestions, and you mileage may vary....)



jabetizo
Full Member
***
Offline Offline

Activity: 125
Merit: 101


View Profile WWW
March 28, 2015, 10:22:27 PM
 #105

Some borrowers seem to only take 30-day loans. I think it would be useful to calculate the "Gap Bottom" taking into account only the 30-day offers when the "Minimum for 30 Day" rate is achievable this way (when there are less than "Gap bottom" 30 day offers below the "Minimum for 30 Day" rate).


HowardF (OP)
Full Member
***
Offline Offline

Activity: 145
Merit: 100

I do Stuff, and stuff.....


View Profile
March 29, 2015, 04:03:23 PM
Last edit: March 29, 2015, 04:15:55 PM by HowardF
 #106

Some borrowers seem to only take 30-day loans. I think it would be useful to calculate the "Gap Bottom" taking into account only the 30-day offers when the "Minimum for 30 Day" rate is achievable this way (when there are less than "Gap bottom" 30 day offers below the "Minimum for 30 Day" rate).

This is a feature I'm working on adding into the next version.  I've got a lot of other projects taking priority right now, but hope to get the next version up in a few weeks.

SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
March 30, 2015, 04:56:51 PM
 #107

HowardF... can you take out the functioninality that when you change the USD-Values that with every key entered the number is redrawn and the cursor set at the last place? It makes it hard to change anything especially substantially changes.

And it might make sense, if different swap offers created have the same percentage, to merge those offers into one offer. This way the fragmentation of offers could be lowered. They are in the same place anyway with the same percent.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
March 31, 2015, 11:07:57 AM
Last edit: March 31, 2015, 02:12:37 PM by SebastianJu
 #108

Its some time since i made something with a server so i wonder do you guys protect your marginbot directory? I guess first step would be to exclude it from the robots.txt so that no hacker can find it in google. Next would be to make a password protection for the directory?

How do you protect it? Im not even sure if the API can be misused really but i guess better safe than sorry.

Edit: And a statspage would be good. For example showing how long funds stayed not lent out. That could lead to find better settings. Sorry when i have so many requests. I test the software and some things come to mind while doing it. Wink

Edit2: Looks like i cant enable short_open_tag = On on my hosting because of security reasons. I will have to change all files because of that. Maybe its possible to use <?php instead <? in the next version? Ill change my files manually for now.

Edit3: It looks most files already have the normal tag. Only a couple of files has to be changed. Those are:

index.php
install.php
crons/HourlyCron.php
crons/TenMinuteCron.php
inc/header.php
inc/version_info.php
json/stats.php

I hope i didnt miss one.

Edit4: header.php contains a couple of short tags in the code. Its the only file though. Im sure i found all now.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
April 06, 2015, 05:27:34 PM
 #109

It might  be good to only cancel swap offers when the total amount of deposit available and loans pending is over 50USD. Otherwise it will cancel a swap with, for example 40$ and no way to put it out there again until more comes in, which might take a day. In that time the swap most probably would have been taken then.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
April 07, 2015, 09:16:39 PM
 #110

You can put out smaller offers using Autolend, I am not sure if it is possible using the API though (or worth the hassle of implementing this...).

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
April 08, 2015, 10:40:59 AM
 #111

You can put out smaller offers using Autolend, I am not sure if it is possible using the API though (or worth the hassle of implementing this...).

At the moment the bot has a $50 limit. He wont create new offers below that value.

But he cancels all orders on starting of the cron it seems. At least as far as i read the code. All orders get cancelled and then he meets the $50 limit and cant recreate them. I had $42 sitting around over night because no swap ended in that time.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
HowardF (OP)
Full Member
***
Offline Offline

Activity: 145
Merit: 100

I do Stuff, and stuff.....


View Profile
April 15, 2015, 07:52:58 PM
 #112

Its some time since i made something with a server so i wonder do you guys protect your marginbot directory? I guess first step would be to exclude it from the robots.txt so that no hacker can find it in google. Next would be to make a password protection for the directory?

How do you protect it? Im not even sure if the API can be misused really but i guess better safe than sorry.

I use a password protected directory on a firewalled server to protect mine.  The actual risk from the API is low, but it is a good idea to put some reasonable security in place, and do you best to prevent anything from finding it in general.  The next version will have a robots.txt by the way, I just haven't pushed it live yet.  Making your own for now is highly suggested.  Nothing worse than having your Marginbot show up on google.



Edit: And a statspage would be good. For example showing how long funds stayed not lent out. That could lead to find better settings. Sorry when i have so many requests. I test the software and some things come to mind while doing it. Wink


I would love to do better stats when I have the time.  I'll be happy to add this to the feature request list.


Edit2: Looks like i cant enable short_open_tag = On on my hosting because of security reasons. I will have to change all files because of that. Maybe its possible to use <?php instead <? in the next version? Ill change my files manually for now.

Edit3: It looks most files already have the normal tag. Only a couple of files has to be changed. Those are:

index.php
install.php
crons/HourlyCron.php
crons/TenMinuteCron.php
inc/header.php
inc/version_info.php
json/stats.php

I hope i didnt miss one.

Edit4: header.php contains a couple of short tags in the code. Its the only file though. Im sure i found all now.

yeah, i'm terrible at using short tags. Sorry about that, I'll make sure to clean this up in the next release.


HowardF (OP)
Full Member
***
Offline Offline

Activity: 145
Merit: 100

I do Stuff, and stuff.....


View Profile
April 15, 2015, 07:55:05 PM
 #113

You can put out smaller offers using Autolend, I am not sure if it is possible using the API though (or worth the hassle of implementing this...).

At the moment the bot has a $50 limit. He wont create new offers below that value.

But he cancels all orders on starting of the cron it seems. At least as far as i read the code. All orders get cancelled and then he meets the $50 limit and cant recreate them. I had $42 sitting around over night because no swap ended in that time.

Last time I tried it wasn't possible using the API, though I haven't tried in a while.  I'll check into this next update.  If its still not possible, I do like the idea of not canceling small orders when below $50.  I'm not sure its really worth the effort, but it would be easy to implement, so I'll look into it.

HowardF (OP)
Full Member
***
Offline Offline

Activity: 145
Merit: 100

I do Stuff, and stuff.....


View Profile
April 15, 2015, 08:00:38 PM
 #114

HowardF... can you take out the functioninality that when you change the USD-Values that with every key entered the number is redrawn and the cursor set at the last place? It makes it hard to change anything especially substantially changes.




I use an open source money formatter script that causes this.  I'll look into making it optional.

And it might make sense, if different swap offers created have the same percentage, to merge those offers into one offer. This way the fragmentation of offers could be lowered. They are in the same place anyway with the same percent.

This wouldn't effect the fragmentation significantly to be honest, since most small amounts will all get taken as one loan, and returned at the same time to go back into the loan queue.  Besides, fragmentation is a good thing.  it keeps loans always coming due, which keeps money always going back out on loan, which is how this bot manages to always take advantage of suddent rate spikes. I've generally got anywhere between 200 - 400 loans out on my account, which means I'm always able to catch even 5 or 10 minute long spikes with at least a little loan.

SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
April 17, 2015, 11:15:30 AM
 #115

HowardF... can you take out the functioninality that when you change the USD-Values that with every key entered the number is redrawn and the cursor set at the last place? It makes it hard to change anything especially substantially changes.




I use an open source money formatter script that causes this.  I'll look into making it optional.

And it might make sense, if different swap offers created have the same percentage, to merge those offers into one offer. This way the fragmentation of offers could be lowered. They are in the same place anyway with the same percent.

This wouldn't effect the fragmentation significantly to be honest, since most small amounts will all get taken as one loan, and returned at the same time to go back into the loan queue.  Besides, fragmentation is a good thing.  it keeps loans always coming due, which keeps money always going back out on loan, which is how this bot manages to always take advantage of suddent rate spikes. I've generally got anywhere between 200 - 400 loans out on my account, which means I'm always able to catch even 5 or 10 minute long spikes with at least a little loan.

Youre right with the fragmentation but often i see open swap offers that are offered at the exact same rate. Since they are added at the same moment they will most probably will taken in the same moment. But they will still show up as two even though they are the same rate and time. And they will end at the same time too.

Only thought it might be a bit easier to read though its not as important.

Regarding not swapped out USD. You might count them like Dollar-Minutes. Each amount of USD not lend out for some minutes will add to that account. Then one might be able to adjust the settings and lower that amount by checking the performance at the same time.

I think it would be a great tool to maximize profits.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
nemercry
Sr. Member
****
Offline Offline

Activity: 339
Merit: 250

Vice versa is not a meal.


View Profile
May 02, 2015, 01:10:45 PM
 #116

Hey there,

i want to test the script right now. I am using XAMPP for testing with Windows. Everytime i went past the database configuration and the website config the install.php script tells me that everything should work fine now and i should make my config readable only. After i did that and klick on "Log On" it just redirects me to install.php again and starts a new installation process.

What could be wrong ?
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
May 04, 2015, 11:03:52 AM
 #117

Hey there,

i want to test the script right now. I am using XAMPP for testing with Windows. Everytime i went past the database configuration and the website config the install.php script tells me that everything should work fine now and i should make my config readable only. After i did that and klick on "Log On" it just redirects me to install.php again and starts a new installation process.

What could be wrong ?

Maybe your config isnt readable anymore now? Only a guess.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
HowardF (OP)
Full Member
***
Offline Offline

Activity: 145
Merit: 100

I do Stuff, and stuff.....


View Profile
May 04, 2015, 02:48:47 PM
 #118

Hey there,

i want to test the script right now. I am using XAMPP for testing with Windows. Everytime i went past the database configuration and the website config the install.php script tells me that everything should work fine now and i should make my config readable only. After i did that and klick on "Log On" it just redirects me to install.php again and starts a new installation process.

What could be wrong ?

Sounds like you may be changing your config to be unreadable.  Make sure to set it to something your webserver can read, but not write too.  Using chmod 0644 *should* work, unless your server has some strange custom settings.

nemercry
Sr. Member
****
Offline Offline

Activity: 339
Merit: 250

Vice versa is not a meal.


View Profile
May 06, 2015, 08:50:18 AM
 #119

I did not get it work. I decided to write my own bot. When i finished the Server gave me a "nonce to small error" which can be interpreted as "your privat key and secret key are already in use". Which was not done by my own program and the key was only used for the php bot. I deleted the old keys, created a new one and everything worked as it should.
Any idea how or why that happened ?
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
May 06, 2015, 01:16:05 PM
 #120

I did not get it work. I decided to write my own bot. When i finished the Server gave me a "nonce to small error" which can be interpreted as "your privat key and secret key are already in use". Which was not done by my own program and the key was only used for the php bot. I deleted the old keys, created a new one and everything worked as it should.
Any idea how or why that happened ?

Maybe bitfinex is binding keys to one single application, storing all the details about the sending computer, browser and so on? Though you might better ask that in bitfinex services thread. https://bitcointalk.org/index.php?topic=229438

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!