diff --git a/openbb_terminal/cryptocurrency/onchain/bitquery_view.py b/openbb_terminal/cryptocurrency/onchain/bitquery_view.py index 734cdb74b9f..0e9e92def9a 100644 --- a/openbb_terminal/cryptocurrency/onchain/bitquery_view.py +++ b/openbb_terminal/cryptocurrency/onchain/bitquery_view.py @@ -133,7 +133,14 @@ def display_daily_volume_for_given_pair( df[["Trade amount", "Trades"]] = df[["Trade amount", "Trades"]].applymap( lambda x: lambda_very_long_number_formatter(x) ) - + # The -d command takes the place of what would normally be -l. This means + # we want to print out all of the data from each --day. If there is + # more exchange data per day then we will have more than -d amount of + # rows. If we do not change this value then only -d amount of rows will + # be printed out, not -d amount of days which is what we want. So we set + # this to an arbitrary amount to cover the potential for more than + # one row per day + limit = 10 print_rich_table( df.head(limit), headers=list(df.columns), diff --git a/openbb_terminal/cryptocurrency/onchain/onchain_controller.py b/openbb_terminal/cryptocurrency/onchain/onchain_controller.py index 9a93e6ecfcd..84deb164910 100644 --- a/openbb_terminal/cryptocurrency/onchain/onchain_controller.py +++ b/openbb_terminal/cryptocurrency/onchain/onchain_controller.py @@ -108,7 +108,7 @@ class OnchainController(BaseController): "--limit": {str(c): {} for c in range(1, 100)}, "-l": "--limit", "--descend": {}, - "--adress": {}, + "--address": {}, "-a": {}, } choices["hr"] = {c: {} for c in GLASSNODE_SUPPORTED_HASHRATE_ASSETS} @@ -1233,15 +1233,6 @@ class OnchainController(BaseController): required="-h" not in other_args, ) - parser.add_argument( - "-l", - "--limit", - dest="limit", - type=check_positive, - help="display N number records", - default=10, - ) - parser.add_argument( "-vs", "--vs", dest="vs", type=str, help="Quote currency", default="USDT" ) @@ -1267,7 +1258,7 @@ class OnchainController(BaseController): parser.add_argument( "--descend", - action="store_false", + action="store_true", help="Flag to sort in descending order (lowest first)", dest="descend", default=False, @@ -1413,7 +1404,7 @@ class OnchainController(BaseController): parser.add_argument( "--descend", - action="store_false", + action="store_true", help="Flag to sort in descending order (lowest first)", dest="descend", default=False,