OKX trading gateway for VeighNa Evo
Introduction
This gateway is developed based on OKX's V5 REST and Websocket API, and supports spot, linear contract and inverse contract trading.
For derivatives contract trading, please notice:
- Only supports one-way position mode.
Install
Users can easily install vnpy_okx by pip according to the following command.
pip install vnpy_okx
Also, users can install vnpy_okx using the source code. Clone the repository and install as follows:
git clone https://github.com/veighna-global/vnpy_okx.git && cd vnpy_okx
python setup.py install
A Simple Example
Save this as run.py.
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy_okx import OkxGateway
def main() -> None:
"""main entry"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(OkxGateway)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
Metadata
Release files for vnpy_okx 2026.6.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vnpy_okx-2026.6.10.tar.gz | 17.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnpy_okx-2026.6.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.4 kB
Release files / vnpy_okx-2026.6.10.tar.gz
| Download URL | vnpy_okx-2026.6.10.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
147e68cf8ea7fd15be243d8b9c9eb043afc4558a46c0618fdc20a35fb1497d2c
|
|
BLAKE2b-256 checksum How to use checksums |
2f575aa35b5e4ea177b7b433daa3aea020c5029250fb23045c6764d6cb5f6a04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Release files / vnpy_okx-2026.6.10-py3-none-any.whl
| Download URL | vnpy_okx-2026.6.10-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f153fbffc037399d569b43b531b229a183ab4004cadd7f99fa38adaea9a92d5f
|
|
BLAKE2b-256 checksum How to use checksums |
b3da14f835f3f6568a7f14f41bb8df14ff2c103e8efc1e96e7ae58d8eb64f9dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|