Skip to content

v1.6.0 — Currency fix + auto-pagination

Latest

Choose a tag to compare

@karlwaldman karlwaldman released this 18 Mar 11:18
· 1 commit to main since this release

Fixes

  • Currency preservation in to_dataframe(): Fixed bug where all commodities showed USD regardless of actual currency. EUR, GBP, and other currencies now correctly preserved.
  • Auto-pagination in get_all() and to_dataframe(): Previously capped at one page of results. Now auto-paginates using X-Has-Next response header to fetch all available data.
  • New per_page parameter: Both get_all() and to_dataframe() accept per_page (default 100) to control page size.

Upgrade

pip install --upgrade oilpriceapi