Skip to content

Commit e95f674

Browse files
committed
Fix Async Constructor Args
1 parent cf2bb50 commit e95f674

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

dune_client/api/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""""
1+
""" "
22
Basic Dune Client Class responsible for refreshing Dune Queries
33
Framework built on Dune's API Documentation
44
https://docs.dune.com/api-reference/overview/introduction

dune_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""""
1+
""" "
22
Basic Dune Client Class responsible for refreshing Dune Queries
33
Framework built on Dune's API Documentation
44
https://docs.dune.com/api-reference/overview/introduction

dune_client/client_async.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""""
1+
""" "
22
Async Dune Client Class responsible for refreshing Dune Queries
33
Framework built on Dune's API Documentation
44
https://docs.dune.com/api-reference/overview/introduction
@@ -73,14 +73,22 @@ class AsyncDuneClient(BaseDuneClient):
7373
_connection_limit = 3
7474

7575
def __init__(
76-
self, api_key: str, connection_limit: int = 3, performance: str = "medium"
76+
self,
77+
api_key: str,
78+
base_url: str = "https://api.dune.com",
79+
request_timeout: float = 10,
80+
client_version: str = "v1",
81+
performance: str = "medium",
82+
connection_limit: int = 3,
7783
):
7884
"""
7985
api_key - Dune API key
8086
connection_limit - number of parallel requests to execute.
8187
For non-pro accounts Dune allows only up to 3 requests but that number can be increased.
8288
"""
83-
super().__init__(api_key=api_key, performance=performance)
89+
super().__init__(
90+
api_key, base_url, request_timeout, client_version, performance
91+
)
8492
self._connection_limit = connection_limit
8593
self._session: Optional[ClientSession] = None
8694

0 commit comments

Comments
 (0)