Broxytrust / BingX-controller

A controller for routing webhook trading signals to the BingX API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BingX-controller

A controller for routing webhook trading signals to the BingX API

To run it just install the python requirements and node modules, build the frontend, and run the application using python app.py

Endpoints and request bodies

/perpetual/trade

Handles opening and closing of Long and Short positions. "quantity" is in USDT

Open a Long
{
    "symbol": "BTCUSDT",
    "action": "Open", 
    "side": "Bid",
    "trade_type": "Market",
    "quantity": 10.0
}

Close a Long

{
    "symbol": "BTCUSDT",
    "action": "Close", 
    "side": "Bid",
    "trade_type": "Market",
    "quantity": 10.0
}

Open a Short

{
    "symbol": "BTCUSDT",
    "action": "Open", 
    "side": "Ask",
    "trade_type": "Market",
    "quantity": 10.0
}

Close a Short

{
    "symbol": "BTCUSDT",
    "action": "Close", 
    "side": "Ask",
    "trade_type": "Market",
    "quantity": 10.0
}
/perpetual/leverage

Changes the leverage for the symbol sent in the request body
{
    "symbol": "BTCUSDT",
    "leverage": 5
}
/keys

Keys can be stored locally in a file called keys.py and added to the project before deploment. The keys can also be overriden/set using the /keys endpoint
{
    "public": "public",
    "private": "private"
}

About

A controller for routing webhook trading signals to the BingX API


Languages

Language:Python 50.1%Language:Vue 45.3%Language:CSS 2.4%Language:HTML 1.1%Language:JavaScript 1.0%Language:Procfile 0.1%