tradingutil

package
v1.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: AGPL-3.0 Imports: 2 Imported by: 3

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL