xync-client 0.0.130__tar.gz → 0.0.132__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xync-client might be problematic. Click here for more details.
- {xync_client-0.0.130/xync_client.egg-info → xync_client-0.0.132}/PKG-INFO +1 -1
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/PmAgent.py +2 -2
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/InAgent.py +1 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/etype/order.py +9 -5
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Payeer/login.py +13 -0
- {xync_client-0.0.130 → xync_client-0.0.132/xync_client.egg-info}/PKG-INFO +1 -1
- {xync_client-0.0.130 → xync_client-0.0.132}/.env.sample +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/.gitignore +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/.pre-commit-config.yaml +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/README.md +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/makefile +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/pyproject.toml +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/setup.cfg +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/TestAgent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/TestAsset.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/TestEx.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/TestOrder.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/Binance/test_binance.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/Bybit/test_bybit.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/Bybit/test_bybit_p2p.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/Gate/test_gate.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/Wallet/test_agent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/Wallet/test_ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/tests/_todo_refact/_test_ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/Agent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/Asset.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/Auth.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/BaseTest.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/Ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/Exception.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/InAgent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/Order.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Abc/xtype.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/binance_async.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/earn_api.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/etype/pm.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/exceptions.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/sapi.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Binance/web_c2c.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/agent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/base.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/etype/pm.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/req.mjs +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BingX/sign.js +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BitGet/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BitGet/agent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BitGet/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BitGet/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/BitPapa/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/agent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/etype/cred.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/order.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/web_earn.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/web_p2p.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Bybit/ws.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Gate/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Gate/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Gate/premarket.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Gmail/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/agent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/earn.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/etype/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/etype/cred.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/etype/pm.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/etype/test.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Htx/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/KuCoin/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/KuCoin/etype/pm.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/KuCoin/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/KuCoin/web.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Mexc/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Mexc/etype/pm.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Mexc/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Okx/etype/ad.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Okx/etype/pm.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Okx/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/.gitignore +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Alfa/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Alfa/state.json +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/MTS/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Ozon/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Payeer/.gitignore +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Payeer/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Payeer/api.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Sber/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Sber/utils.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Tinkoff/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Volet/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Volet/_todo_req/req.mjs +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Volet/_todo_req/req.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Volet/api.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Volet/pl.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Xync/__main__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Xync/ed.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/Pms/Yandex/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/agent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/asset.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/auth.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/ex.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/inAgent.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/order.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/pyd.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/pyro.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/TgWallet/web.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/__init__.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/details.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/loader.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client/pm_unifier.py +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client.egg-info/SOURCES.txt +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client.egg-info/dependency_links.txt +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client.egg-info/requires.txt +0 -0
- {xync_client-0.0.130 → xync_client-0.0.132}/xync_client.egg-info/top_level.txt +0 -0
|
@@ -61,8 +61,8 @@ class PmAgentClient(metaclass=ABCMeta):
|
|
|
61
61
|
|
|
62
62
|
async def _idle(self): # todo: не мешать другим процессам, обновлять на другой вкладке?
|
|
63
63
|
while (await User.get(username_id=self.uid)).status >= UserStatus.ACTIVE:
|
|
64
|
-
await self.page.wait_for_timeout(
|
|
65
|
-
if self.last_active < datetime.now() - timedelta(
|
|
64
|
+
await self.page.wait_for_timeout(30 * 1000)
|
|
65
|
+
if self.last_active < datetime.now() - timedelta(minutes=1):
|
|
66
66
|
await self.page.reload()
|
|
67
67
|
self.last_active = datetime.now()
|
|
68
68
|
await self.bot.send(self.norm + " stoped", self.uid)
|
|
@@ -83,6 +83,7 @@ class InAgentClient(BaseInAgentClient):
|
|
|
83
83
|
upd = StatusChange.model_validate(data["data"])
|
|
84
84
|
except ValidationError as e:
|
|
85
85
|
logging.error(e)
|
|
86
|
+
logging.error(data["data"])
|
|
86
87
|
order = self.agent_client.api.get_order_details(orderId=upd.id)
|
|
87
88
|
order = OrderFull.model_validate(order["result"])
|
|
88
89
|
order_db = await models.Order.get_or_none(
|
|
@@ -31,12 +31,16 @@ class Status(IntEnum):
|
|
|
31
31
|
|
|
32
32
|
class StatusApi(IntEnum):
|
|
33
33
|
created = 1
|
|
34
|
+
_web3 = 5
|
|
34
35
|
wait_for_buyer = 10 # ws_canceled
|
|
35
36
|
wait_for_seller = 20
|
|
36
37
|
appealed = 30
|
|
37
38
|
canceled = 40
|
|
38
39
|
completed = 50
|
|
40
|
+
_paying_online = 60
|
|
41
|
+
_pay_fail_online = 70
|
|
39
42
|
hotswap_cancelled = 80
|
|
43
|
+
_buyer_sel_tokenId = 90
|
|
40
44
|
objectioning = 100
|
|
41
45
|
waiting_for_objection = 110
|
|
42
46
|
|
|
@@ -290,7 +294,7 @@ class Message(BaseModel):
|
|
|
290
294
|
nickName: str
|
|
291
295
|
read: Literal[0, 1]
|
|
292
296
|
fileName: str
|
|
293
|
-
onlyForCustomer: int
|
|
297
|
+
onlyForCustomer: int | None = None
|
|
294
298
|
|
|
295
299
|
|
|
296
300
|
class _BaseChange(BaseModel):
|
|
@@ -301,7 +305,7 @@ class _BaseChange(BaseModel):
|
|
|
301
305
|
side: int
|
|
302
306
|
appealedTimes: int
|
|
303
307
|
totalAppealedTimes: int
|
|
304
|
-
status: StatusApi = None
|
|
308
|
+
status: StatusApi | None = None
|
|
305
309
|
|
|
306
310
|
|
|
307
311
|
class StatusChange(_BaseChange):
|
|
@@ -320,18 +324,18 @@ class _BaseMsg(BaseModel):
|
|
|
320
324
|
msgUuId: str
|
|
321
325
|
createDate: str
|
|
322
326
|
contentType: str
|
|
323
|
-
roleType: Literal["user", "sys", "alarm"]
|
|
327
|
+
roleType: Literal["user", "sys", "alarm", "customer_support"]
|
|
324
328
|
|
|
325
329
|
|
|
326
330
|
class Receive(_BaseMsg):
|
|
327
331
|
id: int
|
|
328
332
|
msgCode: int
|
|
329
|
-
onlyForCustomer: int
|
|
333
|
+
onlyForCustomer: int | None = None
|
|
330
334
|
|
|
331
335
|
|
|
332
336
|
class Read(_BaseMsg):
|
|
333
337
|
readAmount: int
|
|
334
|
-
read: Literal["
|
|
338
|
+
read: Literal["101", "110", "111"]
|
|
335
339
|
orderStatus: StatusApi
|
|
336
340
|
|
|
337
341
|
|
|
@@ -12,6 +12,19 @@ async def login(agent: PmAgent):
|
|
|
12
12
|
options.add_argument("--disable-blink-features=AutomationControlled")
|
|
13
13
|
options.add_argument("--no-sandbox")
|
|
14
14
|
options.add_argument("--disable-dev-shm-usage")
|
|
15
|
+
options.add_argument("--headless=new") # for Chrome >= 109
|
|
16
|
+
options.add_argument("--disable-renderer-backgrounding")
|
|
17
|
+
options.add_argument("--disable-background-timer-throttling")
|
|
18
|
+
options.add_argument("--disable-backgrounding-occluded-windows")
|
|
19
|
+
options.add_argument("--disable-client-side-phishing-detection")
|
|
20
|
+
options.add_argument("--disable-crash-reporter")
|
|
21
|
+
options.add_argument("--disable-oopr-debug-crash-dump")
|
|
22
|
+
options.add_argument("--no-crash-upload")
|
|
23
|
+
options.add_argument("--disable-gpu")
|
|
24
|
+
options.add_argument("--disable-extensions")
|
|
25
|
+
options.add_argument("--disable-low-res-tiling")
|
|
26
|
+
options.add_argument("--log-level=3")
|
|
27
|
+
options.add_argument("--silent")
|
|
15
28
|
options.add_argument("--window-size=1920,1080")
|
|
16
29
|
options.add_argument("--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36")
|
|
17
30
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|