common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectOrderPrice

func CollectOrderPrice(price float64, strategy string, figi tinkoffinvest.FIGI, orderType OrderType)

func RoundToMinPriceIncrement

func RoundToMinPriceIncrement(price, step decimal.Decimal) decimal.Decimal

Types

type OrderType

type OrderType string
const (
	OrderTypeMarketSell OrderType = "market_sell"
	OrderTypeMarketBuy  OrderType = "market_buy"
	OrderTypeLimitSell  OrderType = "limit_sell"
	OrderTypeLimitBuy   OrderType = "limit_buy"
)

Jump to

Keyboard shortcuts

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