Skip to main content

vnpy-binance-pro

继承自veighna-global/vnpy_binance

说明

增加了接口的可用性,限速等

安装

安装需要基于3.0.0版本以上的VN Studio。

直接使用pip命令:

pip install vnpy_binance_pro

下载解压后在cmd中运行

python setup.py install

使用

以脚本方式启动(script/run.py):

import vnpy_crypto
vnpy_crypto.init()

from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp

import vnpy_crypto
from vnpy_binance import (
    BinanceSpotGateway,
    BinanceUsdtGateway,
    BinanceInverseGateway
)


def main():
    """主入口函数"""
    qapp = create_qapp()

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(BinanceSpotGateway)
    main_engine.add_gateway(BinanceUsdtGateway)
    main_engine.add_gateway(BinanceInverseGateway)

    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()


if __name__ == "__main__":
    main()

Metadata

Release files for vnpy-binance-pro 2023.6.20.1

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-pro 2023.6.20.1
File Size Uploaded Provenance
vnpy_binance_pro-2023.6.20.1.tar.gz 18.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vnpy-binance-pro 2023.6.20.1
File Interpreter ABI Platform
vnpy_binance_pro-2023.6.20.1-py3-none-any.whl Python 3 none any Details

Total release size: 44.5 kB

Release files / vnpy_binance_pro-2023.6.20.1.tar.gz

Download URL vnpy_binance_pro-2023.6.20.1.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7f5e98575c019078a7f66d10372a15cd256d884577b699eb2cde67957f75f618
BLAKE2b-256 checksum
How to use checksums
4c1ae3272c7a4b0195202e607df4cf58a40c921b4bb9cda3f335dfdda90dd07a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / vnpy_binance_pro-2023.6.20.1-py3-none-any.whl

Download URL vnpy_binance_pro-2023.6.20.1-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
024537d1928b73033bd579ea6f005780cada2f579fde73406d29516561a019e1
BLAKE2b-256 checksum
How to use checksums
de74b91ca6ac2a87020ea1fa161af4cbf96a97746015dac68afae60a07f6245e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for vnpy-binance-pro 2023.6.20.1

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.

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