Bitcoin Forum

Economy => Service Discussion => Topic started by: dmpotter on January 20, 2014, 10:01:37 PM



Title: cex.io purchase bot
Post by: dmpotter on January 20, 2014, 10:01:37 PM
Anyone know of a safe bot to just autobuy gh/s every hour or so with the mined amount of btc and nmc? I've seen several bots, but either the focus only on the btc amount or attempt some form of trading.


Title: Re: cex.io purchase bot
Post by: zerokwel on January 21, 2014, 11:13:21 PM
yes its called  cex.io reinvestor by zack urben..

it is over on the cex.io forums somewhere. (2 lazy to look myself)



Title: Re: cex.io purchase bot
Post by: dmpotter on January 22, 2014, 05:30:03 AM
Thank you, I found it!

https://github.com/zackurben/cex.io-reinvestor


Title: Re: cex.io purchase bot
Post by: Bitcoin Fiction on January 22, 2014, 03:08:32 PM
yes its called  cex.io reinvestor by zack urben..

it is over on the cex.io forums somewhere. (2 lazy to look myself)


Thank you, I found it!

https://github.com/zackurben/cex.io-reinvestor
Huge props to both of you and the developer of the software! Didn't even think that something like this exists, lol.
Thank you!


Title: Re: cex.io purchase bot
Post by: dmpotter on January 22, 2014, 04:01:05 PM
yes its called  cex.io reinvestor by zack urben..

it is over on the cex.io forums somewhere. (2 lazy to look myself)


Thank you, I found it!

https://github.com/zackurben/cex.io-reinvestor
Huge props to both of you and the developer of the software! Didn't even think that something like this exists, lol.
Thank you!

I got the CLI version working, the gui didn't work for me.. but not going to complain.. use to terminal anyhow :)

ex. C:\PROGRA~2\Java\jre7\bin\java -jar Reinvestor_v1.0.4.jar username key secret


Title: Re: cex.io purchase bot
Post by: FlyForFun on January 22, 2014, 04:10:36 PM
Thank you, I found it!

https://github.com/zackurben/cex.io-reinvestor

Nice, didn't know there is a bot for such thing.


Title: Re: cex.io purchase bot
Post by: kannibal3 on January 26, 2014, 01:31:17 AM
Hey guys, this is random, but I am the developer Zack.

I'm glad you guys are finding this useful!

yes its called  cex.io reinvestor by zack urben..

it is over on the cex.io forums somewhere. (2 lazy to look myself)


Thank you, I found it!

https://github.com/zackurben/cex.io-reinvestor
Huge props to both of you and the developer of the software! Didn't even think that something like this exists, lol.
Thank you!

I got the CLI version working, the gui didn't work for me.. but not going to complain.. use to terminal anyhow :)

ex. C:\PROGRA~2\Java\jre7\bin\java -jar Reinvestor_v1.0.4.jar username key secret
dmpotter, do you mind if I ask: 1) what version of java you are using, 2) what happens when you try to run the program in GUI mode, and 3) are you in a non North American region? I would love to fix any problems that exist.

Also, for reference, I will include my original post on the Cex.io support forms, if any of you would like to follow the development updates: https://support.cex.io/entries/37739687-Earnings-Reinvestment-Application-kannibal3-Official-


Title: Re: cex.io purchase bot
Post by: dmpotter on January 26, 2014, 03:43:30 AM
Zack!

You're a skilled person that is for sure. Just the idea you put a cli in with your gui was a lot of effort.

As far as I know my system is normal (North American) windows 8 pro with the exception of the following.
On my windows 7 machines when I dropped down to dos prompt, I just had to type java and it would work (I guess it was part of my cmd path)..


This is what my bat file looks like to start it in CLI, where the secret and key are correct. You'll notice I have to put the path absolute path there.

Code:
@echo off
C:
cd \PROGRA~1\CEX~1.IOR
\PROGRA~2\Java\jre7\bin\java -jar Reinvestor_v1.0.4.jar dmpotter1361 itsmypartyand illcryifiwanttoo

For the GUI, when I plug in the username and secret/key, I get the following errors when I hit toggle investor, I also don't get any balances.


https://i.imgur.com/VUT3HZj.png

Thank you for your time, and your in my awesome people's book!


Title: Re: cex.io purchase bot
Post by: kannibal3 on January 26, 2014, 04:12:34 AM
dmpotter, typing the following in cmd should work, for the java version:

Code:
java -version

Also, the errors you got were file read/write problems. Can you run it as admin? I write the setting to a small text file (actually a csv saved as .txt) and that seems to be the error.

Honestly I have neglected the CLI version as of late, because I anticipated more people using the GUI version, but I will add more documentation to my Github wiki to help people get started and answer any questions that may arise.

TL;DR: Right click the jar and run as admin to see if the GUI version works.


Title: Re: cex.io purchase bot
Post by: dmpotter on January 26, 2014, 04:34:34 AM
dmpotter, typing the following in cmd should work, for the java version:

Code:
java -version

Also, the errors you got were file read/write problems. Can you run it as admin? I write the setting to a small text file (actually a csv saved as .txt) and that seems to be the error.

Honestly I have neglected the CLI version as of late, because I anticipated more people using the GUI version, but I will add more documentation to my Github wiki to help people get started and answer any questions that may arise.

TL;DR: Right click the jar and run as admin to see if the GUI version works.

That worked, but had to do it a different way.

For some reason, run as administrator wasn't a choice.

https://i.imgur.com/HwHpssl.png

But if it's a storage/read problem, I gave myself rights to the directory.

https://i.imgur.com/EfbDoFm.png

Ignore, the initial errors, forgot to turn off the CLI :)

https://i.imgur.com/1uNbrlv.png



