BINANCE gateway for vn.py quant trading framework.
Project description
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()
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
Close
Hashes for vnpy_binance_pro-2023.4.13.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cda8a6a025caa123bf2814019aba400b9514bf2476e7c24a66072956442e9622 |
|
MD5 | 27dce12c5aca898ada4b4465258ffaa1 |
|
BLAKE2b-256 | f6f545795d5f38e478ca7d57b9f8787a7efcaba04ebfc32fd72ff97845847e0d |
Close
Hashes for vnpy_binance_pro-2023.4.13.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6844a85a33f59796c44f7add1fb90b1de182432bf358629a5edf7da7a8b5618e |
|
MD5 | 65cf7633932399bb5005483d7ce1c23d |
|
BLAKE2b-256 | edb3a520125d22df40f4817da706b23a972c2ac47b8021849a909bf514d29dd2 |