Mt Gox Web Socket API Help Needed
$30-250 AUD
Paid on delivery
Hi,
[You must have experience on Mt Gox web socket and know your networks to bid]
I am trying to successfully get streaming data from Mt Gox Web Socket API. If you have no idea what I am talking about then stop reading now. Also, include the word 'stream' as the first word of your bid so I know you have read this properly.
So, the progress I have made so far is: I have the HTTP v2 API working, so that's cool but for web sockets - I can successfully initiate the handshake bu am unable to subscribe to a channel and get some data returned. I am using a version of BASIC for this btw. Below is the data being sent and the returned data and the area where I am having issues:
[url removed, login to view]
GET /mtgox/Currency=USD HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: [url removed, login to view]
Origin: [url removed, login to view]
Sec-WebSocket-Key: UWaphFPiSqq3f2gOmaD5Sg==
Sec-WebSocket-Version: 13
RETURNS:
4{"message":"Now online (no channels)","op":"remark"}
Which is expected but when I try to initiate a subscribe, I just keep on getting disconnected:
\x00{"channel":"d5f06780-30a8-4a48-a2f8-7ed181b4a13f","op":"subscribe"}\xFF
Now, please be advised that I have put \x00 and \xFF in the above as I believe that is the correct notation for PHP and Python. As I am using Basic, I have set the first byte to 0 and the last to 255 and included the ANSI text above. Done the same with converting the JSON ANSI string above to UTF-8 but still no luck..Have tried to use Wireshark to get a handle on exactly what is being sent but my wireless hardware is not allowing promiscuous something or other.
I expect this to be a max of 1 hours work for soemone with experience of this web socket and general good HTTP / networking experience.
JMup.
Project ID: #4500111