UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

29 lines (23 loc) 481 B
'use strict' const Model = require('../model') const BOOL_FIELDS = [] const FIELDS = { id: 0, symbol: 1, mtsCreate: 2, offerID: 3, amount: 4, rate: 5, period: 6, maker: 7 } const FIELD_KEYS = Object.keys(FIELDS) class FundingTrade extends Model { constructor (data = {}) { super(data, FIELDS, BOOL_FIELDS, FIELD_KEYS) } static unserialize (arr) { return super.unserialize(arr, FIELDS, BOOL_FIELDS, FIELD_KEYS) } } module.exports = FundingTrade