deltadefi 0.0.2__py3-none-any.whl → 0.0.3__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.
Potentially problematic release.
This version of deltadefi might be problematic. Click here for more details.
deltadefi/clients/clients.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
# flake8: noqa: E501
|
|
2
2
|
from sidan_gin import HDWallet
|
|
3
3
|
|
|
4
|
-
from deltadefi.api_resources.auth import ApiHeaders
|
|
5
4
|
from deltadefi.clients.accounts import Accounts
|
|
6
5
|
from deltadefi.clients.app import App
|
|
7
|
-
from deltadefi.clients.
|
|
6
|
+
from deltadefi.clients.market import Market
|
|
8
7
|
from deltadefi.clients.order import Order
|
|
9
8
|
from deltadefi.responses import PostOrderResponse
|
|
10
9
|
|
|
@@ -43,7 +42,7 @@ class ApiClient:
|
|
|
43
42
|
self.accounts = Accounts(base_url=base_url, api_key=api_key)
|
|
44
43
|
self.app = App(base_url=base_url, api_key=api_key)
|
|
45
44
|
self.order = Order(base_url=base_url, api_key=api_key)
|
|
46
|
-
self.
|
|
45
|
+
self.market = Market(base_url=base_url, api_key=api_key)
|
|
47
46
|
|
|
48
47
|
async def post_order(self, **kwargs) -> PostOrderResponse:
|
|
49
48
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: deltadefi
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Python SDK for DeltaDeFi protocol.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: cardano
|
|
@@ -72,17 +72,17 @@ account_balance = api.accounts.get_account_balance()
|
|
|
72
72
|
print(account_balance)
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
###
|
|
75
|
+
### Market
|
|
76
76
|
|
|
77
|
-
The
|
|
77
|
+
The Market client allows you to interact with market-related endpoints.
|
|
78
78
|
|
|
79
79
|
```python
|
|
80
80
|
# Get market depth
|
|
81
|
-
market_depth = api.
|
|
81
|
+
market_depth = api.market.get_depth("ADAUSDX")
|
|
82
82
|
print(market_depth_response)
|
|
83
83
|
|
|
84
84
|
# Get market price
|
|
85
|
-
market_price_response = api.
|
|
85
|
+
market_price_response = api.market.get_market_price("ADAUSDX")
|
|
86
86
|
print(market_price_response)
|
|
87
87
|
```
|
|
88
88
|
|
|
@@ -6,8 +6,8 @@ deltadefi/api_resources/validation.py,sha256=vz-hovpLy9SMOIFGcBHC8vWZH8CJRlQP8rc
|
|
|
6
6
|
deltadefi/clients/__init__.py,sha256=AoK_kj_UKpxtCa3_if3yeHFAzHli9Mg-tsrUKOX7eH8,38
|
|
7
7
|
deltadefi/clients/accounts.py,sha256=I3Yh82iHVK932u2Luvewbxk_KJ-WVLYqH048XBFgrsQ,5347
|
|
8
8
|
deltadefi/clients/app.py,sha256=TOgRlP83p91r7oS4ez8Gfm8soQzFHrJAmOHZJoGZ4SM,712
|
|
9
|
-
deltadefi/clients/clients.py,sha256=
|
|
10
|
-
deltadefi/clients/
|
|
9
|
+
deltadefi/clients/clients.py,sha256=Yzxkpf9-PA6LdYiJtmap1DrE3U5Sd4VNDGjexZxVbcs,2197
|
|
10
|
+
deltadefi/clients/market.py,sha256=v8hK06oXC73qS3IjvWDempHq_-9T6OW2pckIcDR7P2M,2580
|
|
11
11
|
deltadefi/clients/order.py,sha256=1IfYf4uqNz9nchv4l7ulxhUDd_Yink2r8hGWmDf85Jc,3927
|
|
12
12
|
deltadefi/constants/__init__.py,sha256=7LkrzfLTJsCCUl5IgZYrl-AbY_cf1fftcLklgnBYDTs,40
|
|
13
13
|
deltadefi/constants/constants.py,sha256=9Ksb8_4t78KJpHVUnRArKlvgQk-CzcYsLRmA5qUnMwc,168
|
|
@@ -19,6 +19,6 @@ deltadefi/models/models.py,sha256=vnNFFPMQcOOSKhONHNHXJIx4wddV4IKeBszykiqWCwk,11
|
|
|
19
19
|
deltadefi/responses/__init__.py,sha256=JKSIUQu6qI_XhbAR2mVMCKNvR6x_vFZdyLGOuQTVrVY,64
|
|
20
20
|
deltadefi/responses/accounts.py,sha256=aVQq1CqebIQz0YuNphFlA2fGBgvmf8FpboJzToEiY2g,939
|
|
21
21
|
deltadefi/responses/responses.py,sha256=etlx83GgZC2noLKo8GKrmDo3Xhwup-g8Ob29f0WYA4I,993
|
|
22
|
-
deltadefi-0.0.
|
|
23
|
-
deltadefi-0.0.
|
|
24
|
-
deltadefi-0.0.
|
|
22
|
+
deltadefi-0.0.3.dist-info/METADATA,sha256=2uuEaP7hhUK7lgvSe8B9JRiMVeAsYMX9cDa0o343aD0,3081
|
|
23
|
+
deltadefi-0.0.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
24
|
+
deltadefi-0.0.3.dist-info/RECORD,,
|
|
File without changes
|