Closed fouille closed 1 year ago
I've solved with workaround
In price_info_builder.py
line 92, change :
# Price info
msg += self.__PrintAligned(f"π΅ {coin_pair}", price)
msg += self.__PrintAligned("π High 24h", high_24h)
msg += self.__PrintAligned("π Low 24h", low_24h)
msg += self.__PrintAligned("π Volume 24h", volume)
# Market cap
if self.config.GetValue(BotConfigTypes.PRICE_DISPLAY_MARKET_CAP):
msg += self.__PrintAligned("π Market Cap", market_cap)
# Market cap rank
if self.config.GetValue(BotConfigTypes.PRICE_DISPLAY_MARKET_CAP_RANK):
msg += self.__PrintAligned("π Rank", f"{market_cap_rank:d}")
# Price differences
msg += "\nβ Diff.\n"
msg += self.__PrintAligned(" 24h", change_perc_24h, 1)
msg += self.__PrintAligned(" 7d", change_perc_7d, 1)
msg += self.__PrintAligned(" 14d", change_perc_14d, 1)
msg += self.__PrintAligned(" 30d", change_perc_30d, 1, False)
# End code
msg += PriceInfoBuilderConst.MARKDOWN_CODE_DELIM
return msg
to :
# Price info
msg += "\n"
msg += self.__PrintAligned(f"π΅ {coin_pair}", price)
msg += self.__PrintAligned("π High 24h", high_24h)
msg += self.__PrintAligned("π Low 24h", low_24h)
msg += self.__PrintAligned("π Volume 24h", volume)
# Market cap
if self.config.GetValue(BotConfigTypes.PRICE_DISPLAY_MARKET_CAP):
msg += self.__PrintAligned("π Market Cap", market_cap)
# Market cap rank
if self.config.GetValue(BotConfigTypes.PRICE_DISPLAY_MARKET_CAP_RANK):
msg += self.__PrintAligned("π Rank", f"{market_cap_rank:d}")
# Price differences
msg += "\nβ Diff.\n"
msg += self.__PrintAligned(" 24h", change_perc_24h, 1)
msg += self.__PrintAligned(" 7d", change_perc_7d, 1)
msg += self.__PrintAligned(" 14d", change_perc_14d, 1)
msg += self.__PrintAligned(" 30d", change_perc_30d, 1, False)
# End code
msg += "\n"
msg += PriceInfoBuilderConst.MARKDOWN_CODE_DELIM
return msg
insert : msg += "\n"
Because de Markdown cote text must be be in the next/previous line.
Hello,
From CoinGecko.
Before i've the price (pair) displayed :
Now the isn't displayed :
BUT
price_info_builder.py
return good values :how can i debug this?
thank's