Advertisement
den4ik2003

Untitled

Jun 2nd, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.44 KB | None | 0 0
  1. (.venv) ubuntu@52:~/pydmm/abuse$ python3 abuse.py
  2. MEEEXC SYMBOL ('VOLTAGEUSDT', 'VOLTAGE', 'USDT', 8, 2)
  3. Exchange precision: [8, 2]
  4. [INFO] trap order size: 76.009135015584
  5. [INFO] initial book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  6. [INFO] lower narrowing order: {'symbol': 'VOLTAGEUSDT', 'orderId': 'C02__558267404996755458049', 'orderListId': -1, 'price': '0.00008215', 'origQty': '194765.67', 'type': 'LIMIT_MAKER', 'side': 'SELL', 'transactTime': 1748883557324}
  7. [INFO] narrow order was placed successfully
  8. [INFO] 1748883587373 starts to buy position
  9. [INFO] time: 1748883587373 0
  10. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  11. [INFO]: spread ticks: 13
  12. [DEBUG] get info latency: 175
  13. [INFO] missed 2 public trades: [{'price': 8.203e-05, 'quantity': 1066232.15, 'side': 'sell', 'timestamp': 1748883577269}, {'price': 8.204e-05, 'quantity': 1068926.42, 'side': 'buy', 'timestamp': 1748883564239}]
  14.  
  15. [INFO] time: 1748883588243 10
  16. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  17. [INFO]: spread ticks: 13
  18. [DEBUG] get info latency: 98
  19.  
  20. [INFO] time: 1748883589135 20
  21. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  22. [INFO]: spread ticks: 13
  23. [DEBUG] get info latency: 60
  24.  
  25. [INFO] time: 1748883589861 30
  26. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  27. [INFO]: spread ticks: 13
  28. [DEBUG] get info latency: 36
  29.  
  30. [INFO] time: 1748883590668 40
  31. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  32. [INFO]: spread ticks: 13
  33. [DEBUG] get info latency: 47
  34. [INFO] missed 1 public trades: [{'price': 8.203e-05, 'quantity': 842227.7, 'side': 'buy', 'timestamp': 1748883589978}]
  35.  
  36. [INFO] time: 1748883591428 50
  37. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.214e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  38. [INFO]: spread ticks: 1
  39. [DEBUG] get info latency: 56
  40.  
  41. exception new_limit_maker: (429, 'Too Many Requests')
  42. [WARN] trap attempt: 51
  43. [WARN] 1748883591566 new_limit: too many requests
  44. exception new_limit_maker: (429, 'Too Many Requests')
  45. [WARN] trap attempt: 51
  46. [WARN] 1748883593670 new_limit: too many requests
  47. exception new_limit_maker: (429, 'Too Many Requests')
  48. [WARN] trap attempt: 51
  49. [WARN] 1748883595767 new_limit: too many requests
  50. [INFO] time: 1748883598277 57
  51. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  52. [INFO]: spread ticks: 13
  53. [DEBUG] get info latency: 63
  54.  
  55. [INFO] time: 1748883598994 67
  56. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  57. [INFO]: spread ticks: 13
  58. [DEBUG] get info latency: 40
  59.  
  60. [INFO] time: 1748883599813 77
  61. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
  62. [INFO]: spread ticks: 13
  63. [DEBUG] get info latency: 59
  64.  
  65. [INFO] time: 1748883600620 87
  66. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197575}}
  67. [INFO]: spread ticks: 13
  68. [DEBUG] get info latency: 63
  69. [INFO] 1748883600683 successfull buy: {'price': 8.214e-05, 'quantity': 918904.65, 'side': 'buy', 'timestamp': 1748883600000}
  70. [INFO] buy position: 918904.65 75.478827951 8.214e-05
  71. [INFO] 1748883600683 finished buying position: 75.478827951 USDT
  72.  
  73. [INFO] upper narrowing order: {'symbol': 'VOLTAGEUSDT', 'orderId': 'C02__558267589613223936049', 'orderListId': -1, 'price': '0.00008202', 'origQty': '195074.37', 'type': 'LIMIT_MAKER', 'side': 'BUY', 'transactTime': 1748883601340}
  74. [INFO] narrow order was placed successfully
  75. [INFO] 1748883631422 starts to sell position
  76. [INFO] time: 1748883631422 88
  77. [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197575}}
  78. [INFO] spread ticks: 57
  79. [DEBUG] get info latency: 83
  80. [INFO] missed 2 public trades: [{'price': 8.203e-05, 'quantity': 1295670.93, 'side': 'buy', 'timestamp': 1748883613214}, {'price': 8.214e-05, 'quantity': 918904.65, 'side': 'sell', 'timestamp': 1748883600437}]
  81.  
  82. exception new_limit_maker: (400, 'Oversold')
  83. [WARN] trap attempt: 94
  84. [INFO] time: 1748883632147 97
  85. [INFO] book/balance: {'book': {'ask_price': 8.26e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197574}}
  86. [INFO] spread ticks: 57
  87. [DEBUG] get info latency: 55
  88.  
  89. exception new_limit_maker: (400, 'Oversold')
  90. [WARN] trap attempt: 98
  91. exception new_limit_maker: (400, 'Oversold')
  92. [WARN] trap attempt: 98
  93. exception new_limit_maker: (400, 'Oversold')
  94. [WARN] trap attempt: 98
  95. exception new_limit_maker: (400, 'Oversold')
  96. [WARN] trap attempt: 98
  97. exception new_limit_maker: (400, 'Oversold')
  98. [WARN] trap attempt: 98
  99. exception new_limit_maker: (400, 'Oversold')
  100. [WARN] trap attempt: 98
  101. exception new_limit_maker: (400, 'Oversold')
  102. [WARN] trap attempt: 98
  103. exception new_limit_maker: (400, 'Oversold')
  104. [WARN] trap attempt: 98
  105. exception new_limit_maker: (400, 'Oversold')
  106. [WARN] trap attempt: 98
  107. [INFO] time: 1748883633123 98
  108. [INFO] book/balance: {'book': {'ask_price': 8.26e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197574}}
  109. [INFO] spread ticks: 14
  110. [DEBUG] get info latency: 138
  111. [INFO] 1748883633261 successfull sell: {'price': 8.203e-05, 'quantity': 751215.89, 'side': 'sell', 'timestamp': 1748883632000}
  112. [INFO] sell position: 751215.89 61.6222394567 8.203e-05
  113.  
  114. exception new_limit_maker: (400, 'Oversold')
  115. [WARN] trap attempt: 98
  116. exception new_limit_maker: (400, 'Oversold')
  117. [WARN] trap attempt: 98
  118. exception new_limit_maker: (400, 'Oversold')
  119. [WARN] trap attempt: 98
  120. exception new_limit_maker: (400, 'Oversold')
  121. [WARN] trap attempt: 98
  122. exception new_limit_maker: (400, 'Oversold')
  123. [WARN] trap attempt: 98
  124. exception new_limit_maker: (400, 'Oversold')
  125. [WARN] trap attempt: 98
  126. exception new_limit_maker: (400, 'Oversold')
  127. [WARN] trap attempt: 98
  128. exception new_limit_maker: (400, 'Oversold')
  129. [WARN] trap attempt: 98
  130. exception new_limit_maker: (400, 'Oversold')
  131. [WARN] trap attempt: 98
  132. exception new_limit_maker: (400, 'Oversold')
  133. [WARN] trap attempt: 98
  134. [INFO] time: 1748883634216 98
  135. [INFO] book/balance: {'book': {'ask_price': 8.216e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 398434.67, 'quote': 169.39988851867577}}
  136. [INFO] spread ticks: 14
  137. [DEBUG] get info latency: 137
  138. [INFO] missed 1 public trades: [{'price': 8.203e-05, 'quantity': 751215.89, 'side': 'buy', 'timestamp': 1748883632255}]
  139.  
  140. exception new_limit_maker: (400, 'Oversold')
  141. [WARN] trap attempt: 98
  142. exception new_limit_maker: (400, 'Oversold')
  143. [WARN] trap attempt: 98
  144. exception new_limit_maker: (400, 'Oversold')
  145. [WARN] trap attempt: 98
  146. exception new_limit_maker: (400, 'Oversold')
  147. [WARN] trap attempt: 98
  148. exception new_limit_maker: (400, 'Oversold')
  149. [WARN] trap attempt: 98
  150. exception new_limit_maker: (400, 'Oversold')
  151. [WARN] trap attempt: 98
  152. ^CTraceback (most recent call last):
  153. File "/home/ubuntu/pydmm/abuse/abuse.py", line 238, in <module>
  154. abuse.run_event_loop()
  155. File "/home/ubuntu/pydmm/abuse/abuse.py", line 227, in run_event_loop
  156. self.trap_attempt(False)
  157. File "/home/ubuntu/pydmm/abuse/abuse.py", line 88, in trap_attempt
  158. order = self.market.new_limit_maker(price=price, quantity=(self.order_amount / price), is_bid=is_low) # TODO: не везде есть возврат id
  159. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  160. File "/home/ubuntu/pydmm/abuse/mexc_connector.py", line 163, in new_limit_maker
  161. order = self.client.account.new_order(self.symbol[0], side, OrderType.LIMIT_MAKER, price=self.proper_round(price, self.symbol[3]), quantity=self.proper_round(quantity, self.symbol[4]))
  162. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  163. File "/mnt/.venv/lib/python3.12/site-packages/mexc_api/spot/endpoints/_account.py", line 54, in new_order
  164. return self.api.send_request(Method.POST, "/api/v3/order", params, True)
  165. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  166. File "/mnt/.venv/lib/python3.12/site-packages/mexc_api/common/api.py", line 72, in send_request
  167. response = self.session.request(method.value, url, params, headers=self.session.headers)
  168. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  169. File "/mnt/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
  170. resp = self.send(prep, **send_kwargs)
  171. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  172. File "/mnt/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
  173. r = adapter.send(request, **kwargs)
  174. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  175. File "/mnt/.venv/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
  176. resp = conn.urlopen(
  177. ^^^^^^^^^^^^^
  178. File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
  179. response = self._make_request(
  180. ^^^^^^^^^^^^^^^^^^^
  181. File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 467, in _make_request
  182. self._validate_conn(conn)
  183. File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1099, in _validate_conn
  184. conn.connect()
  185. File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 653, in connect
  186. sock_and_verified = _ssl_wrap_socket_and_match_hostname(
  187. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  188. File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 806, in _ssl_wrap_socket_and_match_hostname
  189. ssl_sock = ssl_wrap_socket(
  190. ^^^^^^^^^^^^^^^^
  191. File "/mnt/.venv/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 440, in ssl_wrap_socket
  192. context.load_verify_locations(ca_certs, ca_cert_dir, ca_cert_data)
  193. KeyboardInterrupt
  194.  
  195. (.venv) ubuntu@52:~/pydmm/abuse$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement