get_asset_quantity

Returns the quantity owned of a specified asset.

Syntax

Fields

Description

symbol(str)

Symbol of asset. Defaults to first symbol in watchlist

include_pending_buy(bool)

Include pending buy orders in quantity. Defaults to True

include_pending_sell(bool)

Include pending sell orders in quantity. Defaults to False

def get_asset_quantity(self, symbol: str = None, include_pending_buy=True, include_pending_sell=False) -> float:

Returns

Returns the quantity of the asset as a float. Returns 0 if the quantity is not owned.

Raises