Skip to content

Commit

Permalink
feat: do not ignore suspended markets
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel1302 committed Sep 25, 2024
1 parent 006d8f8 commit 7de7633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bots/http/traders_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(

# TODO: filter by valid market statuses
self.markets = by_key(
bots.api.datanode.get_markets(api_endpoints, exclude_statuses=['STATE_SUSPENDED', 'STATE_CLOSED', 'STATE_TERMINATED']),
bots.api.datanode.get_markets(api_endpoints, exclude_statuses=['STATE_CLOSED', 'STATE_TERMINATED']),
lambda market: market["tradableInstrument"]["instrument"]["name"],
)
self.assets = by_key(bots.api.datanode.get_assets(api_endpoints), lambda asset: asset["id"])
Expand Down

0 comments on commit 7de7633

Please sign in to comment.