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 ¶
Simulate /api/kelly-criterion/simulate @Summary Simulator for Kelly criterion. @Description Simulator for Kelly criterion. Kelly Criterion is a formula for sizing bets or investments from which the investor expects a positive return. @Tags Analytic @Accept json @Produce json,xml @Param "" body Request true "Request JSON" @Success 200 {object} data.APIResponse @Failure 400 {object} data.APIResponse @Router /api/kelly-criterion/simulate [post]
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
Click to show internal directories.
Click to hide internal directories.