piquette / finance-go

:bar_chart: Financial markets data library implemented in go.
https://piquette.io/projects/finance-go
MIT License
727 stars 102 forks source link

Fixes get cookie crumbs #28

Closed joce closed 1 year ago

joce commented 1 year ago

This fixes Issue #25

We now fetch cookies and crumb first to be fed in later calls. This code was lifted and adapted from mop and pretty much replicates their fix.

This branch also contains a fix for a test that was broken. It expected no error when fetching a non exiting symbol, but there is actually an error being generated.

The example code was also augmented with pretty much all types of calls that can be made to the Yahoo! API. This was used to make sure the fix was actually working.