kellycriterion

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

API kelly criterion

func (API) Simulate

func (API) Simulate(c *gin.Context)

Simulate /api/kelly-criterion/simulate

type Request

type Request struct {
	MaxWinChancePayout float64 `json:"maxWinChancePayout" xml:"maxWinChancePayout" form:"maxWinChancePayout" binding:"required"`
	MaxWinChance       float64 `json:"maxWinChance" xml:"maxWinChance" form:"maxWinChance" binding:"required"`
}

Request /api/kelly-criterion/simulate request

type Response

type Response struct {
	Payout float64
	Chance float64
	Factor float64
}

Response /api/kelly-criterion/simulate response. Response will be a slice

Jump to

Keyboard shortcuts

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