Add has_volume flag that checks has_no_volume in investing_info results so as not to include the volume in the results (as the key will always be there)
🔗 Linked Issue
41
🧪 Tests
[X] Did you implement unit tests if required?
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).
✨ Features
has_volume
flag that checkshas_no_volume
ininvesting_info
results so as not to include thevolume
in the results (as the key will always be there)🔗 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
withinvesting_id=1
, as it doesn't havevolume
, so there's an assertion for that to avoid returning thevolume
key inhistorical_data
's results when it's not available (n/a).