Last active
June 28, 2022 01:36
-
-
Save MtkN1/46011c0389cdb74bcca30cfc26568529 to your computer and use it in GitHub Desktop.
Bybit Futures Symbol Names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http.client | |
import json | |
import urllib.request | |
resp: http.client.HTTPResponse | |
with urllib.request.urlopen('https://api.bybit.com/v2/public/symbols') as resp: | |
data = json.loads(resp.read().decode()) | |
print(*filter(lambda x: all([x['name'] != x['alias'], x['status'] == 'Trading']), data['result']), sep='\n\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
今現在の結果