Skip to content

Commit

Permalink
Merge pull request #11295 from carlosmiei/oceanex-safe-ticker
Browse files Browse the repository at this point in the history
Oceanex :: add safeTicker
  • Loading branch information
kroitor committed Jan 14, 2022
2 parents 2f28a9d + 830d045 commit 9b087d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/oceanex.js
Expand Up @@ -260,8 +260,9 @@ module.exports = class oceanex extends Exchange {
//
const ticker = this.safeValue (data, 'ticker', {});
const timestamp = this.safeTimestamp (data, 'at');
return {
'symbol': market['symbol'],
const symbol = this.safeSymbol (undefined, market);
return this.safeTicker ({
'symbol': symbol,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'high': this.safeNumber (ticker, 'high'),
Expand All @@ -281,7 +282,7 @@ module.exports = class oceanex extends Exchange {
'baseVolume': this.safeNumber (ticker, 'volume'),
'quoteVolume': undefined,
'info': ticker,
};
}, market);
}

async fetchOrderBook (symbol, limit = undefined, params = {}) {
Expand Down

0 comments on commit 9b087d2

Please sign in to comment.