Metadata-Version: 2.1
Name: py-bingx
Version: 0.2
Summary: BingX REST API Python implementation
Home-page: https://github.com/amirinsight/py-bingx
Author: Amirhossein Zare
Author-email: 
License: MIT
Keywords: bingx api cryptocurrency trading btc eth rest exchange
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: requests

================
This is py-bingx
================

py-bingx is an unofficial Python wrapper for the `BingX Perpetual Swap API <https://bingx-api.github.io/docs/swap/introduce.html>`_.
I am not affiliated with BingX.


TODO
----
Add Response exception handling.


Usage
-----

Register an account on `BingX <https://bingx.com/en-us/register>`_.

`Create an API <https://bingx.com/en-us/account/api>`_
and make sure you copy you Secret Key before leaving the page.

.. code:: bash

    pip install py-bingx

.. code:: python

    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")
