UNPKG

@machinemode/cryptopia

Version:

Node wrapper for Cryptopia's CLient API

81 lines 2.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TradeHistory = (function () { function TradeHistory(tradeHistory) { this.TradeId = tradeHistory.TradeId; this.TradePairId = tradeHistory.TradePairId; this.Market = tradeHistory.Market; this.Type = tradeHistory.Type; this.Rate = tradeHistory.Rate; this.Amount = tradeHistory.Amount; this.Total = tradeHistory.Total; this.Fee = tradeHistory.Fee; this.TimeStamp = Date.parse(tradeHistory.TimeStamp); } Object.defineProperty(TradeHistory.prototype, "tradeId", { get: function () { return this.TradeId; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "tradePairId", { get: function () { return this.TradePairId; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "market", { get: function () { return this.Market; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "type", { get: function () { return this.Type; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "rate", { get: function () { return this.Rate; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "amount", { get: function () { return this.Amount; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "total", { get: function () { return this.Total; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "fee", { get: function () { return this.Fee; }, enumerable: true, configurable: true }); Object.defineProperty(TradeHistory.prototype, "timeStamp", { get: function () { return this.TimeStamp; }, enumerable: true, configurable: true }); return TradeHistory; }()); exports.default = TradeHistory; //# sourceMappingURL=TradeHistory.js.map