Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[general] changing the channels info to config.json Work as Magic :)

  • Loading branch information...
commit 5490b2eb1d4a0342a35db830c26898f700731095 1 parent 43aecb9
cronopio authored
Showing with 39 additions and 7 deletions.
  1. +19 −1 bin/config.json
  2. +1 −5 bin/ws
  3. +19 −1 config.json
View
20 bin/config.json
@@ -1 +1,19 @@
-{}
+{
+ "channels": [
+ {
+ "name":"Trades",
+ "key":"dbf1dee9-4f2e-4a08-8cb7-748919a71b21",
+ "private":"trade"
+ },
+ {
+ "name":"MtGox Tick",
+ "key":"d5f06780-30a8-4a48-a2f8-7ed181b4a13f",
+ "private": "ticker"
+ },
+ {
+ "name":"All Market",
+ "key":"24e67e0d-1cad-4cc0-9e7a-f8523ef460fe",
+ "private":"depth"
+ }
+ ]
+}
View
6 bin/ws
@@ -9,11 +9,7 @@ var mtgoxTest = new WebSocketHook({
});
var mtgoxChannels = {
- channels:[
- {key:'dbf1dee9-4f2e-4a08-8cb7-748919a71b21', name:'Trades', private:'trade'},
- {key:'d5f06780-30a8-4a48-a2f8-7ed181b4a13f', name:'MtGox Tick', private: 'ticker'},
- {key:'24e67e0d-1cad-4cc0-9e7a-f8523ef460fe', name:'All Market', private:'depth'}
- ],
+ channels: mtgoxTest.channels,
lastTrade: 0,
getChannel: function(key){
var selected = this.channels.filter(function(c){
View
20 config.json
@@ -1 +1,19 @@
-{}
+{
+ "channels": [
+ {
+ "name":"Trades",
+ "key":"dbf1dee9-4f2e-4a08-8cb7-748919a71b21",
+ "private":"trade"
+ },
+ {
+ "name":"MtGox Tick",
+ "key":"d5f06780-30a8-4a48-a2f8-7ed181b4a13f",
+ "private": "ticker"
+ },
+ {
+ "name":"All Market",
+ "key":"24e67e0d-1cad-4cc0-9e7a-f8523ef460fe",
+ "private":"depth"
+ }
+ ]
+}
Please sign in to comment.
Something went wrong with that request. Please try again.