Skip to content

Commit

Permalink
Small change + small bug fix (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaslek authored Aug 18, 2022
1 parent 6b95d7d commit 73f7561
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions openbb_terminal/stocks/dark_pool_shorts/dps_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ def call_ftd(self, other_args: List[str]):
sec_view.fails_to_deliver(
symbol=self.ticker,
data=self.stock,
start_date=ns_parser.start,
end_date=ns_parser.end,
start_date=ns_parser.start.strftime("%Y-%m-%d"),
end_date=ns_parser.end.strftime("%Y-%m-%d"),
limit=ns_parser.n_num,
raw=ns_parser.raw,
export=ns_parser.export,
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/stocks/stocks_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ def show_quick_performance(stock_df: pd.DataFrame, ticker: str):
str(round(np.mean(volumes[-12:-2]) / 1_000_000, 2)) + " M"
)

df["Last Price"] = closes[-1]
df["Last Price"] = str(round(closes[-1], 2))
print_rich_table(
df, show_index=False, headers=df.columns, title=f"{ticker.upper()} Performance"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,12 @@ def test_call_func_expect_queue(expected_queue, queue, func):
dict(
symbol="MOCK_TICKER",
data=empty_df,
start_date=datetime.strptime("2020-12-01", "%Y-%m-%d"),
end_date=datetime.strptime("2020-12-02", "%Y-%m-%d"),
start_date=datetime.strptime("2020-12-01", "%Y-%m-%d").strftime(
"%Y-%m-%d"
),
end_date=datetime.strptime("2020-12-02", "%Y-%m-%d").strftime(
"%Y-%m-%d"
),
limit=1,
raw=True,
export="csv",
Expand Down

0 comments on commit 73f7561

Please sign in to comment.