Tdexa periodically fetches prices/balances data from market providers. Since markets can go offline and "querying" such market causes errors, before this we were deleting "inactive" marktes.
With this commit we activate/inactivate markets when ever FetchMarkets is invoked and when prices/balances is to be performed it is only done against active markets.
Changes:
add active column in market table
FetchMarkets updated to change active status of markets
FetchBalancesForAllMarkets and FetchPriceForAllMarkets updated to fetches data from active markets only
Context:
Tdexa periodically fetches prices/balances data from market providers. Since markets can go offline and "querying" such market causes errors, before this we were deleting "inactive" marktes. With this commit we activate/inactivate markets when ever FetchMarkets is invoked and when prices/balances is to be performed it is only done against active markets.
Changes:
This closes #54
@tiero @altafan please review.