BTSE trading gateway for VeighNa Evo
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:
- Only supports cross margin mode.
- 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()
Metadata
Release files for vnpy-btse 2024.5.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vnpy_btse-2024.5.8.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnpy_btse-2024.5.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / vnpy_btse-2024.5.8.tar.gz
| Download URL | vnpy_btse-2024.5.8.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40e5df950347936f6220a9243e52e0a56cc917d4b73e795b535e7dcf13e09468
|
|
BLAKE2b-256 checksum How to use checksums |
c92fbb2ea36fc7bd174b1403df72fc969c55f37d4802aa04a79b2087dd0cf8d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.9
|
Release files / vnpy_btse-2024.5.8-py3-none-any.whl
| Download URL | vnpy_btse-2024.5.8-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63a59b4fb3dbdd744304ab814f7f4e471ecb61932a00eb2016beb69bca1a04e7
|
|
BLAKE2b-256 checksum How to use checksums |
b64675d1615122e9661c47365bb73c3660bf19f2a65fbec825b40002dd320ad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.9
|