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

Uploaded Source

Built Distribution

vnpy_btse-2024.5.6-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vnpy_btse-2024.5.6.tar.gz
  • Upload date:
  • Size: 11.5 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.6.tar.gz
Algorithm Hash digest
SHA256 7de4c1e79a80f002d908f7751555f3bc3a71d89d6c2f1f27f19b629e15ed48ef
MD5 8f09bb630e8b52f122ee6637ee19e72d
BLAKE2b-256 af8f89548682c42661ac5ede949da8dd25fa455003ae3ba30658a5ddd5495cd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vnpy_btse-2024.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 80be62ff1b789f1275e4a4f9c2ed2aed575410bf76b9dc84c382fbf670c73e78
MD5 2d76fe44e866325c1a96737440313a21
BLAKE2b-256 f2e955432f9a65535f66e38624411c6c8bbdc8aeba6c19eee998e9b4a8b80b71

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