pyxt


Namepyxt JSON
Version 0.6.16 PyPI version JSON
download
home_pagehttps://github.com/kelvinxue/pyxt
SummaryPython3 XT.COM HTTP API Connector
upload_time2024-04-27 03:28:50
maintainerNone
docs_urlNone
authorxt
requires_python>=3.9
licenseMIT License
keywords xt api connector
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # pyxt
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

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

## Table of Contents

- [About](#about)
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contact](#contact)

## 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](https://pypi.org/project/pyxt/) with `pip`:
```
pip install pyxt
```

## Usage
You can retrieve a specific spot market like so:
```python
from pyxt.spot import Spot
```

Create an HTTP session and connect via WebSocket for Inverse on mainnet:
```python
xt = Spot(host="https://sapi.xt.com", access_key='', secret_key='')
```

Information can be sent to, or retrieved from, the XT.COM APIs:
```python
print(xt.balance("usdt"))
```

You can retrieve a specific future market like so:
```python
from pyxt.perp import Perp
```

Create an HTTP session and connect via WebSocket for Inverse on mainnet:
```python
xt = Perp(host="https://fapi.xt.com", access_key='', secret_key='')
```

Information can be sent to, or retrieved from, the XT.COM APIs:
```python
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](https://t.me/XT_api) group chat.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kelvinxue/pyxt",
    "name": "pyxt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "xt api connector",
    "author": "xt",
    "author_email": "xt@xt.com",
    "download_url": "https://files.pythonhosted.org/packages/69/c0/10cf9f1717fe4c44cbd7a74f20169a768f8c809b6f763444138b4fff03d7/pyxt-0.6.16.tar.gz",
    "platform": null,
    "description": "# pyxt\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\nOfficial Python3 API connector for XT.COM's HTTP APIs.\n\n## Table of Contents\n\n- [About](#about)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Contact](#contact)\n\n## About\nPut simply, `pyxt` (Python + XT.COM) is the official lightweight one-stop-shop module for the XT.COM HTTP APIs. \n\n## Installation\n`pyxt` requires Python 3.9.1 or higher. The module can be installed manually or via [PyPI](https://pypi.org/project/pyxt/) with `pip`:\n```\npip install pyxt\n```\n\n## Usage\nYou can retrieve a specific spot market like so:\n```python\nfrom pyxt.spot import Spot\n```\n\nCreate an HTTP session and connect via WebSocket for Inverse on mainnet:\n```python\nxt = Spot(host=\"https://sapi.xt.com\", access_key='', secret_key='')\n```\n\nInformation can be sent to, or retrieved from, the XT.COM APIs:\n```python\nprint(xt.balance(\"usdt\"))\n```\n\nYou can retrieve a specific future market like so:\n```python\nfrom pyxt.perp import Perp\n```\n\nCreate an HTTP session and connect via WebSocket for Inverse on mainnet:\n```python\nxt = Perp(host=\"https://fapi.xt.com\", access_key='', secret_key='')\n```\n\nInformation can be sent to, or retrieved from, the XT.COM APIs:\n```python\nprint(xt.get_account_capital())\n```\n\n## Examples\nYou can find more examples in the project folder /examples/\n\n## Contact\nYou can reach out for support on the [XTAPI Telegram](https://t.me/XT_api) group chat.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Python3 XT.COM HTTP API Connector",
    "version": "0.6.16",
    "project_urls": {
        "Download": "https://github.com/kelvinxue/pyxt/archive/refs/tags/v0.6.16.tar.gz",
        "Homepage": "https://github.com/kelvinxue/pyxt"
    },
    "split_keywords": [
        "xt",
        "api",
        "connector"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "69c010cf9f1717fe4c44cbd7a74f20169a768f8c809b6f763444138b4fff03d7",
                "md5": "4a26eafa6fa1854d7489678024dc97ef",
                "sha256": "dd676e1363da6c3284d63e38655e221eae932b2af3bb64d32812c1d748385a14"
            },
            "downloads": -1,
            "filename": "pyxt-0.6.16.tar.gz",
            "has_sig": false,
            "md5_digest": "4a26eafa6fa1854d7489678024dc97ef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 16884,
            "upload_time": "2024-04-27T03:28:50",
            "upload_time_iso_8601": "2024-04-27T03:28:50.869880Z",
            "url": "https://files.pythonhosted.org/packages/69/c0/10cf9f1717fe4c44cbd7a74f20169a768f8c809b6f763444138b4fff03d7/pyxt-0.6.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 03:28:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kelvinxue",
    "github_project": "pyxt",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pyxt"
}
        
xt
Elapsed time: 0.24807s