OpenApi-5p / py5paisa

Official Python SDK for 5paisa APIs natively written in VB .NET
https://5paisa.github.io
92 stars 68 forks source link

Scrip Code for getting historical options data #104

Open vamsivajjah opened 3 years ago

vamsivajjah commented 3 years ago

Description

How to get the Scrip codes for each of the options ce and pe to get the historical options data in 5paisa in python? Please suggest.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
Sushantmkarande commented 3 years ago

They have scripmaster csv on 5paisa developer homepage. you will find the scrip codes.

vamsivajjah commented 3 years ago

Can we get historical options data i.e., options data(intraday 5min,15min etc) of expired options for backtesting in 5Paisa through the Python api?

5paisa commented 3 years ago

Hi @vamsivajjah , We currently don't provide historical data for expired contracts

vamsivajjah commented 3 years ago

Thanks for the reply @5paisa. Also I want to know how can we manipulate the streaming data i.e., how can we store it in a database for working with the live data like using for real time strategies.

5paisa commented 2 years ago

Hi @vamsivajjah ,

You can use the on_message() to recieve these data streamed.

vamsivajjah commented 2 years ago

How can i extract the option chain for nifty and banknifty? @5paisa

5paisa commented 2 years ago

Hi @vamsivajjah ,

We will provide it soon!