vnpy_okx 2025.6.17__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,95 @@
1
+ Metadata-Version: 2.4
2
+ Name: vnpy_okx
3
+ Version: 2025.6.17
4
+ Summary: OKX trading gateway for VeighNa.
5
+ Project-URL: Homepage, https://www.github.com/veighna-global
6
+ Project-URL: Source, https://www.github.com/veighna-global
7
+ Author-email: VeighNa Global <veighna@hotmail.com>
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Keywords: algotrading,btc,crypto,investment,okx,quant,quantitative,trading
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Natural Language :: English
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: Implementation :: CPython
23
+ Classifier: Topic :: Office/Business :: Financial :: Investment
24
+ Requires-Python: >=3.10
25
+ Requires-Dist: vnpy-rest
26
+ Requires-Dist: vnpy-websocket
27
+ Description-Content-Type: text/markdown
28
+
29
+ # OKX trading gateway for VeighNa Evo
30
+
31
+ <p align="center">
32
+ <img src ="https://github.com/veighna-global/vnpy_evo/blob/dev/logo.png" width="300" height="300"/>
33
+ </p>
34
+
35
+ <p align="center">
36
+ <img src ="https://img.shields.io/badge/version-2025.06.17-blueviolet.svg"/>
37
+ <img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
38
+ <img src ="https://img.shields.io/badge/python-3.10|3.11|3.12|3.13-blue.svg" />
39
+ <img src ="https://img.shields.io/github/license/veighna-global/vnpy_okx.svg?color=orange"/>
40
+ </p>
41
+
42
+ ## Introduction
43
+
44
+ This gateway is developed based on OKX's V5 REST and Websocket API, and supports spot, linear contract and inverse contract trading.
45
+
46
+ **For derivatives contract trading, please notice:**
47
+
48
+ 1. Only supports one-way position mode.
49
+
50
+ ## Install
51
+
52
+ Users can easily install ``vnpy_okx`` by pip according to the following command.
53
+
54
+ ```
55
+ pip install vnpy_okx
56
+ ```
57
+
58
+ Also, users can install ``vnpy_okx`` using the source code. Clone the repository and install as follows:
59
+
60
+ ```
61
+ git clone https://github.com/veighna-global/vnpy_okx.git && cd vnpy_okx
62
+
63
+ python setup.py install
64
+ ```
65
+
66
+ ## A Simple Example
67
+
68
+ Save this as run.py.
69
+
70
+ ```
71
+ from vnpy.event import EventEngine
72
+ from vnpy.trader.engine import MainEngine
73
+ from vnpy.trader.ui import MainWindow, create_qapp
74
+
75
+ from vnpy_okx import OkxGateway
76
+
77
+
78
+ def main() -> None:
79
+ """main entry"""
80
+ qapp = create_qapp()
81
+
82
+ event_engine = EventEngine()
83
+ main_engine = MainEngine(event_engine)
84
+ main_engine.add_gateway(OkxGateway)
85
+
86
+ main_window = MainWindow(main_engine, event_engine)
87
+ main_window.showMaximized()
88
+
89
+ qapp.exec()
90
+
91
+
92
+ if __name__ == "__main__":
93
+ main()
94
+
95
+ ```
@@ -0,0 +1,6 @@
1
+ vnpy_okx/__init__.py,sha256=5jnVYZEeCqLXcgDxz_MSuehbGgLkd-TJPLzS9mj87-k,1248
2
+ vnpy_okx/okx_gateway.py,sha256=M8_jlEO7cJq3kIiLMtq-PTxOmjeGcrbcSEeqBqOIU48,48177
3
+ vnpy_okx-2025.6.17.dist-info/METADATA,sha256=I5lMcFkByLDMzd-TnuOgcw91JCFQooo56tMJuZy2NDc,2840
4
+ vnpy_okx-2025.6.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ vnpy_okx-2025.6.17.dist-info/licenses/LICENSE,sha256=vKkW-EmD7w-5lDDjg15L8feZ1nkQeNpEHfyO2v9tprs,1099
6
+ vnpy_okx-2025.6.17.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2015-present, Xiaoyou Chen
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.