From b23ef5ebce34503bdf824cb32ba5780dbf72dc16 Mon Sep 17 00:00:00 2001 From: Thaddeus Date: Mon, 24 Jun 2024 20:06:42 +0200 Subject: [PATCH] fix tests --- test/__snapshots__/compute.test.ts.snap | 1775 +++++++++-------------- 1 file changed, 709 insertions(+), 1066 deletions(-) diff --git a/test/__snapshots__/compute.test.ts.snap b/test/__snapshots__/compute.test.ts.snap index 4e2d3b2..d329657 100644 --- a/test/__snapshots__/compute.test.ts.snap +++ b/test/__snapshots__/compute.test.ts.snap @@ -48049,27 +48049,6 @@ Array [ "timestamp": 2019-04-01T00:00:12.665496Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4091, - "closeTimestamp": 2019-04-01T00:00:06.933Z, - "exchange": "bitmex", - "high": 4091, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:12.665496Z, - "low": 4091, - "name": "trade_bar_1000ms", - "open": 4091, - "openTimestamp": 2019-04-01T00:00:06.933Z, - "sellVolume": 215, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:07.000Z, - "trades": 4, - "type": "trade_bar", - "volume": 215, - "vwap": 4091, - }, Object { "asks": Array [ Object { @@ -48824,6 +48803,27 @@ Array [ "timestamp": 2019-04-01T00:00:12.989Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4091, + "closeTimestamp": 2019-04-01T00:00:06.933Z, + "exchange": "bitmex", + "high": 4091, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:13.524857Z, + "low": 4091, + "name": "trade_bar_1000ms", + "open": 4091, + "openTimestamp": 2019-04-01T00:00:06.933Z, + "sellVolume": 215, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:07.000Z, + "trades": 4, + "type": "trade_bar", + "volume": 215, + "vwap": 4091, + }, Object { "asks": Array [ Object { @@ -48894,27 +48894,6 @@ Array [ "timestamp": 2019-04-01T00:00:13.529240Z, "type": "book_snapshot", }, - Object { - "buyVolume": 14770, - "close": 4090.5, - "closeTimestamp": 2019-04-01T00:00:12.989Z, - "exchange": "bitmex", - "high": 4090.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:13.529240Z, - "low": 4090.5, - "name": "trade_bar_1000ms", - "open": 4090.5, - "openTimestamp": 2019-04-01T00:00:12.989Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:13.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 14770, - "vwap": 4090.5, - }, Object { "asks": Array [], "bids": Array [ @@ -48996,6 +48975,27 @@ Array [ "timestamp": 2019-04-01T00:00:13.015Z, "type": "trade", }, + Object { + "buyVolume": 14770, + "close": 4090.5, + "closeTimestamp": 2019-04-01T00:00:12.989Z, + "exchange": "bitmex", + "high": 4090.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:13.529251Z, + "low": 4090.5, + "name": "trade_bar_1000ms", + "open": 4090.5, + "openTimestamp": 2019-04-01T00:00:12.989Z, + "sellVolume": 0, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:13.000Z, + "trades": 1, + "type": "trade_bar", + "volume": 14770, + "vwap": 4090.5, + }, Object { "amount": 3508, "exchange": "bitmex", @@ -49970,27 +49970,6 @@ Array [ "timestamp": 2019-04-01T00:00:13.900Z, "type": "book_snapshot", }, - Object { - "buyVolume": 29471, - "close": 4090, - "closeTimestamp": 2019-04-01T00:00:13.136Z, - "exchange": "bitmex", - "high": 4090.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:14.143288Z, - "low": 4090, - "name": "trade_bar_1000ms", - "open": 4090.5, - "openTimestamp": 2019-04-01T00:00:13.015Z, - "sellVolume": 251, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:14.000Z, - "trades": 7, - "type": "trade_bar", - "volume": 29722, - "vwap": 4090.4957775385237, - }, Object { "asks": Array [ Object { @@ -50264,27 +50243,6 @@ Array [ "timestamp": 2019-04-01T00:00:14.600Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4089.5, - "closeTimestamp": 2019-04-01T00:00:13.490Z, - "exchange": "bitmex", - "high": 4090, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:14.726308Z, - "low": 4089.5, - "name": "trade_bar_1000ms", - "open": 4090, - "openTimestamp": 2019-04-01T00:00:13.490Z, - "sellVolume": 8000, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:14.000Z, - "trades": 5, - "type": "trade_bar", - "volume": 8000, - "vwap": 4089.9095625, - }, Object { "asks": Array [], "bids": Array [ @@ -52493,27 +52451,6 @@ Array [ "timestamp": 2019-04-01T00:00:14.754591Z, "type": "book_snapshot", }, - Object { - "buyVolume": 796, - "close": 4090, - "closeTimestamp": 2019-04-01T00:00:13.778Z, - "exchange": "bitmex", - "high": 4090, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:14.754591Z, - "low": 4090, - "name": "trade_bar_1000ms", - "open": 4090, - "openTimestamp": 2019-04-01T00:00:13.778Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:14.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 796, - "vwap": 4090, - }, Object { "asks": Array [ Object { @@ -53028,27 +52965,6 @@ Array [ "timestamp": 2019-04-01T00:00:14.754645Z, "type": "book_snapshot", }, - Object { - "buyVolume": 1727, - "close": 4090, - "closeTimestamp": 2019-04-01T00:00:13.859Z, - "exchange": "bitmex", - "high": 4090, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:14.754645Z, - "low": 4090, - "name": "trade_bar_1000ms", - "open": 4090, - "openTimestamp": 2019-04-01T00:00:13.859Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:14.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 1727, - "vwap": 4090, - }, Object { "asks": Array [ Object { @@ -53274,27 +53190,6 @@ Array [ "timestamp": 2019-04-01T00:00:14.754669Z, "type": "book_snapshot", }, - Object { - "buyVolume": 939, - "close": 4090, - "closeTimestamp": 2019-04-01T00:00:13.911Z, - "exchange": "bitmex", - "high": 4090, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:14.754669Z, - "low": 4090, - "name": "trade_bar_1000ms", - "open": 4090, - "openTimestamp": 2019-04-01T00:00:13.911Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:14.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 939, - "vwap": 4090, - }, Object { "asks": Array [ Object { @@ -54809,6 +54704,27 @@ Array [ "timestamp": 2019-04-01T00:00:14.139Z, "type": "trade", }, + Object { + "buyVolume": 32933, + "close": 4090, + "closeTimestamp": 2019-04-01T00:00:13.911Z, + "exchange": "bitmex", + "high": 4090.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:14.808184Z, + "low": 4089.5, + "name": "trade_bar_1000ms", + "open": 4090.5, + "openTimestamp": 2019-04-01T00:00:13.015Z, + "sellVolume": 8251, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:14.000Z, + "trades": 15, + "type": "trade_bar", + "volume": 41184, + "vwap": 4090.340229215229, + }, Object { "amount": 2000, "exchange": "bitmex", @@ -61948,27 +61864,6 @@ Array [ "timestamp": 2019-04-01T00:00:15.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4089.5, - "closeTimestamp": 2019-04-01T00:00:14.161Z, - "exchange": "bitmex", - "high": 4089.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:15.003057Z, - "low": 4089.5, - "name": "trade_bar_1000ms", - "open": 4089.5, - "openTimestamp": 2019-04-01T00:00:14.139Z, - "sellVolume": 28000, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:15.000Z, - "trades": 7, - "type": "trade_bar", - "volume": 28000, - "vwap": 4089.5, - }, Object { "asks": Array [ Object { @@ -69409,6 +69304,27 @@ Array [ "timestamp": 2019-04-01T00:00:20.054Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4089.5, + "closeTimestamp": 2019-04-01T00:00:14.161Z, + "exchange": "bitmex", + "high": 4089.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:20.098005Z, + "low": 4089.5, + "name": "trade_bar_1000ms", + "open": 4089.5, + "openTimestamp": 2019-04-01T00:00:14.139Z, + "sellVolume": 28000, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:15.000Z, + "trades": 7, + "type": "trade_bar", + "volume": 28000, + "vwap": 4089.5, + }, Object { "amount": 6000, "exchange": "bitmex", @@ -72873,27 +72789,6 @@ Array [ "timestamp": 2019-04-01T00:00:21.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:20.431Z, - "exchange": "bitmex", - "high": 4089.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:21.001031Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089.5, - "openTimestamp": 2019-04-01T00:00:20.054Z, - "sellVolume": 78498, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:21.000Z, - "trades": 13, - "type": "trade_bar", - "volume": 78498, - "vwap": 4089.0549695533646, - }, Object { "asks": Array [], "bids": Array [ @@ -74070,27 +73965,6 @@ Array [ "timestamp": 2019-04-01T00:00:21.100Z, "type": "book_snapshot", }, - Object { - "buyVolume": 480, - "close": 4089.5, - "closeTimestamp": 2019-04-01T00:00:20.750Z, - "exchange": "bitmex", - "high": 4089.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:21.162325Z, - "low": 4089.5, - "name": "trade_bar_1000ms", - "open": 4089.5, - "openTimestamp": 2019-04-01T00:00:20.750Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:21.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 480, - "vwap": 4089.5, - }, Object { "asks": Array [ Object { @@ -74157,27 +74031,6 @@ Array [ "timestamp": 2019-04-01T00:00:21.162334Z, "type": "book_change", }, - Object { - "buyVolume": 0, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:20.795Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:21.162334Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:20.795Z, - "sellVolume": 300, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:21.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 300, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -74593,27 +74446,6 @@ Array [ "timestamp": 2019-04-01T00:00:21.200Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:20.962Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:21.264024Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:20.874Z, - "sellVolume": 3550, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:21.000Z, - "trades": 3, - "type": "trade_bar", - "volume": 3550, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -78187,6 +78019,27 @@ Array [ "timestamp": 2019-04-01T00:00:22.130Z, "type": "trade", }, + Object { + "buyVolume": 480, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:20.962Z, + "exchange": "bitmex", + "high": 4089.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:22.150727Z, + "low": 4089, + "name": "trade_bar_1000ms", + "open": 4089.5, + "openTimestamp": 2019-04-01T00:00:20.054Z, + "sellVolume": 82348, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:21.000Z, + "trades": 18, + "type": "trade_bar", + "volume": 82828, + "vwap": 4089.0549934804653, + }, Object { "asks": Array [ Object { @@ -83853,27 +83706,6 @@ Array [ "timestamp": 2019-04-01T00:00:23.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 64, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:22.965Z, - "exchange": "bitmex", - "high": 4089.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:23.002029Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089.5, - "openTimestamp": 2019-04-01T00:00:22.130Z, - "sellVolume": 7000, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:23.000Z, - "trades": 2, - "type": "trade_bar", - "volume": 7064, - "vwap": 4089.004530011325, - }, Object { "asks": Array [ Object { @@ -85198,6 +85030,27 @@ Array [ "timestamp": 2019-04-01T00:00:23.130Z, "type": "trade", }, + Object { + "buyVolume": 64, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:22.965Z, + "exchange": "bitmex", + "high": 4089.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:23.160308Z, + "low": 4089, + "name": "trade_bar_1000ms", + "open": 4089.5, + "openTimestamp": 2019-04-01T00:00:22.130Z, + "sellVolume": 7000, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:23.000Z, + "trades": 2, + "type": "trade_bar", + "volume": 7064, + "vwap": 4089.004530011325, + }, Object { "asks": Array [], "bids": Array [ @@ -94625,27 +94478,6 @@ Array [ "timestamp": 2019-04-01T00:00:24.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 1045, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:23.925Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:24.008805Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:23.130Z, - "sellVolume": 62584, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:24.000Z, - "trades": 39, - "type": "trade_bar", - "volume": 63629, - "vwap": 4088.943453456757, - }, Object { "asks": Array [ Object { @@ -95701,6 +95533,27 @@ Array [ "timestamp": 2019-04-01T00:00:24.120Z, "type": "trade", }, + Object { + "buyVolume": 1045, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:23.925Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:24.294753Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4089, + "openTimestamp": 2019-04-01T00:00:23.130Z, + "sellVolume": 62584, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:24.000Z, + "trades": 39, + "type": "trade_bar", + "volume": 63629, + "vwap": 4088.943453456757, + }, Object { "asks": Array [ Object { @@ -104948,27 +104801,6 @@ Array [ "timestamp": 2019-04-01T00:00:25.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 32412, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:24.969Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:25.004706Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:24.120Z, - "sellVolume": 61622, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:25.000Z, - "trades": 61, - "type": "trade_bar", - "volume": 94034, - "vwap": 4088.67234191888, - }, Object { "asks": Array [ Object { @@ -108530,6 +108362,27 @@ Array [ "timestamp": 2019-04-01T00:00:25.294Z, "type": "trade", }, + Object { + "buyVolume": 32412, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:24.969Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:25.612722Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:24.120Z, + "sellVolume": 61622, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:25.000Z, + "trades": 61, + "type": "trade_bar", + "volume": 94034, + "vwap": 4088.67234191888, + }, Object { "amount": 201, "exchange": "bitmex", @@ -112009,27 +111862,6 @@ Array [ "timestamp": 2019-04-01T00:00:26.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 100, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:25.704Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:26.003595Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:25.294Z, - "sellVolume": 24350, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:26.000Z, - "trades": 33, - "type": "trade_bar", - "volume": 24450, - "vwap": 4088.502044989775, - }, Object { "asks": Array [ Object { @@ -112224,27 +112056,6 @@ Array [ "timestamp": 2019-04-01T00:00:26.032040Z, "type": "book_change", }, - Object { - "buyVolume": 89, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:25.781Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:26.032040Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:25.781Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:26.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 89, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -114246,6 +114057,27 @@ Array [ "timestamp": 2019-04-01T00:00:26.035Z, "type": "trade", }, + Object { + "buyVolume": 189, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:25.781Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:26.260249Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:25.294Z, + "sellVolume": 24350, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:26.000Z, + "trades": 34, + "type": "trade_bar", + "volume": 24539, + "vwap": 4088.5038510126737, + }, Object { "asks": Array [ Object { @@ -121412,27 +121244,6 @@ Array [ "timestamp": 2019-04-01T00:00:27.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 752, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:26.819Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:27.001010Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:26.035Z, - "sellVolume": 19379, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:27.000Z, - "trades": 8, - "type": "trade_bar", - "volume": 20131, - "vwap": 4088.518677661318, - }, Object { "asks": Array [ Object { @@ -125564,6 +125375,27 @@ Array [ "timestamp": 2019-04-01T00:00:27.548Z, "type": "trade", }, + Object { + "buyVolume": 752, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:26.819Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:27.573679Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:26.035Z, + "sellVolume": 19379, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:27.000Z, + "trades": 8, + "type": "trade_bar", + "volume": 20131, + "vwap": 4088.518677661318, + }, Object { "amount": 7627, "exchange": "bitmex", @@ -128881,27 +128713,6 @@ Array [ "timestamp": 2019-04-01T00:00:28.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:27.565Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:28.004274Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:27.548Z, - "sellVolume": 8150, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:28.000Z, - "trades": 3, - "type": "trade_bar", - "volume": 8150, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -128998,6 +128809,27 @@ Array [ "timestamp": 2019-04-01T00:00:28.005Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:27.565Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:28.043014Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:27.548Z, + "sellVolume": 8150, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:28.000Z, + "trades": 3, + "type": "trade_bar", + "volume": 8150, + "vwap": 4088.5, + }, Object { "amount": 16146, "exchange": "bitmex", @@ -135542,27 +135374,6 @@ Array [ "timestamp": 2019-04-01T00:00:29.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 3506, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:28.875Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:29.002733Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:28.005Z, - "sellVolume": 64920, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:29.000Z, - "trades": 11, - "type": "trade_bar", - "volume": 68426, - "vwap": 4088.5256189167862, - }, Object { "asks": Array [ Object { @@ -135746,6 +135557,27 @@ Array [ "timestamp": 2019-04-01T00:00:29.004Z, "type": "trade", }, + Object { + "buyVolume": 3506, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:28.875Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:29.031135Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:28.005Z, + "sellVolume": 64920, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:29.000Z, + "trades": 11, + "type": "trade_bar", + "volume": 68426, + "vwap": 4088.5256189167862, + }, Object { "asks": Array [ Object { @@ -142382,27 +142214,6 @@ Array [ "timestamp": 2019-04-01T00:00:30.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 306, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:29.550Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:30.005592Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:29.004Z, - "sellVolume": 101, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:30.000Z, - "trades": 6, - "type": "trade_bar", - "volume": 407, - "vwap": 4088.8759213759213, - }, Object { "asks": Array [], "bids": Array [ @@ -147847,6 +147658,27 @@ Array [ "timestamp": 2019-04-01T00:00:30.902Z, "type": "trade", }, + Object { + "buyVolume": 306, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:29.550Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:31.695872Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4089, + "openTimestamp": 2019-04-01T00:00:29.004Z, + "sellVolume": 101, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:30.000Z, + "trades": 6, + "type": "trade_bar", + "volume": 407, + "vwap": 4088.8759213759213, + }, Object { "asks": Array [ Object { @@ -147905,27 +147737,6 @@ Array [ "timestamp": 2019-04-01T00:00:31.700Z, "type": "book_snapshot", }, - Object { - "buyVolume": 89, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:30.902Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:31.726337Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:30.902Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:31.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 89, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -148180,6 +147991,27 @@ Array [ "timestamp": 2019-04-01T00:00:31.013Z, "type": "trade", }, + Object { + "buyVolume": 89, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:30.902Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:31.914699Z, + "low": 4089, + "name": "trade_bar_1000ms", + "open": 4089, + "openTimestamp": 2019-04-01T00:00:30.902Z, + "sellVolume": 0, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:31.000Z, + "trades": 1, + "type": "trade_bar", + "volume": 89, + "vwap": 4089, + }, Object { "asks": Array [ Object { @@ -148603,27 +148435,6 @@ Array [ "timestamp": 2019-04-01T00:00:32.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 298, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:31.013Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:32.033215Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:31.013Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:32.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 298, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -159810,6 +159621,27 @@ Array [ "timestamp": 2019-04-01T00:00:34.830Z, "type": "trade", }, + Object { + "buyVolume": 298, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:31.013Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:34.856750Z, + "low": 4089, + "name": "trade_bar_1000ms", + "open": 4089, + "openTimestamp": 2019-04-01T00:00:31.013Z, + "sellVolume": 0, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:32.000Z, + "trades": 1, + "type": "trade_bar", + "volume": 298, + "vwap": 4089, + }, Object { "asks": Array [ Object { @@ -160863,27 +160695,6 @@ Array [ "timestamp": 2019-04-01T00:00:35.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 182, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:34.830Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:35.018616Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:34.830Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:35.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 182, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -164275,6 +164086,27 @@ Array [ "timestamp": 2019-04-01T00:00:35.765Z, "type": "trade", }, + Object { + "buyVolume": 182, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:34.830Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:36.400525Z, + "low": 4089, + "name": "trade_bar_1000ms", + "open": 4089, + "openTimestamp": 2019-04-01T00:00:34.830Z, + "sellVolume": 0, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:35.000Z, + "trades": 1, + "type": "trade_bar", + "volume": 182, + "vwap": 4089, + }, Object { "asks": Array [ Object { @@ -164349,27 +164181,6 @@ Array [ "timestamp": 2019-04-01T00:00:36.400Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:35.765Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:36.409455Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:35.765Z, - "sellVolume": 114, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:36.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 114, - "vwap": 4088.5, - }, Object { "amount": 1221, "exchange": "bitmex", @@ -164407,27 +164218,6 @@ Array [ "timestamp": 2019-04-01T00:00:36.431379Z, "type": "book_change", }, - Object { - "buyVolume": 3448, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:35.862Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:36.431379Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:35.862Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:36.000Z, - "trades": 2, - "type": "trade_bar", - "volume": 3448, - "vwap": 4089, - }, Object { "asks": Array [], "bids": Array [ @@ -164595,27 +164385,6 @@ Array [ "timestamp": 2019-04-01T00:00:36.465163Z, "type": "book_snapshot", }, - Object { - "buyVolume": 252, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:35.953Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:36.465163Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:35.933Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:36.000Z, - "trades": 2, - "type": "trade_bar", - "volume": 252, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -166455,6 +166224,27 @@ Array [ "timestamp": 2019-04-01T00:00:36.825Z, "type": "trade", }, + Object { + "buyVolume": 3700, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:35.953Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:37.098173Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:35.765Z, + "sellVolume": 114, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:36.000Z, + "trades": 5, + "type": "trade_bar", + "volume": 3814, + "vwap": 4088.985055060304, + }, Object { "asks": Array [], "bids": Array [ @@ -166474,27 +166264,6 @@ Array [ "timestamp": 2019-04-01T00:00:37.098202Z, "type": "book_change", }, - Object { - "buyVolume": 26, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:36.825Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:37.098202Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:36.825Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:37.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 26, - "vwap": 4089, - }, Object { "asks": Array [], "bids": Array [ @@ -166610,27 +166379,6 @@ Array [ "timestamp": 2019-04-01T00:00:37.245767Z, "type": "book_change", }, - Object { - "buyVolume": 69, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:36.868Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:37.245767Z, - "low": 4089, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:36.868Z, - "sellVolume": 0, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:37.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 69, - "vwap": 4089, - }, Object { "asks": Array [ Object { @@ -177170,6 +176918,27 @@ Array [ "timestamp": 2019-04-01T00:00:41.050Z, "type": "trade", }, + Object { + "buyVolume": 95, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:36.868Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:41.699873Z, + "low": 4089, + "name": "trade_bar_1000ms", + "open": 4089, + "openTimestamp": 2019-04-01T00:00:36.825Z, + "sellVolume": 0, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:37.000Z, + "trades": 2, + "type": "trade_bar", + "volume": 95, + "vwap": 4089, + }, Object { "asks": Array [], "bids": Array [ @@ -177920,27 +177689,6 @@ Array [ "timestamp": 2019-04-01T00:00:42.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:41.050Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:42.027466Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:41.050Z, - "sellVolume": 13, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:42.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 13, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -178100,27 +177848,6 @@ Array [ "timestamp": 2019-04-01T00:00:42.402951Z, "type": "book_change", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:41.891Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:42.402951Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:41.891Z, - "sellVolume": 2500, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:42.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 2500, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -179250,6 +178977,27 @@ Array [ "timestamp": 2019-04-01T00:00:42.769Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:41.891Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:43.463202Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:41.050Z, + "sellVolume": 2513, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:42.000Z, + "trades": 2, + "type": "trade_bar", + "volume": 2513, + "vwap": 4088.5, + }, Object { "asks": Array [], "bids": Array [ @@ -179359,27 +179107,6 @@ Array [ "timestamp": 2019-04-01T00:00:43.400Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:42.769Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:43.463229Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:42.769Z, - "sellVolume": 2, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:43.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 2, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -180464,6 +180191,27 @@ Array [ "timestamp": 2019-04-01T00:00:43.418Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:42.769Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:44.318480Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:42.769Z, + "sellVolume": 2, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:43.000Z, + "trades": 1, + "type": "trade_bar", + "volume": 2, + "vwap": 4088.5, + }, Object { "asks": Array [], "bids": Array [ @@ -180534,27 +180282,6 @@ Array [ "timestamp": 2019-04-01T00:00:44.318483Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:43.418Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:44.318483Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:43.418Z, - "sellVolume": 2, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 2, - "vwap": 4088.5, - }, Object { "asks": Array [ Object { @@ -180721,27 +180448,6 @@ Array [ "timestamp": 2019-04-01T00:00:44.341408Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:43.513Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:44.341408Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:43.513Z, - "sellVolume": 1, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 1, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -180849,27 +180555,6 @@ Array [ "timestamp": 2019-04-01T00:00:44.341449Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:43.549Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:44.341449Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:43.549Z, - "sellVolume": 14000, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.000Z, - "trades": 2, - "type": "trade_bar", - "volume": 14000, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -181206,88 +180891,7 @@ Array [ ], "bids": Array [ Object { - "amount": 1576832, - "price": 4088.5, - }, - Object { - "amount": 394057, - "price": 4088, - }, - Object { - "amount": 377806, - "price": 4087.5, - }, - Object { - "amount": 399321, - "price": 4087, - }, - Object { - "amount": 373537, - "price": 4086.5, - }, - ], - "depth": 5, - "exchange": "bitmex", - "grouping": undefined, - "interval": 0, - "localTimestamp": 2019-04-01T00:00:44.341507Z, - "name": "book_snapshot_5_0ms", - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.341507Z, - "type": "book_snapshot", - }, - Object { - "amount": 9, - "exchange": "bitmex", - "id": "0ab9d078-79c8-be8f-a2ee-1419af154ada", - "localTimestamp": 2019-04-01T00:00:44.341510Z, - "price": 4088.5, - "side": "sell", - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:43.669Z, - "type": "trade", - }, - Object { - "asks": Array [], - "bids": Array [ - Object { - "amount": 1576823, - "price": 4088.5, - }, - ], - "exchange": "bitmex", - "isSnapshot": false, - "localTimestamp": 2019-04-01T00:00:44.341512Z, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.341512Z, - "type": "book_change", - }, - Object { - "asks": Array [ - Object { - "amount": 419080, - "price": 4089, - }, - Object { - "amount": 320657, - "price": 4089.5, - }, - Object { - "amount": 171901, - "price": 4090, - }, - Object { - "amount": 139656, - "price": 4090.5, - }, - Object { - "amount": 78038, - "price": 4091, - }, - ], - "bids": Array [ - Object { - "amount": 1576823, + "amount": 1576832, "price": 4088.5, }, Object { @@ -181311,32 +180915,92 @@ Array [ "exchange": "bitmex", "grouping": undefined, "interval": 0, - "localTimestamp": 2019-04-01T00:00:44.341512Z, + "localTimestamp": 2019-04-01T00:00:44.341507Z, "name": "book_snapshot_5_0ms", "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.341512Z, + "timestamp": 2019-04-01T00:00:44.341507Z, "type": "book_snapshot", }, Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:43.669Z, + "amount": 9, "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", + "id": "0ab9d078-79c8-be8f-a2ee-1419af154ada", + "localTimestamp": 2019-04-01T00:00:44.341510Z, + "price": 4088.5, + "side": "sell", + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:43.669Z, + "type": "trade", + }, + Object { + "asks": Array [], + "bids": Array [ + Object { + "amount": 1576823, + "price": 4088.5, + }, + ], + "exchange": "bitmex", + "isSnapshot": false, "localTimestamp": 2019-04-01T00:00:44.341512Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:43.669Z, - "sellVolume": 9, "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 9, - "vwap": 4088.5, + "timestamp": 2019-04-01T00:00:44.341512Z, + "type": "book_change", + }, + Object { + "asks": Array [ + Object { + "amount": 419080, + "price": 4089, + }, + Object { + "amount": 320657, + "price": 4089.5, + }, + Object { + "amount": 171901, + "price": 4090, + }, + Object { + "amount": 139656, + "price": 4090.5, + }, + Object { + "amount": 78038, + "price": 4091, + }, + ], + "bids": Array [ + Object { + "amount": 1576823, + "price": 4088.5, + }, + Object { + "amount": 394057, + "price": 4088, + }, + Object { + "amount": 377806, + "price": 4087.5, + }, + Object { + "amount": 399321, + "price": 4087, + }, + Object { + "amount": 373537, + "price": 4086.5, + }, + ], + "depth": 5, + "exchange": "bitmex", + "grouping": undefined, + "interval": 0, + "localTimestamp": 2019-04-01T00:00:44.341512Z, + "name": "book_snapshot_5_0ms", + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:44.341512Z, + "type": "book_snapshot", }, Object { "asks": Array [ @@ -181574,27 +181238,6 @@ Array [ "timestamp": 2019-04-01T00:00:44.341540Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:43.718Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:44.341540Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:43.718Z, - "sellVolume": 7500, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:44.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 7500, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -183842,6 +183485,27 @@ Array [ "timestamp": 2019-04-01T00:00:44.468Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:43.718Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:44.498950Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:43.418Z, + "sellVolume": 21512, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:44.000Z, + "trades": 6, + "type": "trade_bar", + "volume": 21512, + "vwap": 4088.5, + }, Object { "asks": Array [], "bids": Array [ @@ -186269,27 +185933,6 @@ Array [ "timestamp": 2019-04-01T00:00:45.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:44.468Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:45.003640Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:44.468Z, - "sellVolume": 89, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:45.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 89, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -189493,6 +189136,27 @@ Array [ "timestamp": 2019-04-01T00:00:48.960Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:44.468Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:49.180538Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:44.468Z, + "sellVolume": 89, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:45.000Z, + "trades": 1, + "type": "trade_bar", + "volume": 89, + "vwap": 4088.5, + }, Object { "amount": 41, "exchange": "bitmex", @@ -194430,27 +194094,6 @@ Array [ "timestamp": 2019-04-01T00:00:50.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 1000, - "close": 4089, - "closeTimestamp": 2019-04-01T00:00:49.624Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:50.025839Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:49.045Z, - "sellVolume": 347, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:50.000Z, - "trades": 5, - "type": "trade_bar", - "volume": 1347, - "vwap": 4088.871195248701, - }, Object { "asks": Array [], "bids": Array [ @@ -194894,6 +194537,27 @@ Array [ "timestamp": 2019-04-01T00:00:50.128Z, "type": "trade", }, + Object { + "buyVolume": 1000, + "close": 4089, + "closeTimestamp": 2019-04-01T00:00:49.624Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:50.165876Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:49.045Z, + "sellVolume": 347, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:50.000Z, + "trades": 5, + "type": "trade_bar", + "volume": 1347, + "vwap": 4088.871195248701, + }, Object { "asks": Array [ Object { @@ -198005,27 +197669,6 @@ Array [ "timestamp": 2019-04-01T00:00:51.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 3, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:50.766Z, - "exchange": "bitmex", - "high": 4089, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:51.002044Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4089, - "openTimestamp": 2019-04-01T00:00:50.128Z, - "sellVolume": 128, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:51.000Z, - "trades": 3, - "type": "trade_bar", - "volume": 131, - "vwap": 4088.5114503816794, - }, Object { "asks": Array [ Object { @@ -198141,6 +197784,27 @@ Array [ "timestamp": 2019-04-01T00:00:51.033Z, "type": "trade", }, + Object { + "buyVolume": 3, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:50.766Z, + "exchange": "bitmex", + "high": 4089, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:51.064496Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4089, + "openTimestamp": 2019-04-01T00:00:50.128Z, + "sellVolume": 128, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:51.000Z, + "trades": 3, + "type": "trade_bar", + "volume": 131, + "vwap": 4088.5114503816794, + }, Object { "asks": Array [], "bids": Array [ @@ -202666,27 +202330,6 @@ Array [ "timestamp": 2019-04-01T00:00:52.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:51.900Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:52.004876Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:51.033Z, - "sellVolume": 231119, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:52.000Z, - "trades": 32, - "type": "trade_bar", - "volume": 231119, - "vwap": 4088.5, - }, Object { "asks": Array [ Object { @@ -205234,6 +204877,27 @@ Array [ "timestamp": 2019-04-01T00:00:52.854Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:51.900Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:52.882254Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:51.033Z, + "sellVolume": 231119, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:52.000Z, + "trades": 32, + "type": "trade_bar", + "volume": 231119, + "vwap": 4088.5, + }, Object { "amount": 221, "exchange": "bitmex", @@ -205724,27 +205388,6 @@ Array [ "timestamp": 2019-04-01T00:00:53.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:52.854Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:53.041609Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:52.854Z, - "sellVolume": 12000, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:53.000Z, - "trades": 3, - "type": "trade_bar", - "volume": 12000, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -206766,6 +206409,27 @@ Array [ "timestamp": 2019-04-01T00:00:53.409Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:52.854Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:53.430376Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:52.854Z, + "sellVolume": 12000, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:53.000Z, + "trades": 3, + "type": "trade_bar", + "volume": 12000, + "vwap": 4088.5, + }, Object { "asks": Array [], "bids": Array [ @@ -208091,27 +207755,6 @@ Array [ "timestamp": 2019-04-01T00:00:54.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:53.755Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:54.012558Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:53.409Z, - "sellVolume": 1011, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:54.000Z, - "trades": 2, - "type": "trade_bar", - "volume": 1011, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -208161,6 +207804,27 @@ Array [ "timestamp": 2019-04-01T00:00:54.033Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:53.755Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:54.058293Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:53.409Z, + "sellVolume": 1011, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:54.000Z, + "trades": 2, + "type": "trade_bar", + "volume": 1011, + "vwap": 4088.5, + }, Object { "asks": Array [], "bids": Array [ @@ -210994,27 +210658,6 @@ Array [ "timestamp": 2019-04-01T00:00:55.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:54.922Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:55.016356Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:54.033Z, - "sellVolume": 10095, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:55.000Z, - "trades": 4, - "type": "trade_bar", - "volume": 10095, - "vwap": 4088.5, - }, Object { "asks": Array [ Object { @@ -211807,6 +211450,27 @@ Array [ "timestamp": 2019-04-01T00:00:55.306Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:54.922Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:55.502495Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:54.033Z, + "sellVolume": 10095, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:55.000Z, + "trades": 4, + "type": "trade_bar", + "volume": 10095, + "vwap": 4088.5, + }, Object { "amount": 211, "exchange": "bitmex", @@ -213193,27 +212857,6 @@ Array [ "timestamp": 2019-04-01T00:00:56.003183Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:55.841Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:56.003183Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:55.306Z, - "sellVolume": 347, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:56.000Z, - "trades": 4, - "type": "trade_bar", - "volume": 347, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -213584,6 +213227,27 @@ Array [ "timestamp": 2019-04-01T00:00:56.208Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:55.841Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:56.277245Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:55.306Z, + "sellVolume": 347, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:56.000Z, + "trades": 4, + "type": "trade_bar", + "volume": 347, + "vwap": 4088.5, + }, Object { "asks": Array [], "bids": Array [ @@ -214552,27 +214216,6 @@ Array [ "timestamp": 2019-04-01T00:00:57.000Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:56.208Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:57.019636Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:56.208Z, - "sellVolume": 1500, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:57.000Z, - "trades": 1, - "type": "trade_bar", - "volume": 1500, - "vwap": 4088.5, - }, Object { "asks": Array [], "bids": Array [ @@ -214663,6 +214306,27 @@ Array [ "timestamp": 2019-04-01T00:00:57.184Z, "type": "trade", }, + Object { + "buyVolume": 0, + "close": 4088.5, + "closeTimestamp": 2019-04-01T00:00:56.208Z, + "exchange": "bitmex", + "high": 4088.5, + "interval": 1000, + "kind": "time", + "localTimestamp": 2019-04-01T00:00:57.211572Z, + "low": 4088.5, + "name": "trade_bar_1000ms", + "open": 4088.5, + "openTimestamp": 2019-04-01T00:00:56.208Z, + "sellVolume": 1500, + "symbol": "XBTUSD", + "timestamp": 2019-04-01T00:00:57.000Z, + "trades": 1, + "type": "trade_bar", + "volume": 1500, + "vwap": 4088.5, + }, Object { "asks": Array [], "bids": Array [ @@ -216350,27 +216014,6 @@ Array [ "timestamp": 2019-04-01T00:00:58.053985Z, "type": "book_snapshot", }, - Object { - "buyVolume": 0, - "close": 4088.5, - "closeTimestamp": 2019-04-01T00:00:57.734Z, - "exchange": "bitmex", - "high": 4088.5, - "interval": 1000, - "kind": "time", - "localTimestamp": 2019-04-01T00:00:58.053985Z, - "low": 4088.5, - "name": "trade_bar_1000ms", - "open": 4088.5, - "openTimestamp": 2019-04-01T00:00:57.184Z, - "sellVolume": 26850, - "symbol": "XBTUSD", - "timestamp": 2019-04-01T00:00:58.000Z, - "trades": 4, - "type": "trade_bar", - "volume": 26850, - "vwap": 4088.5, - }, Object { "asks": Array [ Object {