live.sh15个币对

This commit is contained in:
Ubuntu 2026-02-26 12:23:51 +08:00
parent e33bba0e04
commit 2ef31ac6b6

View File

@ -122,9 +122,9 @@ try:
elif 'pairs' in data:
pairs = [pair.get('instId', '').replace('-', '/') for pair in data['pairs']]
# 限制最多25个币对
if len(pairs) > 25:
pairs = pairs[:25]
# 限制最多15个币对
if len(pairs) > 15:
pairs = pairs[:15]
print(' '.join(pairs) if pairs else '')
except Exception as e: