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.
@@ -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,
@@ -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
- if options.get("excludeTotalDataChartBreakdown") is not None:
56
- params["excludeTotalDataChartBreakdown"] = options.get(
57
- "excludeTotalDataChartBreakdown"
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
- if options.get("excludeTotalDataChartBreakdown") is not None:
87
- params["excludeTotalDataChartBreakdown"] = options.get(
88
- "excludeTotalDataChartBreakdown"
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: defillama-sdk
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python SDK for DefiLlama API
5
5
  Author: DefiLlama
6
6
  Project-URL: Homepage, https://api-docs.defillama.com/
@@ -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=pmKxX5x8frrHFTdChAqSdmGCFwciRixsgR3PhTTOtRg,8267
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=pawVOPF4KWbTqBCY_Fz4pLUIP1sGUPhDI0xGRE1VRm4,4049
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.1.dist-info/METADATA,sha256=meldDAmvN_3qpk0bF4fnOWg5wqhXzm6KTrFycBqz8t8,10781
34
- defillama_sdk-0.1.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
35
- defillama_sdk-0.1.1.dist-info/top_level.txt,sha256=yG9RRNlMQigBOnKgyW2DJV7-uKWp0YNgFSBkjUnH9r8,14
36
- defillama_sdk-0.1.1.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.1)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5