xync-client 0.0.105__tar.gz → 0.0.107__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.105/xync_client.egg-info → xync_client-0.0.107}/PKG-INFO +1 -1
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/agent.py +3 -3
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Payeer/login.py +4 -0
- {xync_client-0.0.105 → xync_client-0.0.107/xync_client.egg-info}/PKG-INFO +1 -1
- {xync_client-0.0.105 → xync_client-0.0.107}/.env.sample +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/.gitignore +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/.pre-commit-config.yaml +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/README.md +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/makefile +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/pyproject.toml +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/setup.cfg +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/TestAgent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/TestAsset.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/TestEx.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/TestOrder.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/Binance/test_binance.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/Bybit/test_bybit.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/Bybit/test_bybit_p2p.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/Gate/test_gate.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/Wallet/test_agent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/Wallet/test_ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/tests/_todo_refact/_test_ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/Agent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/Asset.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/Auth.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/BaseTest.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/Ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/Exception.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/InAgent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/Order.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/PmAgent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Abc/xtype.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/binance_async.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/earn_api.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/etype/pm.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/exceptions.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/sapi.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Binance/web_c2c.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/agent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/base.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/etype/pm.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/req.mjs +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BingX/sign.js +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BitGet/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BitGet/agent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BitGet/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BitGet/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/BitPapa/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/InAgent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/etype/cred.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/etype/order.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/order.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/web_earn.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/web_p2p.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Bybit/ws.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Gate/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Gate/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Gate/premarket.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Gmail/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/agent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/earn.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/etype/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/etype/cred.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/etype/pm.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/etype/test.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Htx/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/KuCoin/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/KuCoin/etype/pm.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/KuCoin/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/KuCoin/web.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Mexc/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Mexc/etype/pm.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Mexc/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Okx/etype/ad.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Okx/etype/pm.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Okx/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/.gitignore +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Alfa/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Alfa/state.json +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/MTS/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Ozon/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Payeer/.gitignore +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Payeer/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Payeer/api.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Sber/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Sber/utils.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Tinkoff/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Volet/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Volet/_todo_req/req.mjs +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Volet/_todo_req/req.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Volet/api.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Volet/pl.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Xync/__main__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Xync/ed.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/Pms/Yandex/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/agent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/asset.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/auth.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/ex.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/inAgent.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/order.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/pyd.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/pyro.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/TgWallet/web.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/__init__.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/loader.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client/pm_unifier.py +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client.egg-info/SOURCES.txt +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client.egg-info/dependency_links.txt +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client.egg-info/requires.txt +0 -0
- {xync_client-0.0.105 → xync_client-0.0.107}/xync_client.egg-info/top_level.txt +0 -0
|
@@ -641,7 +641,7 @@ class AgentClient(BaseAgentClient): # Bybit client
|
|
|
641
641
|
expiration = datetime.now(timezone.utc) - timedelta(minutes=15)
|
|
642
642
|
if race.updated_at < expiration:
|
|
643
643
|
ceils, hp, vmf, zplace = await self.get_ceils(coinex, curex, pmexs, 0.001, True)
|
|
644
|
-
race.ceil = ceils[int(taker_side)] * 10**curex.scale
|
|
644
|
+
race.ceil = int(ceils[int(taker_side)] * 10**curex.scale)
|
|
645
645
|
await race.save()
|
|
646
646
|
# upd pair race
|
|
647
647
|
if prace := await models.Race.annotate(pms_count=Count("road__ad__pms")).get_or_none(
|
|
@@ -652,7 +652,7 @@ class AgentClient(BaseAgentClient): # Bybit client
|
|
|
652
652
|
road__ad__pms__id__in=pm_ids,
|
|
653
653
|
pms_count=len(pm_ids),
|
|
654
654
|
):
|
|
655
|
-
prace.ceil = ceils[int(not taker_side)] * 10**curex.scale
|
|
655
|
+
prace.ceil = int(ceils[int(not taker_side)] * 10**curex.scale)
|
|
656
656
|
await prace.save()
|
|
657
657
|
|
|
658
658
|
last_vol = volume
|
|
@@ -1207,7 +1207,7 @@ async def main():
|
|
|
1207
1207
|
# await s.curs.add(rub.cur)
|
|
1208
1208
|
|
|
1209
1209
|
# пока порешали рейс-кондишн, очищаем сиротские условия при каждом запуске
|
|
1210
|
-
[await c.delete() for c in await Cond.filter(ads__isnull=True)]
|
|
1210
|
+
# [await c.delete() for c in await Cond.filter(ads__isnull=True)]
|
|
1211
1211
|
cl.all_conds = {
|
|
1212
1212
|
c.id: (c.raw_txt, {a.maker.exid for a in c.ads}) for c in await Cond.all().prefetch_related("ads__maker")
|
|
1213
1213
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from time import sleep
|
|
2
|
+
|
|
1
3
|
from selenium.webdriver.common.by import By
|
|
2
4
|
import undetected_chromedriver as uc
|
|
3
5
|
from xync_schema.models import PmAgent
|
|
@@ -22,6 +24,7 @@ async def login(agent: PmAgent):
|
|
|
22
24
|
password_field = wait.until(EC.presence_of_element_located((By.NAME, "password")))
|
|
23
25
|
password_field.send_keys(agent.auth.get("password"))
|
|
24
26
|
login_button = wait.until(EC.element_to_be_clickable((By.CLASS_NAME, "login-form__login-btn.step1")))
|
|
27
|
+
sleep(1)
|
|
25
28
|
try:
|
|
26
29
|
login_button.click()
|
|
27
30
|
except Exception:
|
|
@@ -42,6 +45,7 @@ async def login(agent: PmAgent):
|
|
|
42
45
|
except Exception:
|
|
43
46
|
driver.execute_script("arguments[0].click();", step2_button)
|
|
44
47
|
|
|
48
|
+
sleep(1)
|
|
45
49
|
agent.state = {"cookies": driver.get_cookies()}
|
|
46
50
|
await agent.save()
|
|
47
51
|
finally:
|
|
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
|
|
File without changes
|