Skip to content

Commit

Permalink
fix crypto funcs (#2711)
Browse files Browse the repository at this point in the history
Co-authored-by: James Maslek <jmaslek11@gmail.com>
  • Loading branch information
DidierRLopes and jmaslek authored Oct 5, 2022
1 parent 4e6a2fb commit 5c2394d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openbb_terminal/cryptocurrency/onchain/bitquery_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def display_daily_volume_for_given_pair(

df_data = df.copy()

df[["tradeAmount", "trades"]] = df[["tradeAmount", "trades"]].applymap(
df[["Trade amount", "Trades"]] = df[["Trade amount", "Trades"]].applymap(
lambda x: lambda_very_long_number_formatter(x)
)

Expand Down
6 changes: 3 additions & 3 deletions openbb_terminal/cryptocurrency/onchain/onchain_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ def call_lt(self, other_args: List[str]):
bitquery_view.display_dex_trades(
kind=ns_parser.kind,
trade_amount_currency=ns_parser.vs,
top=ns_parser.limit,
limit=ns_parser.limit,
days=ns_parser.days,
sortby=ns_parser.sortby,
ascend=not ns_parser.descend,
Expand Down Expand Up @@ -1032,7 +1032,7 @@ def call_dvcp(self, other_args: List[str]):

if ns_parser:
bitquery_view.display_daily_volume_for_given_pair(
token=ns_parser.coin,
symbol=ns_parser.coin,
to_symbol=ns_parser.vs,
limit=ns_parser.days,
sortby=ns_parser.sortby,
Expand Down Expand Up @@ -1353,7 +1353,7 @@ def call_baas(self, other_args: List[str]):
if ns_parser.coin:
if ns_parser.coin in bitquery_model.POSSIBLE_CRYPTOS:
bitquery_view.display_spread_for_crypto_pair(
token=ns_parser.coin,
symbol=ns_parser.coin,
to_symbol=ns_parser.vs,
days=ns_parser.days,
sortby=ns_parser.sortby,
Expand Down

0 comments on commit 5c2394d

Please sign in to comment.