This PR fixes the 24h price and everything related to this field in the
/markets endpoint.
Currently, when there has been no price in the last 24 hours, the last price
will be used, no matter when it happened.
This is not expected behaviour.
If there was no activity in the last 24 hours, last_fill_price_24hr,
price_change_as_percent_24hr, price_change_24hr should be null. This PR
fixes that.
Checklist
[x] Did you check off all checkboxes from the linked Linear task? (Ignore if
you are not a member of Econia Labs)
Description
This PR fixes the 24h price and everything related to this field in the
/markets
endpoint.Currently, when there has been no price in the last 24 hours, the last price will be used, no matter when it happened.
This is not expected behaviour.
If there was no activity in the last 24 hours,
last_fill_price_24hr
,price_change_as_percent_24hr
,price_change_24hr
should be null. This PR fixes that.Checklist