Search content
Sort by

Showing 14 of 14 results by matte99
Post
Topic
Board Trading Discussion
Re: bitcoinity.org/markets - live bitcoin price charts
by
matte99
on 06/02/2014, 09:23:01 UTC
Hi, the site is great and I've been using it for some time now.
The only problem I have sometimes is with notifications.
Lately it got worse: if I set a sound notification when the price goes down to a certain amount, the alarm goes off soon after I close the dialog window even if the price hasn't moved.
Post
Topic
Board Economics
Re: How to MASTER bitcoin trading
by
matte99
on 07/12/2013, 13:10:09 UTC
your order will be filled.
this method is based on this assumption. Of course if this were true everyone would do it. But it is not true.
Post
Topic
Board Bitcoin Discussion
Re: Where did Satoshi first announce Bitcoin?
by
matte99
on 30/11/2013, 17:29:28 UTC
I think it was in a mailing list about cryptography
Post
Topic
Board Exchanges
Re: Bitstamp Private API signature
by
matte99
on 27/11/2013, 13:59:12 UTC
The code I'm using to post the string is the following:


Code:

String query = "key="+key;
query += "&";
query += "nonce="+nonce;
query += "&";
query += "signature="+signature;

SSLContext sslctx = SSLContext.getInstance("SSL");
sslctx.init(null, null, null);

HttpsURLConnection.setDefaultSSLSocketFactory(sslctx.getSocketFactory());

URL url = new URL("https://www.bitstamp.net/api/balance/");

HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
con.setRequestMethod("POST");
con.setDoOutput(true);

PrintStream ps = new PrintStream(con.getOutputStream());
ps.println(query);
ps.close();
con.connect();

if (con.getResponseCode() == HttpsURLConnection.HTTP_OK) {
BufferedReader br = new BufferedReader(new
InputStreamReader(con.getInputStream()));
String text;
while((text = br.readLine()) != null) {
json += text;
}
br.close();
}else{
;
}
con.disconnect();
System.out.println("Code Response: " + con.getResponseCode());



Thank you very much for your help!
Post
Topic
Board Exchanges
Re: Bitstamp Private API signature
by
matte99
on 26/11/2013, 16:33:12 UTC
My Java is a little bit rusty, but in the following line:
Code:
String message = nonce + 12345 + key;
you're adding up 2 integers and a string. Does that work properly in Java? I can imagine you'd need to explicitly convert the ints to strings first.
you're totally right. + is left associative so written like that it didn't work because it did integer addition first and then conversion to string, finally strings concatenation.

However, my original code saves the client ID within a constant of type String.
Also, simply replacing
Code:
String message = nonce + 12345 + key
with
Code:
String message = nonce + "" + 12345 + key

does the trick and I get the same exact signature you are getting.

However, if I change the values of key,secret and client ID to suit my needs, I still get an invalid signature.

I have tried deactivating that api key and generate a new pair of key-secret but nothing changed. Response is always:

Quote
{"error": "Invalid signature"}


And Bitstamp support sucks since they haven't replied in 5 days
Post
Topic
Board Exchanges
Re: Bitstamp Private API signature
by
matte99
on 25/11/2013, 22:23:09 UTC
Thank you very much for your help.
I have tried with your data and the signature comes out different from yours. Strange that it was ok with the python code on Bitstamp website. Maybe  I'm malforming the message?

So here's the code I'm using:

Code:
key = "apiKeyDEMO";
secret="apiSecretDEMO";
nonce = 1385390835;

String message = nonce + 12345 + key;

Mac sha256_HMAC = Mac.getInstance("HmacSHA256");
SecretKeySpec secretKey = new SecretKeySpec(this.secret.getBytes(), "HmacSHA256");
sha256_HMAC.init(secretKey);
byte[] hash = sha256_HMAC.doFinal(message.getBytes());
String signature = Hex.encodeHexString(hash).toUpperCase();

my signature comes out to be
Quote
CC78BD37757238B803924846D32742477B3B091C48C21AB05949A7515C3EB7A1
Post
Topic
Board Exchanges
Re: Bitstamp Private API signature
by
matte99
on 25/11/2013, 13:54:40 UTC
anyone??  Roll Eyes
Post
Topic
Board Exchanges
Topic OP
Bitstamp Private API signature
by
matte99
on 23/11/2013, 14:54:55 UTC
Hello everyone,

I'm writing a simple Java program that uses Bitstamp API's to manage my account.
To use the private API's I need to send a signature; now on the website they provide a python code snippet that shows how to encode signatures (Here under Api Authentication.
I wrote a java code that does exactly the same (tested it against the python code and the two outputs are identical) but when I try it I still get an "Invalid signature error" from bistamp.

I tried opening a ticket in the Bitstamp support area but it hasn't been replied in days.

Anyone having a similar problem? Or anyone who solved it? I would be glad if someone who has the api working could post a combination of (fake) nonce,signature,key and secret and the relative encoded signature so that I can see if I get the same results.

Thanks!
Post
Topic
Board Trading Discussion
Re: fees and wait clarified
by
matte99
on 22/11/2013, 12:37:05 UTC
hi, this is what I thought of doing.
I was just afraid there were some kind of "hidden fees, but as long as they are around 0.02-0.05% it should be manageable
thank you very much for your opinion
Post
Topic
Board Trading Discussion
Topic OP
fees and wait clarified
by
matte99
on 22/11/2013, 02:03:04 UTC
Hello everyone,

so I read in many places (including this forum) that trading between markets is very expensive because of the fees.
So let's say I first pay the deposits fees.
After that I buy some bitcoins in one place, with a 0.0something fee, how can I tranfer them to a different market? Do I pay fees for that?
What if I go through a private wallet?

thanks
Post
Topic
Board Beginners & Help
Re: mining on a small linux server
by
matte99
on 06/11/2013, 11:54:10 UTC
Hey Matt, was setting up a web server on linux easy? I currently have one running on IIS7 (windows) and it's shit so was thinking about switching
I'm a computer science student and have been linux user for years, so it was quite easy for me personally. If you're not used to it it can be a little tougher, but once you are comfortable with using only the command line, it should be quite straightforward.
Also, there's a lot of good and detailed guides out there. Good luck : )
Post
Topic
Board Beginners & Help
Re: mining on a small linux server
by
matte99
on 06/11/2013, 00:09:52 UTC
ok, thank you very much for the information!
Post
Topic
Board Beginners & Help
Re: mining on a small linux server
by
matte99
on 05/11/2013, 11:33:02 UTC
thanks for your reply, i will look better into that!
Post
Topic
Board Beginners & Help
Topic OP
mining on a small linux server
by
matte99
on 04/11/2013, 09:28:27 UTC
Hello everyone, I read much about bitcoin mining with great hardware and so but nothing about a situation like mine.
I have a small ubuntu server turned on 24/7 that just serves a webserver and nothing much.
So I already pay electricity for it and I was wondering if it would be worth getting a cheap Radeon GPU to economically take advantage of my situation.... any thoughts or advice?
thanks!