live.sh15个币对
This commit is contained in:
parent
e33bba0e04
commit
2ef31ac6b6
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user