public function setUp()
 {
     parent::setUp();
     $obj = (object) ["CurrencyCodeA" => "Aud", "CurrencyCodeB" => "Usd", "Rate" => 0.8683];
     $this->fxRate = FxRate::createFromObject($obj);
 }
 /**
  * Returns a list of exchange rates used by Independent Reserve when depositing funds or
  * withdrawing funds from accounts.
  * @note The rates represent the amount of Currency Code B that can be bought with 1 unit of
  *       Currency Code A.
  * @note This method caches return values for 1 minute. Calling it more than once per minute
  *       will result in cached data being returned.
  * @return FxRate[]
  */
 public function getFxRates()
 {
     return array_map(function (stdClass $object) {
         return FxRate::createFromObject($object);
     }, $this->getEndpoint('GetFxRates'));
 }