Snapshots

This commit is contained in:
Luis Fernando Molina committed 2020-05-10 14:17:33 +02:00
1 parent e91125801d
commit 6368221937
75 files changed
+8943 -4332

No files matched your search

+3 -3
View File
@@ -180,6 +180,9 @@ module.exports = class theocean extends Exchange {
}
async fetchOHLCV (symbol, timeframe = '5m', since = undefined, limit = undefined, params = {}) {
if (since === undefined) {
throw new ArgumentsRequired (this.id + ' fetchOHLCV requires a since argument');
}
await this.loadMarkets ();
const market = this.market (symbol);
const request = {
@@ -187,9 +190,6 @@ module.exports = class theocean extends Exchange {
'quoteTokenAddress': market['quoteId'],
'interval': this.timeframes[timeframe],
};
if (since === undefined) {
throw new ExchangeError (this.id + ' fetchOHLCV requires a since argument');
}
since = parseInt (since);
request['startTime'] = since;
const response = await this.publicGetCandlesticks (this.extend (request, params));