style

package
v0.0.0-...-cb4139d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var DefaultPnLLevelResolution = fixedpoint.NewFromFloat(0.001)
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) (out string)

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