/**
  * Returns a list of most recently executed trades for a given currency pair.
  * @note This method caches return values for 1 second. Calling it more than once per second
  *       will result in cached data being returned.
  * @param string $primaryCurrencyCode The digital currency for which to retrieve recent trades.
  *        Must be a valid primary currency, which can be checked via the
  *        getValidPrimaryCurrencyCodes() method.
  * @param string $secondaryCurrencyCode The fiat currency in which to retrieve recent trades.
  *        Must be a valid secondary currency, which can be checked via the
  *        getValidPrimaryCurrencyCodes() method.
  * @param integer $numberOfRecentTradesToRetrieve How many recent trades to retrieve (maximum
  *        is 50).
  * @return RecentTrades
  */
 public function getRecentTrades($primaryCurrencyCode, $secondaryCurrencyCode, $numberOfRecentTradesToRetrieve)
 {
     return RecentTrades::createFromObject($this->getEndpoint('GetRecentTrades', ['primaryCurrencyCode' => $primaryCurrencyCode, 'secondaryCurrencyCode' => $secondaryCurrencyCode, 'numberOfRecentTradesToRetrieve' => $numberOfRecentTradesToRetrieve]));
 }
 public function testFactorySetsAllTrades()
 {
     $trades = $this->recentTrades->getTrades();
     $this->assert($trades[1], instance_of, '\\IndependentReserve\\Object\\Trade');
 }