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.
@@ -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 = ""