Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coins = [
- "BOOE",
- "MNFT",
- "CATS",
- "MUNITY",
- "HDN",
- "VIC",
- "PBX",
- "PIT",
- "ZCX",
- "WEPE",
- "IMARO",
- "DFYN",
- "EXVG",
- "SEN",
- "B",
- "NABOX",
- "PNDR",
- "SFM",
- "VOW",
- "ULTIMA",
- "RGOAT",
- "ZERO",
- "RLY",
- "GLONK",
- "SEILOR",
- "SLIM",
- "REEF",
- "TREMP",
- "AVL",
- "GORILLA",
- "NEUR",
- "RENDER",
- "FTN",
- "MIN",
- "MIKAMI",
- "QUBIC",
- "DKA"
- ]
- for coin in coins:
- mexc = Mexc(args, (f'{coin}USDT', coin, 'USDT', 6, 2))
- print('info', mexc.get_info())
- book = mexc.get_info()['book']
- if book == {}:
- print(coin, 'empty')
- continue
- while book['bid_price'] == 0:
- book = mexc.get_info()['book']
- time.sleep(2)
- spread = (book['ask_price'] - book['bid_price']) / book['bid_price']
- print(f'{coin}: {round(100*spread, 2)}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement