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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnpy_binance-2026.7.23.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnpy_binance-2026.7.23-py3-none-any.whl (49.5 kB view details)

Uploaded Python 3

File details

Details for the file vnpy_binance-2026.7.23.tar.gz.

File metadata

  • Download URL: vnpy_binance-2026.7.23.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for vnpy_binance-2026.7.23.tar.gz
Algorithm Hash digest
SHA256 906116f332a2c2a948200dcd155e2dbe2453266643a013c598e34bc6d4210306
MD5 3579e898d3dbad8555df7f1362145641
BLAKE2b-256 ac6871a47d32a332df383239f474ee44beff361ba37aa25266e4d31d5a127e27

See more details on using hashes here.

File details

Details for the file vnpy_binance-2026.7.23-py3-none-any.whl.

File metadata

File hashes

Hashes for vnpy_binance-2026.7.23-py3-none-any.whl
Algorithm Hash digest
SHA256 e954566e84517ee48a57373dfb3fb1d3fa75c231febcf1f3aeff1d39906edcc8
MD5 0e53e486bfbf1d57bbcd86f7eeffdd26
BLAKE2b-256 ec3255b314fc96825963ad16c5d4e686466cf4cb26d67e4d426be778f85cf200

See more details on using hashes here.

Release history Release notifications | RSS feed

2026.8.5

2 files

This release

2026.7.23 This release

2 files

2026.6.28

2 files

2026.6.19

2 files

2026.6.8

2 files

2026.6.5

2 files

2026.5.3

2 files

2026.4.27

2 files

2026.4.15

2 files

2026.4.13

2 files

2026.3.27

2 files

2026.3.26

2 files

2026.3.6

2 files

2026.1.25

2 files

2025.6.17

2 files

2025.1.25

2 files

2024.12.16

2 files

2024.9.18

2 files

2024.9.16

2 files

2024.9.4

2 files

2024.9.3

2 files

2024.8.10

2 files

2024.5.7

2 files

2024.3.12

2 files

2021.10.27

1 file

2021.10.23

1 file

2021.8.15

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page