public function testFactorySetsSecondaryCurrencyCode()
 {
     $this->assert($this->marketSummary->getSecondaryCurrencyCode(), equals, 'Usd');
 }
 /**
  * Returns a current snapshot of the Independent Reserve market for a given currency pair.
  * @param string $primaryCurrencyCode The digital currency for which to retrieve market summary.
  *        Must be a valid primary currency, which can be checked via the
  *        getValidPrimaryCurrencyCodes() method.
  * @param string $secondaryCurrencyCode The fiat currency in which to retrieve market summary.
  *        Must be a valid secondary currency, which can be checked via the
  *        getValidSecondaryCurrencyCodes() method.
  * @return MarketSummary
  */
 public function getMarketSummary($primaryCurrencyCode, $secondaryCurrencyCode)
 {
     return MarketSummary::createFromObject($this->getEndpoint('GetMarketSummary', ['primaryCurrencyCode' => $primaryCurrencyCode, 'secondaryCurrencyCode' => $secondaryCurrencyCode]));
 }