siameze
Legendary
Offline
Activity: 1064
Merit: 1000
|
|
January 20, 2016, 06:05:06 PM |
|
I got the bot working...Thanks for your help on github! So I notice that the console doesn't pipe out data - I could only determine it was running by taking a peek at the logfile - is that expected behavior or should I see output in the console window running blackbird?
Yes this is the expected behavior. We decided to output everything to a log file rather than the console. You can just tail the log file in a separate screen though, if you like to watch it run. I'm guilty of doing this.
|
|
|
|
frankenmint
Legendary
Offline
Activity: 1456
Merit: 1018
HoneybadgerOfMoney.com Weed4bitcoin.com
|
|
January 20, 2016, 06:16:03 PM Last edit: January 20, 2016, 06:33:46 PM by frankenmint |
|
I've been running cat occasionally, thanks for the tip. So I was thinking about maybe moving everything into a log directory. Is there any reason you don't have the files appending to make a bigger file? One last thing, before kicking things into high gear with testing, I wanted to just let it run for awhile and at a point, I started running into problems when it tries to execute trades. hold on... ok here you go: Max Iteration - means how long the bot should run right (in seconds?)
|
|
|
|
butor (OP)
Newbie
Offline
Activity: 49
Merit: 0
|
|
January 20, 2016, 08:52:15 PM |
|
Is there any reason you don't have the files appending to make a bigger file?
I though the best way (and easiest way) was to create one log file per execution. Since Blackbird is supposed to run many days in a row, the size of a single log file can end up being hundreds of MB. I wanted to just let it run for awhile and at a point, I started running into problems when it tries to execute trades.
It might be an issue with Kraken. I just uploaded a new version on GitHub that will give more details about the issue. Also, could you please open an issue on the issue page and we can continue from there? Thanks. Max Iteration - means how long the bot should run right (in seconds?)
Yes that's correct, but not in seconds. DebugMaxIteration represents the number of market analysis loops. So Blackbird will run for approximately { DebugMaxIteration * GapSec} seconds.
|
|
|
|
frankenmint
Legendary
Offline
Activity: 1456
Merit: 1018
HoneybadgerOfMoney.com Weed4bitcoin.com
|
|
January 22, 2016, 11:06:28 AM |
|
I got the bot working...Thanks for your help on github! So I notice that the console doesn't pipe out data - I could only determine it was running by taking a peek at the logfile - is that expected behavior or should I see output in the console window running blackbird?
Yes this is the expected behavior. We decided to output everything to a log file rather than the console. You can just tail the log file in a separate screen though, if you like to watch it run. I'm guilty of doing this. you sir....are da real mvp....this is now my favorite command in the world.
|
|
|
|
siameze
Legendary
Offline
Activity: 1064
Merit: 1000
|
|
January 22, 2016, 11:39:57 AM |
|
I got the bot working...Thanks for your help on github! So I notice that the console doesn't pipe out data - I could only determine it was running by taking a peek at the logfile - is that expected behavior or should I see output in the console window running blackbird?
Yes this is the expected behavior. We decided to output everything to a log file rather than the console. You can just tail the log file in a separate screen though, if you like to watch it run. I'm guilty of doing this. you sir....are da real mvp....this is now my favorite command in the world. Ha! glad you like it, I love to watch my trades scroll after I have got a new setup working. Simple and effective.
|
|
|
|
enigma969
Newbie
Offline
Activity: 1
Merit: 0
|
|
January 26, 2016, 07:20:38 PM |
|
Hey,
your project sounds very nice! Too bad I just can write in Java, would be very interested to contribute. I am very looking forward to use your software and so I would be very happy if you can answer some questions:
Let's say I have 3000$ available to invest, what exchanges would you recommend? Should I split money up over all exchanges that are currently supported?
What hosting solution do you recommend? You said something about a Google Server?
I always get warnings like "WARNING: 2 second(s) too late at 01/26/2016 19:47:51" - It's because of latency right?
Thanks a lot in advance!
|
|
|
|
mxnsch
|
|
January 26, 2016, 07:29:05 PM |
|
Hi guys,
did anybody test it with OSX 10.10? I am getting segfaults with the current git master when i disable demoMode.
Thanks for your work!
|
██ ███ nope ██ ███
|
|
|
siameze
Legendary
Offline
Activity: 1064
Merit: 1000
|
|
January 26, 2016, 07:37:06 PM |
|
Hi guys,
did anybody test it with OSX 10.10? I am getting segfaults with the current git master when i disable demoMode.
Thanks for your work!
I haven't tested it on OSX but did manage a BSD build, which is similar. I'll see if I can find a friend using osx to test, never used it xD.
|
|
|
|
mxnsch
|
|
January 26, 2016, 07:58:12 PM |
|
Hi siameze, thanks for the fast feedback. Tested current master with a clean Ubuntu 14.04 VM and had the same effect (Segfault). root@ubuntu:~/trader/blackbird# ./blackbird Blackbird Bitcoin Arbitrage DISCLAIMER: USE THE SOFTWARE AT YOUR OWN RISK
Log file generated: blackbird_log_20160126_204710.log Blackbird is running... (pid 10118)
Segmentation fault (core dumped) root@ubuntu:~/trader/blackbird# cat blackbird_log_20160126_204710.log -------------------------------------------- | Blackbird Bitcoin Arbitrage Log File | --------------------------------------------
Blackbird started on 01/26/2016 20:47:10
[ Targets ] Spread Entry: 0.80% Spread Target: 0.30% [ Current balances ] Starting program: /root/trader/blackbird/blackbird Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module> from libstdcxx.v6.printers import register_libstdcxx_printers ImportError: No module named 'libstdcxx' [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Blackbird Bitcoin Arbitrage DISCLAIMER: USE THE SOFTWARE AT YOUR OWN RISK
Log file generated: blackbird_log_20160126_205556.log Blackbird is running... (pid 11317)
[New Thread 0x7ffff1808700 (LWP 11321)] [Thread 0x7ffff1808700 (LWP 11321) exited] [New Thread 0x7ffff1808700 (LWP 11322)] [Thread 0x7ffff1808700 (LWP 11322) exited] [New Thread 0x7ffff1808700 (LWP 11323)] [Thread 0x7ffff1808700 (LWP 11323) exited]
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff64af54c in __GI_____strtod_l_internal (nptr=0x0, endptr=0x0, group=<optimized out>, loc=0x7ffff682d060 <_nl_global_locale>) at strtod_l.c:608 608 strtod_l.c: No such file or directory. (gdb) bt #0 0x00007ffff64af54c in __GI_____strtod_l_internal (nptr=0x0, endptr=0x0, group=<optimized out>, loc=0x7ffff682d060 <_nl_global_locale>) at strtod_l.c:608 #1 0x000000000040cfc5 in atof (__nptr=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/stdlib-float.h:28 #2 Bitstamp::getAvail (params=..., currency=...) at src/bitstamp.cpp:51 #3 0x0000000000404add in main (argc=<optimized out>, argv=<optimized out>) at src/main.cpp:250
EDIT: As it is pretty obvious that there is a problem with the bitstamp configuration, i removed it. Works now, but now i am curious what leads to this crash ;-)
|
██ ███ nope ██ ███
|
|
|
butor (OP)
Newbie
Offline
Activity: 49
Merit: 0
|
|
January 28, 2016, 04:59:38 AM Last edit: January 28, 2016, 05:16:24 AM by butor |
|
Hi enigma969, thank you for your interest. Let's say I have 3000$ available to invest, what exchanges would you recommend? Should I split money up over all exchanges that are currently supported?
Yes, if you want to maximize your exposure you should put $1,500 on Bitfinex and $1,500 on one of the other supported exchanges. But please first test with a small amount of money! What hosting solution do you recommend? You said something about a Google Server?
I don't have any specific recommendation. I personally use a laptop for programming and troubleshooting and a Google Cloud server (Compute Engine Micro) to run Blackbird 24/7. The CPU and memory consumptions are usually low (C++ helps here) but you need a correct Internet connection. I always get warnings like "WARNING: 2 second(s) too late at 01/26/2016 19:47:51" - It's because of latency right?
Yes this is probably due to the latency of your Internet connection. See a workaround here (issue #39).
|
|
|
|
mxnsch
|
|
January 28, 2016, 08:02:53 AM |
|
Resolved it by activating the Bitstamp API Key. Yes, my bad. Obviously, Bitstamp does not activate new API Keys by default. A documentation for the setup of all supported exchanges and better error handling would be great.
I can take care of the documenation part if there is enough interest.
PS.: I am currently trying to get 796 working, but struggling. Does anybody have a working 796 integration?
|
██ ███ nope ██ ███
|
|
|
siameze
Legendary
Offline
Activity: 1064
Merit: 1000
|
|
January 28, 2016, 11:00:00 AM |
|
Resolved it by activating the Bitstamp API Key. Yes, my bad. Obviously, Bitstamp does not activate new API Keys by default. A documentation for the setup of all supported exchanges and better error handling would be great.
I can take care of the documenation part if there is enough interest.
PS.: I am currently trying to get 796 working, but struggling. Does anybody have a working 796 integration?
Just checked this thread, but glad you got your API key working. I haven't tried 796 integration myself but it is most likely possible. Perhaps dev will add it in the future.
|
|
|
|
mxnsch
|
|
January 28, 2016, 12:40:32 PM |
|
Thank you for the feedback siameze!
Ok, i will try to integrate a new provider as PoC then and also add documentation about how to actually create / activate API keys for the existing ones. Will take a couple of days, especially since i am currently on the road for a couple of days.
|
██ ███ nope ██ ███
|
|
|
butor (OP)
Newbie
Offline
Activity: 49
Merit: 0
|
|
January 30, 2016, 11:15:14 PM Last edit: January 30, 2016, 11:25:46 PM by butor |
|
I am currently trying to get 796 working, but struggling. Does anybody have a working 796 integration?
A first implementation of 796.com has been done ( link to cpp file here) but has never been tested. The getLimitPrice() function has to be rewritten to match the other exchanges. Note that 796.com only trade Bitcoin futures contracts.
|
|
|
|
siameze
Legendary
Offline
Activity: 1064
Merit: 1000
|
|
January 31, 2016, 01:20:42 AM |
|
I am currently trying to get 796 working, but struggling. Does anybody have a working 796 integration?
A first implementation of 796.com has been done ( link to cpp file here) but has never been tested. The getLimitPrice() function has to be rewritten to match the other exchanges. Note that 796.com only trade Bitcoin futures contracts. Hey thanks for this! I will compile it in tommorow and report my experience later on. Nice work!
|
|
|
|
mxnsch
|
|
January 31, 2016, 07:35:02 AM |
|
I am currently trying to get 796 working, but struggling. Does anybody have a working 796 integration?
A first implementation of 796.com has been done ( link to cpp file here) but has never been tested. The getLimitPrice() function has to be rewritten to match the other exchanges. Note that 796.com only trade Bitcoin futures contracts. I contacted their support and they will enable BTC/USD trading after chinese new year
|
██ ███ nope ██ ███
|
|
|
mxnsch
|
|
January 31, 2016, 05:12:05 PM |
|
I am currently trying to get 796 working, but struggling. Does anybody have a working 796 integration?
A first implementation of 796.com has been done ( link to cpp file here) but has never been tested. The getLimitPrice() function has to be rewritten to match the other exchanges. Note that 796.com only trade Bitcoin futures contracts. I am running off master for a week now, does definitely not work for me. Segfault on start if 796 is enabled. Will look into it tomorrow afternoon.
|
██ ███ nope ██ ███
|
|
|
mxnsch
|
|
January 31, 2016, 06:17:38 PM |
|
For the reference: Yes you can do margin trading with bitcoin here, we offer bitcoin futures and a variety of CFD products (indices, commodities, Forex) that trade with bitcoin. We will launch Bitcoin spot trading soon after the Chinese New Year then you can sell your coins for US dollars. But we don't have plans to accept US dollar deposit though you would be able to withdraw US dollar from our platform.
Hope that helps ;-)
|
██ ███ nope ██ ███
|
|
|
butor (OP)
Newbie
Offline
Activity: 49
Merit: 0
|
|
February 02, 2016, 05:08:08 AM |
|
Thanks mxnsch and siameze! Hopefully it will be possible to programmatically short sell on 796.com. For the moment, we still only have Bitfinex that offers that feature. PS: the Chinese New Year is next Monday (February 8 th).
|
|
|
|
siameze
Legendary
Offline
Activity: 1064
Merit: 1000
|
|
February 02, 2016, 11:30:55 AM |
|
Thanks mxnsch and siameze! Hopefully it will be possible to programmatically short sell on 796.com. For the moment, we still only have Bitfinex that offers that feature. PS: the Chinese New Year is next Monday (February 8 th). Awesome news, and I like how the project keeps moving forward in a positive direction. Hopefully this weekend I will be able to see if I can look closer into the 796 code, did mxnsch get his issue resolved?
|
|
|
|
|