mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
fixing 3 more (#3229)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user