/**
  * Retrieves your Closed orders which have had some or all of their outstanding volume filled.
  * @param string $primaryCurrencyCode The primary currency of orders.
  * @param string $secondaryCurrencyCode The secondary currency of orders.
  * @return ClosedOrder[]
  */
 public function getClosedFilledOrders($primaryCurrencyCode, $secondaryCurrencyCode)
 {
     return new PagedIterator($this, 'GetClosedFilledOrders', ['primaryCurrencyCode' => $primaryCurrencyCode, 'secondaryCurrencyCode' => $secondaryCurrencyCode, 'pageSize' => 25], function (stdClass $object) {
         return ClosedOrder::createFromObject($object);
     });
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["AvgPrice" => 698.8, "CreatedTimestampUtc" => "2014-08-05T06:42:11.3032208Z", "OrderGuid" => "5c8885cd-5384-4e05-b397-9f5119353e10", "OrderType" => "MarketOffer", "Outstanding" => 0, "PrimaryCurrencyCode" => "Xbt", "SecondaryCurrencyCode" => "Usd", "Status" => "Filled", "Value" => 17.47, "Volume" => 0.025];
     $this->order = ClosedOrder::createFromObject($obj);
 }