michaelgrosner / tribeca

A high frequency, market making cryptocurrency trading platform in node.js
Other
3.99k stars 949 forks source link

disconnected from exchange! #132

Open jakoai opened 7 years ago

jakoai commented 7 years ago

HI!

I'm using latest OSX 10.12.5 and i tried to install tribeca with docker-compose. No build errors were shown, but Web UI connects to the HitBtc and then warns "Disconnected from exchange". screen shot 2017-06-11 at 13 52 03 HitBtc shows last use time correctly. Any ideas?

michaelgrosner commented 7 years ago

Can you share your logs (coming from stdout) from the run that was disconnected? Make sure not to include API keys, usernames, or passwords.

On Sun, Jun 11, 2017 at 10:28 AM jakoai notifications@github.com wrote:

HI!

I'm using latest OSX 10.12.5 and i tried to install tribeca with docker-compose. No build errors were shown, but Web UI connects to the HitBtc and then warns "Disconnected from exchange". [image: screen shot 2017-06-11 at 13 52 03] https://user-images.githubusercontent.com/18089358/27011723-cd5a4c52-4eca-11e7-8ed4-8c0111410a7f.png HitBtc shows last use time correctly. Any ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/michaelgrosner/tribeca/issues/132, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYt6jQRKsVobPs_pJG77K5CzHwiNhxCks5sC_mNgaJpZM4N2aL6 .

jakoai commented 7 years ago

Is it right log?

