quantlab.execution.approximate.mark_book#

quantlab.execution.approximate.mark_book(weights, entry, prices, marked)[source]#

Mark a book at prices: marked its positions’ values, returning the book’s value, cash included.

weights are the book’s weights when it was filled at entry; 1 - sum(weights) was cash. The value is per unit of the book’s value at the fill.