@machinemode/cryptopia
Version:
Node wrapper for Cryptopia's CLient API
31 lines • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var MarketOrder_1 = require("./MarketOrder");
var MarketOrders = (function () {
function MarketOrders(marketOrders) {
var _this = this;
this.Buy = [];
this.Sell = [];
marketOrders.Buy
.forEach(function (marketOrder) { return _this.Buy.push(new MarketOrder_1.default(marketOrder)); });
marketOrders.Sell
.forEach(function (marketOrder) { return _this.Sell.push(new MarketOrder_1.default(marketOrder)); });
}
Object.defineProperty(MarketOrders.prototype, "buy", {
get: function () {
return this.Buy;
},
enumerable: true,
configurable: true
});
Object.defineProperty(MarketOrders.prototype, "sell", {
get: function () {
return this.Sell;
},
enumerable: true,
configurable: true
});
return MarketOrders;
}());
exports.default = MarketOrders;
//# sourceMappingURL=MarketOrders.js.map