Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (.venv) ubuntu@52:~/pydmm/abuse$ python3 abuse.py
- MEEEXC SYMBOL ('VOLTAGEUSDT', 'VOLTAGE', 'USDT', 8, 2)
- Exchange precision: [8, 2]
- [INFO] trap order size: 76.009135015584
- [INFO] initial book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO] lower narrowing order: {'symbol': 'VOLTAGEUSDT', 'orderId': 'C02__558267404996755458049', 'orderListId': -1, 'price': '0.00008215', 'origQty': '194765.67', 'type': 'LIMIT_MAKER', 'side': 'SELL', 'transactTime': 1748883557324}
- [INFO] narrow order was placed successfully
- [INFO] 1748883587373 starts to buy position
- [INFO] time: 1748883587373 0
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 175
- [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}]
- [INFO] time: 1748883588243 10
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 98
- [INFO] time: 1748883589135 20
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 60
- [INFO] time: 1748883589861 30
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 36
- [INFO] time: 1748883590668 40
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 47
- [INFO] missed 1 public trades: [{'price': 8.203e-05, 'quantity': 842227.7, 'side': 'buy', 'timestamp': 1748883589978}]
- [INFO] time: 1748883591428 50
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.214e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 1
- [DEBUG] get info latency: 56
- exception new_limit_maker: (429, 'Too Many Requests')
- [WARN] trap attempt: 51
- [WARN] 1748883591566 new_limit: too many requests
- exception new_limit_maker: (429, 'Too Many Requests')
- [WARN] trap attempt: 51
- [WARN] 1748883593670 new_limit: too many requests
- exception new_limit_maker: (429, 'Too Many Requests')
- [WARN] trap attempt: 51
- [WARN] 1748883595767 new_limit: too many requests
- [INFO] time: 1748883598277 57
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 63
- [INFO] time: 1748883598994 67
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 40
- [INFO] time: 1748883599813 77
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 230745.91, 'quote': 183.25647701297575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 59
- [INFO] time: 1748883600620 87
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197575}}
- [INFO]: spread ticks: 13
- [DEBUG] get info latency: 63
- [INFO] 1748883600683 successfull buy: {'price': 8.214e-05, 'quantity': 918904.65, 'side': 'buy', 'timestamp': 1748883600000}
- [INFO] buy position: 918904.65 75.478827951 8.214e-05
- [INFO] 1748883600683 finished buying position: 75.478827951 USDT
- [INFO] upper narrowing order: {'symbol': 'VOLTAGEUSDT', 'orderId': 'C02__558267589613223936049', 'orderListId': -1, 'price': '0.00008202', 'origQty': '195074.37', 'type': 'LIMIT_MAKER', 'side': 'BUY', 'transactTime': 1748883601340}
- [INFO] narrow order was placed successfully
- [INFO] 1748883631422 starts to sell position
- [INFO] time: 1748883631422 88
- [INFO] book/balance: {'book': {'ask_price': 8.215e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197575}}
- [INFO] spread ticks: 57
- [DEBUG] get info latency: 83
- [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}]
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 94
- [INFO] time: 1748883632147 97
- [INFO] book/balance: {'book': {'ask_price': 8.26e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197574}}
- [INFO] spread ticks: 57
- [DEBUG] get info latency: 55
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- [INFO] time: 1748883633123 98
- [INFO] book/balance: {'book': {'ask_price': 8.26e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 1149650.56, 'quote': 107.77764906197574}}
- [INFO] spread ticks: 14
- [DEBUG] get info latency: 138
- [INFO] 1748883633261 successfull sell: {'price': 8.203e-05, 'quantity': 751215.89, 'side': 'sell', 'timestamp': 1748883632000}
- [INFO] sell position: 751215.89 61.6222394567 8.203e-05
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- [INFO] time: 1748883634216 98
- [INFO] book/balance: {'book': {'ask_price': 8.216e-05, 'bid_price': 8.202e-05}, 'balance': {'base': 398434.67, 'quote': 169.39988851867577}}
- [INFO] spread ticks: 14
- [DEBUG] get info latency: 137
- [INFO] missed 1 public trades: [{'price': 8.203e-05, 'quantity': 751215.89, 'side': 'buy', 'timestamp': 1748883632255}]
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- exception new_limit_maker: (400, 'Oversold')
- [WARN] trap attempt: 98
- ^CTraceback (most recent call last):
- File "/home/ubuntu/pydmm/abuse/abuse.py", line 238, in <module>
- abuse.run_event_loop()
- File "/home/ubuntu/pydmm/abuse/abuse.py", line 227, in run_event_loop
- self.trap_attempt(False)
- File "/home/ubuntu/pydmm/abuse/abuse.py", line 88, in trap_attempt
- order = self.market.new_limit_maker(price=price, quantity=(self.order_amount / price), is_bid=is_low) # TODO: не везде есть возврат id
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/ubuntu/pydmm/abuse/mexc_connector.py", line 163, in new_limit_maker
- 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]))
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/mexc_api/spot/endpoints/_account.py", line 54, in new_order
- return self.api.send_request(Method.POST, "/api/v3/order", params, True)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/mexc_api/common/api.py", line 72, in send_request
- response = self.session.request(method.value, url, params, headers=self.session.headers)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
- resp = self.send(prep, **send_kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
- r = adapter.send(request, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
- resp = conn.urlopen(
- ^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
- response = self._make_request(
- ^^^^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 467, in _make_request
- self._validate_conn(conn)
- File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1099, in _validate_conn
- conn.connect()
- File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 653, in connect
- sock_and_verified = _ssl_wrap_socket_and_match_hostname(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 806, in _ssl_wrap_socket_and_match_hostname
- ssl_sock = ssl_wrap_socket(
- ^^^^^^^^^^^^^^^^
- File "/mnt/.venv/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 440, in ssl_wrap_socket
- context.load_verify_locations(ca_certs, ca_cert_dir, ca_cert_data)
- KeyboardInterrupt
- (.venv) ubuntu@52:~/pydmm/abuse$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement