get_asset_current_price
Returns the current price of a specified asset.
Syntax
Fields
Description
symbol(str)
Symbol of asset. Defaults to first symbol in watchlist
def get_asset_current_price(self, symbol: str = None) -> float: Returns
Returns the current price of the asset.
Raises
- An
Exceptionis raised if the symbol is not in the watchlist.