Attaching to tribecamaster2_tribeca-mongo_1, tribecamaster2_tribeca_1 tribeca_1 | warn: --minUptime not set. Defaulting to: 1000ms tribeca_1 | warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=3abf7dec3af3 tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] db version v3.4.4 tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] git version: 888390515874a9debd1b6c5d36559ca86b44babd tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] allocator: tcmalloc tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] modules: none tribeca_1 | {"name":"tribeca:config","hostname”:””,”pid":15,"level":30,"msg":"TradedPair = BTC/USD","time":"2017-06-11T14:12:59.292Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] build environment: tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"WebClientUsername = ”,”time":"2017-06-11T14:12:59.311Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] distmod: debian81 tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"WebClientPassword = ”,”time":"2017-06-11T14:12:59.311Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] distarch: x86_64 tribeca_1 | {"name":"tribeca:main","hostname":"","pid":15,"level":30,"msg":"Requiring authentication to web client","time":"2017-06-11T14:12:59.311Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] target_arch: x86_64 tribeca-mongo_1 | 2017-06-11T14:12:55.397+0000 I CONTROL [initandlisten] options: {} tribeca-mongo_1 | 2017-06-11T14:12:55.403+0000 I STORAGE [initandlisten] tribeca_1 | {"name":"tribeca:config","hostname":"**","pid":15,"level":30,"msg":"WebClientListenPort = 3000","time":"2017-06-11T14:12:59.319Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:55.403+0000 I STORAGE [initandlisten] WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine tribeca_1 | {"name":"tribeca:config","hostname":"**","pid":15,"level":30,"msg":"EXCHANGE = hitbtc","time":"2017-06-11T14:12:59.323Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:55.404+0000 I STORAGE [initandlisten] See http://dochub.mongodb.org/core/prodnotes-filesystem tribeca-mongo_1 | 2017-06-11T14:12:55.404+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=487M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"MongoDbUrl = mongodb://tribeca-mongo:27017/tribeca","time":"2017-06-11T14:12:59.324Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:57.791+0000 I CONTROL [initandlisten] tribeca_1 | {"name":"tribeca:main","hostname":"","pid":15,"level":30,"msg":"Listening to admins on *: 3000","time":"2017-06-11T14:12:59.344Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:57.792+0000 I CONTROL [initandlisten] WARNING: Access control is not enabled for the database. tribeca_1 | {"name":"persister:trades","hostname":"**","pid":15,"level":30,"selector":{"exchange":1,"pair":{"base":1,"quote":0}},"limit":10000,"nLoaded":0,"dbName":"trades","msg":"load docs completed","time":"2017-06-11T14:12:59.454Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:57.792+0000 I CONTROL [initandlisten] Read and write access to data and configuration is unrestricted. tribeca_1 | {"name":"persister:mt","hostname":"**","pid":15,"level":30,"selector":{"exchange":1,"pair":{"base":1,"quote":0}},"limit":100,"nLoaded":0,"dbName":"mt","msg":"load docs completed","time":"2017-06-11T14:12:59.455Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:57.792+0000 I CONTROL [initandlisten] tribeca_1 | {"name":"persister:osr","hostname":"","pid":15,"level":30,"selector":{"exchange":1,"pair":{"base":1,"quote":0},"source":{"$gte":2}},"limit":10000,"nLoaded":0,"dbName":"osr","msg":"load docs completed","time":"2017-06-11T14:12:59.455Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:58.372+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' tribeca-mongo_1 | 2017-06-11T14:12:59.091+0000 I INDEX [initandlisten] build index on: admin.system.version properties: { v: 2, key: { version: 1 }, name: "incompatible_with_version_32", ns: "admin.system.version" } tribeca_1 | {"name":"persister:msg","hostname":"","pid":15,"level":30,"selector":{"exchange":1,"pair":{"base":1,"quote":0}},"limit":50,"nLoaded":0,"dbName":"msg","msg":"load docs completed","time":"2017-06-11T14:12:59.457Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:59.091+0000 I INDEX [initandlisten] building index using bulk method; build may temporarily use up to 500 megabytes of RAM tribeca-mongo_1 | 2017-06-11T14:12:59.093+0000 I INDEX [initandlisten] build index done. scanned 0 total records. 0 secs tribeca-mongo_1 | 2017-06-11T14:12:59.094+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.4 tribeca-mongo_1 | 2017-06-11T14:12:59.094+0000 I NETWORK [thread1] waiting for connections on port 27017 tribeca-mongo_1 | 2017-06-11T14:12:59.350+0000 I NETWORK [thread1] connection accepted from 172.18.0.3:41988 #1 (1 connection now open) tribeca-mongo_1 | 2017-06-11T14:12:59.361+0000 I NETWORK [conn1] received client metadata from 172.18.0.3:41988 conn1: { driver: { name: "nodejs", version: "2.2.25" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.9.27-moby" }, platform: "Node.js v7.9.0, LE, mongodb-core: 2.1.9" } tribeca_1 | {"name":"persister:rfv","hostname":"","pid":15,"level":30,"selector":{"exchange":1,"pair":{"base":1,"quote":0}},"limit":50,"nLoaded":0,"dbName":"rfv","msg":"load docs completed","time":"2017-06-11T14:12:59.458Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:59.443+0000 I NETWORK [thread1] connection accepted from 172.18.0.3:41990 #2 (2 connections now open) tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcPullUrl = http://demo-api.hitbtc.com","time":"2017-06-11T14:12:59.461Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:59.447+0000 I NETWORK [thread1] connection accepted from 172.18.0.3:41992 #3 (3 connections now open) tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcOrderDestination = HitBtc","time":"2017-06-11T14:12:59.575Z","v":0} tribeca-mongo_1 | 2017-06-11T14:12:59.452+0000 I NETWORK [thread1] connection accepted from 172.18.0.3:41994 #4 (4 connections now open) tribeca-mongo_1 | 2017-06-11T14:12:59.456+0000 I NETWORK [thread1] connection accepted from 172.18.0.3:41996 #5 (5 connections now open) tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcApiKey = ”,”time":"2017-06-11T14:12:59.579Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcSecret = ”,”time":"2017-06-11T14:12:59.579Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcOrderEntryUrl = ws://demo-api.hitbtc.com:8080","time":"2017-06-11T14:12:59.579Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcApiKey = ”,”time":"2017-06-11T14:12:59.590Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"*","pid":15,"level":30,"msg":"HitBtcSecret = ”,”time":"2017-06-11T14:12:59.590Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcPullUrl = http://demo-api.hitbtc.com","time":"2017-06-11T14:12:59.590Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcPullUrl = http://demo-api.hitbtc.com","time":"2017-06-11T14:12:59.594Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcMarketDataUrl = ws://demo-api.hitbtc.com:80","time":"2017-06-11T14:12:59.609Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcSocketIoUrl = https://demo-api.hitbtc.com:8081","time":"2017-06-11T14:12:59.612Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcPullUrl = http://demo-api.hitbtc.com","time":"2017-06-11T14:12:59.635Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"HitBtcPullUrl = http://demo-api.hitbtc.com","time":"2017-06-11T14:12:59.636Z","v":0} tribeca_1 | {"name":"tribeca:config","hostname":"","pid":15,"level":30,"msg":"TRIBECA_MODE = dev","time":"2017-06-11T14:12:59.637Z","v":0} tribeca_1 | {"name":"tribeca:main","hostname":"","pid":15,"level":30,"pair":"BTC/USD","minTick":0.01,"hasSelfTradePrevention":false,"msg":"using the following exchange details","time":"2017-06-11T14:12:59.644Z","v":0} tribeca_1 | {"name":"tribeca:qpr","hostname":"","pid":15,"level":30,"msg":"Starting parameter: QuotingParameters {\n width: 0.3,\n size: 0.05,\n mode: 0,\n fvModel: 0,\n targetBasePosition: 3,\n positionDivergence: 0.8,\n ewmaProtection: false,\n autoPositionMode: 0,\n aggressivePositionRebalancing: false,\n tradesPerMinute: 2.5,\n tradeRateSeconds: 300,\n longEwma: 0.095,\n shortEwma: 0.19,\n quotingEwma: 0.095,\n aprMultiplier: 3,\n stepOverSize: 0.1 }","time":"2017-06-11T14:12:59.651Z","v":0} tribeca_1 | {"name":"tribeca:active","hostname":"","pid":15,"level":30,"msg":"Starting saved quoting state: false","time":"2017-06-11T14:12:59.656Z","v":0} tribeca_1 | {"name":"ewma","hostname":"","pid":15,"level":30,"msg":"Unable to compute EMWA value","time":"2017-06-11T14:12:59.660Z","v":0} tribeca_1 | {"name":"mt:broker","hostname":"","pid":15,"level":30,"msg":"loaded 0 market trades","time":"2017-06-11T14:12:59.700Z","v":0} tribeca_1 | {"name":"tribeca:main","hostname":"","pid":15,"level":30,"msg":"Event looped blocked for 105.302ms","time":"2017-06-11T14:12:59.906Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:12:59.909Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 10ms, failed 1 times","time":"2017-06-11T14:12:59.910Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:12:59.921Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:00.002Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 2 times","time":"2017-06-11T14:13:00.003Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher pa","time":"2017-06-11T14:13:04.150Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher q","time":"2017-06-11T14:13:04.151Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher fv","time":"2017-06-11T14:13:04.152Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher md","time":"2017-06-11T14:13:04.152Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher osr","time":"2017-06-11T14:13:04.153Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher t","time":"2017-06-11T14:13:04.153Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher ac","time":"2017-06-11T14:13:04.154Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher qp-sub","time":"2017-06-11T14:13:04.154Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher mt","time":"2017-06-11T14:13:04.155Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher msg","time":"2017-06-11T14:13:04.155Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher qs","time":"2017-06-11T14:13:04.156Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher tbp","time":"2017-06-11T14:13:04.156Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher tsv","time":"2017-06-11T14:13:04.157Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher pos","time":"2017-06-11T14:13:04.157Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Publisher ec","time":"2017-06-11T14:13:04.157Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Receiver ac","time":"2017-06-11T14:13:04.158Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Receiver qp-sub","time":"2017-06-11T14:13:04.158Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Receiver sno","time":"2017-06-11T14:13:04.159Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Receiver cxl","time":"2017-06-11T14:13:04.159Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA connected for Receiver cao","time":"2017-06-11T14:13:04.159Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic pa","time":"2017-06-11T14:13:04.180Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:05.003Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:05.115Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 3 times","time":"2017-06-11T14:13:05.116Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:10.119Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:10.210Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 4 times","time":"2017-06-11T14:13:10.212Z","v":0} tribeca-mongo_1 | 2017-06-11T14:13:10.720+0000 I COMMAND [conn2] command tribeca.tsv command: insert { insert: "tsv", documents: [ { buy: 0, sell: 0, combined: 0, buyPing: 0, sellPong: 0, time: new Date(1497190380656), exchange: 1, pair: { base: 1, quote: 0 }, _id: ObjectId('593d4ff5b296a6000f737a98') } ], ordered: true } ninserted:1 keysInserted:1 numYields:0 reslen:44 locks:{ Global: { acquireCount: { r: 3, w: 3 } }, Database: { acquireCount: { w: 2, W: 1 }, acquireWaitCount: { w: 1, W: 1 }, timeAcquiringMicros: { w: 466341, W: 404910 } }, Collection: { acquireCount: { w: 2 } } } protocol:op_query 1298ms tribeca-mongo_1 | 2017-06-11T14:13:10.721+0000 I COMMAND [conn1] command tribeca.msg command: insert { insert: "msg", documents: 4, ordered: true } ninserted:4 keysInserted:4 numYields:0 reslen:44 locks:{ Global: { acquireCount: { r: 3, w: 3 } }, Database: { acquireCount: { w: 2, W: 1 }, acquireWaitCount: { w: 2, W: 1 }, timeAcquiringMicros: { w: 893632, W: 75 } }, Collection: { acquireCount: { w: 2 } } } protocol:op_query 1299ms tribeca-mongo_1 | 2017-06-11T14:13:10.723+0000 I COMMAND [conn5] command tribeca.mt command: insert { insert: "mt", documents: 100, ordered: true } ninserted:100 keysInserted:100 numYields:0 reslen:44 locks:{ Global: { acquireCount: { r: 4, w: 4 } }, Database: { acquireCount: { w: 3, W: 1 }, acquireWaitCount: { w: 1 }, timeAcquiringMicros: { w: 831525 } }, Collection: { acquireCount: { w: 3 } } } protocol:op_query 1302ms tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:15.213Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:15.297Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 5 times","time":"2017-06-11T14:13:15.298Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:20.301Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:20.426Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 6 times","time":"2017-06-11T14:13:20.428Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:25.430Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:25.521Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 7 times","time":"2017-06-11T14:13:25.523Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:8080","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (522)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:29.819Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:8080","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 10ms, failed 1 times","time":"2017-06-11T14:13:29.821Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:8080","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:29.831Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:30.524Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:30.608Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 8 times","time":"2017-06-11T14:13:30.609Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:35.612Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:35.699Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 9 times","time":"2017-06-11T14:13:35.701Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic tbp","time":"2017-06-11T14:13:38.591Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic tsv","time":"2017-06-11T14:13:38.593Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic msg","time":"2017-06-11T14:13:38.596Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic t","time":"2017-06-11T14:13:38.599Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic mt","time":"2017-06-11T14:13:38.600Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic osr","time":"2017-06-11T14:13:38.611Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic pos","time":"2017-06-11T14:13:38.612Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic md","time":"2017-06-11T14:13:38.613Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic q","time":"2017-06-11T14:13:38.614Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic qs","time":"2017-06-11T14:13:38.617Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic fv","time":"2017-06-11T14:13:38.618Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic ec","time":"2017-06-11T14:13:38.619Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic ac","time":"2017-06-11T14:13:38.620Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic qp-sub","time":"2017-06-11T14:13:38.621Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic ec","time":"2017-06-11T14:13:38.622Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic ac","time":"2017-06-11T14:13:38.623Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA asking for snapshot on topic qp-sub","time":"2017-06-11T14:13:38.624Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:40.702Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:40.803Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 10 times","time":"2017-06-11T14:13:40.804Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:45.805Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:45.889Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 11 times","time":"2017-06-11T14:13:45.890Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:50.892Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:50.988Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 12 times","time":"2017-06-11T14:13:50.989Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:13:55.991Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:56.076Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 13 times","time":"2017-06-11T14:13:56.077Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher pa","time":"2017-06-11T14:13:56.713Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher q","time":"2017-06-11T14:13:56.714Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher fv","time":"2017-06-11T14:13:56.716Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher md","time":"2017-06-11T14:13:56.716Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher osr","time":"2017-06-11T14:13:56.717Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher t","time":"2017-06-11T14:13:56.717Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher ac","time":"2017-06-11T14:13:56.718Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher qp-sub","time":"2017-06-11T14:13:56.718Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher mt","time":"2017-06-11T14:13:56.718Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher msg","time":"2017-06-11T14:13:56.719Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher qs","time":"2017-06-11T14:13:56.719Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher tbp","time":"2017-06-11T14:13:56.719Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher tsv","time":"2017-06-11T14:13:56.720Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher pos","time":"2017-06-11T14:13:56.722Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#-UM_qogjWJN0HXDBAAAA disconnected for Publisher ec","time":"2017-06-11T14:13:56.722Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher pa","time":"2017-06-11T14:13:57.054Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher q","time":"2017-06-11T14:13:57.055Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher fv","time":"2017-06-11T14:13:57.056Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher md","time":"2017-06-11T14:13:57.057Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher osr","time":"2017-06-11T14:13:57.064Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher t","time":"2017-06-11T14:13:57.066Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher ac","time":"2017-06-11T14:13:57.068Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher qp-sub","time":"2017-06-11T14:13:57.070Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher mt","time":"2017-06-11T14:13:57.072Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher msg","time":"2017-06-11T14:13:57.072Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher qs","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher tbp","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher tsv","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher pos","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Publisher ec","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Receiver ac","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Receiver qp-sub","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Receiver sno","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Receiver cxl","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB connected for Receiver cao","time":"2017-06-11T14:13:57.073Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic pa","time":"2017-06-11T14:13:57.395Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic tbp","time":"2017-06-11T14:13:57.471Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic tsv","time":"2017-06-11T14:13:57.472Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic msg","time":"2017-06-11T14:13:57.473Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic t","time":"2017-06-11T14:13:57.479Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic mt","time":"2017-06-11T14:13:57.479Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic osr","time":"2017-06-11T14:13:57.490Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic pos","time":"2017-06-11T14:13:57.490Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic md","time":"2017-06-11T14:13:57.490Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic q","time":"2017-06-11T14:13:57.491Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic qs","time":"2017-06-11T14:13:57.491Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic fv","time":"2017-06-11T14:13:57.492Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic ec","time":"2017-06-11T14:13:57.523Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic ac","time":"2017-06-11T14:13:57.524Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#_Gz2vYDMPgRHzI6nAAAB asking for snapshot on topic qp-sub","time":"2017-06-11T14:13:57.525Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher pa","time":"2017-06-11T14:13:58.142Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher q","time":"2017-06-11T14:13:58.142Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher fv","time":"2017-06-11T14:13:58.143Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher md","time":"2017-06-11T14:13:58.143Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher osr","time":"2017-06-11T14:13:58.143Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher t","time":"2017-06-11T14:13:58.143Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher ac","time":"2017-06-11T14:13:58.144Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher qp-sub","time":"2017-06-11T14:13:58.144Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher mt","time":"2017-06-11T14:13:58.144Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher msg","time":"2017-06-11T14:13:58.144Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher qs","time":"2017-06-11T14:13:58.144Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher tbp","time":"2017-06-11T14:13:58.144Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher tsv","time":"2017-06-11T14:13:58.145Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher pos","time":"2017-06-11T14:13:58.145Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Publisher ec","time":"2017-06-11T14:13:58.145Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Receiver ac","time":"2017-06-11T14:13:58.146Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Receiver qp-sub","time":"2017-06-11T14:13:58.147Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Receiver sno","time":"2017-06-11T14:13:58.147Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Receiver cxl","time":"2017-06-11T14:13:58.147Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC connected for Receiver cao","time":"2017-06-11T14:13:58.147Z","v":0} tribeca_1 | {"name":"tribeca:messaging","hostname":"","pid":15,"level":30,"msg":"socket /#tviJV-Wgfci_3dwDAAAC asking for snapshot on topic pa","time":"2017-06-11T14:13:58.170Z","v":0} tribeca_1 | {"name":"ewma","hostname":"","pid":15,"level":30,"msg":"Unable to compute EMWA value","time":"2017-06-11T14:13:59.662Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:8080","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (522)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:13:59.971Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:8080","hostname":"","pid":15,"level":30,"msg":"will try a reconnect in 5000ms, failed 2 times","time":"2017-06-11T14:13:59.973Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"reconnection begun","time":"2017-06-11T14:14:01.078Z","v":0} tribeca_1 | {"name":"ws:ws://demo-api.hitbtc.com:80","hostname":"","pid":15,"level":30,"msg":"socket error Error: unexpected server response (200)\n at ClientRequest.response (/tribeca/node_modules/ws/lib/WebSocket.js:694:15)\n at Object.onceWrapper (events.js:293:19)\n at emitOne (events.js:96:13)\n at ClientRequest.emit (events.js:191:7)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\n at Socket.socketOnData (_http_client.js:411:20)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:191:7)\n at readableAddChunk (_stream_readable.js:178:18)","time":"2017-06-11T14:14:01.155Z","v":0} ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

rscott7 commented 7 years ago

Maybe linked to 'ws' protocol being applied twice to the URI in the response? i.e. ws:ws://demo-api.hitbtc.com:80

jakoai commented 7 years ago

Well these are my env file configurations:

General config properties. Properties with NULL should be replaced with your own exchange account information.

TRIBECA_MODE=dev EXCHANGE=hitbtc TradedPair=BTC/USD WebClientUsername=user WebClientPassword=password WebClientListenPort=3000 MongoDbUrl=mongodb://tribeca-mongo:27017/tribeca

NullGatewayTick=100

DEV

HitBtc

HitBtcPullUrl=http://demo-api.hitbtc.com HitBtcOrderEntryUrl=ws://demo-api.hitbtc.com:8080 HitBtcMarketDataUrl=ws://demo-api.hitbtc.com:80 HitBtcSocketIoUrl=https://demo-api.hitbtc.com:8081 HitBtcApiKey= HitBtcSecret= HitBtcOrderDestination=HitBtc

Coinbase

Use GDAX keys

CoinbaseRestUrl=https://api-public.sandbox.gdax.com CoinbaseWebsocketUrl=wss://ws-feed-public.sandbox.gdax.com CoinbasePassphrase=NULL CoinbaseApiKey=NULL CoinbaseSecret=NULL CoinbaseOrderDestination=Coinbase

OkCoin

OkCoinWsUrl=wss://real.okcoin.com:10440/websocket/okcoinapi OkCoinHttpUrl=https://www.okcoin.com/api/v1/ OkCoinApiKey=NULL OkCoinSecretKey=NULL OkCoinOrderDestination=OkCoin

Bitfinex

BitfinexHttpUrl=https://api.bitfinex.com/v1 BitfinexKey=NULL BitfinexSecret=NULL BitfinexOrderDestination=Bitfinex

PROD - values provided for reference.

HitBtc

HitBtcPullUrl=http://api.hitbtc.com

HitBtcOrderEntryUrl=wss://api.hitbtc.com:8080

HitBtcMarketDataUrl=ws://api.hitbtc.com:80

HitBtcSocketIoUrl=https://api.hitbtc.com:8081

Coinbase

CoinbaseRestUrl=https://api.gdax.com

CoinbaseWebsocketUrl=wss://ws-feed.gdax.com

zlwolf236 commented 7 years ago

+1, i'm having the same issue as well for some reason

zlwolf236 commented 7 years ago

when i'm pulling the repository it shows this error

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v57-darwin-x64.tar.gz

node-pre-gyp ERR! Pre-built binaries not found for v8-debug@1.0.1 and node@8.1.2 (node-v57 ABI) (falling back to source compile with node-gyp)

jakoai commented 7 years ago

I don't have any error like this. Only fsevents warning:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/forever/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm info ok

npm v4.2.0 node v7.9.0

sandoche commented 6 years ago

I am also having the same issue.

sandoche commented 6 years ago

Solved: it was my bad, I was using my production keys with Gdax sandbox API.

zilions commented 6 years ago

Also having the same issue - in both prod and dev with HitBTC. I can see on HitBTC that the key is being used though.

finom commented 6 years ago

Same here...

My config:

{
    "TRIBECA_MODE": "prod",
    "EXCHANGE": "hitbtc",
    "TradedPair": "BTC/USD",
    "MongoDbUrl": "mongodb://localhost:27017/tribeca",
    "WebClientUsername": "NULL",
    "WebClientPassword": "NULL",
    "WebClientListenPort": "3000",
    "ShowAllOrders": "false",

    "HitBtcPullUrl": "http://api.hitbtc.com",
    "HitBtcOrderEntryUrl": "wss://api.hitbtc.com:8080",
    "HitBtcMarketDataUrl": "ws://api.hitbtc.com:80",
    "HitBtcSocketIoUrl": "https://api.hitbtc.com:8081",
    "HitBtcApiKey": "xxxx",
    "HitBtcSecret": "yyyy",
    "HitBtcOrderDestination": "HitBtc"
}

image

Fr00t commented 6 years ago

I'm having this issue aswell. Are all of us trying HitBTC? Could their API have changed or something?

I'm still recieving the orderbook from the server.

cawmit commented 6 years ago

This was posted in june, looking at https://github.com/hitbtc-com/hitbtc-api/commits/master that's around the time they released api v2.... :)

finom commented 6 years ago

Found out that Gekko works much better.

Camille92 commented 6 years ago

Gekko is not doing the same stuff, but fair if you're happy.

Le 18 janv. 2018 11:18, "Andrey Gubanov" notifications@github.com a écrit :

Found out that Gekko works much better.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/michaelgrosner/tribeca/issues/132#issuecomment-358601899, or mute the thread https://github.com/notifications/unsubscribe-auth/AGizFlNAGb4IUlfU1U3DdHFzwcc8aKNBks5tLxp-gaJpZM4N2aL6 .