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:
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')