Back to Community
How to use quantopian for Indian Stocks

I have tried but failed to fetch indian stock market data using quantopian Environment.anybody have idea please help.

from quantopian.research import prices, symbols

this command only fetches us equity prices and symbols


4 responses


Have a look at this post and associated notebooks. Basically you need to import the 'Indian Equities domain' first. The below code should work:

from quantopian.pipeline import Pipeline  
from import EquityPricing, factset  
from quantopian.pipeline.domain import IN_EQUITIES  
from quantopian.research import run_pipeline

pipe = Pipeline(  
        'price': EquityPricing.close.latest,  
        'volume': EquityPricing.volume.latest,  
        'mcap': factset.Fundamentals.mkt_val.latest,  

result = run_pipeline(pipe, '2015-01-15', '2016-01-15')  

Note that international markets are not yet supported in the IDE/backtester AFAIK.


Is there domian for Chinese stocks?

I see you use the 'from quantopian.research import run_pipeline'. Where to find / to know how many imports under 'quantopian.research'?


There is. Have a look at the post I linked to above. Below is the code for Chinese equities:

China CN Shenzhen Stock Exchange, Shanghai Stock Exchange

You are right, many thanks!