Changes between Version 3 and Version 4 of Collector modules


Ignore:
Timestamp:
May 16, 2016, 8:31:42 PM (9 years ago)
Author:
Genuise
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Collector modules

    v3 v4  
    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 hash storage for them. Orderbooks accessed from collector structures through public method by exchange string tickers. Trades on the other hand broadcasted thru central event emitter object defined in {{events}} module. Trades messages source is every exchange instance. Collector structures register listeners for trades messages.
     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. Trades on the other hand broadcasted through central event emitter object defined in {{{events}}} module. Trades messages source is every exchange instance. Collector structures register listeners for trades messages.
    77
    88