@@ -9,12 +9,8 @@ class IndexEntity(ThreeCommasModel):
9
9
total : int
10
10
page : int
11
11
12
- def parsed (self , parsed : bool ) -> IndexEntity :
13
- return ParsedProxy (model = self , parsed = parsed )
14
-
15
12
_parse_map = {
16
13
}
17
-
18
14
_name_proxy = {
19
15
}
20
16
@@ -31,12 +27,8 @@ class MarketplaceBotEntity(ThreeCommasModel):
31
27
copies : int
32
28
is_favorite : bool
33
29
34
- def parsed (self , parsed : bool ) -> MarketplaceBotEntity :
35
- return ParsedProxy (model = self , parsed = parsed )
36
-
37
30
_parse_map = {
38
31
}
39
-
40
32
_name_proxy = {
41
33
}
42
34
@@ -46,12 +38,8 @@ class MarketplaceItem(ThreeCommasModel):
46
38
name : str
47
39
icon_url : str
48
40
49
- def parsed (self , parsed : bool ) -> MarketplaceItem :
50
- return ParsedProxy (model = self , parsed = parsed )
51
-
52
41
_parse_map = {
53
42
}
54
-
55
43
_name_proxy = {
56
44
}
57
45
@@ -61,38 +49,26 @@ class Profit(ThreeCommasModel):
61
49
amount : float
62
50
chart_data : list
63
51
64
- def parsed (self , parsed : bool ) -> Profit :
65
- return ParsedProxy (model = self , parsed = parsed )
66
-
67
52
_parse_map = {
68
53
}
69
-
70
54
_name_proxy = {
71
55
}
72
56
73
57
74
58
class PongEntity (ThreeCommasModel ):
75
59
pong : str
76
60
77
- def parsed (self , parsed : bool ) -> PongEntity :
78
- return ParsedProxy (model = self , parsed = parsed )
79
-
80
61
_parse_map = {
81
62
}
82
-
83
63
_name_proxy = {
84
64
}
85
65
86
66
87
67
class TimeEntity (ThreeCommasModel ):
88
68
server_time : int
89
69
90
- def parsed (self , parsed : bool ) -> TimeEntity :
91
- return ParsedProxy (model = self , parsed = parsed )
92
-
93
70
_parse_map = {
94
71
}
95
-
96
72
_name_proxy = {
97
73
}
98
74
@@ -150,9 +126,6 @@ class BotEntity(ThreeCommasModel):
150
126
start_order_type : str
151
127
active_deals_usd_profit : Union [str , float ]
152
128
153
- def parsed (self , parsed : bool ) -> BotEntity :
154
- return ParsedProxy (model = self , parsed = parsed )
155
-
156
129
_parse_map = {
157
130
'created_at' : DatetimeParser ,
158
131
'updated_at' : DatetimeParser ,
@@ -170,7 +143,6 @@ def parsed(self, parsed: bool) -> BotEntity:
170
143
'finished_deals_count' : IntParser ,
171
144
'active_deals_usd_profit' : FloatParser ,
172
145
}
173
-
174
146
_name_proxy = {
175
147
'deletable' : 'deletable?' ,
176
148
}
@@ -230,9 +202,6 @@ class AccountEntity(ThreeCommasModel):
230
202
market_code : str
231
203
address : str
232
204
233
- def parsed (self , parsed : bool ) -> AccountEntity :
234
- return ParsedProxy (model = self , parsed = parsed )
235
-
236
205
_parse_map = {
237
206
'created_at' : DatetimeParser ,
238
207
'updated_at' : DatetimeParser ,
@@ -249,7 +218,6 @@ def parsed(self, parsed: bool) -> AccountEntity:
249
218
'total_btc_profit' : FloatParser ,
250
219
'total_usd_profit' : FloatParser ,
251
220
}
252
-
253
221
_name_proxy = {
254
222
}
255
223
@@ -283,12 +251,8 @@ class GridBotEntity(ThreeCommasModel):
283
251
investment_quote_currency : str
284
252
grid_lines : None
285
253
286
- def parsed (self , parsed : bool ) -> GridBotEntity :
287
- return ParsedProxy (model = self , parsed = parsed )
288
-
289
254
_parse_map = {
290
255
}
291
-
292
256
_name_proxy = {
293
257
}
294
258
@@ -298,12 +262,8 @@ class GridLineEntity(ThreeCommasModel):
298
262
side : str
299
263
order_placed : bool
300
264
301
- def parsed (self , parsed : bool ) -> GridLineEntity :
302
- return ParsedProxy (model = self , parsed = parsed )
303
-
304
265
_parse_map = {
305
266
}
306
-
307
267
_name_proxy = {
308
268
}
309
269
@@ -314,12 +274,8 @@ class GridBotProfitsEntity(ThreeCommasModel):
314
274
usd_profit : str
315
275
created_at : str
316
276
317
- def parsed (self , parsed : bool ) -> GridBotProfitsEntity :
318
- return ParsedProxy (model = self , parsed = parsed )
319
-
320
277
_parse_map = {
321
278
}
322
-
323
279
_name_proxy = {
324
280
}
325
281
@@ -398,9 +354,6 @@ class DealEntity(ThreeCommasModel):
398
354
reserved_quote_funds : Union [float , float ]
399
355
reserved_base_funds : float
400
356
401
- def parsed (self , parsed : bool ) -> DealEntity :
402
- return ParsedProxy (model = self , parsed = parsed )
403
-
404
357
_parse_map = {
405
358
'created_at' : DatetimeParser ,
406
359
'updated_at' : DatetimeParser ,
@@ -434,7 +387,6 @@ def parsed(self, parsed: bool) -> DealEntity:
434
387
'trailing_max_price' : FloatParser ,
435
388
'reserved_quote_funds' : FloatParser ,
436
389
}
437
-
438
390
_name_proxy = {
439
391
'finished' : 'finished?' ,
440
392
'cancellable' : 'cancellable?' ,
@@ -460,12 +412,8 @@ class SmartTradeV2Entity(ThreeCommasModel):
460
412
margin : dict
461
413
is_position_not_filled : bool
462
414
463
- def parsed (self , parsed : bool ) -> SmartTradeV2Entity :
464
- return ParsedProxy (model = self , parsed = parsed )
465
-
466
415
_parse_map = {
467
416
}
468
-
469
417
_name_proxy = {
470
418
}
471
419
@@ -488,12 +436,8 @@ class TakeProfitStep(ThreeCommasModel):
488
436
margin : dict
489
437
is_position_not_filled : bool
490
438
491
- def parsed (self , parsed : bool ) -> TakeProfitStep :
492
- return ParsedProxy (model = self , parsed = parsed )
493
-
494
439
_parse_map = {
495
440
}
496
-
497
441
_name_proxy = {
498
442
}
499
443
@@ -510,12 +454,8 @@ class BotDealsStatsEntity(ThreeCommasModel):
510
454
active_deals_usd_profit : str
511
455
active_deals_btc_profit : str
512
456
513
- def parsed (self , parsed : bool ) -> BotDealsStatsEntity :
514
- return ParsedProxy (model = self , parsed = parsed )
515
-
516
457
_parse_map = {
517
458
}
518
-
519
459
_name_proxy = {
520
460
}
521
461
@@ -529,12 +469,8 @@ class LooseAccountEntity(ThreeCommasModel):
529
469
is_deleted : bool
530
470
is_locked : bool
531
471
532
- def parsed (self , parsed : bool ) -> LooseAccountEntity :
533
- return ParsedProxy (model = self , parsed = parsed )
534
-
535
472
_parse_map = {
536
473
}
537
-
538
474
_name_proxy = {
539
475
}
540
476
0 commit comments