Depot

class pyfolio_performance.Depot(name, xml)[source]

The class that manages a depot and its transactions.

static getDepotByName(name)[source]

If no such Depot exists, it returns an empty depot with the name. If it exists, it returns the corresponding Depot.

Param:

Name of the depot that should be returned

Type:

str

Returns:

Existing or new Depot

Type:

Depot

getName()[source]
Returns:

Name of the depot.

Type:

str

getSecurities()[source]
Returns:

Mapping of currently Securities to the number of contained shares

Type:

dict(Security -> float)

getTransactions()[source]
Returns:

list of transactions in the depot.

Type:

list(Transaction)