woob.capabilities.bank.wealth

class PerVersion(*args, **kwargs)[source]

Bases: Enum

PERIN = 'perin'
PERCOL = 'percol'
PERCAT = 'percat'
class PerProviderType(*args, **kwargs)[source]

Bases: Enum

BANK = 'bank'
INSURER = 'insurer'
class Per(id='0', url=NotLoaded)[source]

Bases: Account

Account type dedicated to PER retirement savings plans.

Variables:
  • url – (str) url

  • label – (str) Pretty label

  • currency – (str) Currency (default: None)

  • bank_name – (str) Bank Name

  • type – (int) Type of account (default: 0)

  • owner_type – (str) Usage of account

  • balance – (Decimal) Balance on this bank account

  • coming – (Decimal) Sum of coming movements

  • iban – (str) International Bank Account Number

  • ownership – (str) Relationship between the credentials owner (PSU) and the account

  • paydate – (date, datetime) For credit cards. When next payment is due.

  • paymin – (Decimal) For credit cards. Minimal payment due.

  • cardlimit – (Decimal) For credit cards. Credit limit.

  • number – (str) Shown by the bank to identify your account ie XXXXX7489

  • valuation_diff – (Decimal) +/- values total

  • valuation_diff_ratio – (Decimal) +/- values ratio

  • company_name – (str) Name of the company of the stock - only for employee savings

  • parent – (BaseAccount) Parent account

  • opening_date – (date, datetime) Date when the account contract was created on the bank

  • all_balances – (list) List of balances (default: [])

  • profile – (AccountOwnerProfile) Profile associated to the account owner

  • party – (AccountParty) Party associated to the account (default: None)

  • version – (str) Version of PER

  • provider_type – (str) Type of account provider

class Investment(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Investment in a financial market.

Variables:
  • url – (str) url

  • label – (str) Label of stocks

  • code – (str) Identifier of the stock

  • code_type – (str) Type of stock code (ISIN or AMF)

  • stock_symbol – (str) Alternative identifier of the stock (different from ISIN)

  • stock_market – (str) Stock market related to the stock

  • description – (str) Short description of the stock

  • quantity – (Decimal) Quantity of stocks

  • unitprice – (Decimal) Buy price of one stock

  • unitvalue – (Decimal) Current value of one stock

  • valuation – (Decimal) Total current valuation of the Investment

  • vdate – (date, datetime) Value date of the valuation amount

  • diff – (Decimal) Difference between the buy cost and the current valuation

  • diff_ratio – (Decimal) Difference in ratio (1 meaning 100%) between the buy cost and the current valuation

  • portfolio_share – (Decimal) Ratio (1 meaning 100%) of the current amount relative to the total

  • performance_history – (dict) History of the performances of the stock (key=years, value=diff_ratio)

  • srri – (int) Synthetic Risk and Reward Indicator of the stock (from 1 to 7)

  • asset_category – (str) Category of the stock

  • recommended_period – (str) Recommended investment period of the stock

  • original_currency – (str) Currency of the original amount

  • original_valuation – (Decimal) Original valuation (in another currency)

  • original_unitvalue – (Decimal) Original unitvalue (in another currency)

  • original_unitprice – (Decimal) Original unitprice (in another currency)

  • original_diff – (Decimal) Original diff (in another currency)

CODE_TYPE_ISIN = 'ISIN'
CODE_TYPE_AMF = 'AMF'
property diff_percent
class Pocket(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Pocket

Variables:
  • url – (str) url

  • label – (str) Label of pocket

  • amount – (Decimal) Amount of the pocket

  • quantity – (Decimal) Quantity of stocks

  • availability_date – (date, datetime) Availability date of the pocket

  • condition – (int) Withdrawal condition of the pocket (default: 0)

  • investment – (Investment) Reference to the investment of the pocket

CONDITION_UNKNOWN = 0
CONDITION_DATE = 1
CONDITION_DATE_WHEN_ACQUIRED = 4
CONDITION_DATE_WHEN_TRANSFERABLE = 5
CONDITION_AVAILABLE = 2
CONDITION_RETIREMENT = 3
CONDITION_WEDDING = 6
CONDITION_DEATH = 7
CONDITION_INDEBTEDNESS = 8
CONDITION_DIVORCE = 9
CONDITION_DISABILITY = 10
CONDITION_BUSINESS_CREATION = 11
CONDITION_BREACH_EMPLOYMENT_CONTRACT = 12
CONDITION_UNLOCKING_EXCEPTIONAL = 13
CONDITION_THIRD_CHILD = 14
CONDITION_EXPIRATION_UNEMPLOYMENT = 15
CONDITION_PURCHASE_APARTMENT = 16
class MarketOrderType(*args, **kwargs)[source]

Bases: Enum

UNKNOWN = 0
MARKET = 1

Order executed at the current market price

LIMIT = 2

Order executed with a maximum or minimum price limit

TRIGGER = 3

Order executed when the price reaches a specific value

class MarketOrderDirection(*args, **kwargs)[source]

Bases: Enum

UNKNOWN = 0
BUY = 1
SALE = 2
class MarketOrderPayment(*args, **kwargs)[source]

Bases: Enum

UNKNOWN = 0
CASH = 1
DEFERRED = 2
class MarketOrder(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Market order

Variables:
  • url – (str) url

  • label – (str) Label of the market order

  • unitprice – (Decimal) Value of the stock at the moment of the market order

  • unitvalue – (Decimal) Current value of the stock associated with the market order

  • ordervalue – (Decimal) Limit value or trigger value, only relevant if the order type is LIMIT or TRIGGER

  • currency – (str) Currency of the market order - not always the same as account currency

  • quantity – (Decimal) Quantity of stocks in the market order

  • amount – (Decimal) Total amount that has been bought or sold

  • order_type – (int) Type of market order (default: 0)

  • direction – (int) Direction of the market order (buy or sale) (default: 0)

  • payment_method – (int) Payment method of the market order (default: 0)

  • date – (date, datetime) Creation date of the market order

  • validity_date – (date, datetime) Validity date of the market order

  • execution_date – (date, datetime) Execution date of the market order (only for market orders that are completed)

  • state – (str) Current state of the market order (e.g. executed)

  • code – (str) Identifier of the stock related to the order

  • stock_symbol – (str) Alternative identifier of the stock related to the order (different from ISIN)

  • stock_market – (str) Stock market on which the order was executed

class CapBankWealth[source]

Bases: CapBank

Capability of bank websites to see investments and pockets.

iter_investment(account)[source]

Iter investment of a market account

Parameters:

account (Account) – account to get investments

Return type:

iter[Investment]

Raises:

AccountNotFound

iter_pocket(account)[source]

Iter pocket

Parameters:

account (Account) – account to get pockets

Return type:

iter[Pocket]

Raises:

AccountNotFound

iter_market_orders(account)[source]

Iter market orders

Parameters:

account (Account) – account to get market orders

Return type:

iter[MarketOrder]

Raises:

AccountNotFound