Title: Re: cex.io purchase bot
Post by: kannibal3 on January 26, 2014, 05:15:11 AM
Great, glad to hear it works now.

Let me know if you have any improvement suggestions!

Zack.


Title: Re: cex.io purchase bot
Post by: dmpotter on January 26, 2014, 05:46:51 AM
Great, glad to hear it works now.

Let me know if you have any improvement suggestions!

Zack.

If anything, I like how simple it is.


I guess if you could run as a service and it show up down by the clock.

and maybe on the login screen some convenience links (though I know some people including myself are a little iffy about clicking links). Though some people may not know the API function is under profile.

https://cex.io/trade/profile#api     - if you looked at the status bar to see where it really went to, then you're no different  ;)

and

https://www.google.com/#hl=en&q=what's+my+ip&safe=off (or at-least filter for the answer so it can be used at cex.io, google always lists it between "Your public IP address is XXX.XXX.XXX.XXX - Learn more")



Title: Re: cex.io purchase bot
Post by: BorisAlt on January 26, 2014, 04:10:44 PM
Worked out of the box, instantly. Entire setup took less than 2 minutes. GREAT app.

I would show GHS, BTC and NMC balance on the front screen when Reinvestor starts, since these are primary trading objects.

I like how you list more balances and other details under information tab.


Title: Re: cex.io purchase bot
Post by: dmpotter on January 26, 2014, 06:26:08 PM
I like it cause it feels a lot like dollar cost averaging. I can always disable it during silly highs.. but overall, I think my average is pretty good.


Title: Re: cex.io purchase bot
Post by: kannibal3 on January 26, 2014, 07:02:53 PM
Worked out of the box, instantly. Entire setup took less than 2 minutes. GREAT app.

I would show GHS, BTC and NMC balance on the front screen when Reinvestor starts, since these are primary trading objects.

I like how you list more balances and other details under information tab.

Great, I'm glad others found use in it!

Which screen do you consider the 'front screen'? I'm assuming in the settings tab, where you can set what to trade with and the prices?

So you can see your balance of each coin before you set limits and what not?


Title: Re: cex.io purchase bot
Post by: BorisAlt on January 26, 2014, 08:26:50 PM
Yes, when I start the App, it shows the first dialog, which is called "Settings". I am not sure if "Settings" is the right title, but I do not care much. The point is, at one glance I could see what happened since the last time I took a look. I remember what my GHS, BTC and NMC were. I expect to see BTC/NMC very low and close to Reserve figures. I would like to see the GHS instantly in big bold digits. Thanks, really nicely done.


Title: Re: cex.io purchase bot
Post by: dimka on January 27, 2014, 11:55:53 PM
Hey When i try to run the reinvester, this is the error that i get:

Quote
[Mon Jan 27 15:54:36 PST 2014] Settings saved successfully!
[Mon Jan 27 15:54:36 PST 2014] Reinvesting.
[Mon Jan 27 15:54:37 PST 2014] Error 0x1: {1390866875:dimkako99:[0.00357863:0.00000000]:[0.00000000:4.84203308]:[0.03184367]:[1.32393429]:[0.00927643]}


Title: Re: cex.io purchase bot
Post by: dmpotter on January 28, 2014, 01:40:02 AM
Hey When i try to run the reinvester, this is the error that i get:

Quote
[Mon Jan 27 15:54:36 PST 2014] Settings saved successfully!
[Mon Jan 27 15:54:36 PST 2014] Reinvesting.
[Mon Jan 27 15:54:37 PST 2014] Error 0x1: {1390866875:dimkako99:[0.00357863:0.00000000]:[0.00000000:4.84203308]:[0.03184367]:[1.32393429]:[0.00927643]}

I think we all do, but seems to work otherwise.


Title: Re: cex.io purchase bot
Post by: dimka on January 28, 2014, 02:49:49 AM
Hey When i try to run the reinvester, this is the error that i get:

Quote
[Mon Jan 27 15:54:36 PST 2014] Settings saved successfully!
[Mon Jan 27 15:54:36 PST 2014] Reinvesting.
[Mon Jan 27 15:54:37 PST 2014] Error 0x1: {1390866875:dimkako99:[0.00357863:0.00000000]:[0.00000000:4.84203308]:[0.03184367]:[1.32393429]:[0.00927643]}

I think we all do, but seems to work otherwise.

It's not working for me....

Here are my settings:
http://i41.tinypic.com/waityb.png


Title: Re: cex.io purchase bot
Post by: kannibal3 on January 28, 2014, 03:07:42 AM
dimika, sorry it's not working for you. Mind if I ask, what version of the program your using, and your os?


Title: Re: cex.io purchase bot
Post by: dimka on January 28, 2014, 03:15:43 AM
dimika, sorry it's not working for you. Mind if I ask, what version of the program your using, and your os?

Wait is this os only? Because I'm not running os. and im using version 1.0.4


Title: Re: cex.io purchase bot
Post by: kannibal3 on January 28, 2014, 03:27:19 AM
dimika, sorry it's not working for you. Mind if I ask, what version of the program your using, and your os?

Wait is this os only? Because I'm not running os. and im using version 1.0.4

This is platform independent, I was curious as to what operating system your using, to try and help debug the problem :)


Title: Re: cex.io purchase bot
Post by: dimka on January 28, 2014, 03:33:43 AM
dimika, sorry it's not working for you. Mind if I ask, what version of the program your using, and your os?

Wait is this os only? Because I'm not running os. and im using version 1.0.4

This is platform independent, I was curious as to what operating system your using, to try and help debug the problem :)

I am running:

http://i43.tinypic.com/2qlbj8z.png


