BINANCE trading gateway for VeighNa.
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vnpy_binance-2026.1.25.tar.gz.
File metadata
- Download URL: vnpy_binance-2026.1.25.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
160f3ccec930eb23b87f11550a6e0329b623100ca6232af26fedfaaa1de53ad0
|
|
| MD5 |
ee0361b3f52904ab1e475f7675bab741
|
|
| BLAKE2b-256 |
1fa38b9bd9bf882a2beb8102da6eb363c02b1f9183bfcd4f350cfb7f4827ef46
|
File details
Details for the file vnpy_binance-2026.1.25-py3-none-any.whl.
File metadata
- Download URL: vnpy_binance-2026.1.25-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f551e887fa5c29d712fc24342edba5cc4aa498d93ae22081798f97127434cf88
|
|
| MD5 |
0b0733eba159c92cf9e278beb5c4473d
|
|
| BLAKE2b-256 |
0adba3f4c273fc29388ed9a47043588c89f015f29a05fa011f1b2d981c2bb450
|