Advertisement
den4ik2003

Untitled

May 19th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. coins = [
  2. "BOOE",
  3. "MNFT",
  4. "CATS",
  5. "MUNITY",
  6. "HDN",
  7. "VIC",
  8. "PBX",
  9. "PIT",
  10. "ZCX",
  11. "WEPE",
  12. "IMARO",
  13. "DFYN",
  14. "EXVG",
  15. "SEN",
  16. "B",
  17. "NABOX",
  18. "PNDR",
  19. "SFM",
  20. "VOW",
  21. "ULTIMA",
  22. "RGOAT",
  23. "ZERO",
  24. "RLY",
  25. "GLONK",
  26. "SEILOR",
  27. "SLIM",
  28. "REEF",
  29. "TREMP",
  30. "AVL",
  31. "GORILLA",
  32. "NEUR",
  33. "RENDER",
  34. "FTN",
  35. "MIN",
  36. "MIKAMI",
  37. "QUBIC",
  38. "DKA"
  39. ]
  40.  
  41. for coin in coins:
  42. mexc = Mexc(args, (f'{coin}USDT', coin, 'USDT', 6, 2))
  43. print('info', mexc.get_info())
  44. book = mexc.get_info()['book']
  45. if book == {}:
  46. print(coin, 'empty')
  47. continue
  48. while book['bid_price'] == 0:
  49. book = mexc.get_info()['book']
  50. time.sleep(2)
  51.  
  52. spread = (book['ask_price'] - book['bid_price']) / book['bid_price']
  53. print(f'{coin}: {round(100*spread, 2)}')
  54.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement