@icgio/icg-exchanges 1.40.41 → 1.40.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,7 +197,6 @@ class CoinbaseFixMd {
|
|
|
197
197
|
target_comp_id: 'Coinbase',
|
|
198
198
|
heartbeat_interval: 30,
|
|
199
199
|
build_logon_fields: (seq, time) => build_logon_fields(options.api_key, options.secret_key, options.passphrase, seq, time),
|
|
200
|
-
on_inbound_message: options.on_inbound_message,
|
|
201
200
|
on_market_data_batch: this.on_batch ? (batch) => this._handle_md_batch(batch) : undefined,
|
|
202
201
|
on_market_data_incremental: this.on_batch ? undefined : (fields) => this._handle_md(fields),
|
|
203
202
|
on_market_data_snapshot: (fields) => this._handle_md(fields),
|
|
@@ -603,9 +603,6 @@ module.exports = class Coinbase extends ExchangeBase {
|
|
|
603
603
|
secret_key: Array.isArray(secret_key) ? secret_key[0] : secret_key,
|
|
604
604
|
passphrase: this.passphrase,
|
|
605
605
|
symbols,
|
|
606
|
-
on_inbound_message: () => {
|
|
607
|
-
this.ws.market.last_message_time = Date.now()
|
|
608
|
-
},
|
|
609
606
|
on_status: (status) => {
|
|
610
607
|
console.log('[coinbase FIX MD] status:', status)
|
|
611
608
|
if (status === 'ready') {
|
|
@@ -82,7 +82,6 @@ module.exports = class ExchangeFix {
|
|
|
82
82
|
this.on_market_data_batch = options.on_market_data_batch // called once per data chunk with array of fields
|
|
83
83
|
this.on_market_data_snapshot = options.on_market_data_snapshot
|
|
84
84
|
this.on_market_data_request_reject = options.on_market_data_request_reject
|
|
85
|
-
this.on_inbound_message = options.on_inbound_message || (() => {})
|
|
86
85
|
this.on_status_change = options.on_status_change || (() => {})
|
|
87
86
|
|
|
88
87
|
this.socket = null
|
|
@@ -140,7 +139,6 @@ module.exports = class ExchangeFix {
|
|
|
140
139
|
this.recv_buffer = remaining
|
|
141
140
|
let md_batch = null
|
|
142
141
|
for (let msg of messages) {
|
|
143
|
-
this.on_inbound_message(msg)
|
|
144
142
|
let t = msg.msg_type
|
|
145
143
|
if (t === 'A') {
|
|
146
144
|
this._set_status('ready')
|