Skip to main content

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:

  1. Only supports cross margin mode.
  2. 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)

Source distribution for vnpy_binance 2026.8.5
File Size Uploaded
vnpy_binance-2026.8.5.tar.gz 46.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vnpy_binance 2026.8.5
File Interpreter ABI Platform
vnpy_binance-2026.8.5-py3-none-any.whl Python 3 none any Details

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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page