Search content
Sort by

Showing 11 of 11 results by Flaff
Post
Topic
Board Exchanges
Re: www.BITSTAMP.net Bitcoin exchange site for USD/BTC
by
Flaff
on 15/08/2013, 10:17:05 UTC
What is this, am I missing something here or attemp to steal?

It's an easy-to-fix javascript bug that has been there for months.
I don't understand why they didn't fix it though. It makes the site feel insecure.
Post
Topic
Board Economics
Re: Energy consumption could become an issue if bitcoin really breaks through
by
Flaff
on 15/05/2013, 17:26:34 UTC
As if banks don't use electricity.
Post
Topic
Board Exchanges
Re: www.BITSTAMP.net Bitcoin exchange site for USD/BTC
by
Flaff
on 14/05/2013, 22:11:00 UTC
When you get banned, you won't be able to visit bitstamp.net at all.
Every one of their pages will give you the banned message (900seconds=15minutes).
This happens for using the wrong login or for spamming their api.
Post
Topic
Board Exchanges
Re: www.BITSTAMP.net Bitcoin exchange site for USD/BTC
by
Flaff
on 13/05/2013, 18:42:18 UTC
Does bitstamp have a public websocket/streaming API?
Also, are there any request limits to usual API?

Yes:

Code:
var trades_socket = io.connect('https://websocket.bitstamp.net:8080/live_trades');
 var orders_socket = io.connect('https://websocket.bitstamp.net:8080/live_orders');

Yes:

 up to 1 per second

How do we use the Socket.IO API? There doesn't seem to be happening much besides a connected message when using this:

Code:



Change your conn.on('message', to conn.on('trade'.

I'd really like to see non-https access to websocket too. I have problems using ruby gems to create a connection.

Thank you so much! Got some pretty cool charting working now Smiley. One question for the bitstamp guys:

Why do tid's sometimes increment with more then 1?
"tid": 245967
to
"tid": 245972

I'm new with socket.io and I don't seem get this to work..
There is also no documentation to be found about this websocket. Is this deceprated or something?
The socket.io.js returns the string 'Welcome to socket.io.'
This throws me a syntax error in the console because there is no JS.


Code:



I also allowed cross origin sharing before testing it by running chromium with the --disable-web-security command.
Googling for solutions didn't help, so I'm kind of stuck with the HTTP API for the moment.
Post
Topic
Board Beginners & Help
Re: How do you keep up with these forums?
by
Flaff
on 12/05/2013, 21:25:50 UTC
Just 'post mining' to get me out of this newbie limbo but genuine question... what's your forum browsing strategy?

I'd like to read every one of my unread posts since my last visit but the volume is incredible, can't we demand some proof of work prior to posting  Cheesy


I spam threads. Check my posts amount.
Post
Topic
Board Beginners & Help
Re: Transaction Confirmation if difficulty is very high
by
Flaff
on 12/05/2013, 21:21:29 UTC
I think that Bitcoin will fall in the long term, unless bitcoin banks or governments ask fees too keep hashing.

Block rewards and transaction fees provide the incentive to keep mining so I don't think there is any real *difficulty* for miners to make money from mining Bitcoin for the foreseeable future (although if there was a massive loss of confidence and the price dropped to < 1 USD the mining activity would certainly be less but even then not likely to stop as some miners have free electricity).


But when all blocks have been mined, there would be no profit in mining.
Wouldn't there be the chance of the 50%+ failure?
The one that hashes more than 50% of the network would be able to 'hack' the system, or did i misunderstand that?
Post
Topic
Board Beginners & Help
Re: How often do you check the price of Bitcoin?
by
Flaff
on 10/05/2013, 14:04:13 UTC
Constantly, I put it on my screen while studying.
I even wrote a little client to trade fast enough to gain on little waves.
Gained a full 1$ on 40$ in 2 days!
A lot of trades get my fee down anyway.
Post
Topic
Board Beginners & Help
Re: Bitstamp websocket API
by
Flaff
on 10/05/2013, 13:34:58 UTC

That's the topic i've got the idea of websockets from..
read OP
Post
Topic
Board Beginners & Help
Re: Transaction Confirmation if difficulty is very high
by
Flaff
on 10/05/2013, 13:31:52 UTC
I think that Bitcoin will fall in the long term, unless bitcoin banks or governments ask fees too keep hashing.
Post
Topic
Board Beginners & Help
Re: Bitstamp websocket API
by
Flaff
on 10/05/2013, 12:34:01 UTC
You can repeat the function every tot seconds, like 5 seconds. I don't know about this socket API, but the biggest problem is the SSL protocol. You must buy it or nothing, the requests HTTP>to HTTPS won't work.
I already have a script working that way.

The advantage of using websocket is that I'd get a live stream of trades instead of comparing arrays to eachother.
That would make me use less processor resources while keeping the load on their servers minimal.
It's also easier to trigger functions sequentially instead of checking for timeouts on requests so previous data wouldn't get mixed up with more recent data.

I'll try to post it in the forum mentioned before after i get rid of my newb status..
Post
Topic
Board Beginners & Help
Topic OP
Bitstamp websocket API
by
Flaff
on 10/05/2013, 10:42:48 UTC
I'm trying to make a live graph of the Bitstamp exchange in my browser, and am currently doing it with HTTP requests.

On this forum, I read that they have a (public?) websocket API.

Does anyone know if there's any more information to be found about their websocket?
I'm new to socket.io, but with a bit more of information I would be on the way again.
I know how to parse the information in JS, so connecting is my only problem.

If anyone manages to make me get connected with their websocket API, I'll make it open source! Wink

Thanks!