Skip to content

Commit

Permalink
Fixed missing time
Browse files Browse the repository at this point in the history
mallchin authored Jan 29, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 40a3188 commit 1649a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/gdax.php
Original file line number Diff line number Diff line change
@@ -241,7 +241,7 @@ public function fetch_ticker ($symbol, $params = array ()) {

public function parse_trade ($trade, $market = null) {
$timestamp = null;
if ($trade['time']) {
if (isset($trade['time'])) {
$timestamp = $this->parse8601 ($trade['time']);
} else {
$timestamp = $this->parse8601 ($trade['created_at']);

0 comments on commit 1649a69

Please sign in to comment.