Skip to content

Commit

Permalink
Merge pull request coinbase#162 from blair/gdax-ticker-doesnt-have-ti…
Browse files Browse the repository at this point in the history
…me-property

Handle GDAX ticker messages without a time property.
  • Loading branch information
fb55 authored Apr 10, 2018
2 parents 1343962 + e16576b commit 8d3e805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exchanges/gdax/GDAXFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class GDAXFeed extends ExchangeFeed {
private mapTicker(ticker: GDAXTickerMessage): StreamMessage {
return {
type: 'ticker',
time: new Date(ticker.time),
time: ticker.time ? new Date(ticker.time) : new Date(),
productId: ticker.product_id,
sequence: ticker.sequence,
price: Big(ticker.price),
Expand Down

0 comments on commit 8d3e805

Please sign in to comment.