Commit 314f2c82 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[banquepopulaire] Implemented Market Orders

parent 883e7f34
......@@ -787,6 +787,24 @@ class BanquePopulaire(LoginBrowser):
for inv in
yield inv
def iter_market_orders(self, account):
if account.type not in (Account.TYPE_PEA, Account.TYPE_MARKET):
if account.type == Account.TYPE_PEA and'CPT'):
# Liquidity PEA have no market orders
if self.go_investments(account, get_account=True):
# Redirection URL is
if 'linebourse' in self.url:
self.logger.warning('Going to Linebourse space to fetch investments.')
# Eliminating the 3 letters prefix to match IDs on Linebourse:
linebourse_id =[3:]
for order in self.linebourse.iter_market_orders(linebourse_id):
yield order
def get_invest_history(self, account):
if not self.go_investments(account):
......@@ -126,6 +126,9 @@ class BanquePopulaireModule(Module, CapBankWealth, CapContact, CapProfile, CapDo
def iter_investment(self, account):
return self.browser.iter_investments(account)
def iter_market_orders(self, account):
return self.browser.iter_market_orders(account)
def iter_contacts(self):
return self.browser.get_advisor()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment