Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
fix(Quote): use rate from sfox rather than calculating it
Browse files Browse the repository at this point in the history
  • Loading branch information
Thore3 committed Dec 22, 2016
1 parent 7344d01 commit 3752f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quote.js
Expand Up @@ -16,7 +16,7 @@ class Quote extends Exchange.Quote {

this._id = obj.quote_id;
this._expiresAt = expiresAt;
this._rate = (obj.quote_amount / obj.base_amount).toFixed(2);
this._rate = obj.rate;

this._baseCurrency = baseCurrency.toUpperCase();
this._baseAmount = isBTC(this._baseCurrency) ? btcAmount : usdAmount;
Expand Down

0 comments on commit 3752f63

Please sign in to comment.