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.8.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vnpy_btse-2024.5.8.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.8.tar.gz
Algorithm Hash digest
SHA256 40e5df950347936f6220a9243e52e0a56cc917d4b73e795b535e7dcf13e09468
MD5 4873a04f2ddb0ecba4edf5b84a102e66
BLAKE2b-256 c92fbb2ea36fc7bd174b1403df72fc969c55f37d4802aa04a79b2087dd0cf8d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vnpy_btse-2024.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 63a59b4fb3dbdd744304ab814f7f4e471ecb61932a00eb2016beb69bca1a04e7
MD5 24c07abbde954f01346dc2982d9594da
BLAKE2b-256 b64675d1615122e9661c47365bb73c3660bf19f2a65fbec825b40002dd320ad0

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