Commit 2d1c99c9 authored by Christophe Francois's avatar Christophe Francois Committed by Vincent Ardisson

[ing] Fetch market order reference and make date optional

parent ebe0286a
......@@ -204,6 +204,8 @@ class MarketOrdersPage(LoggedPage, HTMLPage):
class MarketOrderDetailsPage(LoggedPage, HTMLPage):
@method
class fill_market_order(ItemElement):
obj_id = CleanText('//td[contains(text(), "Référence")]/following-sibling::td[1]', default=NotAvailable)
obj_code = IsinCode(
Regexp(
CleanText('//td[contains(text(), "Valeur")]/following-sibling::td[1]'),
......@@ -229,8 +231,13 @@ class MarketOrderDetailsPage(LoggedPage, HTMLPage):
default=NotAvailable
)
obj_date = Date(
Regexp(CleanText('//td[contains(text(), "Création")]/following-sibling::td[1]'), r'(.*?) '),
dayfirst=True
Regexp(
CleanText('//td[contains(text(), "Création")]/following-sibling::td[1]'),
r'(.*?) ',
default=NotAvailable
),
dayfirst=True,
default=NotAvailable
)
......
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