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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vnpy_binance_pro-2023.6.20.1.tar.gz.
File metadata
- Download URL: vnpy_binance_pro-2023.6.20.1.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f5e98575c019078a7f66d10372a15cd256d884577b699eb2cde67957f75f618
|
|
| MD5 |
e2f00b8cdf8eec6fa92ebec8d412b1de
|
|
| BLAKE2b-256 |
4c1ae3272c7a4b0195202e607df4cf58a40c921b4bb9cda3f335dfdda90dd07a
|
File details
Details for the file vnpy_binance_pro-2023.6.20.1-py3-none-any.whl.
File metadata
- Download URL: vnpy_binance_pro-2023.6.20.1-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
024537d1928b73033bd579ea6f005780cada2f579fde73406d29516561a019e1
|
|
| MD5 |
51d657d1225fa99054f471275f18518b
|
|
| BLAKE2b-256 |
de74b91ca6ac2a87020ea1fa161af4cbf96a97746015dac68afae60a07f6245e
|