Skip to content

Commit

Permalink
Match to USA if no exchange suffix is present (#1939)
Browse files Browse the repository at this point in the history
The logic on line 213 defaults to USA if there is no exchange symbol present, so the market coverage suffix should use the same logic. This enables filtering by exchange to work correctly.

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
  • Loading branch information
stkerr and DidierRLopes authored Jun 13, 2022
1 parent 1ea7557 commit a89b3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openbb_terminal/stocks/stocks_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
SOURCES = ["yf", "av", "iex"]

market_coverage_suffix = {
"USA": ["CBT", "CME", "NYB", "CMX", "NYM"],
"USA": ["CBT", "CME", "NYB", "CMX", "NYM", ""],
"Argentina": ["BA"],
"Austria": ["VI"],
"Australia": ["AX"],
Expand Down

0 comments on commit a89b3dc

Please sign in to comment.