style

package
v1.64.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: AGPL-3.0 Imports: 4 Imported by: 2 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const GrayColor = "#f0f0f0"
View Source
const GreenColor = "#228B22"
View Source
const MaxEmojiRepeat = 6
View Source
const RedColor = "#800000"

Variables

View Source
var DefaultPnLLevelResolution = fixedpoint.NewFromFloat(0.001)

0.1% = 10 bps

View Source
var LossEmoji = "🔥"
View Source
var ProfitEmoji = "💰"

Functions

func NewDefaultTableStyle

func NewDefaultTableStyle() *table.Style

func PnLColor

func PnLColor(pnl fixedpoint.Value) string

func PnLEmojiMargin

func PnLEmojiMargin(pnl, margin, resolution fixedpoint.Value) string

PnLEmojiMargin returns the emoji representation of the PnL with margin and resolution

func PnLEmojiSimple

func PnLEmojiSimple(pnl fixedpoint.Value) string

func PnLSignString

func PnLSignString(pnl fixedpoint.Value) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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