Six4Win.WebApi

<back to all web services

GetAccumulatorConfig

The following routes are available for this service:
All Verbs/qry/config/accumulator
import Foundation
import ServiceStack

public class GetAccumulatorConfig : Codable
{
    required public init(){}
}

public class AccumulatorConfiguration : AccumulatorConfiguration
{
    public var id:String
    public var updatedAt:Date

    required public init(){ super.init() }

    private enum CodingKeys : String, CodingKey {
        case id
        case updatedAt
    }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
        let container = try decoder.container(keyedBy: CodingKeys.self)
        id = try container.decodeIfPresent(String.self, forKey: .id)
        updatedAt = try container.decodeIfPresent(Date.self, forKey: .updatedAt)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
        var container = encoder.container(keyedBy: CodingKeys.self)
        if id != nil { try container.encode(id, forKey: .id) }
        if updatedAt != nil { try container.encode(updatedAt, forKey: .updatedAt) }
    }
}


Swift GetAccumulatorConfig 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/config/accumulator HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	id: String,
	updatedAt: 0001-01-01,
	pools: 
	[
		{
			id: 0,
			name: String,
			rtp: 0,
			reserveRTP: 0,
			totalRTP: 0
		}
	],
	prevalentStake: 0,
	purgeThresholdModifier: 0,
	locationOptimizationLevel: 0,
	jackPot5ThresholdInterval: 
	{
		start: 0,
		end: 0
	},
	deviationCategorySpanInPct: 0,
	deviationCategoryThresholdAmount: 0,
	roundPoolCircuitBreakerThreshold: 0,
	lowWinCountAffinityInPct: 0,
	winCountOrderAffinity: 
	[
		{
			order: 0,
			probability: 0
		}
	],
	highRollerSettings: 
	{
		pools: 
		[
			{
				id: 0,
				name: String,
				isActive: False,
				contributionToRoundPoolPct: 0,
				caps: 
				{
					plusCoef: 0,
					minusCoef: 0,
					maxAmountInPrevalentStakes: 0
				}
			}
		],
		categoryThresholds: 
		[
			{
				category: 0,
				threshold: 0
			}
		]
	},
	overflowCoefficientPoolsToRound: False,
	antiSyphonProtectionOverride: False,
	fraudDetectionConfig: 
	{
		antiSyphon: 
		{
			combinationCountPerRoundThresholdPct: 0,
			excludedLocations: 
			[
				{
					id: String,
					val: String
				}
			],
			includeRoundPctAsBettorSyphonCriteria: False,
			isActive: False
		}
	},
	debugConfig: 
	{
		logLocationStats: False,
		logBettorSats: False
	}
}