Pages:
Author

Topic: Bitcoinica - Advanced Bitcoin Trading Platform - page 2. (Read 51103 times)

legendary
Activity: 1904
Merit: 1002
You can't put the username/password into the url when making a http request using java. You can implement an Authenticator object and set it as default authenticator (http://docs.oracle.com/javase/6/docs/technotes/guides/net/http-auth.html), or, if you want to perform basic authentication, set the required http header elements manually (that's what I'd prefer, the standard java way totally sucks here).
You find an example for the second solution in my Icarus miner (http://sourceforge.net/projects/rg7miner). see class rg7.rg7miner.rpc.RPCRequest, method submit(), where the request property "Authorization" is set.

Yep, that's what stackoverflow said.
hero member
Activity: 527
Merit: 500
You can't put the username/password into the url when making a http request using java. You can implement an Authenticator object and set it as default authenticator (http://docs.oracle.com/javase/6/docs/technotes/guides/net/http-auth.html), or, if you want to perform basic authentication, set the required http header elements manually (that's what I'd prefer, the standard java way totally sucks here).
You find an example for the second solution in my Icarus miner (http://sourceforge.net/projects/rg7miner). see class rg7.rg7miner.rpc.RPCRequest, method submit(), where the request property "Authorization" is set.
legendary
Activity: 1904
Merit: 1002
Hey zhou, I was trying to write a Java application to use with the Bitcoinica API, but I seem to be having trouble with the authentication? I can put in https://username:[email protected]/api/orders.json?n=5 in my browser and it works fine, but I get an Unauthorized exception thrown when I try it in my application. My application grabs all data that does not require authentication just fine, but anything that requires it throws exceptions. Any idea what is the problem?

This is the code I'm using to request the data.

public String getSomething(String urlStr) throws IOException {
        URL url = new URL(urlStr);
        HttpURLConnection conn =
            (HttpURLConnection) url.openConnection();

        if (conn.getResponseCode() != 200) {
          throw new IOException(conn.getResponseMessage());
        }

        // Buffer the result into a string
        BufferedReader rd = new BufferedReader(
            new InputStreamReader(conn.getInputStream()));
        StringBuilder sb = new StringBuilder();
        String line;
        while ((line = rd.readLine()) != null) {
          sb.append(line);
        }
        rd.close();

        conn.disconnect();
        return sb.toString();
    }

I'm no Java expert, but it sounds like your HTTP library doesn't handle un/pw in the url like you are expecting.

A quick googling yields this, which may help:
http://stackoverflow.com/questions/496651/connecting-to-remote-url-which-requires-authentication-using-java
newbie
Activity: 45
Merit: 0
Hey zhou, I was trying to write a Java application to use with the Bitcoinica API, but I seem to be having trouble with the authentication? I can put in https://username:[email protected]/api/orders.json?n=5 in my browser and it works fine, but I get an Unauthorized exception thrown when I try it in my application. My application grabs all data that does not require authentication just fine, but anything that requires it throws exceptions. Any idea what is the problem?

This is the code I'm using to request the data.

public String getSomething(String urlStr) throws IOException {
        URL url = new URL(urlStr);
        HttpURLConnection conn =
            (HttpURLConnection) url.openConnection();

        if (conn.getResponseCode() != 200) {
          throw new IOException(conn.getResponseMessage());
        }

        // Buffer the result into a string
        BufferedReader rd = new BufferedReader(
            new InputStreamReader(conn.getInputStream()));
        StringBuilder sb = new StringBuilder();
        String line;
        while ((line = rd.readLine()) != null) {
          sb.append(line);
        }
        rd.close();

        conn.disconnect();
        return sb.toString();
    }
legendary
Activity: 2044
Merit: 1000
Having problems doing BTC withdrawals.  One has been cancelled arbitrarely, and now I have one that has been "pending" for hours. 

What is going on? 
there are not btc maybe Huh

most definitly are BTC. 
legendary
Activity: 2044
Merit: 1000
Having problems doing BTC withdrawals.  One has been cancelled arbitrarely, and now I have one that has been "pending" for hours. 

What is going on? 
newbie
Activity: 13
Merit: 0
had one transfer go through now but that was on a new address I genned up, I assume.
newbie
Activity: 13
Merit: 0
had two deposits fail recently. I have sent one on the support page but see that this page gets better responses so have this on here.
full member
Activity: 184
Merit: 100

If not wrong, you sent the Bitcoin to the compromised Linode wallet. The private key of your deposit address has been exposed.

We updated most of our users' addresses automatically, however, some accounts were still not updated.

Sorry for the delay. It's a pain to log in to the comprised system, go through transaction history and enter all transaction entries *manually* into the system. We usually do this once a week, to help our users recover their BTC balance.

Thank you for taking care of this. I opened my account after the Linode incident, so I was assuming that the given address is newly generated.

Once more I'd like to emphasize that getting timely responses from the customer support page is extremely vital. I can wait couple of days for technical problems as long as I hear a word from the site. Waiting without knowing what is going on is very frustrating.
donator
Activity: 3108
Merit: 1166
glad to hear that, in my experience deposits were very fast, withdrawals another matter - but then I was trying to take out a lot of my funds when they got Linoded

edit: @coinjedi, posted before I saw ZT's reply to you
vip
Activity: 490
Merit: 502
lol, I & someone else I know have put in multiple CS reports in the past & never, ever received one single reply or solution to various & serious problems except for the auto responder, you're only hope imo is to catch Zhou's attention here on his thread & as it's public he does tend to address genuine issues once posted

This is something I didn't expect. I am running a bitcoin site myself, even though the amounts I am dealing is much smaller than Bitcoinica's, I can't imagine leaving users without reply about their deposits.

Anyway, if he ever shows up here is my problem. I've made an initial small bitcoin deposit to the site which made through (though much later than 6 confirmations they claim). Then I initiated a second larger deposit and it is in the limbo for three days, which is really annoying. As I said, I PMed him without any response.

What is the average time of deposits in your experience?

If not wrong, you sent the Bitcoin to the compromised Linode wallet. The private key of your deposit address has been exposed.

We updated most of our users' addresses automatically, however, some accounts were still not updated.

Sorry for the delay. It's a pain to log in to the comprised system, go through transaction history and enter all transaction entries *manually* into the system. We usually do this once a week, to help our users recover their BTC balance.
full member
Activity: 184
Merit: 100
OK, soon after the above post deposit is in my account.
full member
Activity: 184
Merit: 100
lol, I & someone else I know have put in multiple CS reports in the past & never, ever received one single reply or solution to various & serious problems except for the auto responder, you're only hope imo is to catch Zhou's attention here on his thread & as it's public he does tend to address genuine issues once posted

This is something I didn't expect. I am running a bitcoin site myself, even though the amounts I am dealing is much smaller than Bitcoinica's, I can't imagine leaving users without reply about their deposits.

Anyway, if he ever shows up here is my problem. I've made an initial small bitcoin deposit to the site which made through (though much later than 6 confirmations they claim). Then I initiated a second larger deposit and it is in the limbo for three days, which is really annoying. As I said, I PMed him without any response.

What is the average time of deposits in your experience?
donator
Activity: 3108
Merit: 1166
lol, I & someone else I know have put in multiple CS reports in the past & never, ever received one single reply or solution to various & serious problems except for the auto responder, you're only hope imo is to catch Zhou's attention here on his thread & as it's public he does tend to address genuine issues once posted
full member
Activity: 184
Merit: 100
How long does it usually take to get customer service response from Bitcoinica? I have a deposit that doesn't go through for the last few days. I've created few support tickets, emailed and PMed to zhoutong, but can not get any response!

What is your experience with the customer service so far?
vip
Activity: 490
Merit: 502

Sorry. I'll process it for you within 24 hours.

I have credited you $25, should be more than enough to cover your losses. Again, we apologize for the problems.

Thank you Zhou, just wondering if that should be reflected in my account yet because it hasn't shown up, or if I should wait another 13 or so hours? Just wanted to make sure it didn't accidentally get sent to another account or lost on the interwebz somehow, my Bitcoinica account name is matharis just for reference again.

Sorry to keep pestering you, but the $25 it still hasn't shown up in my account? Did some other lucky Bitcoinica user get a random $25?

Still nothing....

Sorry, I think I credited the previous amount into the wrong account. But the funds should have arrived now. Thanks for your patience!
newbie
Activity: 45
Merit: 0

Sorry. I'll process it for you within 24 hours.

I have credited you $25, should be more than enough to cover your losses. Again, we apologize for the problems.

Thank you Zhou, just wondering if that should be reflected in my account yet because it hasn't shown up, or if I should wait another 13 or so hours? Just wanted to make sure it didn't accidentally get sent to another account or lost on the interwebz somehow, my Bitcoinica account name is matharis just for reference again.

Sorry to keep pestering you, but the $25 it still hasn't shown up in my account? Did some other lucky Bitcoinica user get a random $25?

Still nothing....
newbie
Activity: 12
Merit: 0
Zhou, please describe me this situation. Is it just me or a bug?
Yesterday I decided to buy 528.2515 BTC with a market-order. While order was executing the price rose up a bit and I could buy only 500 BTC. Now my open positions looks like this:
http://f.cl.ly/items/3o0d170T362u0z3I0l2r/Screen%20shot%202012-03-31%20at%2011.23.55.png

and my last order history row looks like:
http://f.cl.ly/items/311G2e3R2h1P2e19120j/Screen%20shot%202012-03-31%20at%2011.24.43.png
That's ok. But let's do some calculations: 500 (BTC I bought) *4.9521 (base price of the order) =2476.05

My account info looks like this:
http://f.cl.ly/items/2n152z1q3P0s0z3d1q2X/Screen%20shot%202012-03-31%20at%2011.36.25.png
1042.54 (my margin balance) *2.5 (leverage) = 2606.35

So, I expected to see tradable balance around 130.3 (2606.35-2476.05), but not 53.21
newbie
Activity: 45
Merit: 0

Sorry. I'll process it for you within 24 hours.

I have credited you $25, should be more than enough to cover your losses. Again, we apologize for the problems.

Thank you Zhou, just wondering if that should be reflected in my account yet because it hasn't shown up, or if I should wait another 13 or so hours? Just wanted to make sure it didn't accidentally get sent to another account or lost on the interwebz somehow, my Bitcoinica account name is matharis just for reference again.

Sorry to keep pestering you, but the $25 it still hasn't shown up in my account? Did some other lucky Bitcoinica user get a random $25?
newbie
Activity: 45
Merit: 0

Sorry. I'll process it for you within 24 hours.

I have credited you $25, should be more than enough to cover your losses. Again, we apologize for the problems.

Thank you Zhou, just wondering if that should be reflected in my account yet because it hasn't shown up, or if I should wait another 13 or so hours? Just wanted to make sure it didn't accidentally get sent to another account or lost on the interwebz somehow, my Bitcoinica account name is matharis just for reference again.
Pages:
Jump to: