exir-py-lib 1.0.1__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.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: exir-py-lib
3
+ Version: 1.0.1
4
+ Summary: Python client library for EXIR cryptocurrency exchange API
5
+ Author-email: EXIR Team <support@exir.io>
6
+ Maintainer-email: EXIR Team <support@exir.io>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://gitlab.com/exirorg/exir-py-lib
9
+ Project-URL: Documentation, https://gitlab.com/exirorg/exir-py-lib#readme
10
+ Project-URL: Repository, https://gitlab.com/exirorg/exir-py-lib.git
11
+ Keywords: cryptocurrency,trading,exchange,api,websocket,exir
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Office/Business :: Financial :: Investment
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.8
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: requests<3,>=2.28
27
+ Requires-Dist: websocket-client<2,>=1.6
28
+ Provides-Extra: dev
29
+ Requires-Dist: pytest>=7.0; extra == "dev"
30
+ Requires-Dist: pytest-cov; extra == "dev"
31
+ Requires-Dist: black; extra == "dev"
32
+ Requires-Dist: flake8; extra == "dev"
33
+ Requires-Dist: mypy; extra == "dev"
34
+ Dynamic: license-file
35
+
36
+ ## EXIR Python Client - Examples
37
+
38
+ This repository contains a lightweight Python client in `index.py` and runnable examples under `example/` for:
39
+ - **Public**: Fetching market data (e.g., ticker)
40
+ - **Private**: Authenticated calls (user, balance, place orders)
41
+ - **WebSocket**: Streaming market data (orderbook)
42
+
43
+ ### Requirements
44
+ - Python 3.8+
45
+ - Install dependencies:
46
+
47
+ ```bash
48
+ python3 -m pip install -r requirements.txt
49
+ ```
50
+
51
+ ### Project layout
52
+ - `index.py`: EXIR client (public, private, and WebSocket helpers)
53
+ - `utils.py`: HTTP and auth utilities
54
+ - `example/public.py`: Public ticker example
55
+ - `example/balance.py`: Private user + balance example
56
+ - `example/order.py`: Private create order example
57
+ - `example/websocket.py`: WebSocket orderbook subscription example
58
+
59
+ ---
60
+
61
+ ## Public usage
62
+
63
+ Fetch the ticker for `btc-usdt`:
64
+
65
+ ```bash
66
+ python3 example/public.py
67
+ ```
68
+
69
+ Example:
70
+
71
+ ```bash
72
+ python3 example/public.py
73
+ ```
74
+
75
+ ---
76
+
77
+ ## Private usage (user, balance)
78
+
79
+ Set your api keys:
80
+ ```bash
81
+ EXIR_API_KEY=<your-api-key> \
82
+ EXIR_API_SECRET=<your-api-secret> \
83
+ ```
84
+
85
+ Notes:
86
+ - Ensure your key has the required permissions (e.g., trading, read balance).
87
+ - If IP whitelisting is enabled on the key, include your current IP.
88
+ - Your system clock must be accurate; auth uses expiring signatures.
89
+
90
+ ---
91
+
92
+ ## Private usage (create order)
93
+
94
+ Places a limit BUY order for 0.001 BTC at 50,000 USDT on `btc-usdt`:
95
+
96
+ If you receive `401 Unauthorized` when creating orders:
97
+ - Check key permissions and IP whitelist
98
+ - Ensure your system clock is in sync
99
+
100
+ ---
101
+
102
+ ## WebSocket usage (orderbook)
103
+
104
+ Subscribes to `orderbook:btc-usdt` and logs messages for ~10 seconds:
105
+
106
+ Notes:
107
+ - Public WS channels (e.g., `orderbook`, `trade`) do not require credentials, but the script will include them if provided.
108
+ - The client automatically reconnects by default.
@@ -0,0 +1,5 @@
1
+ exir_py_lib-1.0.1.dist-info/licenses/LICENSE,sha256=UwKI_2kcMoxETm2FF6_rub3MiGLBXE2ybckamfIpxeE,1087
2
+ exir_py_lib-1.0.1.dist-info/METADATA,sha256=IU21UbY480AQmh46_jLY7CHXvJ37ODNsQY-oHXzSlRA,3382
3
+ exir_py_lib-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
+ exir_py_lib-1.0.1.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
+ exir_py_lib-1.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 EXIR Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+