Skip to main content

BTSE trading gateway for VeighNa Evo.

Project description

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:

  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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnpy_btse-2024.5.7.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

vnpy_btse-2024.5.7-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file vnpy_btse-2024.5.7.tar.gz.

File metadata

  • Download URL: vnpy_btse-2024.5.7.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for vnpy_btse-2024.5.7.tar.gz
Algorithm Hash digest
SHA256 e17b036805755671d6f6a238fdfed5a64ccc5774bc361303982c280424b43e8a
MD5 d43de992ee25a6a0d836d0758db4727d
BLAKE2b-256 5fcc942b781b4249771d5ef8d3e3c790b944767fe535de4dabe8e30bd7e423fc

See more details on using hashes here.

File details

Details for the file vnpy_btse-2024.5.7-py3-none-any.whl.

File metadata

File hashes

Hashes for vnpy_btse-2024.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8b135576114e49422919b5a759c3de88b1883600c12c4e824c7b347c65caf5e1
MD5 725d46f48bb490a609b37f1b286443a5
BLAKE2b-256 14694d0d4d337f7cd6983a8fab42df7968c72eae0d20cfcc0abbaa2276855fb3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page