get_asset_profit_percent
Returns the return of a specified asset.
Syntax
Fields
Description
symbol(str)
Symbol of stock, crypto, or option. Options should be in OCC format. Defaults to first symbol in watchlist
def get_asset_profit_percent(self, symbol=None) -> float:
Returns
Returns the return of the asset, expressed as a decimal.
Raises
- An
Exception
is raised if there is an error in fetching the profit percent.