Need simple python script to trade using Zerodha API
Ngân sách ₹1500-12500 INR
- Freelancer
- Các công việc
- Python
- Need simple python script to trade using Zerodha API
Need simple python script to trade using Zerodha API, I have tried to detailed it.
IMPORTANT: Max Budget: 5000 INR (FIXED)
Autonomous Loop 1: Fetch New Entries (Async Await)
===every second read a csv file in local path
===check if there is a new entry then update the entry in STOCKS_LIST which should be accessible in next loop (Loop2)
======Exchange (NSE/FNO), Stockname, BUY/SELL, Order Type (Regular Order, Bracket Order, Cover Order), Quantity, Entry Price, Stop Loss %, Take Profit %, Trailing Stop Loss, Tag Text
Autonomous Loop2: Validate Order (Async Await)
===check if there is/are any entry(s) in the STOCKS_LIST from Loop1,
===fetch OHLC for all entries in the list at once,
======for each entry in STOCKS_LIST check if it meets entry criteria
========> in case of BUY order, check Entry Price > High,
========> in case of SELL order, check Entry Price is < Low
======if entries meet the criteria, update ORDER_LIST and delete entry from STOCKS_LIST
Autonomous Loop3: tick streaming (Async Await)
===If ORDER_LIST is not empty or if there are open positions - start streaming tick data for them
===Inner Loop A: to place order
======If ORDER_LIST is not empty:
=========for each entry in ORDER_LIST check if current market price reach to trigger price.
=========if reached then place order (in case of Regular Order, place additional Stop Loss Order)
=========delete entry from ORDER_LIST to avoid duplicate order
===Inner Loop B: to modify stop loss order (except in case of Bracket Order, since trailing stop loss is inbuilt)
======Fetch Pending Orders and specifically Stop Loss orders
=========check if the current market price is going in desired direction and update stop loss order value in incremental based on Trailing Stop Loss value
===Inner Loop C: to exit order
======Fetch Open Positions
=========If current market price reached to Stop Loss / Take Profit then exit the open position at market price (and also exit all associated orders with current open position)
NOTE1: Stream Tick Data only for Stocks in ORDER_LIST and Open Positions (to avoid fetching unnecessary stocks which may cause delay)
NOTE2: Exit all open positions and pending orders at 3 PM
NOTE3: Autonomous Loops - need to run in parallel
Python 3.8.5
6 freelancer chào giá trung bình₹8426 cho công việc này
* Amazon, whatsapp and telegram web automation project completed successfully with client satisfaction and full time available * Hello, l have read your requirements and I can build python script for trading usi Thêm
I have more than 2 years of experience in different trading platforms like zerodha , upstox , bitmex and forex. I have developed a number of trading bots and screeners on these platforms. I have gone through your requi Thêm
I have been trading since so long and I have read your project description. I can give you a script with user friendly code