defillama-sdk 0.1.1__py3-none-any.whl → 0.1.2__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.
- defillama_sdk/modules/fees.py +6 -8
- defillama_sdk/modules/volumes.py +9 -12
- {defillama_sdk-0.1.1.dist-info → defillama_sdk-0.1.2.dist-info}/METADATA +1 -1
- {defillama_sdk-0.1.1.dist-info → defillama_sdk-0.1.2.dist-info}/RECORD +6 -6
- {defillama_sdk-0.1.1.dist-info → defillama_sdk-0.1.2.dist-info}/WHEEL +1 -1
- {defillama_sdk-0.1.1.dist-info → defillama_sdk-0.1.2.dist-info}/top_level.txt +0 -0
defillama_sdk/modules/fees.py
CHANGED
|
@@ -38,13 +38,12 @@ class FeesModule:
|
|
|
38
38
|
if options:
|
|
39
39
|
if options.get("excludeTotalDataChart") is not None:
|
|
40
40
|
params["excludeTotalDataChart"] = options.get("excludeTotalDataChart")
|
|
41
|
-
if options.get("excludeTotalDataChartBreakdown") is not None:
|
|
42
|
-
params["excludeTotalDataChartBreakdown"] = options.get(
|
|
43
|
-
"excludeTotalDataChartBreakdown"
|
|
44
|
-
)
|
|
45
41
|
data_type = _data_type_value(options.get("dataType"))
|
|
46
42
|
if data_type:
|
|
47
43
|
params["dataType"] = data_type
|
|
44
|
+
params["excludeTotalDataChartBreakdown"] = not (
|
|
45
|
+
options and options.get("excludeTotalDataChartBreakdown") is False
|
|
46
|
+
)
|
|
48
47
|
return self._client.get(
|
|
49
48
|
"/overview/fees",
|
|
50
49
|
params=params or None,
|
|
@@ -59,13 +58,12 @@ class FeesModule:
|
|
|
59
58
|
if options:
|
|
60
59
|
if options.get("excludeTotalDataChart") is not None:
|
|
61
60
|
params["excludeTotalDataChart"] = options.get("excludeTotalDataChart")
|
|
62
|
-
if options.get("excludeTotalDataChartBreakdown") is not None:
|
|
63
|
-
params["excludeTotalDataChartBreakdown"] = options.get(
|
|
64
|
-
"excludeTotalDataChartBreakdown"
|
|
65
|
-
)
|
|
66
61
|
data_type = _data_type_value(options.get("dataType"))
|
|
67
62
|
if data_type:
|
|
68
63
|
params["dataType"] = data_type
|
|
64
|
+
params["excludeTotalDataChartBreakdown"] = not (
|
|
65
|
+
options and options.get("excludeTotalDataChartBreakdown") is False
|
|
66
|
+
)
|
|
69
67
|
return self._client.get(
|
|
70
68
|
f"/overview/fees/{quote(chain)}",
|
|
71
69
|
params=params or None,
|
defillama_sdk/modules/volumes.py
CHANGED
|
@@ -32,12 +32,11 @@ class VolumesModule:
|
|
|
32
32
|
if options:
|
|
33
33
|
if options.get("excludeTotalDataChart") is not None:
|
|
34
34
|
params["excludeTotalDataChart"] = options.get("excludeTotalDataChart")
|
|
35
|
-
if options.get("excludeTotalDataChartBreakdown") is not None:
|
|
36
|
-
params["excludeTotalDataChartBreakdown"] = options.get(
|
|
37
|
-
"excludeTotalDataChartBreakdown"
|
|
38
|
-
)
|
|
39
35
|
if options.get("dataType"):
|
|
40
36
|
params["dataType"] = options.get("dataType")
|
|
37
|
+
params["excludeTotalDataChartBreakdown"] = not (
|
|
38
|
+
options and options.get("excludeTotalDataChartBreakdown") is False
|
|
39
|
+
)
|
|
41
40
|
return self._client.get(
|
|
42
41
|
"/overview/dexs",
|
|
43
42
|
params=params or None,
|
|
@@ -52,10 +51,9 @@ class VolumesModule:
|
|
|
52
51
|
if options:
|
|
53
52
|
if options.get("excludeTotalDataChart") is not None:
|
|
54
53
|
params["excludeTotalDataChart"] = options.get("excludeTotalDataChart")
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
)
|
|
54
|
+
params["excludeTotalDataChartBreakdown"] = not (
|
|
55
|
+
options and options.get("excludeTotalDataChartBreakdown") is False
|
|
56
|
+
)
|
|
59
57
|
return self._client.get(
|
|
60
58
|
f"/overview/dexs/{quote(chain)}",
|
|
61
59
|
params=params or None,
|
|
@@ -83,10 +81,9 @@ class VolumesModule:
|
|
|
83
81
|
if options:
|
|
84
82
|
if options.get("excludeTotalDataChart") is not None:
|
|
85
83
|
params["excludeTotalDataChart"] = options.get("excludeTotalDataChart")
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
84
|
+
params["excludeTotalDataChartBreakdown"] = not (
|
|
85
|
+
options and options.get("excludeTotalDataChartBreakdown") is False
|
|
86
|
+
)
|
|
90
87
|
return self._client.get(
|
|
91
88
|
"/overview/options",
|
|
92
89
|
params=params or None,
|
|
@@ -11,11 +11,11 @@ defillama_sdk/modules/dat.py,sha256=XbIoeljsJZIknRn2s4uMxsq-6M-GDHmOBc38z5a0mBM,
|
|
|
11
11
|
defillama_sdk/modules/ecosystem.py,sha256=NvFO7h2i4Hb2emNAJ_zYNuRUgcqn_m6D-GImDj6hwiY,1518
|
|
12
12
|
defillama_sdk/modules/emissions.py,sha256=SrJ2E7zzRAduJIf-YXtVqJxgqcziGRWvtx3B4A1e5QI,926
|
|
13
13
|
defillama_sdk/modules/etfs.py,sha256=F4HrzAQdd2aFreuL8KCbJnQWJ11cjlUG1oSRpq8d2W4,1535
|
|
14
|
-
defillama_sdk/modules/fees.py,sha256=
|
|
14
|
+
defillama_sdk/modules/fees.py,sha256=qzf_QVLzdAiWsasx-VtMbAgcdBrHcG8izxmxlZxSADk,8125
|
|
15
15
|
defillama_sdk/modules/prices.py,sha256=Cq0ZRTXMdpUteUhopZBWQNqkNf_jiJY2YldRuuViJhQ,3675
|
|
16
16
|
defillama_sdk/modules/stablecoins.py,sha256=TT8IDv0GSLhDqi0NVD9j6GwCo7fidISO2TfEoWPtkOQ,2463
|
|
17
17
|
defillama_sdk/modules/tvl.py,sha256=TRyv0VHg_JpBdtWSpW87vJcuB0EDDHzOJSvkXPXz-RQ,2454
|
|
18
|
-
defillama_sdk/modules/volumes.py,sha256=
|
|
18
|
+
defillama_sdk/modules/volumes.py,sha256=pi3pcsACPDnLuiGTyU6wng1fLU2yQLJUdHlU-Bptbrg,3836
|
|
19
19
|
defillama_sdk/modules/yields.py,sha256=tWgOBgRbw8qtyET22wo8o3umtvbwyKYoojfY8HkMHrk,2178
|
|
20
20
|
defillama_sdk/types/__init__.py,sha256=vD04wPPb58zcvh1BYUcTUifkoqgyy-LRIl8Lm7Z4xkM,317
|
|
21
21
|
defillama_sdk/types/account.py,sha256=BBGOvn3L7WxhGfAWyffc7fqNP1ZbJvWDMHV21UtWrTk,147
|
|
@@ -30,7 +30,7 @@ defillama_sdk/types/stablecoins.py,sha256=SfCVOIogu88JdONekzSJrPIno2v-EYDDoBPBYZ
|
|
|
30
30
|
defillama_sdk/types/tvl.py,sha256=XOsSzVCNpDy3VEbX33vo7qAUv7lokdB9Q7KU5RNKd0k,4530
|
|
31
31
|
defillama_sdk/types/volumes.py,sha256=VJ14YepNzbayY-jsarbv_jIopnxl2bbWPqldo9TZAUs,4293
|
|
32
32
|
defillama_sdk/types/yields.py,sha256=rpuAzxLBy4QO42EtUYDXS-sbq4AqoND9YfePYXLg7Tc,3978
|
|
33
|
-
defillama_sdk-0.1.
|
|
34
|
-
defillama_sdk-0.1.
|
|
35
|
-
defillama_sdk-0.1.
|
|
36
|
-
defillama_sdk-0.1.
|
|
33
|
+
defillama_sdk-0.1.2.dist-info/METADATA,sha256=NAqMTySw40z79p7qU1rJ-2rFWzzqDqzI6ie48Hd9bMk,10781
|
|
34
|
+
defillama_sdk-0.1.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
35
|
+
defillama_sdk-0.1.2.dist-info/top_level.txt,sha256=yG9RRNlMQigBOnKgyW2DJV7-uKWp0YNgFSBkjUnH9r8,14
|
|
36
|
+
defillama_sdk-0.1.2.dist-info/RECORD,,
|
|
File without changes
|