1
0
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:
Anson Biggs 2021-03-29 12:58:37 -07:00
parent 00b17501ab
commit 0bef01450f

View File

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