Bitcoin Forum
November 09, 2024, 08:50:23 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Trading Discussion / Re: bitcoinity.org/markets - live bitcoin price charts on: February 06, 2014, 09:23:01 AM
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.
2  Economy / Economics / Re: How to MASTER bitcoin trading on: December 07, 2013, 01:10:09 PM
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.
3  Bitcoin / Bitcoin Discussion / Re: Where did Satoshi first announce Bitcoin? on: November 30, 2013, 05:29:28 PM
I think it was in a mailing list about cryptography
4  Economy / Exchanges / Re: Bitstamp Private API signature on: November 27, 2013, 01:59:12 PM
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!
5  Economy / Exchanges / Re: Bitstamp Private API signature on: November 26, 2013, 04:33:12 PM
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
6  Economy / Exchanges / Re: Bitstamp Private API signature on: November 25, 2013, 10:23:09 PM
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
7  Economy / Exchanges / Re: Bitstamp Private API signature on: November 25, 2013, 01:54:40 PM
anyone??  Roll Eyes
8  Economy / Exchanges / Bitstamp Private API signature on: November 23, 2013, 02:54:55 PM
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!
9  Economy / Trading Discussion / Re: fees and wait clarified on: November 22, 2013, 12:37:05 PM
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
10  Economy / Trading Discussion / fees and wait clarified on: November 22, 2013, 02:03:04 AM
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
11  Other / Beginners & Help / Re: mining on a small linux server on: November 06, 2013, 11:54:10 AM
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 : )
12  Other / Beginners & Help / Re: mining on a small linux server on: November 06, 2013, 12:09:52 AM
ok, thank you very much for the information!
13  Other / Beginners & Help / Re: mining on a small linux server on: November 05, 2013, 11:33:02 AM
thanks for your reply, i will look better into that!
14  Other / Beginners & Help / mining on a small linux server on: November 04, 2013, 09:28:27 AM
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!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!