Title: Re: cex.io purchase bot
Post by: kannibal3 on January 28, 2014, 03:52:59 AM
Do you only see the 0x1 error repeatedly? Have you used that API key-pair with another program that uses the Cex API? Does that API key-pair have full trading permissions?


Title: Re: cex.io purchase bot
Post by: dimka on January 29, 2014, 08:57:20 PM
Do you only see the 0x1 error repeatedly? Have you used that API key-pair with another program that uses the Cex API? Does that API key-pair have full trading permissions?

I always get the 0x1 error

Have not used the API key-pair with another program

API key has all permissions


Title: Re: cex.io purchase bot
Post by: kannibal3 on February 02, 2014, 01:12:32 AM
dimka, try this new version (1.0.5) and let me know how it goes: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.5


Title: Re: cex.io purchase bot
Post by: dimka on February 09, 2014, 04:31:22 AM
dimka, try this new version (1.0.5) and let me know how it goes: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.5

Still Getting it:

Code:
[Sat Feb 08 20:30:50 PST 2014] Settings saved successfully!
[Sat Feb 08 20:30:50 PST 2014] Reinvesting.
[Sat Feb 08 20:30:50 PST 2014] Error 0x1: {1391920242:dimkako99:[0.01060330:0.00000000]:[0.00000000:10.87304114]:[0.18214283]:[3.73134923]:[0.04912612]}
[Sat Feb 08 20:31:21 PST 2014] Error 0x1: {1391920273:dimkako99:[0.01060330:0.00000000]:[0.00000000:10.87304114]:[0.18214283]:[3.73134923]:[0.04912612]}


Title: Re: cex.io purchase bot
Post by: ripmax on February 12, 2014, 01:43:15 AM
dimka, try this new version (1.0.5) and let me know how it goes: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.5

Hi Kannibal

Thanks for the great program. Its been working for me on Win7 fine. I too get the "[Wed Feb 12 09:32:40 WST 2014] Error 0x1: {error:Invalid signature}" error. It seems to be occurring when I am logged into the CEX website at the same time the re investor program is running (or it could be just a co-incidence) . My log shows no errors most of the night and then I log into CEX this morning and now the error has returned. Doesnt seem to effect it doing purchases at all.

A Few suggestions to add to your program would be to

1. Export Log to CSV
2. Add selling to it. Pretty much how you have done the Buy option so a Reserve amount (Incase you want to keep BTC/NMC) , Max/Minimum price
3. Can it track your buys (ie how much its bought and whats the average price)
4. Re size the Log Window. You can re size the main Window but when you go to the log view, you cant re size that even though the main page is larger. Makes reading the log easier.

Thanks again.

ripmax


Title: Re: cex.io purchase bot
Post by: mdopro1 on February 26, 2014, 02:40:12 PM
cex.io forum is being weird and I can't go to next page to read the whole thread to see if this has been solved.

I've tried the software on 2 machines.

First Windows 7 Professional 64-bit with Java 32-bit version 7 update 21

Second Windows 8 64-bit with Java 32-bit version 7 update 45

I'm getting the same thing as following;

Code:
[Wed Feb 26 09:32:43 EST 2014]Settings saved successfully!
[Wed Feb 26 09:32:45 EST 2014] Settings saved successfully!
[Wed Feb 26 09:32:45 EST 2014] Reinvesting.
[Wed Feb 26 09:32:45 EST 2014] Error 0x1: {1393425154:XXXXXXX:[0.01772206:0.00000000]:[297.00000000]:[33.20092890]:[1259.06369852]:[9.57136980]}
[Wed Feb 26 09:33:15 EST 2014] Error 0x1: {1393425184:XXXXXXX:[0.01772206:0.00000000]:[297.00000000]:[33.20092890]:[1259.06369852]:[9.57136980]}
[Wed Feb 26 09:33:47 EST 2014] Error 0x1: {1393425216:XXXXXXX:[0.01772206:0.00000000]:[297.00000000]:[33.20092890]:[1259.06369852]:[9.57136980]}

Same thing happens on both computers. Help!


Title: Re: cex.io purchase bot
Post by: bazzanii on February 27, 2014, 06:38:33 AM
Thank you, I found it!

https://github.com/zackurben/cex.io-reinvestor

That's amazing! Haven't heard  about that before! Looks cool!
Kannibal3 , thanks a lot for creating this


Title: Re: cex.io purchase bot
Post by: kannibal3 on February 28, 2014, 04:52:01 AM
cex.io forum is being weird and I can't go to next page to read the whole thread to see if this has been solved.

I've tried the software on 2 machines.

First Windows 7 Professional 64-bit with Java 32-bit version 7 update 21

Second Windows 8 64-bit with Java 32-bit version 7 update 45

I'm getting the same thing as following;

Code:
[Wed Feb 26 09:32:43 EST 2014]Settings saved successfully!
[Wed Feb 26 09:32:45 EST 2014] Settings saved successfully!
[Wed Feb 26 09:32:45 EST 2014] Reinvesting.
[Wed Feb 26 09:32:45 EST 2014] Error 0x1: {1393425154:XXXXXXX:[0.01772206:0.00000000]:[297.00000000]:[33.20092890]:[1259.06369852]:[9.57136980]}
[Wed Feb 26 09:33:15 EST 2014] Error 0x1: {1393425184:XXXXXXX:[0.01772206:0.00000000]:[297.00000000]:[33.20092890]:[1259.06369852]:[9.57136980]}
[Wed Feb 26 09:33:47 EST 2014] Error 0x1: {1393425216:XXXXXXX:[0.01772206:0.00000000]:[297.00000000]:[33.20092890]:[1259.06369852]:[9.57136980]}

Same thing happens on both computers. Help!

@mdpro1, Hello, if you would like to keep up with the project, you can follow it here: https://github.com/zackurben/cex.io-reinvestor

