fixing 3 more (#3229)

Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
James Simmons
2022-11-01 16:28:46 -04:00
committed by GitHub
parent f9d1bab458
commit f6de56566d
2 changed files with 11 additions and 13 deletions

View File

@@ -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),

View File

@@ -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,