CM (Content Model)

The Quickest Way to Access Financial Data

Load CM (content model)

Load CM directly without Alpha

from finter import BaseAlpha

start, end = 20200101, 20220101

close_p = BaseAlpha.get_cm("content.fnguide.ftp.price_volume.price_close.1d").get_df(start, end)
close_p.head()

Load CM in Alpha

class Alpha(BaseAlpha): 
    def get(self, start, end):
        self.close = self.get_cm(
            "content.fnguide.ftp.price_volume.price_close.1d"
        ).get_df(start, end) 
        return self.close


Alpha().get(start, end).head()

Last updated