Bitcoin Forum
December 08, 2016, 10:11:10 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 6 »  All
  Print  
Author Topic: Real Time MtGox Order Book  (Read 25874 times)
Clark
Hero Member
*****
Offline Offline

Activity: 540


So much code.


View Profile WWW
June 10, 2011, 07:13:11 AM
 #1

The second installment of WebSockets-enabled MtGox market data is here:

http://bitcoin.clarkmoody.com/

Update: MtGox now broadcasts with socket.io, which provides increased compatibility and maintains real time data streaming.

You should be able to view the order book in real time, with all bid and ask entries posted. The price grouping feature in the Controls section allows you to view the size of all orders within the corresponding price range. You may select a few different intervals on which to group prices. The service is set to show up to 1000 entries on each side of the market.

There is a calculator at the top of the screen that allows you to specify how many BTC you want to sell or USD you want to spend, and it tells you what the estimated outcome of that trade would be (in a market order sense).

The slippage field is a measure of how much profit you lose by selling at the market. For instance if the inside bid is for 10.00 and I have 100 BTC to sell, I should make $1000, right? Wrong. You only make $1000 if there are 100 BTC on that inside bid. If not, you have experience slippage due to accepting lower prices for the BTC greater than the size of the inside bid.

Please enjoy, and remember to donate Wink It keeps me motivated.


PGP KEY | 1Bitcoin3Tg2KWyAq3wzivdqwYqGwKYaGd
1481235070
Hero Member
*
Offline Offline

Posts: 1481235070

View Profile Personal Message (Offline)

Ignore
1481235070
Reply with quote  #2

1481235070
Report to moderator
1481235070
Hero Member
*
Offline Offline

Posts: 1481235070

View Profile Personal Message (Offline)

Ignore
1481235070
Reply with quote  #2

1481235070
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481235070
Hero Member
*
Offline Offline

Posts: 1481235070

View Profile Personal Message (Offline)

Ignore
1481235070
Reply with quote  #2

1481235070
Report to moderator
molecular
Donator
Legendary
*
Offline Offline

Activity: 2142



View Profile
June 10, 2011, 10:27:27 AM
 #2


nice!

When I looked at the site, I thought I'm seeing my own python app.



very similar display of depth data.

One differency strikes me, though: you're ordering the asks the other way around than me.

I think having the lowest ask at the bottom makes sense: You have the bids coming down on the left and the asks going back up on the right. So it's shaped like a "U" with the lowest point of the U being where the action is.

So by looking at the last line, you can already tell what the lowest ask and highest bids are. With your ordering, I have to look at the last and the first line.. confuses the hell out of me. While that's probably because I'm used to my own ordering, I would still like to suggest you think about this and maybe change it.

Thanks for your work, Clark, it's really pretty cool.

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
ColdHardMetal
Hero Member
*****
Offline Offline

Activity: 701



View Profile
June 10, 2011, 10:31:20 AM
 #3

Some of the numbers in the "Sum" columns are white, while the rest are gray. Does that mean anything?

EDIT: Never mind, those are on the round price numbers 26,27 etc.

Clark
Hero Member
*****
Offline Offline

Activity: 540


So much code.


View Profile WWW
June 10, 2011, 02:40:35 PM
 #4


One differency strikes me, though: you're ordering the asks the other way around than me.

I think having the lowest ask at the bottom makes sense: You have the bids coming down on the left and the asks going back up on the right. So it's shaped like a "U" with the lowest point of the U being where the action is.

So by looking at the last line, you can already tell what the lowest ask and highest bids are. With your ordering, I have to look at the last and the first line.. confuses the hell out of me. While that's probably because I'm used to my own ordering, I would still like to suggest you think about this and maybe change it.


I based my ordering on two things. First, I wanted to list all of the orders I got (up to 1000), and it would be really inconvenient to scroll all the way to the bottom to see the strike price. Second, I have only ever seen an order book listed with strike prices at the top (on professional trading software).

I'm glad you like it!

PGP KEY | 1Bitcoin3Tg2KWyAq3wzivdqwYqGwKYaGd
bitoption
Jr. Member
*
Offline Offline

Activity: 56


View Profile WWW
June 10, 2011, 02:46:09 PM
 #5

Clark, looks really nice!


----** In Beta: The First Bitcoin Options Market ----**

Explanation and discussion: http://forum.bitcoin.org/index.php?topic=9611.0

API Developer Thread:
http://forum.bitcoin.org/index.php?topic=14194.0

-----------------------------------------------------------
AtomicTrader
Jr. Member
*
Offline Offline

Activity: 34


View Profile
June 10, 2011, 03:10:01 PM
 #6

What would be really cool is a graphical representation of the order book, sort of like an equalizer on a stereo.
Clark
Hero Member
*****
Offline Offline

Activity: 540


So much code.


View Profile WWW
June 10, 2011, 03:22:29 PM
 #7

What would be really cool is a graphical representation of the order book, sort of like an equalizer on a stereo.

Others have already done this. I don't know the links right now, but you could search for them on the forum.

PGP KEY | 1Bitcoin3Tg2KWyAq3wzivdqwYqGwKYaGd
bitoption
Jr. Member
*
Offline Offline

