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
/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"
}