Theoretically, Every broker’s API is free. Historical Data is also free. Like it is done here for 5paisa https://www.youtube.com/watch?v=2PXSfi0Rsho (Note - I had taken permission from 5Paisa.).
Now, If a human can see the data of stock from chart, a machine can do the same. An official API can’t. We can only make wrapper or share methods that are allowed by Alice.
But, Alice’s management is very flexible than other brokers. I already asked for permission for adding some extra functions. If We’re given, Krishna will add to the main API.
- Alice Blue Screeners.
- Market Watch Addition
- Alerts
- Bid Ask Level 20 data
- Historical Data API
Here is a list of screener URLs -
In case we don’t get approval, Coders are free to PyRequest these URLs
https://ant.aliceblueonline.com/api/v1/screeners/gainerslosers?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/mostactivestocks?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/volume_shockers?index=nifty_50&days=3
https://ant.aliceblueonline.com/api/v1/screeners/upper_circuit_breakers?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/lower_circuit_breakers?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/roi?index=nifty_50&days=3
https://ant.aliceblueonline.com/api/v1/screeners/yearly_high?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/yearly_low?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/near_yearly_high?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/near_yearly_low?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/near_upper_circuit_breakers?index=nifty_50
https://ant.aliceblueonline.com/api/v1/screeners/near_lower_circuit_breakers?index=nifty_50
The payloads will be different for different URL structures though. alicebot.in already has this screener function too. The commands are not updated because if the market is closed, the screeners give blank output as a return.
===========
Here is an URL that allows you to add the tickers into the Market Watch to the main GUI. Their GUI is very buggy.
https://ant.aliceblueonline.com/api/v2/marketwatch
Type: POST
Sample Payload: {“exchange”:“NSE”,“instrument_token”:“26059”,“symbol”:“NIFTY Alpha 50”,“mw_number”:“mw3”}
There are 5 mw’s.
===========
Here is an URL that allows you to set an alert in the system,
Request URL: https://ant.aliceblueonline.com/api/v1/alerts
Type: POST
Sample Payload: {"exchange":"NSE","instrument_token":"26059","wait_time":"60","condition":"lesser_than","user_set_values":[15459.94],"frequency":"recurring","expiry":1598285779,"state_after_expiry":"deleted","user_message":"NIFTY Alpha 50 Lesser than ₹15459.94"}
========================
Here is an URL that allows you to see bid/ask system up to Level20 at ease.
Request URL: Request URL: https://ant.aliceblueonline.com/api/v2/marketdata?exchange=NSE&instrument_token=3045&type=snapquote
Type: GET
=======================
Here is the famous Historical API You are talking about.
Request URL: Request URL: https://ant.aliceblueonline.com/api/v1/charts?exchange=NSE&token=3045&candletype=1&starttime=1596825000&endtime=1598121000&type=historical&data_duration=10
Type: GET
The times are in Epoch. The cute part is You can fetch Historical Info as much far You can see in the chart.
As said earlier, If humans can do it, So can a machine.
=========
But right now, It’s unofficial.
I will keep you guys updated if we get it approved.