Bybit trading gateway for VeighNa Evo
Introduction
This gateway is developed based on Bybit's V5 REST and Websocket API, and supports spot, linear contract, inverse contract and option trading.
For derivatives contract trading, please notice:
- Only supports unified trading account.
- Only supports cross margin and portfolio margin.
- Only supports one-way position mode.
Install
Users can easily install vnpy_bybit by pip according to the following command.
pip install vnpy_bybit
Also, users can install vnpy_bybit using the source code. Clone the repository and install as follows:
git clone https://github.com/veighna-global/vnpy_bybit.git && cd vnpy_bybit
pip install -e .
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_bybit import BybitGateway
def main() -> None:
"""main entry"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(BybitGateway)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
Metadata
Release files for vnpy_bybit 2026.6.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnpy_bybit-2026.6.19-py3-none-any.whl | Python 3 | none | any | Details |
Release files / vnpy_bybit-2026.6.19-py3-none-any.whl
| Download URL | vnpy_bybit-2026.6.19-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5aab21e3a59f90201c9a6e50acb181abc7a31edb1e39119bebfbeac185ba17f8
|
|
BLAKE2b-256 checksum How to use checksums |
7bb97297e2f04752fea6bf7ec60d031bc79a06bb8899a1e6fce37c88d764239c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|