Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2013 20:38
Show Gist options
  • Save anonymous/4757405 to your computer and use it in GitHub Desktop.
Save anonymous/4757405 to your computer and use it in GitHub Desktop.
{"asks":[[24.23897,7.10054925],[24.23898,10],[24.25,5],[24.26241,0.04446121],[24.30469,0.08892241],[24.34698,0.23712644],[24.349,1.02477216],[24.35,0.11509147],[24.38888,9.9],[24.39884,59.9819],[24.39984,0.08892241],[24.4,0.55],[24.41,0.55],[24.43,7],[24.43469,0.44],[24.4375,0.358],[24.43998,9.2084],[24.44,44.44162623],[24.44037,0.12986],[24.449,1],[24.44989,0.15723],[24.45,16.41],[24.46,0.25],[24.46322,0.01154],[24.46396,0.02082],[24.4651,56],[24.46999,0.1],[24.47002,43],[24.475,0.5],[24.479,1],[24.48,6.876],[24.4827,0.03365],[24.48441,0.04446121],[24.48888,9.9],[24.489,1],[24.4898,3.56983439],[24.48999,0.1],[24.49,133.46828037],[24.49142,3.76402],[24.49407,0.01838],[24.499,2],[24.49999,87.29473147],[24.5,408.73497214],[24.51,2.2],[24.51179,0.04456],[24.51234,93.33987377],[24.51322,0.01853],[24.51999,0.1],[24.52,0.25],[24.52134,2.31177046],[24.53,0.2],[24.53155,4.07638327],[24.53214,8],[24.53757,0.02239],[24.54,13.98],[24.54999,0.1],[24.55,105],[24.55228,0.12978],[24.55602,0.04076],[24.559,1],[24.56,0.25],[24.56322,0.0267],[24.56611,0.05721],[24.56962,89.9502],[24.57062,0.06108],[24.57101,0.7353106],[24.5712,0.23459],[24.579,1],[24.57999,0.1],[24.58,0.25],[24.58092,0.12348],[24.5869,1.1],[24.58833,0.02574],[24.58835,0.10669],[24.58888,9.9],[24.58996,0.50205],[24.59,27.98438022],[24.5999,0.0207],[24.59999,1],[24.6,9.48],[24.6001,8],[24.60512,0.6868],[24.60765,0.00865873],[24.60888,0.03562],[24.60999,0.1],[24.61,100.45],[24.61119,14.62092148],[24.61141,0.02395],[24.61322,0.03483],[24.62,10.25],[24.62045,0.9233266],[24.63,10],[24.63999,0.1],[24.64,0.25],[24.64589,17.40893843],[24.64987,0.53109],[24.65,5],[24.65023,0.20221],[24.66,0.25],[24.668,2],[24.66999,0.1],[24.67092,119.27585764],[24.67229,16.2084505],[24.6742,0.01587],[24.67502,77.6217],[24.67503,220.7573321],[24.679,1],[24.68,0.25],[24.6814,5.33622],[24.68546,0.0255],[24.68744,0.01341],[24.68888,9.9],[24.69685,0.17291],[24.69999,0.1],[24.7,13.74197992],[24.70243,0.02],[24.70341,0.01082],[24.71,12.79],[24.71603,15],[24.71933,44.83431106],[24.72,0.25],[24.72729,1.20462464],[24.72986,0.1],[24.72999,0.1],[24.73695,4.40073],[24.74,26.25],[24.74149,0.0222],[24.74357,34.28377197],[24.7448,1.1],[24.74905,0.020528],[24.75,202.98522932],[24.75892,1],[24.75938,0.05278],[24.75974,0.02705],[24.75999,0.35],[24.76,0.25],[24.76734,0.09672],[24.77,1],[24.77687,4.03602231],[24.78,0.25],[24.78144,49.61717353],[24.78248,3.79977],[24.7847,0.1],[24.78888,9.9],[24.79,50],[24.79999,0.1],[24.8,115.65629122],[24.80028,0.15078],[24.81,0.2],[24.81073,59.9624],[24.8121,100],[24.81211,5.01],[24.81426,0.0628],[24.816,1],[24.81898,28.666],[24.81939,0.25867],[24.82,0.25],[24.82667,2.2],[24.82921,0.12758],[24.82999,0.1],[24.83,499],[24.83424,0.02859],[24.8367,0.03003],[24.83671,0.12306],[24.83834,0.58655],[24.83953,0.1],[24.84,0.25],[24.845,24.875],[24.84776,2.7585],[24.85,427.2224],[24.85746,0.03961],[24.859,1],[24.85999,0.1],[24.86,0.25],[24.877,1],[24.87701,59.9524],[24.87863,0.020536],[24.87895,0.03879203],[24.879,1],[24.88,0.25],[24.88581,0.01],[24.88582,0.01],[24.88583,0.01],[24.88584,0.01],[24.88585,0.01],[24.88586,0.01],[24.88587,0.01],[24.88588,50],[24.88888,9.9],[24.8899,100],[24.88999,0.1],[24.89,108.037351],[24.8905,1.1],[24.895,14.58514611],[24.89886,0.57911],[24.899,1],[24.89922,0.2385],[24.9,713.81145294],[24.90807,0.1],[24.90897,0.03014],[24.91,119.2],[24.9144,0.97],[24.92,1.25],[24.92343,0.01784],[24.92999,0.1],[24.93,20],[24.9307,6.05157],[24.93395,9.9],[24.94,0.25],[24.94341,0.9973796],[24.94632,0.1725],[24.9492,26.11],[24.95,108.04532492],[24.95294,0.01027],[24.95998,25],[24.96,0.25],[24.96999,0.1],[24.97,31.63647538],[24.97021,0.182873],[24.97661,0.01],[24.9789,63.7193414],[24.98,39.238],[24.98392,0.03167],[24.987,27.31264562],[24.98765,200],[24.98888,9.9],[24.989,27.88465502],[24.99,163.09247708],[24.99032,0.1],[24.9914,0.02629],[24.993,5],[24.99306,2.7424],[24.99611,0.25],[24.99797,0.75],[24.999,248],[24.9999,10],[24.99991,40],[24.99994,91.42603752],[25,1538.80467416],[25.0082,0.020544],[25.00948,1.05846],[25.00999,0.1],[25.01,10.20022216],[25.01774,0.3],[25.01999,0.25],[25.02,10.25],[25.02464,3.99606148],[25.02999,0.1],[25.03091,4.43609],[25.03666,2.7377],[25.04,0.25],[25.04026,3.79228],[25.04892,1],[25.05079,0.17466],[25.0536,1],[25.0553,1],[25.0591,0.0332],[25.05999,0.1],[25.06,5.04],[25.0649,0.06153],[25.07,4.5],[25.07009,0.28252],[25.07104,9.9],[25.07257,0.1],[25.079,1],[25.08,0.25],[25.08001,0.13164],[25.08628,2.495],[25.08757,0.03535],[25.08759,0.13926],[25.08923,0.6702],[25.09,1],[25.09478,2.7313],[25.09999,0.1],[25.1,120.270064],[25.10538,25.36536807],[25.10854,0.04341],[25.1123,29.86564922],[25.12,10.25],[25.12741,100],[25.12999,0.1]],"bids":[[23.201,5],[23.203,5],[23.2054,0.04644177],[23.20639,0.1018],[23.20791,3],[23.21,30.31111111],[23.211,10.5],[23.21286,0.74480758],[23.21585,0.37240379],[23.2162,0.0101],[23.22,0.6],[23.22124,0.03850571],[23.22317,0.14312304],[23.22427,0.18881],[23.22509,1],[23.22986,0.15671],[23.23,5],[23.23001,40],[23.23216,0.38995],[23.23579,0.1018],[23.23673,0.40126127],[23.24417,0.0463643],[23.2456,0.0101],[23.25,152],[23.2515,0.0587],[23.25176,0.94286],[23.25185,0.0303],[23.254,4.3003],[23.25493,0.04634285],[23.255,204.71838701],[23.25535,0.07719],[23.26,6.2],[23.26172,0.1385],[23.26519,0.1018],[23.266,0.1],[23.26791,3],[23.268,0.6],[23.27051,0.01],[23.27091,5.61912],[23.27133,12],[23.275,0.0101],[23.279,33.20998675],[23.27986,0.03223],[23.28479,0.1018],[23.29499,20],[23.3,14.6711927],[23.301,0.33],[23.3011,0.01085],[23.303,5],[23.30439,0.1018],[23.3044,0.0101],[23.30984,100],[23.311,11.19497747],[23.31138,59.9837],[23.317,0.1],[23.31916,0.33],[23.32024,0.01226],[23.32473,6.23448],[23.32533,0.07259],[23.32791,3],[23.33,0.0017651],[23.33333,11.44284],[23.33379,0.1018],[23.3338,0.0101],[23.3386,4.28474778],[23.33887,0.16194],[23.34138,0.20784],[23.34449,0.01],[23.346,0.1],[23.35,105.10562055],[23.35738,0.33],[23.361,2],[23.3632,0.0101],[23.366,0.6],[23.37299,0.1018],[23.37471,0.01703],[23.37578,0.09947],[23.3782,0.01618],[23.38,677.7481],[23.38726,5.14171],[23.38791,3],[23.39259,0.1018],[23.3926,0.0101],[23.39462,0.01648],[23.39551,0.068],[23.39687,0.40992],[23.39902,0.14389854],[23.4,132.12980938],[23.403,5],[23.40551,0.4263],[23.4074,0.04401],[23.4092,1.5],[23.41,0.11],[23.41002,5.13029],[23.411,10.5],[23.4145,14.948],[23.415,0.6],[23.42,51.225],[23.42063,0.12083],[23.42199,0.1018],[23.422,0.0101],[23.4242,5],[23.426,0.1],[23.42696,10],[23.42902,0.03602],[23.43001,20],[23.43316,0.01],[23.44135,6.20821],[23.44505,0.33],[23.44587,3.01],[23.44791,3],[23.45,44.56],[23.45139,0.1018],[23.4514,0.0101],[23.45508,0.4263],[23.45886,0.14268],[23.461,2],[23.46286,0.37240379],[23.463,0.6],[23.4645,0.14468],[23.46591,0.06343],[23.46683,0.28837],[23.4719,10],[23.48079,0.1018],[23.4808,0.0101],[23.48663,0.7736],[23.48672,0.02442],[23.48998,3.2],[23.4901,2.02],[23.49669,0.11616],[23.5,194.44982167],[23.50001,0.1],[23.5001,10],[23.50056,0.06717],[23.503,5],[23.506,0.075],[23.50751,0.4254],[23.50791,3],[23.51,81.2562535],[23.5102,0.0101],[23.511,2],[23.51195,0.01],[23.512,0.6],[23.5121,27.8391441],[23.514,4],[23.51484,0.44],[23.51501,0.02621],[23.51777,61.80183495],[23.51999,0.1018],[23.52,202.063],[23.52025,33],[23.52026,0.17287098],[23.521,5.1],[23.52547,1.15574971],[23.52777,9.56023797],[23.53001,10],[23.5353,5],[23.53652,0.05888],[23.53825,0.11],[23.5396,0.0101],[23.53999,2.124],[23.54939,0.1018],[23.55,3],[23.5501,0.1],[23.55856,5.70477],[23.56,56.0611],[23.561,2.6],[23.56509,10.07],[23.56899,0.1018],[23.569,0.0101],[23.57507,0.4242],[23.5757,5],[23.586,0.075],[23.58859,0.1018],[
23.5984,0.0101],[23.6,54.35],[23.60734,0.05433],[23.61,101.6],[23.6101,20],[23.61082,0.01295],[23.611,2],[23.61434,0.01269],[23.6154,1.5],[23.61605,0.16175],[23.61799,0.1018],[23.62,10.00142464],[23.6202,28.89998],[23.62022,0.16536978],[23.6278,0.0101],[23.62791,0.01],[23.63,0.5],[23.63093,0.01361],[23.6332,0.31242],[23.64302,0.12649],[23.64383,0.03394],[23.64447,0.08056],[23.64648,4.27822],[23.64739,0.1018],[23.65,2],[23.6572,0.0101],[23.659,0.6],[23.665,0.08],[23.66568,0.02966],[23.66666,11.2816],[23.66699,0.1018],[23.6764,7],[23.67838,0.05508],[23.6791,6.07535],[23.683,0.66060803],[23.6866,0.0101],[23.69,5],[23.6946,2],[23.69582,0.11629],[23.69639,0.1018],[23.7,336.8776],[23.70152,0.11016],[23.70387,0.26133],[23.707,0.6],[23.70987,0.37670921],[23.71,15.02],[23.71008,4.21761588],[23.71599,0.1018],[23.716,0.0101],[23.71601,0.86785234],[23.72,10],[23.72001,38.88996],[23.72003,12.71457148],[23.7205,2],[23.72387,0.61319],[23.72396,0.01917],[23.72479,0.5],[23.73,10],[23.73403,0.09374],[23.73733,0.01],[23.74539,0.1018],[23.7454,0.0101],[23.74962,0.05076],[23.75,25.29491073],[23.75254,0.02226],[23.756,0.6],[23.76,33.67],[23.76001,20],[23.76499,0.1018],[23.7748,0.0101],[23.78301,0.06638],[23.7926,2.580756],[23.79439,0.1018],[23.79751,6.04942],[23.799,5],[23.8,2.80476259],[23.802,428.58],[23.80218,0.06947],[23.8042,0.0101],[23.805,0.6],[23.8077,4.20032206],[23.81121,0.11],[23.81122,0.11],[23.81379,0.11],[23.81425,0.03683],[23.81555,0.22],[23.82102,0.33],[23.82109,0.04645],[23.82379,0.1018],[23.8336,0.0101],[23.839,1.5],[23.84,0.64],[23.84587,0.00735724],[23.84686,0.01],[23.84931,0.01032],[23.85,3],[23.85002,20],[23.85201,0.66],[23.85319,0.1018],[23.859,10],[23.86,0.55],[23.863,0.0101],[23.86963,0.01077],[23.87192,0.28411],[23.87999,15.47535842],[23.88001,0.22],[23.881,4.22],[23.88259,0.1018],[23.88266,0.02397],[23.88533,4.06027],[23.88976,0.00186983],[23.89,6.67815696],[23.8924,0.0101],[23.89277,0.04215],[23.89903,0.22],[23.9,61],[23.90147,5.161512],[23.90208,0.06245],[23.90473,0.02338],[23.90679,0.01],[23.91,1],[23.916,10],[23.9165,5.58654],[23.91948,0.12136],[23.92179,0.1018],[23.9218,0.0101],[23.92532,0.11],[23.93502,0.12401],[23.9433,0.20361],[23.95,2],[23.95119,0.1018],[23.95219,89.9815],[23.9645,2],[23.96466,0.03787],[23.96952,13.764032],[23.97377,0.03145],[24,338.46721207],[24.001,76.41135193],[24.003,2.2501],[24.005,2],[24.00595,0.16185029],[24.006,48.33260893],[24.00603,0.8314715],[24.01,100],[24.01001,5],[24.012,20.8229],[24.0123,0.08048],[24.013,20.8221],[24.01325,5.913e-5],[24.02395,5.161512],[24.03275,19.9748],[24.034,7.9055],[24.03608,5.12597],[24.04,3.82],[24.05069,0.01686],[24.07839,2.580756],[24.0784,24.07100305],[24.1,30.77],[24.101,60.0021],[24.15,15],[24.18665,4.13451262],[24.19058,0.5],[24.19059,3.65981964]]}
http.get(options, function(res) {
console.log("Got response: " + res.statusCode);
res.on("data", function(chunk) {
console.log(chunk.toString());
client.set(redis_key, chunk.toString());
});
}).on('error', function(e) {
console.log("Got error: " + e.message);
});
setTimeout((function() { fetch_orders(exchange_url,redis_key); }), 10000);
};
.6],[23.6101,20],[23.61082,0.01295],[23.611,2],[23.61434,0.01269],[23.6154,1.5],[23.61605,0.16175],[23.61799,0.1018],[23.62,10.00142464],[23.6202,28.89998],[23.62021,0.16538708],[23.6278,0.0101],[23.62791,0.01],[23.63,0.5],[23.63093,0.01361],[23.6332,0.31242],[23.64302,0.12649],[23.64383,0.03394],[23.64447,0.08056],[23.64648,4.27822],[23.64739,0.1018],[23.65,2],[23.6572,0.0101],[23.659,0.6],[23.665,0.08],[23.66568,0.02966],[23.66666,11.2816],[23.66699,0.1018],[23.6764,7],[23.67838,0.05508],[23.6791,6.07535],[23.683,0.66060803],[23.6866,0.0101],[23.69,5],[23.6946,2],[23.69582,0.11629],[23.69639,0.1018],[23.7,336.8776],[23.70152,0.11016],[23.70387,0.26133],[23.707,0.6],[23.70987,0.37670921],[23.71,15.02],[23.71008,4.21761588],[23.71599,0.1018],[23.716,0.0101],[23.71601,0.86785234],[23.72,10],[23.72001,38.88996],[23.72003,12.71457148],[23.7205,2],[23.72387,0.61319],[23.72396,0.01917],[23.72479,0.5],[23.73,10],[23.73403,0.09374],[23.73733,0.01],[23.74539,0.1018],[23.7454,0.0101],[23.74962,0.05076],[23.75,25.29491073],[23.75254,0.02226],[23.756,0.6],[23.76,33.67],[23.76001,20],[23.76499,0.1018],[23.7748,0.0101],[23.78301,0.06638],[23.79439,0.1018],[23.79751,6.04942],[23.799,5],[23.8,2.80476259],[23.802,428.58],[23.80218,0.06947],[23.8042,0.0101],[23.805,0.6],[23.81104,2.56899],[23.81121,0.11],[23.81122,0.11],[23.81379,0.11],[23.81425,0.03683],[23.81555,0.22],[23.82102,0.33],[23.82109,0.04645],[23.82379,0.1018],[23.8336,0.0101],[23.839,1.5],[23.84,0.64],[23.84587,0.00735724],[23.84686,0.01],[23.84931,0.01032],[23.85,3],[23.85002,20],[23.85201,0.66],[23.85319,0.1018],[23.859,10],[23.86,0.55],[23.863,0.0101],[23.86963,0.01077],[23.87192,0.28411],[23.87999,15.47535842],[23.88001,0.22],[23.881,4.22],[23.88259,0.1018],[23.88266,0.02397],[23.88533,4.06027],[23.88976,0.00186983],[23.89,6.67815696],[23.8924,0.0101],[23.89277,0.04215],[23.89903,0.22],[23.9,61],[23.90208,0.06245],[23.90473,0.02338],[23.90679,0.01],[23.91,1],[23.916,10],[23.9165,5.58654],[23.91948,0.12136],[23.91999,5.13798],[23.92099,89.9305],[23.92179,0.1018],[23.9218,0.0101],[23.92532,0.11],[23.93502,0.12401],[23.9433,0.20361],[23.94718,4.17585744],[23.95,2],[23.95119,0.1018],[23.9645,2],[23.96466,0.03787],[23.97377,0.03145],[23.98809,13.70128],[24,338.46721207],[24.001,76.41135193],[24.003,2.2501],[24.005,2],[24.00595,0.16185029],[24.006,48.33260893],[24.00603,0.8314715],[24.01,100],[24.01001,5],[24.012,27.23636451],[24.0123,0.08048],[24.013,20.8221],[24.01325,5.913e-5],[24.03275,19.9748],[24.034,7.9055],[24.03608,5.12597],[24.04,3.82],[24.04257,5.13798],[24.05069,0.01686],[24.05169,59.9209],[24.09704,2.56899],[24.1,30.77],[24.10001,24.04941906],[24.11299,0.11],[24.11718,0.78883186],[24.11819,62.93794266]]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment