UNPKG

gdax-sim

Version:

Simulator used to help unit test and back test various Coinbase-Pro (gdax) interactions.

11 lines 315 B
module.exports = { create: function (pair, time) { let hb = {}; hb.type = 'heartbeat'; hb.time = (new Date(time)).toISOString(); hb.product_id = pair; hb.sequence = Math.floor(Math.random() * 1000000000); hb.last_trade_id = 0; return hb; } }