alvarobartt / investiny

🤏🏻 `investpy` but made tiny
https://alvarobartt.github.io/investiny
MIT License
324 stars 36 forks source link

✨ Add `has_volume` check to avoid `n/a` volume values #46

Closed alvarobartt closed 2 years ago

alvarobartt commented 2 years ago

✨ Features

🔗 Linked Issue

41

🧪 Tests

If the above checkbox is checked, describe how you unit-tested it.

I've included a unit test for EUR/USD with investing_id=1, as it doesn't have volume, so there's an assertion for that to avoid returning the volume key in historical_data's results when it's not available (n/a).