@machinemode/cryptopia
Version:
Node wrapper for Cryptopia's CLient API
137 lines • 3.93 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Market = (function () {
function Market(market) {
this.TradePairId = market.TradePairId;
this.Label = market.Label;
this.AskPrice = market.AskPrice;
this.BidPrice = market.BidPrice;
this.Low = market.Low;
this.High = market.High;
this.Volume = market.Volume;
this.LastPrice = market.LastPrice;
this.BuyVolume = market.BuyVolume;
this.SellVolume = market.SellVolume;
this.Change = market.Change;
this.Open = market.Open;
this.Close = market.Close;
this.BaseVolume = market.BaseVolume;
this.BaseBuyVolume = market.BaseBuyVolume;
this.BaseSellVolume = market.BaseSellVolume;
}
Object.defineProperty(Market.prototype, "tradePairId", {
get: function () {
return this.TradePairId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "label", {
get: function () {
return this.Label;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "askPrice", {
get: function () {
return this.AskPrice;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "bidPrice", {
get: function () {
return this.BidPrice;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "low", {
get: function () {
return this.Low;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "high", {
get: function () {
return this.High;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "volume", {
get: function () {
return this.Volume;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "lastPrice", {
get: function () {
return this.LastPrice;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "buyVolume", {
get: function () {
return this.BuyVolume;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "sellVolume", {
get: function () {
return this.SellVolume;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "change", {
get: function () {
return this.Change;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "open", {
get: function () {
return this.Open;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "close", {
get: function () {
return this.Close;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "baseVolume", {
get: function () {
return this.BaseVolume;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "baseBuyVolume", {
get: function () {
return this.BaseBuyVolume;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Market.prototype, "baseSellVolume", {
get: function () {
return this.BaseSellVolume;
},
enumerable: true,
configurable: true
});
return Market;
}());
exports.default = Market;
//# sourceMappingURL=Market.js.map