Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateTradesQuantity ¶
func AggregateTradesQuantity(trades []types.Trade) fixedpoint.Value
AggregateTradesQuantity sums up the quantity from the given trades totalQuantity = SUM(trade1.Quantity, trade2.Quantity, ...)
func AggregateTradesQuoteQuantity ¶ added in v1.57.0
func AggregateTradesQuoteQuantity(trades []types.Trade) fixedpoint.Value
AggregateTradesQuoteQuantity aggregates the quote quantity from the given trade slice
func CollectTradeFee ¶
func CollectTradeFee(trades []types.Trade) map[string]fixedpoint.Value
CollectTradeFee collects the fee from the given trade slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.