fetch_option_positions
Returns all current option positions.
Syntax
def fetch_option_positions(self) -> List[Dict[str, Any]]: Returns
Returns a list of dictionaries with the following keys and values:
symbol: OCC symbol of the optionbase_symbol: Ticker symbol of the underlying stockavg_price: Average price the option was bought atquantity: Quantity ownedmultiplier: How many stocks each option representsexp_date: When the option expiresstrike_price: Strike price of the optiontype: ‘call’ or ‘put’
Raises
- An
Exceptionis raised if there is an error fetching the option positions.