Skip to main content

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.perp import Perp

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

xt = Perp(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())

Examples

You can find more examples in the project folder /examples/

Contact

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

Metadata

Release files for pyxt 0.6.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyxt 0.6.24
File Size Uploaded
pyxt-0.6.24.tar.gz 17.8 kB Details

Release files / pyxt-0.6.24.tar.gz

Download URL pyxt-0.6.24.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
942149c9d07fbceeb738c2f4a89e9959a0fa2f32236f1717467ab6e3a3bd55a7
BLAKE2b-256 checksum
How to use checksums
b3e896a6cd182bbb4b0ba467f436e3c5dae8fd5371df91f17f3d0a5c69041bd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/6.7.0 keyring/23.13.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.6.24 This release

1 release file

0.6.23

1 release file

0.6.22

1 release file

0.6.21

1 release file

0.6.20

1 release file

0.6.19

1 release file

0.6.18

1 release file

0.6.17

1 release file

0.6.16

1 release file

0.6.15

1 release file

0.6.14

1 release file

0.6.13

1 release file

0.6.12

1 release file

0.6.11

1 release file

0.6.10

1 release file

0.6.9

1 release file

0.6.8

1 release file

0.6.7

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.5.2

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page