curl --request POST \
--url https://hedgeem-server.qeetoto.com/api/deal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"numberOfHands": 4
}
'import requests
url = "https://hedgeem-server.qeetoto.com/api/deal"
payload = { "numberOfHands": 4 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({numberOfHands: 4})
};
fetch('https://hedgeem-server.qeetoto.com/api/deal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hedgeem-server.qeetoto.com/api/deal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'numberOfHands' => 4
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hedgeem-server.qeetoto.com/api/deal"
payload := strings.NewReader("{\n \"numberOfHands\": 4\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hedgeem-server.qeetoto.com/api/deal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"numberOfHands\": 4\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hedgeem-server.qeetoto.com/api/deal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"numberOfHands\": 4\n}"
response = http.request(request)
puts response.read_body{
"hands": [
"AcKd",
"QsJs",
"8h7c",
"5d2c"
],
"handOdds": [
{
"handIndex": 0,
"bettingStage": 0,
"handStatus": "IN_PLAY_FAVOURITE",
"winPercentage": 62.4,
"drawPercentage": 2.1,
"odds": 1.6
},
{
"handIndex": 1,
"bettingStage": 0,
"handStatus": "IN_PLAY_BETTING_STAGE_ACTIVE",
"winPercentage": 21.3,
"drawPercentage": 1.8,
"odds": 4.69
},
{
"handIndex": 2,
"bettingStage": 0,
"handStatus": "IN_PLAY_BETTING_STAGE_ACTIVE",
"winPercentage": 10.2,
"drawPercentage": 0.9,
"odds": 9.8
},
{
"handIndex": 3,
"bettingStage": 0,
"handStatus": "IN_PLAY_BETTING_STAGE_ACTIVE",
"winPercentage": 6.1,
"drawPercentage": 0.5,
"odds": 16.39
}
],
"remainingDeck": [
"2c",
"3d",
"4h",
"..."
]
}{
"error": "betAmount must be a positive number."
}{
"error": "Missing or invalid Authorization header."
}Deal hands
Shuffles a fresh deck, deals hole cards to N simultaneous hands, and returns pre-flop win/draw odds for each hand.
This is the first call in a new game — it replaces the combined effect of:
HedgeEmUtility.f_shuffle_deck(5-pass Fisher-Yates shuffle)- The
STATUS_START → STATUS_HOLEtransition inf_change_table_game_state - UMA math engine pre-flop equity calculation
Odds engine (tactical): Monte Carlo simulation via poker-odds-calculator
(100,000 iterations). The strategic replacement is the UMA C++ math engine
deployed as an HTTP microservice (HEDGE-43).
The hand with the highest winPercentage is marked IN_PLAY_FAVOURITE;
all others are IN_PLAY_BETTING_STAGE_ACTIVE.
The remainingDeck array contains the 44 undealt cards — these are the
pool from which the flop, turn, and river will be drawn.
curl --request POST \
--url https://hedgeem-server.qeetoto.com/api/deal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"numberOfHands": 4
}
'import requests
url = "https://hedgeem-server.qeetoto.com/api/deal"
payload = { "numberOfHands": 4 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({numberOfHands: 4})
};
fetch('https://hedgeem-server.qeetoto.com/api/deal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hedgeem-server.qeetoto.com/api/deal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'numberOfHands' => 4
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hedgeem-server.qeetoto.com/api/deal"
payload := strings.NewReader("{\n \"numberOfHands\": 4\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hedgeem-server.qeetoto.com/api/deal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"numberOfHands\": 4\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hedgeem-server.qeetoto.com/api/deal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"numberOfHands\": 4\n}"
response = http.request(request)
puts response.read_body{
"hands": [
"AcKd",
"QsJs",
"8h7c",
"5d2c"
],
"handOdds": [
{
"handIndex": 0,
"bettingStage": 0,
"handStatus": "IN_PLAY_FAVOURITE",
"winPercentage": 62.4,
"drawPercentage": 2.1,
"odds": 1.6
},
{
"handIndex": 1,
"bettingStage": 0,
"handStatus": "IN_PLAY_BETTING_STAGE_ACTIVE",
"winPercentage": 21.3,
"drawPercentage": 1.8,
"odds": 4.69
},
{
"handIndex": 2,
"bettingStage": 0,
"handStatus": "IN_PLAY_BETTING_STAGE_ACTIVE",
"winPercentage": 10.2,
"drawPercentage": 0.9,
"odds": 9.8
},
{
"handIndex": 3,
"bettingStage": 0,
"handStatus": "IN_PLAY_BETTING_STAGE_ACTIVE",
"winPercentage": 6.1,
"drawPercentage": 0.5,
"odds": 16.39
}
],
"remainingDeck": [
"2c",
"3d",
"4h",
"..."
]
}{
"error": "betAmount must be a positive number."
}{
"error": "Missing or invalid Authorization header."
}Body
Response
Shuffled hands and pre-flop odds
Dealt hole card pairs. Each string is two concatenated card codes,
e.g. "AcKd" = Ace of clubs + King of diamonds.
See Card Notation.
["AcKd", "QsJs", "8h7c", "5d2c"]