xync-client 0.0.155__py3-none-any.whl → 0.0.162__py3-none-any.whl
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.
- xync_client/Abc/AdLoader.py +0 -294
- xync_client/Abc/Agent.py +326 -51
- xync_client/Abc/Ex.py +421 -12
- xync_client/Abc/Order.py +7 -14
- xync_client/Abc/xtype.py +35 -3
- xync_client/Bybit/InAgent.py +18 -447
- xync_client/Bybit/agent.py +531 -431
- xync_client/Bybit/etype/__init__.py +0 -0
- xync_client/Bybit/etype/ad.py +47 -34
- xync_client/Bybit/etype/order.py +34 -49
- xync_client/Bybit/ex.py +20 -46
- xync_client/Bybit/order.py +14 -12
- xync_client/Htx/agent.py +82 -40
- xync_client/Htx/etype/ad.py +22 -5
- xync_client/Htx/etype/order.py +194 -0
- xync_client/Htx/ex.py +16 -16
- xync_client/Mexc/agent.py +196 -13
- xync_client/Mexc/api.py +955 -336
- xync_client/Mexc/etype/ad.py +52 -1
- xync_client/Mexc/etype/order.py +131 -416
- xync_client/Mexc/ex.py +29 -19
- xync_client/Okx/1.py +14 -0
- xync_client/Okx/agent.py +39 -0
- xync_client/Okx/ex.py +8 -8
- xync_client/Pms/Payeer/agent.py +396 -0
- xync_client/Pms/Payeer/login.py +1 -63
- xync_client/Pms/Payeer/trade.py +58 -0
- xync_client/Pms/Volet/{__init__.py → agent.py} +1 -2
- xync_client/loader.py +1 -0
- {xync_client-0.0.155.dist-info → xync_client-0.0.162.dist-info}/METADATA +2 -1
- {xync_client-0.0.155.dist-info → xync_client-0.0.162.dist-info}/RECORD +33 -29
- xync_client/Pms/Payeer/__init__.py +0 -262
- xync_client/Pms/Payeer/api.py +0 -25
- {xync_client-0.0.155.dist-info → xync_client-0.0.162.dist-info}/WHEEL +0 -0
- {xync_client-0.0.155.dist-info → xync_client-0.0.162.dist-info}/top_level.txt +0 -0
xync_client/Mexc/etype/ad.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from pydantic import BaseModel, Field
|
|
2
2
|
from xync_schema.xtype import BaseAd
|
|
3
|
-
from typing import Optional
|
|
3
|
+
from typing import Optional, Literal
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class Merchant(BaseModel):
|
|
@@ -30,6 +30,23 @@ class MerchantStatistics(BaseModel):
|
|
|
30
30
|
avgSellHandleTime: float
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
class AdsReq(BaseModel):
|
|
34
|
+
coinId: str # hex
|
|
35
|
+
currency: str # hex
|
|
36
|
+
tradeType: Literal["SELL", "BUY"]
|
|
37
|
+
|
|
38
|
+
payMethod: str = "" # int,int
|
|
39
|
+
amount: str = "" # int
|
|
40
|
+
page: int = 1
|
|
41
|
+
|
|
42
|
+
blockTrade: str = "false" # bool
|
|
43
|
+
# countryCode: str = ""
|
|
44
|
+
follow: str = "false"
|
|
45
|
+
haveTrade: str = "false"
|
|
46
|
+
adsType: int = 1
|
|
47
|
+
allowTrade: str = "false"
|
|
48
|
+
|
|
49
|
+
|
|
33
50
|
class Ad(BaseAd):
|
|
34
51
|
exid: str | None = Field(alias="id")
|
|
35
52
|
price: float
|
|
@@ -57,3 +74,37 @@ class Ad(BaseAd):
|
|
|
57
74
|
minRegisterDate: int
|
|
58
75
|
blockTrade: bool
|
|
59
76
|
tags: str
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class AdUpd(BaseAd):
|
|
80
|
+
id: str
|
|
81
|
+
price: float
|
|
82
|
+
coinId: str # hex
|
|
83
|
+
currency: str
|
|
84
|
+
tradeType: Literal["SELL", "BUY"]
|
|
85
|
+
payment: str
|
|
86
|
+
minTradeLimit: float
|
|
87
|
+
quantity: float
|
|
88
|
+
maxTradeLimit: float
|
|
89
|
+
deviceId: str
|
|
90
|
+
autoResponse: str = "" # quote("P1132998804")
|
|
91
|
+
|
|
92
|
+
tradeTerms: str = ""
|
|
93
|
+
priceType: int = 0
|
|
94
|
+
|
|
95
|
+
adsType: int = 1
|
|
96
|
+
allowSys: str = "true" # bool
|
|
97
|
+
apiVersion: str = "1.0.0"
|
|
98
|
+
authVersion: str = "v2"
|
|
99
|
+
blockTrade: str = "false"
|
|
100
|
+
countryCode: str = "RU"
|
|
101
|
+
display: int = 1 # bool
|
|
102
|
+
exchangeCount: int = 0
|
|
103
|
+
expirationTime: int = 15
|
|
104
|
+
fiatCount: int = 0
|
|
105
|
+
fiatCountLess: int = 0
|
|
106
|
+
kycLevel: Literal["PRIMARY"] = "PRIMARY"
|
|
107
|
+
maxPayLimit: int = 0
|
|
108
|
+
minRegisterDate: int = 0
|
|
109
|
+
requireMobile: str = "false" # bool
|
|
110
|
+
securityOrderPaymentInfo: str = ""
|