summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 06:12:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 06:12:52 +0000
commit8acd948a599daa153abde527df4c8eb1f0a87726 (patch)
treea5bd75b15e0ea667d05151d2bdaf272bcccf89a2
parent04e74e8df6f62f5aec685d0fcdf46d26621b6b69 (diff)
automatic import of python-vnpy-dydxopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-vnpy-dydx.spec270
-rw-r--r--sources1
3 files changed, 272 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b54669c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vnpy_dydx-2021.10.3.tar.gz
diff --git a/python-vnpy-dydx.spec b/python-vnpy-dydx.spec
new file mode 100644
index 0000000..2440643
--- /dev/null
+++ b/python-vnpy-dydx.spec
@@ -0,0 +1,270 @@
+%global _empty_manifest_terminate_build 0
+Name: python-vnpy-dydx
+Version: 2021.10.3
+Release: 1
+Summary: dYdX gateway for vn.py quant trading framework.
+License: MIT
+URL: https://www.vnpy.com
+Source0: https://mirrors.aliyun.com/pypi/web/packages/4a/63/72c02892379c2f0810b2b3fa67e07c137a10206a7ad87921ab6a3a0b3943/vnpy_dydx-2021.10.3.tar.gz
+BuildArch: noarch
+
+
+%description
+# vn.py框架的dYdX交易接口
+
+<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.10.3-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"/>
+</p>
+
+## 说明
+
+基于币安交易所的API开发,支持账户下的永续合约交易。
+
+请在dYdX网站完成账户的相应设置后再使用。
+
+## 安装
+
+安装需要基于2.6.0版本以上的[VN Studio](https://www.vnpy.com)。
+
+直接使用pip命令:
+
+```
+pip install vnpy_dydx
+```
+
+下载解压后在cmd中运行
+
+```
+python setup.py install
+```
+
+## 使用
+
+以脚本方式启动(script/run.py):
+
+```
+from vnpy.event import EventEngine
+from vnpy.trader.engine import MainEngine
+from vnpy.trader.ui import MainWindow, create_qapp
+
+from vnpy_dydx import DydxGateway
+
+
+def main():
+ """主入口函数"""
+ qapp = create_qapp()
+
+ event_engine = EventEngine()
+ main_engine = MainEngine(event_engine)
+ main_engine.add_gateway(DydxGateway)
+
+ main_window = MainWindow(main_engine, event_engine)
+ main_window.showMaximized()
+
+ qapp.exec()
+
+
+if __name__ == "__main__":
+ main()
+```
+
+
+
+
+%package -n python3-vnpy-dydx
+Summary: dYdX gateway for vn.py quant trading framework.
+Provides: python-vnpy-dydx
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-vnpy-dydx
+# vn.py框架的dYdX交易接口
+
+<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.10.3-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"/>
+</p>
+
+## 说明
+
+基于币安交易所的API开发,支持账户下的永续合约交易。
+
+请在dYdX网站完成账户的相应设置后再使用。
+
+## 安装
+
+安装需要基于2.6.0版本以上的[VN Studio](https://www.vnpy.com)。
+
+直接使用pip命令:
+
+```
+pip install vnpy_dydx
+```
+
+下载解压后在cmd中运行
+
+```
+python setup.py install
+```
+
+## 使用
+
+以脚本方式启动(script/run.py):
+
+```
+from vnpy.event import EventEngine
+from vnpy.trader.engine import MainEngine
+from vnpy.trader.ui import MainWindow, create_qapp
+
+from vnpy_dydx import DydxGateway
+
+
+def main():
+ """主入口函数"""
+ qapp = create_qapp()
+
+ event_engine = EventEngine()
+ main_engine = MainEngine(event_engine)
+ main_engine.add_gateway(DydxGateway)
+
+ main_window = MainWindow(main_engine, event_engine)
+ main_window.showMaximized()
+
+ qapp.exec()
+
+
+if __name__ == "__main__":
+ main()
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for vnpy-dydx
+Provides: python3-vnpy-dydx-doc
+%description help
+# vn.py框架的dYdX交易接口
+
+<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.10.3-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"/>
+</p>
+
+## 说明
+
+基于币安交易所的API开发,支持账户下的永续合约交易。
+
+请在dYdX网站完成账户的相应设置后再使用。
+
+## 安装
+
+安装需要基于2.6.0版本以上的[VN Studio](https://www.vnpy.com)。
+
+直接使用pip命令:
+
+```
+pip install vnpy_dydx
+```
+
+下载解压后在cmd中运行
+
+```
+python setup.py install
+```
+
+## 使用
+
+以脚本方式启动(script/run.py):
+
+```
+from vnpy.event import EventEngine
+from vnpy.trader.engine import MainEngine
+from vnpy.trader.ui import MainWindow, create_qapp
+
+from vnpy_dydx import DydxGateway
+
+
+def main():
+ """主入口函数"""
+ qapp = create_qapp()
+
+ event_engine = EventEngine()
+ main_engine = MainEngine(event_engine)
+ main_engine.add_gateway(DydxGateway)
+
+ main_window = MainWindow(main_engine, event_engine)
+ main_window.showMaximized()
+
+ qapp.exec()
+
+
+if __name__ == "__main__":
+ main()
+```
+
+
+
+
+%prep
+%autosetup -n vnpy_dydx-2021.10.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-vnpy-dydx -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2021.10.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..09e82e6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2149c8f46955e61c6273b9103bf5b090 vnpy_dydx-2021.10.3.tar.gz