GithubHelp home page GithubHelp logo

broxytrust / bingx-controller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gemlabsdev/bingx-controller

0.0 0.0 0.0 144 KB

A controller for routing webhook trading signals to the BingX API

JavaScript 1.03% Python 50.07% CSS 2.44% HTML 1.11% Vue 45.30% Procfile 0.05%

bingx-controller's Introduction

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

bingx-controller's People

Contributors

gemlabsdev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.