xync-schema 0.6.48.dev4__tar.gz → 0.6.50__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.
- {xync_schema-0.6.48.dev4/xync_schema.egg-info → xync_schema-0.6.50}/PKG-INFO +1 -1
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema/enums.py +41 -25
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema/models.py +4 -2
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema/pydantic.py +1 -1
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/.env.sample +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/.gitignore +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/README.md +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/makefile +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/pyproject.toml +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/setup.cfg +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/tests/__init__.py +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/tests/test_db.py +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.6.48.dev4 → xync_schema-0.6.50}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -77,6 +77,7 @@ class ExStatus(IntEnum):
|
|
|
77
77
|
class ExAction(IntEnum):
|
|
78
78
|
"""Order"""
|
|
79
79
|
|
|
80
|
+
get_orders = 0 # Получшение заявок за заданное время, в статусе, по валюте, монете, направлению: `get_orders(stauts=OrderStatus.active, coin='USDT', cur='RUB', is_sell=False) => [order]`
|
|
80
81
|
order_request = 1 # [T] Запрос на старт сделки
|
|
81
82
|
order_request_ask = -1 # [M] - Запрос мейкеру на сделку
|
|
82
83
|
cancel_request = 2 # [T] Отмена запроса на сделку
|
|
@@ -141,6 +142,7 @@ exs = {
|
|
|
141
142
|
"beribit.app",
|
|
142
143
|
"beribit.app",
|
|
143
144
|
"beribit.app/login",
|
|
145
|
+
ExStatus.plan,
|
|
144
146
|
),
|
|
145
147
|
"Binance": (
|
|
146
148
|
ExType.main,
|
|
@@ -148,6 +150,7 @@ exs = {
|
|
|
148
150
|
"binance.com",
|
|
149
151
|
"p2p.binance.com",
|
|
150
152
|
"accounts.binance.com/login",
|
|
153
|
+
ExStatus.plan,
|
|
151
154
|
),
|
|
152
155
|
"BingX": (
|
|
153
156
|
ExType.p2p,
|
|
@@ -155,15 +158,17 @@ exs = {
|
|
|
155
158
|
"bingx.com",
|
|
156
159
|
"api-app.we-api.com",
|
|
157
160
|
"bingx.com/login",
|
|
161
|
+
ExStatus.parted,
|
|
158
162
|
),
|
|
159
|
-
"Bisq": (ExType.p2p, "", "", "", ""),
|
|
160
|
-
"BitcoinGlobal": (ExType.p2p, "", "", "", ""),
|
|
163
|
+
"Bisq": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
164
|
+
"BitcoinGlobal": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
161
165
|
"BitGet": (
|
|
162
166
|
ExType.p2p,
|
|
163
167
|
"https://assets.coingecko.com/markets/images/591/large/2023-07-25_21.47.43.jpg",
|
|
164
168
|
"www.bitget.com",
|
|
165
169
|
"www.bitget.com",
|
|
166
170
|
"www.bitget.com/login",
|
|
171
|
+
ExStatus.parted,
|
|
167
172
|
),
|
|
168
173
|
"BitPapa": (
|
|
169
174
|
ExType.p2p,
|
|
@@ -171,98 +176,109 @@ exs = {
|
|
|
171
176
|
"bitpapa.com",
|
|
172
177
|
"bitpapa.com",
|
|
173
178
|
"bitpapa.com/log-in",
|
|
179
|
+
ExStatus.plan,
|
|
174
180
|
),
|
|
175
|
-
"Bitvalve ": (ExType.p2p, "", "", "", ""),
|
|
181
|
+
"Bitvalve ": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
176
182
|
"Bybit": (
|
|
177
183
|
ExType.main,
|
|
178
184
|
"https://assets.coingecko.com/markets/images/698/large/bybit_spot.png",
|
|
179
185
|
"bybit.com",
|
|
180
186
|
"api2.bybit.com",
|
|
181
187
|
"bybit.com/login",
|
|
188
|
+
ExStatus.parted,
|
|
182
189
|
),
|
|
183
|
-
"CoinCola": (ExType.main, "", "", "", ""),
|
|
184
|
-
"CRYPTED": (ExType.p2p, "", "", "", ""),
|
|
185
|
-
"Garantex": (ExType.p2p, "", "", "", ""),
|
|
190
|
+
"CoinCola": (ExType.main, "", "", "", "", ExStatus.plan),
|
|
191
|
+
"CRYPTED": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
192
|
+
"Garantex": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
186
193
|
"Gate": (
|
|
187
194
|
ExType.p2p,
|
|
188
195
|
"https://assets.coingecko.com/markets/images/403/large/gate_io_logo.jpg",
|
|
189
196
|
"gate.io",
|
|
190
197
|
"gate.io",
|
|
191
198
|
"www.gate.io/login",
|
|
199
|
+
ExStatus.parted,
|
|
192
200
|
),
|
|
193
|
-
"HodlHodl": (ExType.p2p, "", "", "", ""),
|
|
201
|
+
"HodlHodl": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
194
202
|
"Htx": (
|
|
195
203
|
ExType.main,
|
|
196
204
|
"https://assets.coingecko.com/markets/images/25/large/logo_V_colour_black.png",
|
|
197
205
|
"www.htx.com",
|
|
198
206
|
"www.htx.com",
|
|
199
207
|
"htx.com/login",
|
|
208
|
+
ExStatus.parted,
|
|
200
209
|
),
|
|
201
|
-
"Koshelek": (ExType.p2p, "", "", "", ""),
|
|
210
|
+
"Koshelek": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
202
211
|
"KuCoin": (
|
|
203
212
|
ExType.main,
|
|
204
213
|
"https://assets.coingecko.com/markets/images/61/large/kucoin.png",
|
|
205
214
|
"kucoin.com",
|
|
206
215
|
"kucoin.com",
|
|
207
216
|
"www.kucoin.com/ucenter/signin",
|
|
217
|
+
ExStatus.plan,
|
|
208
218
|
),
|
|
209
|
-
"LocalCoinSwap": (ExType.p2p, "", "", "", ""),
|
|
210
|
-
"LocalMonero": (ExType.p2p, "", "", "", ""),
|
|
219
|
+
"LocalCoinSwap": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
220
|
+
"LocalMonero": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
211
221
|
"Mexc": (
|
|
212
222
|
ExType.main,
|
|
213
223
|
"https://assets.coingecko.com/markets/images/409/large/MEXC_logo_square.jpeg",
|
|
214
224
|
"www.mexc.com",
|
|
215
225
|
"www.mexc.com",
|
|
216
226
|
"www.mexc.com/login",
|
|
227
|
+
ExStatus.plan,
|
|
217
228
|
),
|
|
218
|
-
"Noones ": (ExType.p2p, "", "", "", ""),
|
|
229
|
+
"Noones ": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
219
230
|
"Okx": (
|
|
220
231
|
ExType.main,
|
|
221
232
|
"https://assets.coingecko.com/markets/images/379/large/WeChat_Image_20220117220452.png",
|
|
222
233
|
"www.okx.cab",
|
|
223
234
|
"www.okx.cab",
|
|
224
235
|
"www.okx.cab/account/login",
|
|
236
|
+
ExStatus.plan,
|
|
225
237
|
),
|
|
226
|
-
"Paxful": (ExType.p2p, "", "", "", ""),
|
|
227
|
-
"PeachBitcoin": (ExType.p2p, "", "", "", ""),
|
|
228
|
-
"Phemex": (ExType.p2p, "", "", "", ""),
|
|
229
|
-
"Poloniex": (ExType.main, "", "", "", ""),
|
|
230
|
-
"Remitano": (ExType.p2p, "", "", "", ""),
|
|
231
|
-
"RiseX": (ExType.p2p, "", "", "", ""),
|
|
232
|
-
"RoboSats": (ExType.p2p, "", "", "", ""),
|
|
238
|
+
"Paxful": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
239
|
+
"PeachBitcoin": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
240
|
+
"Phemex": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
241
|
+
"Poloniex": (ExType.main, "", "", "", "", ExStatus.plan),
|
|
242
|
+
"Remitano": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
243
|
+
"RiseX": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
244
|
+
"RoboSats": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
233
245
|
"Sigen": (
|
|
234
246
|
ExType.p2p,
|
|
235
247
|
"https://yastatic.net/naydex/yandex-search/neZ1W6346/a21f02dA/2SvJ6dTLJwRiz_lTFP-fhywHqi1fxPNRcIxuKzcpwJ0DGlJzbzdT8ARet86SrINoGNj87R9U-t8HLZcrrBASQf0_6OkAL7cgl6uc0gCrHxI9Y369emE2MJF5yotCyODdZ5iXljtkQJMXTMV9VXsEL68seaiqQF578wnB3V",
|
|
236
248
|
"sigen.pro",
|
|
237
249
|
"sigen.pro",
|
|
238
250
|
"sigen.pro/p2p",
|
|
251
|
+
ExStatus.plan,
|
|
239
252
|
),
|
|
240
|
-
"SkyCrypto": (ExType.p2p, "", "", "", ""),
|
|
241
|
-
"SmartSwap": (ExType.p2p, "", "", "", ""),
|
|
242
|
-
"Solid": (ExType.main, "", "", "", ""),
|
|
253
|
+
"SkyCrypto": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
254
|
+
"SmartSwap": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
255
|
+
"Solid": (ExType.main, "", "", "", "", ExStatus.plan),
|
|
243
256
|
"TgWallet": (
|
|
244
|
-
ExType.
|
|
257
|
+
ExType.tg,
|
|
245
258
|
"https://telerock.ru/uploads/posts/2024-03/f658443d9e_c9d505bbf856e2360ba6812079ba02d0.webp",
|
|
246
259
|
"walletbot.me",
|
|
247
260
|
"p2p.walletbot.me",
|
|
248
261
|
"walletbot.me",
|
|
262
|
+
ExStatus.parted,
|
|
249
263
|
),
|
|
250
|
-
"TotalCoin": (ExType.p2p, "", "", "", ""),
|
|
251
|
-
"WazirX": (ExType.p2p, "", "", "", ""),
|
|
264
|
+
"TotalCoin": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
265
|
+
"WazirX": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
252
266
|
"WebMoney": (
|
|
253
267
|
ExType.p2p,
|
|
254
268
|
"https://vectorseek.com/wp-content/uploads/2023/08/Webmoney-Icon-Logo-Vector.svg-.png",
|
|
255
269
|
"exchanger.money",
|
|
256
270
|
"exchanger.money",
|
|
257
271
|
"exchanger.money",
|
|
272
|
+
ExStatus.plan,
|
|
258
273
|
),
|
|
259
|
-
"WhiteBIT": (ExType.p2p, "", "", "", ""),
|
|
274
|
+
"WhiteBIT": (ExType.p2p, "", "", "", "", ExStatus.plan),
|
|
260
275
|
"xRocket": (
|
|
261
276
|
ExType.p2p,
|
|
262
277
|
"https://cdn.allmylinks.com/prod/Upload/file/R/L/6/8G0TaGNtUV8C1V7VQsivDtJcpEz2z7Lc.jpg",
|
|
263
278
|
"",
|
|
264
279
|
"",
|
|
265
280
|
"",
|
|
281
|
+
ExStatus.plan,
|
|
266
282
|
),
|
|
267
283
|
# "catalogop2p(.com": ExType.p2p, ''), todo: discover brazilian p2p platforms
|
|
268
284
|
}
|
|
@@ -211,10 +211,12 @@ class Agent(Model):
|
|
|
211
211
|
include = "id", "ex", "assets", "auth", "updated_at"
|
|
212
212
|
computed = ["balance"]
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
def client(self):
|
|
215
215
|
import sys
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
module_name = f"xync_client.{self.ex.name}.agent"
|
|
218
|
+
__import__(module_name)
|
|
219
|
+
client = sys.modules[module_name].AgentClient
|
|
218
220
|
return client(self)
|
|
219
221
|
|
|
220
222
|
|
|
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
|