mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-15 23:06:40 +00:00
fix trending output
This commit is contained in:
parent
00b17501ab
commit
0bef01450f
@ -47,7 +47,7 @@ class cg_Crypto:
|
||||
raw_symbols = r.get("https://api.coingecko.com/api/v3/coins/list").json()
|
||||
symbols = pd.DataFrame(data=raw_symbols)
|
||||
|
||||
symbols["description"] = "$$" + symbols["id"] + ": " + symbols["name"]
|
||||
symbols["description"] = "$$" + symbols["symbol"] + ": " + symbols["name"]
|
||||
symbols = symbols[["id", "symbol", "name", "description"]]
|
||||
|
||||
self.symbol_list = symbols
|
||||
@ -277,4 +277,4 @@ class cg_Crypto:
|
||||
"coins"
|
||||
]
|
||||
|
||||
return [f"$${c['item']['id'].upper()}: {c['item']['name']}" for c in coins]
|
||||
return [f"$${c['item']['symbol'].upper()}: {c['item']['name']}" for c in coins]
|
||||
|
Loading…
x
Reference in New Issue
Block a user