Skip to content

Commit

Permalink
coinbasepro fetchTime safeTimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor authored May 12, 2020
1 parent 8ae9de3 commit dbc5527
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/coinbasepro.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,13 @@ module.exports = class coinbasepro extends Exchange {

async fetchTime (params = {}) {
const response = await this.publicGetTime (params);
return 1000 * this.safeFloat (response, 'epoch');
//
// {
// "iso":"2020-05-12T08:00:51.504Z",
// "epoch":1589270451.504
// }
//
return this.safeTimestamp (response, 'epoch');
}

parseOrderStatus (status) {
Expand Down

0 comments on commit dbc5527

Please sign in to comment.