Function fpml_read_all
pub(crate) fn fpml_read_all(
py: Python<'_>,
text: &str,
party: Option<String>,
counterparties: Option<Vec<PyRef<'_, PyCounterparty>>>,
credit: Option<HashMap<String, String>>,
) -> PyResult<Vec<PyObject>>Expand description
Reads every trade of an FpML 5 confirmation document, in document order,
as party (a party’s id attribute or any of its partyId values; the
first party where omitted). counterparties is the master each trade’s
CSA is resolved from; credit maps a reference entity’s identifier or
name to its identity spelled ENTITY/SENIORITY/DOCCLAUSE/CCY.
Returns one entry per trade: the read FpmlTrade, or the
ValueError its refusal raises, not raised. A document that cannot be
read at all, or a party matching no party or several, raises
ValueError.