Binance-Trade-Project
Binance Futures Terminal-Trade(API) & Binance
This Project Worth Around 500 Bucks.
**I Did This Project For SomeOne And He Didn't Pay Me After I completed it. So He Accepted To Public It....**
**Time Wasters Tel ID: @Cyber - @Hajamir - @Offensive**
**Attention: Please Be Careful Who You are Accepting Project From.**
**Install Requirements: pip install flask request jsonify mysql-connector-python**
**Config: Edit TrV1.py line 7 & 8 --- mudle_Tr.py __init__ -> OPTIONS(IS TESTNET OR NOT) - DATABASE HOST & USER & PASS & NAME - TESTNET APIKEY & SECRETKEY**
**V2 Changes:
1. The Project Is Now More Professional In Terms Of Classes And Objects...
2. It Prevents SQLi Attack In The Parameters.
3. More Orderly & More Simple.**
USAGE:
1. First Insert MYSQL Backup File Inside Your MYSQL (Create a DB named terminaltrade Then Insert Backup File).
For Every User We have a Specific Token Inside users Table(Inside DB), Script Query The DB and Asks For APIKEY & SECERETKEY Of The USER.
2. python3 TrV1.py
For Opening Order Send: IP:PORT/Open
{
"token":"USER'S TOKEN IN DB - Type(STRING)",
"pair":"SYMBOL LIKE: BTCUSDT",
"type":"TYPE OF ORDER: market - limit",
"side":"buy(LONG) - sell(SHORT)",
"price":"If Type=market Then Type: None - Type(STRING)",
"usdt":"Amount OF USDT To Save In DB - Type(STRING)",
"amount":((USDT / CoinPrice) * leverage) Type(FLOAT),
"leverage":Leverage To Save In DB - Type(INT),
"margin":"crossed OR isolated"
}
For Closing Order Send: IP:PORT/Close
{
"token":"USER'S TOKEN IN DB - TYPE(STRING)",
"pair":"SYMBOL LIKE: BTCUSDT",
"amount":"Opened Order Amount - TYPE(STRING)",
"side":"Side You Used To Open The Order"
}
Checking The ACC's Balance: IP:PORT/balance
{
"token":"USER'S TOKEN IN DB - TYPE(STRING)"
}
Checking For ACC's OpenPositions: IP:PORT/positions
{
"token":"USER'S TOKEN IN DB - TYPE(STRING)"
}
TODO
- Fixed Some Minor Problem
- Create FRONTEND Panel