From 73683c1f6dddc0c6b3df7718fd9925aac1ee567c Mon Sep 17 00:00:00 2001 From: VeighNa Global Date: Tue, 12 Mar 2024 09:29:36 +0800 Subject: [PATCH] [Mod] translate README.md to English --- README.md | 37 +++++++++++++++++-------------------- setup.cfg | 2 +- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index d91bb0a..df83be0 100644 --- a/README.md +++ b/README.md @@ -1,54 +1,51 @@ -# vn.py框架的BINANCE底层接口 +# Binance trading gateway for VeighNa Evo

- +

- + - - + +

-## 说明 +## Introduction -基于币安交易所的API开发,支持账户下的现货、期货、永续交易。 +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. 只支持全仓保证金模式 -2. 只支持单向持仓模式 +1. Only supports cross margin mode. +2. Only supports one-way position mode. -请在BINANCE网站完成账户的相应设置后再使用。 +## Install -## 安装 - -安装需要基于3.0.0版本以上的[VN Studio](https://www.vnpy.com)。 - -直接使用pip命令: +Users can easily install ``vnpy_binance`` by pip according to the following command. ``` pip install vnpy_binance ``` -下载解压后在cmd中运行 +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 -以脚本方式启动(script/run.py): +Save this as run.py. ``` from vnpy_evo.event import EventEngine from vnpy_evo.trader.engine import MainEngine from vnpy_evo.trader.ui import MainWindow, create_qapp -import vnpy_evo from vnpy_binance import ( BinanceSpotGateway, BinanceLinearGateway, diff --git a/setup.cfg b/setup.cfg index f096a9b..fa07a83 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ name = vnpy_binance version = attr: vnpy_binance.__version__ author = VeighNa Global author_email = veighna@hotmail.com -description = BINANCE trading gateway for VeighNa. +description = BINANCE trading gateway for VeighNa Evo. long_description = file: README.md long_description_content_type = text/markdown url = https://www.github.com/veighna-global