fetch_latest_price

Fetches the latest price of the specified asset.

Syntax

Fields

Description

symbol(str)

The stock/crypto to get data for. Note options are not supported.

def fetch_latest_price(self, symbol: str) -> float:

Returns

Returns the latest price as a float.

Raises