Skip to content

rahulmr/richdotin

 
 

Repository files navigation

Richdotin Scalper App

FIX

Added api_helper and dist from shoonya py So just create a virtualenv after cloning the repository Open PowerShell and following commands below:

git clone https://github.com/rahulmr/richdotin.git richdotin_rmr
python -m pip install -U pip wheel setuptools virtualenv
pythom -m venv venv
.\venv\Scripts\Activate.ps1
(venv)$ python -m pip install -r requirements.txt
(venv)$ python Richdotin_Scalper_App.py

The Scalping App can be used to send orders to finvaisa broker using api without look much calculation about strikes. We can just select the strike like ATM , ITM and OTM and click buy to place limit buy order easily with desired stoploss and qty. We can also manully add stoploss and trail it when the price above your buy avg price.

How to setup the scalper app
  1. clone the shoonya-py repo
$ git clone https://github.com/Shoonya-Dev/ShoonyaApi-py.git

  1. Create a python virtual env before install the requirement.
$ python3 -m venv venv
  1. Activate the virtual environment
Source venv/bin/activate
  1. install required python packages

$ pip install -r requirements.txt

  1. download the richdotcom repo files
$wget https://github.com/suresh-n/richdotin/blob/706afca61657aa954efdc7f04100c073b806eccf/Richdotin_Scalper_App.py
$wget https://github.com/suresh-n/richdotin/blob/706afca61657aa954efdc7f04100c073b806eccf/config.ini

$wget https://github.com/suresh-n/richdotin/blob/706afca61657aa954efdc7f04100c073b806eccf/richdotin.png

  1. Run the Richdotin_Scalper_App.py file.
$python Richdotin_Scalper_App.py

  1. Step 4 will launch the tkinter app shown in the picture above. just click Login Button it will open another window when you can enter the login and API info the same will be added to config.ini file. We check that manual when you login again the config details will be fetched from config.ini

  2. only thing we need to edit in config.ini file is the expiry dates, we need to replace the current month expiry date there [expiry] values

How to use the Richdotcom Scalper App

  • Launch the python file and click Login.

  • Click Login button, will call the api and get the your account name details which mean the api call is sucess and app & Api is working fine.

  • Click refresh button which will refresh the m2m & the margin availble to trade.

  • Select the expiry day.

  • Now select the symbol the App now support NIFTY & BN both.

  • Select the strike which you wanna make order like ATM,ITM,OTM. once you selected on right side of the App the strike details + ltp is displayed.

  • Select the Lot size you would like to buy.

  • click BUY button to place the order on the CALL or PUT side.

  • Once the order placed the order send to broker and the order status updated into order sat text box like Completed/Rejected/Cancelled. We can see the position details by clicking the postion button.

  • When we are ready to exit the position we can simply right click the position symbol and exit.

  • To place the SL we can right click the position symbol and add SL and add points tool will auto calculate and place the SL order.

for example you wanna loss only 10 point just add 10 in SL field so the tool will minus 10 point from current price and place SL order in broker system.

  • To trail the SL order right click position symbol below the position details bottom and select modify SL to trail the SL.
Quick Scalper Tool [WIP]

Quick scalper code can be used to place order with target order of just 3 point which is easy to get in index option. We just need to make multiple scalps to achive the day % profit.

As of now there is no SL order placed using code only buy order + target order. need to improve the code to track the price and place SL or target order.

How to run the tool
$ wget https://github.com/suresh-n/richdotin/blob/770fc0354229b482ac4dc8aeee6cf8a345b397c3/Quick_Scalper.py
$ python Quick_Scalper.py

How to use the tool
  • Just select the expiry, symbol, strike and lot then click buy, one the order stat is complete. the traget order with target of 3 points wil be placed. Side by open the broker terminal also so we can see the postion details & open order.
  • the idea is to collect 3 points quickly by just a click the disadvantage is the SL option is still not implemented so its riskly considering the option movement if we are correct the 3 points can be captured with in a mins.
Issues to fix
  • Tool hung when running position while for longer.
  • When the SL hit the details not updated in the App.
  • Yet to add websocket for the automatic price update.
Contributions are welcome.

Please create a PR.

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%