Six4Win.WebApi

<back to all web services

GetGlobalCodePotAccumulation

The following routes are available for this service:
All Verbs/qry/global-code-pot/accumulations
package dtos

type ThresholdInterval struct {
	Start float64 `json:"start,omitempty"`
	End   float64 `json:"end,omitempty"`
}

type GCPWinnerCooldownPolicyConfig struct {
	IsActive               bool `json:"isActive,omitempty"`
	CooldownIntervalInDays int  `json:"cooldownIntervalInDays,omitempty"`
}

type GCPConfiguration struct {
	IsActive             bool                           `json:"isActive,omitempty"`
	Interval             *ThresholdInterval             `json:"interval,omitempty"`
	Pct                  float64                        `json:"pct,omitempty"`
	ReservePct           float64                        `json:"reservePct,omitempty"`
	TotalPct             float64                        `json:"totalPct,omitempty"`
	WinnerCooldownPolicy *GCPWinnerCooldownPolicyConfig `json:"winnerCooldownPolicy,omitempty"`
}

type GCPAccumulation struct {
	Amount        float64           `json:"amount,omitempty"`
	ReserveAmount float64           `json:"reserveAmount,omitempty"`
	Cfg           *GCPConfiguration `json:"cfg,omitempty"`
}

type GlobalCodePotAccumulations struct {
	Id             *string          `json:"id,omitempty"`
	Accumulation   *GCPAccumulation `json:"accumulation,omitempty"`
	CurrentRoundId *string          `json:"currentRoundId,omitempty"`
}

type GetGlobalCodePotAccumulation struct {
}

Go GetGlobalCodePotAccumulation DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/global-code-pot/accumulations HTTP/1.1 
Host: s4w1.api.bettor.webhop.biz 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	accumulation: 
	{
		amount: 0,
		reserveAmount: 0,
		cfg: 
		{
			isActive: False,
			interval: 
			{
				start: 0,
				end: 0
			},
			pct: 0,
			reservePct: 0,
			totalPct: 0,
			winnerCooldownPolicy: 
			{
				isActive: False,
				cooldownIntervalInDays: 0
			}
		}
	},
	currentRoundId: String
}