Skip to content

"0.0" exchange rate - 403 forbidden #27

@Bogadon

Description

@Bogadon

I discovered the gem was returning 0.0 exchange rates, having checked the source it would seem the yahoo finances request is returning a 403:

http = Net::HTTP.new('download.finance.yahoo.com', 80)
=> #<Net::HTTP download.finance.yahoo.com:80 open=false>
>> response = http.get("/d/quotes.csv?e=.csv&f=sl1d1t1&s=EURGBP=X")
=> #<Net::HTTPForbidden 403 Forbidden readbody=true>
>> response.body
=> "<html><head><title>Yahoo! - 403 Forbidden  -- error 403</title></head><body>It has come to our attention that this service is being used in violation of the Yahoo Terms of Service.  As such", " the service is being discontinued.  For all future markets and equities data research", " please refer to finance.yahoo.com.</body></html>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions