public function testFactorySetsTradeTimestamp() { $this->assert($this->trade->getTradeTimestamp(), equals, new DateTime("2014-07-31T10:34:05.935412Z")); }
/** * List of individual trades. * @return array */ public function getTrades() { return array_map(function (stdClass $object) { return Trade::createFromObject($object); }, $this->object->Trades); }