Skip to content

Commit

Permalink
gemini fetchTicker consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Mar 18, 2018
1 parent 734d821 commit 41efeba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/gemini.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,22 @@ module.exports = class gemini extends Exchange {
let timestamp = ticker['volume']['timestamp'];
let baseVolume = market['base'];
let quoteVolume = market['quote'];
let last = parseFloat (ticker['last']);
return {
'symbol': symbol,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'high': undefined,
'low': undefined,
'bid': parseFloat (ticker['bid']),
'bidVolume': undefined,
'ask': parseFloat (ticker['ask']),
'askVolume': undefined,
'vwap': undefined,
'open': undefined,
'close': undefined,
'first': undefined,
'last': parseFloat (ticker['last']),
'close': last,
'last': last,
'previousClose': undefined,
'change': undefined,
'percentage': undefined,
'average': undefined,
Expand Down

0 comments on commit 41efeba

Please sign in to comment.