guruappa / MarketDataApp

MIT License
1 stars 0 forks source link

Transform into OOP paradigm #4

Closed guruappa closed 1 year ago

guruappa commented 1 year ago

This SDK should be used in a OOP way(with objects and classes), so for example in authentication we would like to use the library like this:

from market-data-api import MarketDataApi new_session = MarketDataApi() new_session.authenticate(“my api key”)

Then use the different functions we want to follow an approach similar to the yfinance repo (https://github.com/ranaroussi/yfinance). Since any data we can get is from a stock, index, or option contract we would like to create an object representing it and then ask this object for the information we want. For example:

aapl = new_session.Symbol("AAPL") aapl_candles = aapl.get_candles(from='2023-01-01')

guruappa commented 1 year ago

Converted to OOP Paradigm on 27-Aug-2023. Need to write test suite.

guruappa commented 1 year ago

Reformatted the code base into OOP paradigm.