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
Release history Release notifications | RSS feed
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)
Built Distribution
py_bingx-0.2-py3-none-any.whl
(7.6 kB
view hashes)