Skip to main content

Python3 XT.COM HTTP API Connector

Project description

pyxt

All Contributors

Official Python3 API connector for XT.COM's HTTP APIs.

Table of Contents

About

Put simply, pyxt (Python + XT.COM) is the official lightweight one-stop-shop module for the XT.COM HTTP APIs.

Installation

pyxt requires Python 3.9.1 or higher. The module can be installed manually or via PyPI with pip:

pip install pyxt

Usage

You can retrieve a specific spot market like so:

from pyxt.spot import Spot

Create an HTTP session and connect via WebSocket for Inverse on mainnet:

xt = Spot(host="https://sapi.xt.com", access_key='', secret_key='')

Information can be sent to, or retrieved from, the XT.COM APIs:

print(xt.balance("usdt"))

You can retrieve a specific future market like so:

from pyxt.future import Future

Create an HTTP session and connect via WebSocket for Inverse on mainnet:

xt = Future(host="https://fapi.xt.com", access_key='', secret_key='')

Information can be sent to, or retrieved from, the XT.COM APIs:

print(xt.get_account_capital())

Contact

You can reach out for support on the XTAPI Telegram group chat.

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

pyxt-0.4.1.tar.gz (13.3 kB view details)

Uploaded Source

File details

Details for the file pyxt-0.4.1.tar.gz.

File metadata

  • Download URL: pyxt-0.4.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pyxt-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c8fd074ee1df610e1db6512ed54ab7b35310af9b21b75fbca5f5871e3bf893ff
MD5 0f8e668b00b130cf43485117f51de758
BLAKE2b-256 4f28451692e2f28bbef23094b511dc0af31d64a196e393e68e7b67079455cd3f

See more details on using hashes here.

Provenance

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