Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
[Mod] 完善代码细节
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Sep 24, 2021
1 parent b55acbd commit ff7fdfe
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 203 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2021 vn.py
Copyright (c) 2015-present, Xiaoyou Chen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# vn.py框架的FTX底层接口
# vn.py框架的FTX交易接口

<p align="center">
<img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/>
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-2021.8.19-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-2021.9.24-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
Expand All @@ -19,9 +19,15 @@

## 安装

安装需要基于2.2.0版本以上的[VN Studio](https://www.vnpy.com)
安装需要基于2.6.0版本以上的[VN Studio](https://www.vnpy.com)

下载解压后在cmd中运行
直接使用pip命令:

```
pip install vnpy_ftx
```

下载解压后在cmd中运行:

```
python setup.py install
Expand All @@ -36,7 +42,7 @@ from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy_ftx.ftx_gateway import FtxGateway
from vnpy_ftx import FtxGateway
def main():
Expand Down
2 changes: 1 addition & 1 deletion script/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp

from vnpy_ftx.ftx_gateway import FtxGateway
from vnpy_ftx import FtxGateway


def main():
Expand Down
189 changes: 0 additions & 189 deletions script/test.ipynb

This file was deleted.

4 changes: 0 additions & 4 deletions script/test.json

This file was deleted.

4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
[metadata]
name = vnpy_ftx
version = 2021.8.19
version = 2021.9.24
url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
Expand Down
31 changes: 31 additions & 0 deletions vnpy_ftx/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# The MIT License (MIT)
#
# Copyright (c) 2015-present, Xiaoyou Chen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import importlib_metadata

from .ftx_gateway import FtxGateways


try:
__version__ = importlib_metadata.version("vnpy_ftx")
except importlib_metadata.PackageNotFoundError:
__version__ = "dev"

0 comments on commit ff7fdfe

Please sign in to comment.