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.8.5.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.8.5-py3-none-any.whl (49.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vnpy_binance-2026.8.5.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.8.5.tar.gz
Algorithm Hash digest
SHA256 76656e61ff575c745bfd52ba9c011f6adc197853093d89f0dc3224054f77a5d8
MD5 f67d3c85d83f5d3333cc829e83bfe859
BLAKE2b-256 b862fb69a30ffa12bdbbebe60c6b85a3678038d307162063816859c7c187ae6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vnpy_binance-2026.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec2885cdee35bb452c0800bc916fb95e811891dba911c3d4f376e68b5d08ad0
MD5 7998be018bcdfa252c1cab4779029e59
BLAKE2b-256 f21e765f19e28a403f189dc41193ad8b914494aa248ea3f7cc5abbe10a91deb6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.8.5 This release

2 files

2026.7.23

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