Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchiang committed Aug 11, 2024
1 parent 920d428 commit 45f97a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/job/crypto/top_coins_message_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def _format_message(self, coin_list: List[TrendingList]) -> str:
num_coins_to_show = min(5, len(coin_list))
res = ''

# TODO: volume/mcap
for i in range (0, num_coins_to_show):
coin = coin_list[i]
symbol_escaped = escape_markdown(f'({coin.symbol})')
Expand Down
1 change: 1 addition & 0 deletions src/job/crypto/top_sectors_message_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ async def _format_message(self, top_sectors: List[Sector24hChange], sort_type: C
if not self.should_include_coin(coin_detail=top_coin_detail, sort_type=sort_type):
continue

# TODO: volume/mcap
price_change_24h = (escape_markdown(friendly_number(top_coin_detail.statistics.priceChangePercentage24h)), bold_text_for_metric_type(metric_type=MetricTypeIndicator.COIN_PRICE_CHANGE_24H, value=top_coin_detail.statistics.priceChangePercentage24h / 100))
volume_change_24h = (escape_markdown(friendly_number(top_coin_detail.volumeChangePercentage24h)), bold_text_for_metric_type(metric_type=MetricTypeIndicator.COIN_VOLUME_CHANGE_24H, value=top_coin_detail.volumeChangePercentage24h / 100))
top_coins_message = f'{top_coins_message}*{escape_markdown(top_coin.name)}{symbol_escaped}*, price: {escape_markdown(friendly_number(top_coin_detail.statistics.price))}, ' \
Expand Down

0 comments on commit 45f97a2

Please sign in to comment.