Skip to content

Commit

Permalink
Added passing market structure arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-krm committed Feb 11, 2022
1 parent 5e08f1e commit d440127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/mexc.js
Expand Up @@ -1550,7 +1550,7 @@ module.exports = class mexc extends Exchange {
};
const response = await this.fetchPositions (this.extend (request, params));
const firstPosition = this.safeValue (response, 0);
return this.parsePosition (firstPosition);
return this.parsePosition (firstPosition, market);
}

async fetchPositions (symbols = undefined, params = {}) {
Expand Down Expand Up @@ -1615,7 +1615,7 @@ module.exports = class mexc extends Exchange {
// "autoAddIm": false
// }
//
market = this.safeMarket (this.safeString (position, 'symbol'));
market = this.safeMarket (this.safeString (position, 'symbol'), market);
const symbol = market['symbol'];
const contracts = this.safeString (position, 'holdVol');
const entryPrice = this.safeNumber (position, 'openAvgPrice');
Expand Down

0 comments on commit d440127

Please sign in to comment.