Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Merge 34b8405 into b81342a
Browse files Browse the repository at this point in the history
  • Loading branch information
prwelber committed May 29, 2018
2 parents b81342a + 34b8405 commit e9833ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Exchange {
return this.getBuyQuote(-amount, baseCurrency, quoteCurrency);
}

getTrades (QuoteClass) {
getTrades (QuoteClass, length) {
assert(QuoteClass, 'QuoteClass required');
var save = () => {
return this.delegate.save.bind(this.delegate)().then(() => this._trades);
Expand Down Expand Up @@ -112,7 +112,8 @@ class Exchange {
trade.process(this._trades);
}
};
return this._TradeClass.fetchAll(this._api)

return this._TradeClass.fetchAll(this._api, length)
.then(update)
.then(process)
.then(save);
Expand Down

0 comments on commit e9833ea

Please sign in to comment.