Skip to main content

BingX REST API Python implementation

Project description

py-bingx is an unofficial Python wrapper for the BingX Perpetual Swap API. I am not affiliated with BingX.

TODO

Add Response exception handling.

Usage

Register an account on BingX.

Create an API and make sure you copy you Secret Key before leaving the page.

pip install py-bingx
from bingx.api import BingxAPI

...

API_KEY = '<api_public_key>'
SECRET_KEY = '<api_secret_key>'

# It is faster and more efficient to use local timestamps. If you are getting an error try using "server" timestamp.
bingx = BingxAPI(API_KEY, SECRET_KEY, timestamp="local")
bingx.place_market_order("ALGO-USDT", "Short", 5, "Open")

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

py-bingx-0.2.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

py_bingx-0.2-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

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