Skip to content

Commit

Permalink
safeString
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty00 committed Apr 12, 2021
1 parent 1d64eb5 commit 2c81acc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/bitget.js
Original file line number Diff line number Diff line change
Expand Up @@ -1338,9 +1338,9 @@ module.exports = class bitget extends Exchange {
}
let timestamp = this.safeInteger (trade, 'created_at');
timestamp = this.safeInteger2 (trade, 'timestamp', 'ts', timestamp);
const priceString = this.safeNumber (trade, 'price');
let amountString = this.safeNumber2 (trade, 'filled_amount', 'order_qty');
amountString = this.safeNumber2 (trade, 'size', 'amount', amountString);
const priceString = this.safeString (trade, 'price');
let amountString = this.safeString2 (trade, 'filled_amount', 'order_qty');
amountString = this.safeString2 (trade, 'size', 'amount', amountString);
const price = this.parseNumber (priceString);
const amount = this.parseNumber (amountString);
const cost = this.parseNumber (Precise.stringMul (priceString, amountString));
Expand Down

0 comments on commit 2c81acc

Please sign in to comment.