Commit 370bb3bc authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[bp] Implemented Market Orders

parent 415f2317
......@@ -602,6 +602,14 @@ class BPBrowser(LoginBrowser, StatesMixin):
return investments
@need_login
def iter_market_orders(self, account):
if account.type not in (account.TYPE_PEA, account.TYPE_MARKET):
return []
self.go_linebourse(account)
return self.linebourse.iter_market_orders(account.id)
@need_login
def iter_recipients(self, account_id):
return self.transfer_choose.stay_or_go().iter_recipients(account_id=account_id)
......
......@@ -86,6 +86,9 @@ class BPModule(
def iter_investment(self, account):
return self.browser.iter_investment(account)
def iter_market_orders(self, account):
return self.browser.iter_market_orders(account)
def iter_transfer_recipients(self, origin_account):
if self.config['website'].get() != 'par':
raise NotImplementedError()
......
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