IPC removed, replaced by WS
This commit is contained in:
1 parent
ba4217fb24
commit
656c193511
503 files changed
+28128
-34498
No files matched your search
+7
@@ -91,6 +91,7 @@ module.exports = class _1btcxe extends Exchange {
|
||||
}
|
||||
|
||||
async fetchBalance (params = {}) {
|
||||
await this.loadMarkets ();
|
||||
const response = await this.privatePostBalancesAndInfo (params);
|
||||
const balance = response['balances-and-info'];
|
||||
const result = { 'info': balance };
|
||||
@@ -108,6 +109,7 @@ module.exports = class _1btcxe extends Exchange {
|
||||
}
|
||||
|
||||
async fetchOrderBook (symbol, limit = undefined, params = {}) {
|
||||
await this.loadMarkets ();
|
||||
const request = {
|
||||
'currency': this.marketId (symbol),
|
||||
};
|
||||
@@ -116,6 +118,7 @@ module.exports = class _1btcxe extends Exchange {
|
||||
}
|
||||
|
||||
async fetchTicker (symbol, params = {}) {
|
||||
await this.loadMarkets ();
|
||||
const request = {
|
||||
'currency': this.marketId (symbol),
|
||||
};
|
||||
@@ -158,6 +161,7 @@ module.exports = class _1btcxe extends Exchange {
|
||||
}
|
||||
|
||||
async fetchOHLCV (symbol, timeframe = '1d', since = undefined, limit = undefined, params = {}) {
|
||||
await this.loadMarkets ();
|
||||
const market = this.market (symbol);
|
||||
const response = await this.publicGetHistoricalPrices (this.extend ({
|
||||
'currency': market['id'],
|
||||
@@ -202,6 +206,7 @@ module.exports = class _1btcxe extends Exchange {
|
||||
}
|
||||
|
||||
async fetchTrades (symbol, since = undefined, limit = undefined, params = {}) {
|
||||
await this.loadMarkets ();
|
||||
const market = this.market (symbol);
|
||||
const request = {
|
||||
'currency': market['id'],
|
||||
@@ -215,6 +220,7 @@ module.exports = class _1btcxe extends Exchange {
|
||||
}
|
||||
|
||||
async createOrder (symbol, type, side, amount, price = undefined, params = {}) {
|
||||
await this.loadMarkets ();
|
||||
const request = {
|
||||
'side': side,
|
||||
'type': type,
|
||||
@@ -232,6 +238,7 @@ module.exports = class _1btcxe extends Exchange {
|
||||
}
|
||||
|
||||
async cancelOrder (id, symbol = undefined, params = {}) {
|
||||
await this.loadMarkets ();
|
||||
const request = {
|
||||
'id': id,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user