Open Sandy4321 opened 1 year ago
for example here https://algotrading101.com/learn/yfinance-guide/ we see many capabilities mentioned , but where is systematic description ?
@Sandy4321 In my opinion, the code is not complicated such that it needs documentation as you suggest. Functions that start with "_" are private, and shouould not be your concern, and the same goes for decorators. If you can understand those, than you can surely figure out how the API works.
As far as all the other functions like "get_income_time_series" and "get_balance_sheet_time_series", they are like, 5 lines of code with type annotations. Writing docs for those would definitely be overkill.
On the other hand, this is an open-source project, see something that's missing or not working properly? fix it and push the changes! (especially when it comes to writing docs that's usually a pain in the a$$)
can not find used cases or detailed description for each available function it is pity , great code but how to use it?
import datetime import logging import json
import pandas as pd import numpy as np
from yfinance import utils, const from yfinance.data import TickerData from yfinance.exceptions import YFinanceException, YFNotImplementedError
class Fundamentals:
class Financials: def init(self, data: TickerData): self._data = data self._income_time_series = {} self._balance_sheet_time_series = {} self._cash_flow_time_series = {}