Open API – Game

bg-line

Game

/Game/Holdem/GetHistory

{
    "userId":"userid", // If null, search for all users.
    "symbol":"USDT", // Cryptocurrencies name, ex) USDT
    "startTime":"",// format(UTC): yyyy-MM-dd HH:mm:ss
    "endTime":"", // format(UTC): yyyy-MM-dd HH:mm:ss
    "page": 1
}

The range of startTime and endTime cannot be more than one quarter, for example, January-March or April-June, and will not provide data older than one year.

Response

historyList:Array(HoldemPlayerLog)

[HoldemPlayerLog]
- roomId:string
- gameIndex:int
- username:string
- symbol:string
- betMoney:decimal
- getMoney:decimal
- seat:int
- blind:string
- cards:Array(string)
- cardHandRank:string
- ranking:int
- rake:decimal
- wrtime:DateTime

/Game/Holdem/GetHistoryDetail

{
    "roomid":"1234567",
    "gameIndex":1234567
}

Response

gameDetail:HoldemGameLog

[HoldemGameLog]
- sequence:long
- symbol:string
- roomId:string
- gameIndex:int
- transactionKey:string
- gameResult:GameResult
- wrtime:DateTime
- playerLogs:Array(HoldemPlayerLog)

[GameResult]
- isShowdown:bool
- cards:Array(string)

[HoldemPlayerLog]
- roomId:string
- gameIndex:int
- username:string
- symbol:string
- betMoney:decimal
- getMoney:decimal
- seat:int
- blind:string
- cards:Array(string)
- cardHandRank:string
- ranking:int
- rake:decimal
- wrtime:DateTime

/Game/Slot/GetHistory

{
    "userId":"userid" // If null, search for all users.
    "startTime":""// format(UTC): yyyy-MM-dd HH:mm:ss
    "endTime":"", // format(UTC): yyyy-MM-dd HH:mm:ss
    "page": 1
}

The range of startTime and endTime cannot be more than one quarter, for example, January-March or April-June, and will not provide data older than one year.

Response

historyList:Array(SlotGameLog)

[SlotGameLog]
- userNickname:stirng
- slotName:string
- pointIn:decimal // Bet
- pointOut:decimal // Get
- beforePoint:decimal
- afterPoint:decimal
- wrtime:DateTime

/Game/Slot/GetInfo

{
    "agentId":"1234567", // Not required
    "includeChildInfo": true or false
}

Response

slotList:Array(SlotInfo)
childInfoList:Array(ChildInfo)

isOperator(bool) : 운영권 획득 여부
isOnOff(bool) : 슬롯 전체에 대한 오픈 여부
rakeRatio(decimal) : 부모가 설정한 슬롯 레이크 
rakebackRatio(decimal) : 설정한 슬롯 레이크백

[SlotInfo]
- id:int // Slot game ID
- name:string // Slot game Name
- state:string // Slot game State, On or Off

[ChildInfo]
-agentId:int
-parentAgentId:int
-isOperator:bool
-isOnOff:bool
-rakeRatio:decimal
-rakebackRatio:decimal

/Game/Slot/SetState

{
    "id":1,
    "state":"On" // On or Off
}

At least 10 slots must remain On.

Response

id:int
name:string
state:string 

/Game/Slot/SetStateAll

{
    "state":"On" // On or Off
}

Sets the entire slot On/Off, regardless of the value set via SetState.

Response

list:Array(Info)

[Info]
- id:int // Slot game ID
- name:string // Slot game Name
- state:string // Slot game State, On or Off

/Game/Slot/SetOperator

{
    "agentId":1234567,
    "allowOperator": true or false
}

Super agents can only grant operations to their immediate subagents

Response

allowOperator:bool

/Game/Slot/SetRake

{
    "agentId":1234567,
    "rake": 0.03 // 0.03 = 30%
}

Cannot be set higher than the rate set by the parent agent. For subordinate agents whose rake value is less than the set rake value, set the rake value of the agent and its immediate subordinate agents to 0.

Response

before:decimal
after:decimal

/Game/Slot/SetRakeback

{
    "agentId":1234567,
    "rakeback": 0.03 // 0.03 = 30%
}

Response

before:decimal
after:decimal