Also, you can see the wiki for any problems you may encounter: https://github.com/zackurben/cex.io-reinvestor/wiki

On to your question: The 0x1 error is infamous, unfortunately I do not know what makes this happen, because it only happens for some people; for example v1.0.5 works fine for me, and in-fact, I didn't even know a problem existed until I started getting emails from people with debug information.

That being said, I have had multiple emails during the last few days, and I am going to look into it as soon as I can, however it happens to be around midterms so I'm rather busy atm.

If you are looking for an immediate fix, you may try v1.0.2 (https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.2) and v1.0.3 (https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.3) - which have happened to work for people who cannot run v1.0.5. (Keep in mind they are more ghetto, hence why they are a few releases behind.)

Thank you, I found it!

https://github.com/zackurben/cex.io-reinvestor

That's amazing! Haven't heard  about that before! Looks cool!
Kannibal3 , thanks a lot for creating this

@bazzanii, glad you enjoy it. Hopefully it works for you!


Title: Re: cex.io purchase bot
Post by: kannibal3 on February 28, 2014, 04:58:18 AM
dimka, try this new version (1.0.5) and let me know how it goes: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.5

Hi Kannibal

Thanks for the great program. Its been working for me on Win7 fine. I too get the "[Wed Feb 12 09:32:40 WST 2014] Error 0x1: {error:Invalid signature}" error. It seems to be occurring when I am logged into the CEX website at the same time the re investor program is running (or it could be just a co-incidence) . My log shows no errors most of the night and then I log into CEX this morning and now the error has returned. Doesnt seem to effect it doing purchases at all.

A Few suggestions to add to your program would be to

1. Export Log to CSV
2. Add selling to it. Pretty much how you have done the Buy option so a Reserve amount (Incase you want to keep BTC/NMC) , Max/Minimum price
3. Can it track your buys (ie how much its bought and whats the average price)
4. Re size the Log Window. You can re size the main Window but when you go to the log view, you cant re size that even though the main page is larger. Makes reading the log easier.

Thanks again.

ripmax


@ripmax, glad to hear it's working, and thank you for your suggestions; not many people give me in-depth feedback lol.

1) This looks like a good idea, and you may see this in the next or a future release (Assuming you mean the buy information).
2) I don't think this will happen any time soon, depending on exactly what you want. If you want day-trading, then you wont see that, because I don't know enough about algorithmic trading strategies and don't exactly have the spare time to look in-to it right now (sorry)!
3) Again a good idea, I'll look in to this.
4) You will see this in a future release; this was supposed to be implemented but I used the wrong layout on the GUI (I already know where the problem is lol, I just need to fix it and roll out an update).

Thanks again for the feedback, let me know if you have any others.


Title: Re: cex.io purchase bot
Post by: ripmax on March 04, 2014, 07:07:22 AM
dimka, try this new version (1.0.5) and let me know how it goes: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.5

Hi Kannibal,

Thanks for the great program. Its been working for me on Win7 fine. I too get the "[Wed Feb 12 09:32:40 WST 2014] Error 0x1: {error:Invalid signature}" error. It seems to be occurring when I am logged into the CEX website at the same time the re investor program is running (or it could be just a co-incidence) . My log shows no errors most of the night and then I log into CEX this morning and now the error has returned. Doesnt seem to effect it doing purchases at all.

A Few suggestions to add to your program would be to

1. Export Log to CSV
2. Add selling to it. Pretty much how you have done the Buy option so a Reserve amount (Incase you want to keep BTC/NMC) , Max/Minimum price
3. Can it track your buys (ie how much its bought and whats the average price)
4. Re size the Log Window. You can re size the main Window but when you go to the log view, you cant re size that even though the main page is larger. Makes reading the log easier.

Thanks again.

ripmax


@ripmax, glad to hear it's working, and thank you for your suggestions; not many people give me in-depth feedback lol.

1) This looks like a good idea, and you may see this in the next or a future release (Assuming you mean the buy information).
2) I don't think this will happen any time soon, depending on exactly what you want. If you want day-trading, then you wont see that, because I don't know enough about algorithmic trading strategies and don't exactly have the spare time to look in-to it right now (sorry)!
3) Again a good idea, I'll look in to this.
4) You will see this in a future release; this was supposed to be implemented but I used the wrong layout on the GUI (I already know where the problem is lol, I just need to fix it and roll out an update).

Thanks again for the feedback, let me know if you have any others.

Hi Kannibal

For option 2, I didnt mean day trading, I understand it would be difficult to add looking at whats happening in the market, if its going up/down etc, I was referring to something as simple as the buy option.

If you say sell when price his 0.22222 and you have say 10GHs, but you put a reserve of say 2GHs, soon as price is above 0.22222 your program initiates a sell for 8GHs. This would be all user side settings. No need to work out what the market is doing.  All your program would need to do is a> Issue the sell (if its within the Sell Range) , b> If the price is out of the sell range to cancel the trade.

Personally I find the CEX.IO site pretty slow java wise even with a decent Computer (i7 + 16gb ram). if I could issues sells via re-investor I wouldn't need to login to the Site at all unless I want to read the troll (chat) box.

One other suggestion I might make, On the "information screen" , is it possible to list the current GHS/BTC price? At the moment the only way to see the price is either check on CEX.IO or start the reinvestor let it go off and get the first price (you hope your not going to have a too high a buy price) , then hold it again, update your High/Low prices. When it does the first API call and updates your Bitcoins and number of GHs etc if It could grab last Buy trade and display the current price.

Thanks again

ripmax


Title: Re: cex.io purchase bot
Post by: kannibal3 on March 05, 2014, 06:54:14 PM
dimka, try this new version (1.0.5) and let me know how it goes: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.5

Hi Kannibal,

