Binance trading gateway for VeighNa
Introduction
This gateway is developed based on Binance's REST and Websocket API, and supports spot, linear contract and inverse contract trading.
For derivatives contract trading, please notice:
- Only supports cross margin mode.
- Only supports one-way position mode.
Install
Users can easily install vnpy_binance by pip according to the following command.
pip install vnpy_binance
Also, users can install vnpy_binance using the source code. Clone the repository and install as follows:
git clone https://github.com/veighna-global/vnpy_binance.git && cd vnpy_binance
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_binance import (
BinanceLinearGateway,
)
def main() -> None:
"""main entry"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(BinanceLinearGateway)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
Metadata
Release files for vnpy_binance 2026.8.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vnpy_binance-2026.8.5.tar.gz | 46.1 kB | Without provenance | Details for vnpy_binance-2026.8.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vnpy_binance-2026.8.5-py3-none-any.whl | Python 3 | none | any | Details for vnpy_binance-2026.8.5-py3-none-any.whl |
Total release size: 95.6 kB
Release files / vnpy_binance-2026.8.5.tar.gz
| Download URL | vnpy_binance-2026.8.5.tar.gz |
|---|---|
| Size | 46.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76656e61ff575c745bfd52ba9c011f6adc197853093d89f0dc3224054f77a5d8
|
|
BLAKE2b-256 checksum How to use checksums |
b862fb69a30ffa12bdbbebe60c6b85a3678038d307162063816859c7c187ae6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Release files / vnpy_binance-2026.8.5-py3-none-any.whl
| Download URL | vnpy_binance-2026.8.5-py3-none-any.whl |
|---|---|
| Size | 49.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ec2885cdee35bb452c0800bc916fb95e811891dba911c3d4f376e68b5d08ad0
|
|
BLAKE2b-256 checksum How to use checksums |
f21e765f19e28a403f189dc41193ad8b914494aa248ea3f7cc5abbe10a91deb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Security for vnpy_binance 2026.8.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.