# VeighNa框架的CryptoCurrency扩展模块
<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-0.1.0-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|3.8|3.9|3.10-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
</p>
关于使用VeighNa框架进行Crypto交易的话题,新开了一个[Github Discussions论坛](https://github.com/vn-crypto/vnpy_crypto/discussions),欢迎通过这里来进行讨论交流。
## 说明
针对CryptoCurrency相关交易功能的VeighNa开源量化交易平台扩展插件。
目前主要添加了对于Crypto交易所的枚举值支持:
* Exchange(位于vnpy.trader.constant)
* BINANCE
* BITFINEX
* BITSTAMP
* BYBIT
* COINBASE
* DERIBIT
* DYDX
* FTX
* GATEIO
* HUOBI
* OKEX
## 安装
安装需要基于3.0.0版本的【[**VeighNa**](https://github.com/vnpy/vnpy)】。
下载解压后在cmd中运行:
```
python setup.py install
```
## 使用
在需要加载Crypto交易接口的启动脚本run.py文件的头部,加上如下代码即可:
```
import vnpy_crypto
vnpy_crypto.init()
```
上述代码会自动替换原生框架中的Exchange等枚举值,实现对Crypto交易所的支持。
Raw data
{
"_id": null,
"home_page": "https://www.github.com/vn-crypto/vnpy_crypto",
"name": "vnpy-crypto",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "quant,quantitative,investment,trading,algotrading",
"author": "vn-crypto",
"author_email": "vn.crypto@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/2c/38/b021a6aa6fabf35becb6393f9111f049cb6a46b3ba38040f6ca5aa01b62a/vnpy_crypto-0.1.0.tar.gz",
"platform": null,
"description": "# VeighNa\u6846\u67b6\u7684CryptoCurrency\u6269\u5c55\u6a21\u5757\n\n<p align=\"center\">\n <img src =\"https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png\"/>\n</p>\n\n<p align=\"center\">\n <img src =\"https://img.shields.io/badge/version-0.1.0-blueviolet.svg\"/>\n <img src =\"https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg\"/>\n <img src =\"https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg\" />\n <img src =\"https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange\"/>\n</p>\n\n\n\u5173\u4e8e\u4f7f\u7528VeighNa\u6846\u67b6\u8fdb\u884cCrypto\u4ea4\u6613\u7684\u8bdd\u9898\uff0c\u65b0\u5f00\u4e86\u4e00\u4e2a[Github Discussions\u8bba\u575b](https://github.com/vn-crypto/vnpy_crypto/discussions)\uff0c\u6b22\u8fce\u901a\u8fc7\u8fd9\u91cc\u6765\u8fdb\u884c\u8ba8\u8bba\u4ea4\u6d41\u3002\n\n## \u8bf4\u660e\n\n\u9488\u5bf9CryptoCurrency\u76f8\u5173\u4ea4\u6613\u529f\u80fd\u7684VeighNa\u5f00\u6e90\u91cf\u5316\u4ea4\u6613\u5e73\u53f0\u6269\u5c55\u63d2\u4ef6\u3002\n\n\u76ee\u524d\u4e3b\u8981\u6dfb\u52a0\u4e86\u5bf9\u4e8eCrypto\u4ea4\u6613\u6240\u7684\u679a\u4e3e\u503c\u652f\u6301\uff1a\n\n* Exchange\uff08\u4f4d\u4e8evnpy.trader.constant)\n * BINANCE\n * BITFINEX\n * BITSTAMP\n * BYBIT\n * COINBASE\n * DERIBIT\n * DYDX\n * FTX\n * GATEIO\n * HUOBI\n * OKEX\n\n## \u5b89\u88c5\n\n\u5b89\u88c5\u9700\u8981\u57fa\u4e8e3.0.0\u7248\u672c\u7684\u3010[**VeighNa**](https://github.com/vnpy/vnpy)\u3011\u3002\n\n\n\u4e0b\u8f7d\u89e3\u538b\u540e\u5728cmd\u4e2d\u8fd0\u884c\uff1a\n\n```\npython setup.py install\n```\n\n\n## \u4f7f\u7528\n\n\u5728\u9700\u8981\u52a0\u8f7dCrypto\u4ea4\u6613\u63a5\u53e3\u7684\u542f\u52a8\u811a\u672crun.py\u6587\u4ef6\u7684\u5934\u90e8\uff0c\u52a0\u4e0a\u5982\u4e0b\u4ee3\u7801\u5373\u53ef\uff1a\n\n```\nimport vnpy_crypto\nvnpy_crypto.init()\n```\n\n\u4e0a\u8ff0\u4ee3\u7801\u4f1a\u81ea\u52a8\u66ff\u6362\u539f\u751f\u6846\u67b6\u4e2d\u7684Exchange\u7b49\u679a\u4e3e\u503c\uff0c\u5b9e\u73b0\u5bf9Crypto\u4ea4\u6613\u6240\u7684\u652f\u6301\u3002\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Crypto currency extension for VeighNa quant trading framework.",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://www.github.com/vn-crypto/vnpy_crypto"
},
"split_keywords": [
"quant",
"quantitative",
"investment",
"trading",
"algotrading"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a805cedea8ba3607e1902c47c3e4a4a66d734bdf36be7b791ab0deec804db24c",
"md5": "43729b08603eb9a903f8a634873e9c6a",
"sha256": "3c87dc2e356999ad277978a4a65608d63a98b8a971f5a994a1bdd0be85d5a697"
},
"downloads": -1,
"filename": "vnpy_crypto-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "43729b08603eb9a903f8a634873e9c6a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4493,
"upload_time": "2023-05-18T12:37:51",
"upload_time_iso_8601": "2023-05-18T12:37:51.939487Z",
"url": "https://files.pythonhosted.org/packages/a8/05/cedea8ba3607e1902c47c3e4a4a66d734bdf36be7b791ab0deec804db24c/vnpy_crypto-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2c38b021a6aa6fabf35becb6393f9111f049cb6a46b3ba38040f6ca5aa01b62a",
"md5": "2ad0cab29619feb42ca78cab97c0ebc5",
"sha256": "5047bf7af9d70935e3bef4b94f97e3a508221ad3c5f843500696e2d1a739c829"
},
"downloads": -1,
"filename": "vnpy_crypto-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "2ad0cab29619feb42ca78cab97c0ebc5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3567,
"upload_time": "2023-05-18T12:37:54",
"upload_time_iso_8601": "2023-05-18T12:37:54.335565Z",
"url": "https://files.pythonhosted.org/packages/2c/38/b021a6aa6fabf35becb6393f9111f049cb6a46b3ba38040f6ca5aa01b62a/vnpy_crypto-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-18 12:37:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vn-crypto",
"github_project": "vnpy_crypto",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "vnpy-crypto"
}