Thanks for the great program. Its been working for me on Win7 fine. I too get the "[Wed Feb 12 09:32:40 WST 2014] Error 0x1: {error:Invalid signature}" error. It seems to be occurring when I am logged into the CEX website at the same time the re investor program is running (or it could be just a co-incidence) . My log shows no errors most of the night and then I log into CEX this morning and now the error has returned. Doesnt seem to effect it doing purchases at all.

A Few suggestions to add to your program would be to

1. Export Log to CSV
2. Add selling to it. Pretty much how you have done the Buy option so a Reserve amount (Incase you want to keep BTC/NMC) , Max/Minimum price
3. Can it track your buys (ie how much its bought and whats the average price)
4. Re size the Log Window. You can re size the main Window but when you go to the log view, you cant re size that even though the main page is larger. Makes reading the log easier.

Thanks again.

ripmax


@ripmax, glad to hear it's working, and thank you for your suggestions; not many people give me in-depth feedback lol.

1) This looks like a good idea, and you may see this in the next or a future release (Assuming you mean the buy information).
2) I don't think this will happen any time soon, depending on exactly what you want. If you want day-trading, then you wont see that, because I don't know enough about algorithmic trading strategies and don't exactly have the spare time to look in-to it right now (sorry)!
3) Again a good idea, I'll look in to this.
4) You will see this in a future release; this was supposed to be implemented but I used the wrong layout on the GUI (I already know where the problem is lol, I just need to fix it and roll out an update).

Thanks again for the feedback, let me know if you have any others.

Hi Kannibal

For option 2, I didnt mean day trading, I understand it would be difficult to add looking at whats happening in the market, if its going up/down etc, I was referring to something as simple as the buy option.

If you say sell when price his 0.22222 and you have say 10GHs, but you put a reserve of say 2GHs, soon as price is above 0.22222 your program initiates a sell for 8GHs. This would be all user side settings. No need to work out what the market is doing.  All your program would need to do is a> Issue the sell (if its within the Sell Range) , b> If the price is out of the sell range to cancel the trade.

Personally I find the CEX.IO site pretty slow java wise even with a decent Computer (i7 + 16gb ram). if I could issues sells via re-investor I wouldn't need to login to the Site at all unless I want to read the troll (chat) box.

One other suggestion I might make, On the "information screen" , is it possible to list the current GHS/BTC price? At the moment the only way to see the price is either check on CEX.IO or start the reinvestor let it go off and get the first price (you hope your not going to have a too high a buy price) , then hold it again, update your High/Low prices. When it does the first API call and updates your Bitcoins and number of GHs etc if It could grab last Buy trade and display the current price.

Thanks again

ripmax

@ripmax, I may implement something like this, because the method is easy to produce and puts all the blame on the users for bad settings lol. Thanks for the suggestions I will look into them.


Title: Re: cex.io purchase bot
Post by: ripmax on March 10, 2014, 06:01:23 AM
Hey kannibal

I have run into another issue. Its stopped working completely now for me. I double click on the .jar file. I get the login screen, I click Login, the re-investor window opens but its completely white with nothing in it and its hung. I tried changing my API keys , i cleared the Java Cache through Control Panel, I restarted my PC, I even left the application for 2 hours thinking it was an issue talking to CEX.IO but it stays White and hung. All I can do it kill the Java process. I also deleted the log files in the folder its installed to thinking maybe they were too large? Its never got to the point where it creates new ones yet.

ripmax


Title: Re: cex.io purchase bot
Post by: Danglez2907 on March 11, 2014, 08:04:20 AM
I get the same thing..  White screen - Have to kill it..

When I run the CLI I get a 403 error.. Over & over...

java.io.IOException: Server returned HTTP response code: 403 for URL: https://cex.io/api/balance/
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at CexAPI.post(CexAPI.java:153)
        at CexAPI.apiCall(CexAPI.java:196)
        at CexAPI.balance(CexAPI.java:238)
        at Reinvestor.execute(Reinvestor.java:279)
        at Reinvestor$ReinvestThread.run(Reinvestor.java:541)
Exception in thread "Thread-0" java.util.NoSuchElementException: No line found
        at java.util.Scanner.nextLine(Unknown Source)
        at Reinvestor$InputThread.run(Reinvestor.java:443)

Looks like something may have changed in the API????

Cheers,

Dan


Title: Re: cex.io purchase bot
Post by: Danglez2907 on March 11, 2014, 08:12:34 AM
Also created a fresh key and tried those (after I activated it)..

Still no good..

It will display prices but as soon as I tell it to start reinvesting I get the 403 again.

Hope this helps.

D


Title: Re: cex.io purchase bot
Post by: kannibal3 on March 14, 2014, 05:00:19 AM
@ripmax and @Danglez2907 sorry for the problems guys. I know it actually doesn't work at all right now, I have a support ticket open with Cex Dev team, to find out what they changed about their environment. Right now the program will hang on determining the account balance, but I cant fix it until I get the reply. Sorry for the wait everyone.


Title: Re: cex.io purchase bot
Post by: Danglez2907 on March 14, 2014, 08:41:35 AM
Hi,

