You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$httpAdapter = new \Ivory\HttpAdapter\FileGetContentsHttpAdapter();
// Create the Yahoo Finance provider
$googleProvider = new \Swap\Provider\YahooFinanceProvider($httpAdapter);
// Create Swap with the provider
$swap = new \Swap\Swap($yahooProvider);
$rate = $swap->quote('EUR/USD');
Throws this error:
Fatal error: Uncaught exception 'Swap\Exception\Exception' with message 'The currency is not supported or Google changed the response format'
The text was updated successfully, but these errors were encountered:
Using sample code adapted for Google finance:
Throws this error:
The text was updated successfully, but these errors were encountered: