get_asset_max_quantity

Calculates the maximum quantity of an asset that can be bought given the current buying power.

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_max_quantity(self, symbol=None):

Returns

Returns the quantity that can be bought.

Raises