Activity: 56


View Profile WWW
June 10, 2011, 06:57:31 PM
 #8

Websockets are down. I am sad.

----** In Beta: The First Bitcoin Options Market ----**

Explanation and discussion: http://forum.bitcoin.org/index.php?topic=9611.0

API Developer Thread:
http://forum.bitcoin.org/index.php?topic=14194.0

-----------------------------------------------------------
zhalox
Full Member
***
Offline Offline

Activity: 175


XMR = BTC in 2010. Rise chikun.


View Profile
June 10, 2011, 07:04:55 PM
 #9

Yes, for some reason all my websockets are down, and my live SierraChart feed stopped working too, right when the Mt. Gox prices crashed.  The Mountain of Gox has fallen, and I am sad too Cry

wahbasah
Newbie
*
Offline Offline

Activity: 29


View Profile
June 10, 2011, 07:07:30 PM
 #10

~

edit: oops.. appearently websockets are down
Clark
Hero Member
*****
Offline Offline

Activity: 540


So much code.


View Profile WWW
June 14, 2011, 05:24:55 AM
 #11

I've gone in and updated the code to be more careful about keeping the depth table honest. Some earlier versions seemed to let a series of quick trades get the depth table all out of whack (since the WebSocket sends deltas instead of absolute sizes at each price).

So you should see some 'Fixing depth table.' messages in the console when a ticker update comes in that disagrees with the current inside bids and asks.

PGP KEY | 1Bitcoin3Tg2KWyAq3wzivdqwYqGwKYaGd
jaybny
Sr. Member
****
Offline Offline

Activity: 354


coder trader satoshi


View Profile
June 15, 2011, 01:29:41 PM
 #12

anyway to see the full book all the way up and all the way down?

ty

aandreas
Member
**
Offline Offline

Activity: 116



View Profile
June 15, 2011, 03:51:43 PM
 #13

hi clark. i stumbeld upon ur time & sales site a few days ago. tried it several times in the last days, but doesnt´t show anything. same with the new time & sales site. it says opening websocket, and about 10 sec later websocket closed.

my sierrachartfeed is running the whole time.

is there a regulation of users on ur site, or something? or some geoip thing? i am from germany.

or is it because i only use chrome for this and mtgoxlive and google wants me to open a gmailaccount andor browse other sites so they can track me  Grin
YoYa
Hero Member
*****
Offline Offline

Activity: 627



View Profile
June 15, 2011, 07:38:02 PM
 #14

Clark,

Just to say thanks, your page is the BIZ!

Have sent a small donation already, will be happy to do so again should business be good.
Clark
Hero Member
*****
Offline Offline

Activity: 540


So much code.


View Profile WWW
June 15, 2011, 07:42:03 PM
 #15

@jaybny: I have added a select box control that allows you to change the number of rows of the depth table displayed, all the way up to 1000. This should allow you to see the whole table, potentially at the expense of JavaScript performance.

@aandreas: It seems that you might be behind some sort of transparent proxy that cannot handle the WebSocket protocol handshake properly. There are no regulations from me on this. As I've pointed out other places, if MtGox implements the Secure WebSockets protocol, it will fix many of these compatibility issues.

@YoYa: Thank you for the donation!

PGP KEY | 1Bitcoin3Tg2KWyAq3wzivdqwYqGwKYaGd
hlksis
Newbie
*
Offline Offline

Activity: 25


View Profile
June 17, 2011, 10:26:20 AM
 #16

Nice project. Which technology is behind your online order book? Are you using something like Socket.IO (+node.JS)?
Clark
Hero Member
*****
Offline Offline

Activity: 540


So much code.


View Profile WWW
June 17, 2011, 03:56:39 PM
 #17

I am not using Socket.IO. I simply used the built-in WebSocket object and jQuery to run everything else.

PGP KEY | 1Bitcoin3Tg2KWyAq3wzivdqwYqGwKYaGd
cronopio
Jr. Member
*
Offline Offline

Activity: 59


View Profile
June 18, 2011, 04:12:55 PM
 #18

Hi Clarck

First, Thanks for that great site!!!

Second, Today i cant load the orders list. In the console bottom said "Buffering Ask" or "Buffering Bid". What this buffering thing?

I leave the window open for a while if at some time filled the buffer and showed me something but nothing.

Are you doing new improvements??

Thanks!!

12FKPNwQUS6Em7Ar6wc1GnzpU4NWBKhTAK

WARNING! This game its so addictive
Clark
Hero Member
*****
Offline Offline

Activity: 540


So much code.


View Profile WWW
June 18, 2011, 05:11:00 PM
 #19

There is some IP switching going on with the server, so after that finishes it should be back.

PGP KEY | 1Bitcoin3Tg2KWyAq3wzivdqwYqGwKYaGd
cronopio
Jr. Member
*
Offline Offline

Activity: 59


View Profile
June 18, 2011, 05:15:21 PM
 #20

Great!!! Thanks a lot.

Thanks for your quick reply!!

12FKPNwQUS6Em7Ar6wc1GnzpU4NWBKhTAK

WARNING! This game its so addictive
Pages: [1] 2 3 4 5 6 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!