UNPKG

@nodeswork/applet

Version:
46 lines (44 loc) 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const base_accounts_1 = require("../base-accounts"); class BaseDigitalCurrencyAccount extends base_accounts_1.BaseAccount { constructor($request) { super($request); this.$request = $request; } static $acceptCurrencies() { return []; } static $accept(name) { return this.$acceptCurrencies().indexOf(name) >= 0; } static $acceptTradings() { return []; } static $acceptTrading(pair) { return this.$acceptTradings().indexOf(pair) >= 0; } static async $getDepths(pairs) { return {}; } } exports.BaseDigitalCurrencyAccount = BaseDigitalCurrencyAccount; var dc; (function (dc) { function pairToString(pair) { return pair[0] + '_' + pair[1]; } dc.pairToString = pairToString; function stringToPair(pairStr) { return pairStr.split('_'); } dc.stringToPair = stringToPair; let currencies; (function (currencies) { currencies.BTC = 'BTC'; currencies.LTC = 'LTC'; currencies.ETH = 'ETH'; currencies.USD = 'USD'; })(currencies = dc.currencies || (dc.currencies = {})); })(dc = exports.dc || (exports.dc = {})); //# sourceMappingURL=def.js.map