Skip to main content

Module margin_debt

Module margin_debt 

Source
Expand description

A change in what a margin account owes in one asset, as the venue streams it: a borrow, a repay or an interest charge.

An account stream reports each one as AccountEventKind::MarginDebt, carrying a MarginDebtUpdate. The engine applies one that names no instrument to the asset’s Balance::margin, so debt stays current between REST account snapshots.

Structs§

MarginDebtUpdate
What a margin account owes in one asset after a change, as the venue reported it.

Enums§

MarginDebtKind
What changed a MarginDebtUpdate’s debt, independent of venue.