Python Kuckoin place orders script -- 2
Budget: $50 – $150 USD
Create a python3.6 script that interacts with KUCKOIN (2x) API & Web sockets.
Target is to place orders, cancel and get live feed data outputed to a cute "dashboard" with basic colors.
0. API DOCS: https://docs.kucoin.com/#general
1. Spot trade API SDK:
https://github.com/Kucoin/kucoin-python-sdk
2. Futures trade API SDK:
https://github.com/Kucoin/kucoin-futures-python-sdk
**Below is basic script and functions**
=============
Configurable values:
API credentials:
CEX: (Kuckoin or Binance) **For now only kuckoin**
market type: => spot/futures **to use either of the API/socket**
Favorite pairs: **Favorits pairs, one or multiple example: BTC/USDC ,ETH/BTC,KDA/USDC**
Leverage: 0 for none
StopLoss => True | False **Add stop loss to order?**
Stoploss distance => Value in percentage **If StopLoss = True**
Take profit: True | False
take profit rate: => If above is TRUE: distance in percentage
BuyDistence => percentage to add or deduct from current market price when placing buy order (positive value will is UNDER market value while negative price ABOVE market value)
SellDistence => percentage to add or deduct (if negative value) from current market price when placing buy order (positive value will is ABOVE market value while negative price UNDER market value)
==============
**Functions**
1. ConnectCex => Function to connect with kuckoin API and websockets, return error if any (check configs)
2. OnBuy => Send limit BUY order with current market price (**considering config values**) + log in sqlite (error as well + output to UI)
3. OnSell => Send limit SELL order with current market price (**considering config values**) + log in sqlite (error as well + output to UI)
4. CancelOrder => Cancel buy or sell order + log in sqlite (error as well + output to UI)
** UI Output data to Dashboard**
(Please use colors, like green or red when market price is above or under)
Get + output live rates (main pair in big and fav pairs in smaller font)
Get + output Current Positions + current loss/profit (calculate position per current rate) liquidation rate (if includes) + stop loss (if order includes) + take profit (if order includes) + change color to red or green per loss/profit
Get + output Current Orders (Red for sell and green for buy)
Get Account balance + Changes in balnce (Green when increase, red when down)
Switch between Pair => this will change the default pair rate (in bigger size) and any action entered in signal goes to that selected pair)
**Buy | Sell | Cancel user push signal could be either Serial , MQTT or Keyboard**
Please include in your bid the word anaconda to prove you've read this.
This is a quick task, i expect it to be done by February 11-14 (and tested by me before deadline)
Target is to place orders, cancel and get live feed data outputed to a cute "dashboard" with basic colors.
0. API DOCS: https://docs.kucoin.com/#general
1. Spot trade API SDK:
https://github.com/Kucoin/kucoin-python-sdk
2. Futures trade API SDK:
https://github.com/Kucoin/kucoin-futures-python-sdk
**Below is basic script and functions**
=============
Configurable values:
API credentials:
CEX: (Kuckoin or Binance) **For now only kuckoin**
market type: => spot/futures **to use either of the API/socket**
Favorite pairs: **Favorits pairs, one or multiple example: BTC/USDC ,ETH/BTC,KDA/USDC**
Leverage: 0 for none
StopLoss => True | False **Add stop loss to order?**
Stoploss distance => Value in percentage **If StopLoss = True**
Take profit: True | False
take profit rate: => If above is TRUE: distance in percentage
BuyDistence => percentage to add or deduct from current market price when placing buy order (positive value will is UNDER market value while negative price ABOVE market value)
SellDistence => percentage to add or deduct (if negative value) from current market price when placing buy order (positive value will is ABOVE market value while negative price UNDER market value)
==============
**Functions**
1. ConnectCex => Function to connect with kuckoin API and websockets, return error if any (check configs)
2. OnBuy => Send limit BUY order with current market price (**considering config values**) + log in sqlite (error as well + output to UI)
3. OnSell => Send limit SELL order with current market price (**considering config values**) + log in sqlite (error as well + output to UI)
4. CancelOrder => Cancel buy or sell order + log in sqlite (error as well + output to UI)
** UI Output data to Dashboard**
(Please use colors, like green or red when market price is above or under)
Get + output live rates (main pair in big and fav pairs in smaller font)
Get + output Current Positions + current loss/profit (calculate position per current rate) liquidation rate (if includes) + stop loss (if order includes) + take profit (if order includes) + change color to red or green per loss/profit
Get + output Current Orders (Red for sell and green for buy)
Get Account balance + Changes in balnce (Green when increase, red when down)
Switch between Pair => this will change the default pair rate (in bigger size) and any action entered in signal goes to that selected pair)
**Buy | Sell | Cancel user push signal could be either Serial , MQTT or Keyboard**
Please include in your bid the word anaconda to prove you've read this.
This is a quick task, i expect it to be done by February 11-14 (and tested by me before deadline)