tpnl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tpnl

type Tpnl struct {
	actor.ActorBase
	// contains filtered or unexported fields
}

Tpnl records trades into a shared TpnlState and purges expired entries on each execution using FilledAt as the clock source. The corresponding TpnlStop checker purges again at risk-check time and computes PnL using current mid-prices.

func NewTpnl

func NewTpnl(cat *catalog.Catalog, _ *msgbus.MsgBus, c *cache.Cache) *Tpnl

func (*Tpnl) Handle

func (t *Tpnl) Handle(ev msgbus.Event, bus *msgbus.MsgBus)

func (*Tpnl) OnInit

func (t *Tpnl) OnInit(config map[string]any)

Jump to

Keyboard shortcuts

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