# BTSE trading gateway for VeighNa Evo
<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-2024.5.7-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.10|3.11|3.12-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
</p>
## Introduction
This gateway is developed based on BTSE's REST and Websocket API, and supports spot, futures contract and swap contract trading.
For derivatives contract trading, please notice:
1. Only supports cross margin mode.
2. Only supports one-way position mode.
## Install
Users can easily install ``vnpy_btse`` by pip according to the following command.
```
pip install vnpy_btse
```
Also, users can install ``vnpy_btse`` using the source code. Clone the repository and install as follows:
```
git clone https://github.com/veighna-global/vnpy_btse.git && cd vnpy_btse
python setup.py install
```
## A Simple Example
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
from vnpy_btse import BtseGateway
def main():
"""Start VeighNa Trader"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(BtseGateway)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
```
Raw data
{
"_id": null,
"home_page": "https://www.github.com/veighna-global",
"name": "vnpy-btse",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "quant, quantitative, investment, trading, algotrading, btse, btc, crypto",
"author": "VeighNa Global",
"author_email": "veighna@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/5f/cc/942b781b4249771d5ef8d3e3c790b944767fe535de4dabe8e30bd7e423fc/vnpy_btse-2024.5.7.tar.gz",
"platform": null,
"description": "# BTSE trading gateway for VeighNa Evo\r\n\r\n<p align=\"center\">\r\n <img src =\"https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png\"/>\r\n</p>\r\n\r\n<p align=\"center\">\r\n <img src =\"https://img.shields.io/badge/version-2024.5.7-blueviolet.svg\"/>\r\n <img src =\"https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg\"/>\r\n <img src =\"https://img.shields.io/badge/python-3.10|3.11|3.12-blue.svg\" />\r\n <img src =\"https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange\"/>\r\n</p>\r\n\r\n## Introduction\r\n\r\nThis gateway is developed based on BTSE's REST and Websocket API, and supports spot, futures contract and swap contract trading.\r\n\r\nFor derivatives contract trading, please notice:\r\n\r\n1. Only supports cross margin mode.\r\n2. Only supports one-way position mode.\r\n\r\n## Install\r\n\r\nUsers can easily install ``vnpy_btse`` by pip according to the following command.\r\n\r\n```\r\npip install vnpy_btse\r\n```\r\n\r\nAlso, users can install ``vnpy_btse`` using the source code. Clone the repository and install as follows:\r\n\r\n```\r\ngit clone https://github.com/veighna-global/vnpy_btse.git && cd vnpy_btse\r\n\r\npython setup.py install\r\n```\r\n\r\n## A Simple Example\r\n\r\nSave this as run.py.\r\n\r\n```\r\nfrom vnpy_evo.event import EventEngine\r\nfrom vnpy_evo.trader.engine import MainEngine\r\nfrom vnpy_evo.trader.ui import MainWindow, create_qapp\r\n\r\nfrom vnpy_btse import BtseGateway\r\n\r\n\r\ndef main():\r\n \"\"\"Start VeighNa Trader\"\"\"\r\n qapp = create_qapp()\r\n\r\n event_engine = EventEngine()\r\n main_engine = MainEngine(event_engine)\r\n main_engine.add_gateway(BtseGateway)\r\n\r\n main_window = MainWindow(main_engine, event_engine)\r\n main_window.showMaximized()\r\n\r\n qapp.exec()\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "BTSE trading gateway for VeighNa Evo.",
"version": "2024.5.7",
"project_urls": {
"Homepage": "https://www.github.com/veighna-global"
},
"split_keywords": [
"quant",
" quantitative",
" investment",
" trading",
" algotrading",
" btse",
" btc",
" crypto"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "14694d0d4d337f7cd6983a8fab42df7968c72eae0d20cfcc0abbaa2276855fb3",
"md5": "725d46f48bb490a609b37f1b286443a5",
"sha256": "8b135576114e49422919b5a759c3de88b1883600c12c4e824c7b347c65caf5e1"
},
"downloads": -1,
"filename": "vnpy_btse-2024.5.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "725d46f48bb490a609b37f1b286443a5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11151,
"upload_time": "2024-05-06T14:17:17",
"upload_time_iso_8601": "2024-05-06T14:17:17.839906Z",
"url": "https://files.pythonhosted.org/packages/14/69/4d0d4d337f7cd6983a8fab42df7968c72eae0d20cfcc0abbaa2276855fb3/vnpy_btse-2024.5.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5fcc942b781b4249771d5ef8d3e3c790b944767fe535de4dabe8e30bd7e423fc",
"md5": "d43de992ee25a6a0d836d0758db4727d",
"sha256": "e17b036805755671d6f6a238fdfed5a64ccc5774bc361303982c280424b43e8a"
},
"downloads": -1,
"filename": "vnpy_btse-2024.5.7.tar.gz",
"has_sig": false,
"md5_digest": "d43de992ee25a6a0d836d0758db4727d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11359,
"upload_time": "2024-05-06T14:17:19",
"upload_time_iso_8601": "2024-05-06T14:17:19.144925Z",
"url": "https://files.pythonhosted.org/packages/5f/cc/942b781b4249771d5ef8d3e3c790b944767fe535de4dabe8e30bd7e423fc/vnpy_btse-2024.5.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-06 14:17:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "vnpy-btse"
}