Commit 83c54ecf authored by Christophe Francois's avatar Christophe Francois Committed by Vincent Ardisson

[lcl] Fetch market order id and currency

parent 2d1c99c9
......@@ -940,10 +940,16 @@ class MarketOrdersPage(LoggedPage, HTMLPage):
@method
class fill_market_order(ItemElement):
obj_id = CleanText('//td[contains(text(), "Référence Bourse")]/following-sibling::td[1]')
obj_amount = CleanDecimal.French(
'//td[contains(text(), "Total")]/following-sibling::td[1]',
default=NotAvailable
)
obj_currency = Coalesce(
Currency('//td[contains(text(), "Seuil")]/following-sibling::td[1]', default=NotAvailable),
Currency('//td[contains(text(), "Montant brut")]/following-sibling::td[1]', default=NotAvailable),
default=NotAvailable
)
obj_order_type = MapIn(
Lower(CleanText('//td[contains(text(), "Modalité")]/following-sibling::td[1]')),
MARKET_ORDER_TYPES,
......
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