Changes between Version 5 and Version 6 of Collector modules


Ignore:
Timestamp:
May 16, 2016, 8:40:20 PM (8 years ago)
Author:
Genuise
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Collector modules

    v5 v6  
    44* collector/bin/collector.js - entry point for collector process
    55* server/lib/config.js - constants {{{enabledCurrencies}}}, {{{streamAPIModes}}} the latter intended to be used in {{{exchangeAPIObj.init}}} method
    6 * server/lib/depthAPI.js - all actual configuration of exchange objects defined here. Every exchange is represented by its exchange object instance. Module is responsible for creating instances and provides central storage for them in the form of collection(hash object). Orderbooks accessed from collector structures through public method {{{getCurrentBook2}}} passing exchange tickers of type string as a parameter. While state of the orderbooks has to be requested outside, trades on the other hand are broadcasted from inside. For this module exports {{{events}}} field of instance {{{require('events').EventEmitter}}}. This event emitter instance is a central point which connects trades publisher - every exchange object - with subscriber(s) on the collector level.
     6* server/lib/depthAPI.js - all actual configuration of exchange objects defined here. Every exchange is represented by its exchange object instance. Module is responsible for creating instances and provides central storage for them in the form of collection(hash object). Orderbooks accessed from collector structures through exported method {{{getCurrentBook2}}} passing exchange tickers of type string as a parameter. While state of the orderbooks has to be requested outside, trades on the other hand are broadcasted from inside. For this module exports {{{events}}} field of instance {{{require('events').EventEmitter}}}. This event emitter instance is a central point which connects trades publisher - every exchange object - with subscriber(s) on the collector level.
    77
    88