Skip to main content

apy

Converts apr into apy

Source Code: [link]

openbb.crypto.tools.apy(apr: float, compounding_times: int)

Parameters

NameTypeDescriptionDefaultOptional
aprfloatvalue in percentageNoneFalse
compounding_timesintnumber of compounded periods in a yearNoneFalse

Returns

TypeDescription
Tuple[pd.DataFrame, str]- pd.DataFrame: dataframe with results
- str: narrative version of results