Thanks for the update, no problem (at least I know now that I wasn't doing something wrong for once).

Probably a good thing with the price tanking as it is, I only have BTC.2 in there anyway.

Just waiting to see what the situation is like when/if it stops falling.

I'm only toying around while I figure out if/when/what mining rig to buy since I retired my USB miners.

Cheers,

Dan


Title: Re: cex.io purchase bot
Post by: ripmax on March 14, 2014, 09:09:14 AM
@ripmax and @Danglez2907 sorry for the problems guys. I know it actually doesn't work at all right now, I have a support ticket open with Cex Dev team, to find out what they changed about their environment. Right now the program will hang on determining the account balance, but I cant fix it until I get the reply. Sorry for the wait everyone.

No worries dude. All good, was just worried it was something at my end and should have figured the issue was with CEX<->API. Look forward to the update. Thanks


Title: Re: cex.io purchase bot
Post by: Danglez2907 on March 14, 2014, 02:03:55 PM
Could be because they have added the futures trading tonight... More balances to retrieve..


Title: Re: cex.io purchase bot
Post by: tsume90 on March 15, 2014, 03:13:28 AM
I started working on something similar to this earlier today and just happen to run across this thread.
If anyone's interested, I wouldn't mind making it open source when it's done. Should probably finish it soon.


Title: Re: cex.io purchase bot
Post by: djoir on March 23, 2014, 06:10:14 AM
I have been writing a program in GO that does all sorts of silly things like this.

You can find the source at https://github.com/travisstone/cex.io.reinvester


Title: Re: cex.io purchase bot
Post by: sanjoea on March 25, 2014, 07:27:55 AM
I bookmarked this url link , i will try later some time


Title: Re: cex.io purchase bot
Post by: joeofall on March 29, 2014, 02:47:57 PM
hi,

i had download the v1.0.5 after i start i see a login screen after i enter all detail i click login, a window show up white, and nothing happen
so i download 1.0.4 and after login a screen to allow me to enter setting.

so i just want every btc and nmc mining go into ghs so i leave it all 0, and i click on reinvest and waited nothing happen. i don't see Balance or anything.

is there anything i need to do ?

joe


Title: Re: cex.io purchase bot
Post by: berliston on March 30, 2014, 11:44:20 AM
Hello , kannibal3, I was going to download ver 1.0.5 using your link  https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.5  but it hasn't downloaded! and I don't know why - it's just show nothing like my pc haven't seen it


Title: Re: cex.io purchase bot
Post by: joeofall on April 04, 2014, 05:04:39 AM
anyone able to get it to work ?


Title: Re: cex.io purchase bot
Post by: SixOfFive on April 04, 2014, 03:46:06 PM
As a "hats off" to the mining community, I decided to post my private php bot called balancebot thats for cex.io

I did not come up with the original idea, however, the original was limited to selling NMC and was out of date (a very good concept though!)

Usage is pretty simple, Modify the first 25 lines according to what you want traded (as well as your username, api_key and secret_key.

This bot attempts to balance your balances so they are equal.

At its default settings, the bot will NOT sell or do anything, you have to tell it what you want traded.

Support is in there for balancing: BTC, GHS, FHA, FHM, NMC and LTC.
There is also support for instant selling NMC and LTC.
As an example, if you only wanted to use the bot to sell LTC and NMC to obtain only GHS, you would set those respective fields to 1 from 0.. for the above example:
$balancing_GHS=0; change the 0 to 1
$autosell_LTC=0; change the 0 to 1
$autosell_NMC=0; change the 0 to 1

Hope the script helps somebody (it's definetly helped me in the last while)
I've put it up on pastebin with ID xx6QeyDY http://pastebin.com/xx6QeyDY (http://pastebin.com/xx6QeyDY)

There is a bug (somewhere!) where it will try to purchase more than you have in BTC when it's trying to balance .. not entirely sure why unless its because it's including the sell orders which haven't sold.

Enjoy!
- SixOfFive


Title: Re: cex.io purchase bot
Post by: Raptor2213 on April 07, 2014, 04:45:08 AM
I've not gotten it to work either.  1.0 gives a 0x1 error, and 1.05 loads to a blank white screen.  I reached out to the developer, but no response as yet.


Title: Re: cex.io purchase bot
Post by: Raptor2213 on April 07, 2014, 04:59:23 AM
I found the root error message it's giving:
Code:
Reinvestor_v1.0.jar
java.io.IOException: Server returned HTTP response code: 403 for URL: https://cex.io/api/balance/
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at CexAPI.post(CexAPI.java:156)
        at CexAPI.apiCall(CexAPI.java:189)
        at CexAPI.balance(CexAPI.java:231)
        at Reinvestor.execute(Reinvestor.java:256)
        at Reinvestor$ReinvestThread.run(Reinvestor.java:513)


Title: Re: cex.io purchase bot
Post by: dickcheney on April 10, 2014, 09:11:09 PM
Any updates on a fix ?


Title: Re: cex.io purchase bot
Post by: rockyram on April 15, 2014, 01:33:40 PM
what version of the program your using


Title: Re: cex.io purchase bot
Post by: Raptor2213 on April 16, 2014, 01:17:12 AM
what version of the program your using

I've tried 1.0, 1.0.2, 1.0.3, 1.0.4, and 1.0.5.  None of them have worked for me.


Title: Re: cex.io purchase bot
Post by: ripmax on April 17, 2014, 12:04:23 AM
what version of the program your using

I've tried 1.0, 1.0.2, 1.0.3, 1.0.4, and 1.0.5.  None of them have worked for me.

Since the API update, the CEX.IO bot doesnt work. Version 1.05 just gives a white screen. We need to wait for Kannibal to update it.


Title: Re: cex.io purchase bot
Post by: billysweird on April 21, 2014, 07:52:58 AM

Anyone know of a safe bot to just autobuy gh/s every hour or so with the mined amount of btc and nmc? I've seen several bots, but either the focus only on the btc amount or attempt some form of trading.

************************************************

I want to know too. If you have some information, please let me know!


Title: Re: cex.io purchase bot
Post by: kannibal3 on April 21, 2014, 11:43:18 PM
Hey guys, just wanted to let you know I'm still alive! I am aware of the issue, however the process is slow between free time because, CEX dev's have been terrible with getting back to me and I dont really have free time lol. I will post here ASAP as I have a resolution.

Thanks for hanging in there guys,
Zack.


Title: Re: cex.io purchase bot
Post by: ripmax on April 23, 2014, 02:57:55 PM

Anyone know of a safe bot to just autobuy gh/s every hour or so with the mined amount of btc and nmc? I've seen several bots, but either the focus only on the btc amount or attempt some form of trading.

************************************************

I want to know too. If you have some information, please let me know!

if your able to run php at home then grab the one about 4 posts above yours from "sixoffive". It can sell NMC/LTC and use Mined BTC to get more GHS. I have tested it and ran it a few times and seems to do what he says. There isn't much doco so you have to try work out whats in his code.


Title: Re: cex.io purchase bot
Post by: kannibal3 on April 28, 2014, 01:48:38 AM
Hey guys, wanted to let everyone know that I have patched the reinvestor, and you can grab the latest version here: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.6

Sorry this took so long, I've been beyond swamped lately.

Let me know if you have any problems,
Zack.


Title: Re: cex.io purchase bot
Post by: Raptor2213 on April 28, 2014, 05:05:37 AM
Hey guys, wanted to let everyone know that I have patched the reinvestor, and you can grab the latest version here: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.6

Sorry this took so long, I've been beyond swamped lately.

Let me know if you have any problems,
Zack.

Thanks!  Seems to be working fine.


Title: Re: cex.io purchase bot
Post by: kannibal3 on April 28, 2014, 05:40:19 AM
Hey guys, wanted to let everyone know that I have patched the reinvestor, and you can grab the latest version here: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.6

Sorry this took so long, I've been beyond swamped lately.

Let me know if you have any problems,
Zack.

Thanks!  Seems to be working fine.

Great, thanks for the update!


Title: Re: cex.io purchase bot
Post by: Raptor2213 on April 30, 2014, 06:19:49 AM
It's mostly working, but I keep getting errors like this:
Code:
[Wed Apr 30 01:18:05 CDT 2014] Reinvestor: Order error: Error: Insufficient funds. Required amount:97963NMC, balance:97768NMC.
Every 10 or so, it will get it right.  Seems like there's just something slightly off about the calculations.


Title: Re: cex.io purchase bot
Post by: ripmax on May 04, 2014, 01:52:43 PM
Hey guys, wanted to let everyone know that I have patched the reinvestor, and you can grab the latest version here: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.0.6

Sorry this took so long, I've been beyond swamped lately.

Let me know if you have any problems,
Zack.

Thanks Dude. Grabbing it now.


Title: Re: cex.io purchase bot
Post by: kannibal3 on May 05, 2014, 02:32:54 AM
Hey guys, wanted to let you know that version 1.1.0 is out, and you can get it here: https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.1.0 (https://github.com/zackurben/cex.io-reinvestor/releases/tag/1.1.0)

This fixes the infamous 0x1 error where nothing happens for some users, and adds support for transaction fees, and supports all non-temporary currencies supported by CEX.

As usual let me know if something doesn't work,

-Zack


Title: Re: cex.io purchase bot
Post by: Raptor2213 on May 05, 2014, 05:26:34 AM
What do you mean when you say, "supports all non-temporary currencies supported by CEX".  I'm only seeing BTC and NMC in the settings currently.


Title: Re: cex.io purchase bot
Post by: kannibal3 on May 06, 2014, 05:30:01 AM
What do you mean when you say, "supports all non-temporary currencies supported by CEX".  I'm only seeing BTC and NMC in the settings currently.

@Raptor2213, sorry that was a badly worded statement at a low level. The reason for the 0x1 error was, that CEX returns different output for each user account. This output is dependent on what currencies each user has currently, and which currencies they have ever owned in the CEX system. For example, my account will not show a current balance, nor order balance for FHM, because I have never dealt with them; on the other hand, if you didnt have a GHS balance or NMC balance and tried to use the reinvestor, it would simply not start (why CEX does this, I have literally no idea).

By saying each currency is now supported, I compensate for whether an account may or may not have a particular balance, and in the future if CEX adds the ability to trade with their other currencies (those shown in the `balance` tab on the reinvestor), they will be simple changes to implement use, because the underlying architecture is now in-place.

Also non-temporary meaning the futures, I dont know what will happen with the futures currency when the date approaches, and didnt want another program breaking bug the second they yank the currency from their API; as it stands, all futures trading will have to occur on the CEX website until I can come-up with a better system for temporary currencies.


Title: Re: cex.io purchase bot
Post by: Raptor2213 on May 06, 2014, 05:33:50 AM
What do you mean when you say, "supports all non-temporary currencies supported by CEX".  I'm only seeing BTC and NMC in the settings currently.

@Raptor2213, sorry that was a badly worded statement at a low level. The reason for the 0x1 error was, that CEX returns different output for each user account. This output is dependent on what currencies each user has currently, and which currencies they have ever owned in the CEX system. For example, my account will not show a current balance, nor order balance for FHM, because I have never dealt with them; on the other hand, if you didnt have a GHS balance or NMC balance and tried to use the reinvestor, it would simply not start (why CEX does this, I have literally no idea).

By saying each currency is now supported, I compensate for whether an account may or may not have a particular balance, and in the future if CEX adds the ability to trade with their other currencies (those shown in the `balance` tab on the reinvestor), they will be simple changes to implement use, because the underlying architecture is now in-place.

Also non-temporary meaning the futures, I dont know what will happen with the futures currency when the date approaches, and didnt want another program breaking bug the second they yank the currency from their API; as it stands, all futures trading will have to occur on the CEX website until I can come-up with a better system for temporary currencies.

Ah, that makes a lot more sense. 
I wish cex.io would have trading or auto-withdrawl options for all the altcoins they mine.  It's a pain to keep withdrawing them to other wallets.


Title: Re: cex.io purchase bot
Post by: PabiGamito on May 08, 2014, 09:31:45 PM
Great, glad to hear it works now.

Let me know if you have any improvement suggestions!

Zack.

I have a suggestion that I think a few of us would like. Do you think you good add a feature in the settings that will allow use to chose the maximum value of GHS/BTC we are "ready" to trade for.

Say I don't want to trade for over 0.00675 GHS/BTC, do you think you could make it so it will wait until the value of GHS/BTC is lower or equal to 0.00675 GHS/BTC. I would be awesome if you could implement this feature to your wonderful program.

Thank you.

EDITED: Or is that was the Maximum and Minimum in the settings tab do?
RE-EDITED: Never mind, that is what it does. Sorry for ask then. :)


Title: Re: cex.io purchase bot
Post by: kannibal3 on May 08, 2014, 10:51:38 PM
Great, glad to hear it works now.

Let me know if you have any improvement suggestions!

Zack.

I have a suggestion that I think a few of us would like. Do you think you good add a feature in the settings that will allow use to chose the maximum value of GHS/BTC we are "ready" to trade for.

Say I don't want to trade for over 0.00675 GHS/BTC, do you think you could make it so it will wait until the value of GHS/BTC is lower or equal to 0.00675 GHS/BTC. I would be awesome if you could implement this feature to your wonderful program.

Thank you.

EDITED: Or is that was the Maximum and Minimum in the settings tab do?
RE-EDITED: Never mind, that is what it does. Sorry for ask then. :)

Glad to hear you can use it! Yeah I thought you were using a really old version until I saw the edits lol, for a definition on all the elements, check out: https://github.com/zackurben/cex.io-reinvestor#available-tabs


Title: Re: cex.io purchase bot
Post by: Sir William on May 22, 2014, 10:22:06 AM
Question for you.  Since cex.io started charging a fee for trades, how do we preserve enough to cover the transaction?  I would rather not leave a set amount uninvested.

EDIT: Nevermind, looks like you already took care of it.  Nice...


Title: Re: cex.io purchase bot
Post by: nmbit on June 17, 2014, 07:51:39 AM
hello,

suggestion,
- amount of 'coins' wish to spend for reinvesting/buying GHS -
so peoples not only reinvesting but also saving from their block rewards


Title: Re: cex.io purchase bot
Post by: mboehler on July 14, 2014, 02:03:09 AM
I just found this bot.  Thanks for creating it!  I am having a problem though.  I downloaded v1.1.0 and I have it set up and running.  BUT, I keep getting 0x1 errors.  Here's what the Log page currently says:

[Sun Jul 13 20:55:27 CDT 2014] Settings loaded successfully!
[Sun Jul 13 20:55:35 CDT 2014] Settings saved successfully!
[Sun Jul 13 20:55:35 CDT 2014] Reinvesting.
[Sun Jul 13 20:56:20 CDT 2014] Error 0x1: {error:Invalid signature}
[Sun Jul 13 20:56:40 CDT 2014] Error 0x1: {error:Invalid signature}
[Sun Jul 13 20:57:02 CDT 2014] Idle.
[Sun Jul 13 20:57:02 CDT 2014] Settings saved successfully!
[Sun Jul 13 20:57:02 CDT 2014] Reinvesting.
[Sun Jul 13 20:58:52 CDT 2014] Error 0x1: {error:Invalid signature}

The error.txt file says:

Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.analyze(Reinvestor.java:740)
   at Reinvestor$ReinvestThread.run(Reinvestor.java:603)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Order error:
{error:Invalid signature}

Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)



Is there anything I can do to fix it?  Or, if not, is there any further information I can get you that may fix it?

Thanks!


Title: Re: cex.io purchase bot
Post by: kannibal3 on July 18, 2014, 01:38:36 AM
I just found this bot.  Thanks for creating it!  I am having a problem though.  I downloaded v1.1.0 and I have it set up and running.  BUT, I keep getting 0x1 errors.  Here's what the Log page currently says:

[Sun Jul 13 20:55:27 CDT 2014] Settings loaded successfully!
[Sun Jul 13 20:55:35 CDT 2014] Settings saved successfully!
[Sun Jul 13 20:55:35 CDT 2014] Reinvesting.
[Sun Jul 13 20:56:20 CDT 2014] Error 0x1: {error:Invalid signature}
[Sun Jul 13 20:56:40 CDT 2014] Error 0x1: {error:Invalid signature}
[Sun Jul 13 20:57:02 CDT 2014] Idle.
[Sun Jul 13 20:57:02 CDT 2014] Settings saved successfully!
[Sun Jul 13 20:57:02 CDT 2014] Reinvesting.
[Sun Jul 13 20:58:52 CDT 2014] Error 0x1: {error:Invalid signature}

The error.txt file says:

Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.analyze(Reinvestor.java:740)
   at Reinvestor$ReinvestThread.run(Reinvestor.java:603)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Order error:
{error:Invalid signature}

Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)


Error 0x1:
java.lang.NullPointerException
   at Reinvestor$ReinvestThread.run(Reinvestor.java:584)



Is there anything I can do to fix it?  Or, if not, is there any further information I can get you that may fix it?

Thanks!

@mboehler, that looks like a genuine API key problem. Confirm you have the correct API Key/Secret AND that you have activated it on the CEX.io website. Let me know if you still get the problems after confirming those.


Title: Re: cex.io purchase bot
Post by: abstream on September 13, 2014, 09:08:30 AM
I need 1 week or so to finish a web bot that will be totally free for miners (referral needed ) and they do
not need to configure anything but the cex api details...have a look at this discusion:

https://bitcointalk.org/index.php?topic=780899.0

or the website itself: http://cexapibot.com