Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Google Finance Provider #9

Closed
robjmills opened this issue Apr 27, 2015 · 1 comment
Closed

Error with Google Finance Provider #9

robjmills opened this issue Apr 27, 2015 · 1 comment

Comments

@robjmills
Copy link

Using sample code adapted for Google finance:

$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'

@florianv
Copy link
Owner

Same issue than #8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants