> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.wuzzlo.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.wuzzlo.com/_mcp/server.

# Get market or round settlement view

POST /api/operator/get-market-result
Content-Type: application/json

Operator to Wuzzlo. Reconcile a market or round. Sign the exact JSON body with the operator private key. Send operatorId and either marketId or roundId.

Reference: https://docs.wuzzlo.com/wuzzlo/operator-to-wuzzlo/get-market-or-round-settlement-view

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/operator/get-market-result:
    post:
      operationId: getMarketOrRoundSettlementView
      summary: Get market or round settlement view
      description: >-
        Operator to Wuzzlo. Reconcile a market or round. Sign the exact JSON
        body with the operator private key. Send operatorId and either marketId
        or roundId.
      tags:
        - operatorToWuzzlo
      parameters:
        - name: Signature
          in: header
          description: >-
            Operator-to-Wuzzlo: Base64 RSA-SHA256 PKCS#1 v1.5 signature of the
            exact UTF-8 JSON body, created with the operator private key.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Query response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMarketResultResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetMarketResultRequest'
components:
  schemas:
    GetMarketResultRequest:
      oneOf:
        - description: Any type
        - description: Any type
        - description: Any type
      title: GetMarketResultRequest
    MarketResultItem:
      type: object
      properties:
        userId:
          type: string
        betId:
          type: string
        betAmount:
          type: number
          format: double
        resultAmount:
          type: number
          format: double
        resultStatus:
          type: string
        isSettled:
          type: boolean
        placeTransactionId:
          type: string
        resultTransactionId:
          type:
            - string
            - 'null'
        placedAtUtc:
          type: string
          format: date-time
      required:
        - userId
        - betId
        - betAmount
        - resultAmount
        - resultStatus
        - isSettled
        - placeTransactionId
        - placedAtUtc
      title: MarketResultItem
    GetMarketResultData:
      type: object
      properties:
        operatorId:
          type: string
        marketId:
          type: string
        roundId:
          type: string
        gameId:
          type: string
        totalBets:
          type: integer
        settledBets:
          type: integer
        openBets:
          type: integer
        totalStake:
          type: number
          format: double
        totalPayout:
          type: number
          format: double
        items:
          type: array
          items:
            $ref: '#/components/schemas/MarketResultItem'
      required:
        - operatorId
        - marketId
        - roundId
        - gameId
        - totalBets
        - settledBets
        - openBets
        - totalStake
        - totalPayout
        - items
      title: GetMarketResultData
    GetMarketResultResponse:
      type: object
      properties:
        statusCode:
          type: string
        message:
          type: string
        data:
          $ref: '#/components/schemas/GetMarketResultData'
      required:
        - statusCode
        - message
      title: GetMarketResultResponse
  securitySchemes:
    OperatorSignature:
      type: apiKey
      in: header
      name: Signature
      description: >-
        Operator-to-Wuzzlo: Base64 RSA-SHA256 PKCS#1 v1.5 signature of the exact
        UTF-8 JSON body, created with the operator private key.

```

## Examples

### Settled round with two bets



**Request**

```json
undefined
```

**Response**

```json
{
  "statusCode": "RS_OK",
  "message": "Success",
  "data": {
    "operatorId": "tesla",
    "marketId": "round-20260714-001",
    "roundId": "round-20260714-001",
    "gameId": "9001",
    "totalBets": 2,
    "settledBets": 2,
    "openBets": 0,
    "totalStake": 1000,
    "totalPayout": 1200,
    "items": [
      {
        "userId": "1001",
        "betId": "bet-001",
        "betAmount": 500,
        "resultAmount": 1200,
        "resultStatus": "WON",
        "isSettled": true,
        "placeTransactionId": "bet-transaction-id",
        "placedAtUtc": "2026-07-14T08:15:00Z",
        "resultTransactionId": "result-transaction-id"
      },
      {
        "userId": "1002",
        "betId": "bet-002",
        "betAmount": 500,
        "resultAmount": 0,
        "resultStatus": "LOST",
        "isSettled": true,
        "placeTransactionId": "bet-transaction-id-2",
        "placedAtUtc": "2026-07-14T08:16:00Z",
        "resultTransactionId": "result-transaction-id-2"
      }
    ]
  }
}
```

**SDK Code**

```python Settled round with two bets
import requests

url = "https://api.example.com/api/operator/get-market-result"

headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Settled round with two bets
const url = 'https://api.example.com/api/operator/get-market-result';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Settled round with two bets
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/operator/get-market-result"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Settled round with two bets
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/operator/get-market-result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java Settled round with two bets
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/api/operator/get-market-result")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php Settled round with two bets
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/api/operator/get-market-result', [
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Settled round with two bets
using RestSharp;

var client = new RestClient("https://api.example.com/api/operator/get-market-result");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift Settled round with two bets
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/operator/get-market-result")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### marketId missing



**Request**

```json
undefined
```

**Response**

```json
{
  "statusCode": "RS_ERROR_INVALID_REQUEST",
  "message": "marketId is required"
}
```

**SDK Code**

```python marketId missing
import requests

url = "https://api.example.com/api/operator/get-market-result"

headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript marketId missing
const url = 'https://api.example.com/api/operator/get-market-result';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go marketId missing
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/operator/get-market-result"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby marketId missing
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/operator/get-market-result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java marketId missing
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/api/operator/get-market-result")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php marketId missing
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/api/operator/get-market-result', [
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp marketId missing
using RestSharp;

var client = new RestClient("https://api.example.com/api/operator/get-market-result");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift marketId missing
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/operator/get-market-result")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Market not found



**Request**

```json
undefined
```

**Response**

```json
{
  "statusCode": "RS_ERROR_TRANSACTION_INVALID",
  "message": "Market not found"
}
```

**SDK Code**

```python Market not found
import requests

url = "https://api.example.com/api/operator/get-market-result"

headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Market not found
const url = 'https://api.example.com/api/operator/get-market-result';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Market not found
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/operator/get-market-result"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Market not found
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/operator/get-market-result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java Market not found
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/api/operator/get-market-result")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php Market not found
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/api/operator/get-market-result', [
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Market not found
using RestSharp;

var client = new RestClient("https://api.example.com/api/operator/get-market-result");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift Market not found
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/operator/get-market-result")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### OperatorId invalid



**Request**

```json
undefined
```

**Response**

```json
{
  "statusCode": "RS_ERROR_INVALID_OPERATOR",
  "message": "Invalid Operator"
}
```

**SDK Code**

```python OperatorId invalid
import requests

url = "https://api.example.com/api/operator/get-market-result"

headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript OperatorId invalid
const url = 'https://api.example.com/api/operator/get-market-result';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go OperatorId invalid
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/operator/get-market-result"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby OperatorId invalid
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/operator/get-market-result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java OperatorId invalid
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/api/operator/get-market-result")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php OperatorId invalid
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/api/operator/get-market-result', [
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp OperatorId invalid
using RestSharp;

var client = new RestClient("https://api.example.com/api/operator/get-market-result");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift OperatorId invalid
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/operator/get-market-result")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### marketId field



**Request**

```json
{
  "marketId": "round-20260714-001",
  "operatorId": "tesla"
}
```

**Response**

```json
{
  "statusCode": "RS_OK",
  "message": "Success",
  "data": {
    "operatorId": "tesla",
    "marketId": "round-20260714-001",
    "roundId": "round-20260714-001",
    "gameId": "9001",
    "totalBets": 2,
    "settledBets": 2,
    "openBets": 0,
    "totalStake": 1000,
    "totalPayout": 1200,
    "items": [
      {
        "userId": "1001",
        "betId": "bet-001",
        "betAmount": 500,
        "resultAmount": 1200,
        "resultStatus": "WON",
        "isSettled": true,
        "placeTransactionId": "bet-transaction-id",
        "placedAtUtc": "2026-07-14T08:15:00Z",
        "resultTransactionId": "result-transaction-id"
      },
      {
        "userId": "1002",
        "betId": "bet-002",
        "betAmount": 500,
        "resultAmount": 0,
        "resultStatus": "LOST",
        "isSettled": true,
        "placeTransactionId": "bet-transaction-id-2",
        "placedAtUtc": "2026-07-14T08:16:00Z",
        "resultTransactionId": "result-transaction-id-2"
      }
    ]
  }
}
```

**SDK Code**

```python marketId field
import requests

url = "https://api.example.com/api/operator/get-market-result"

payload = {
    "marketId": "round-20260714-001",
    "operatorId": "tesla"
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript marketId field
const url = 'https://api.example.com/api/operator/get-market-result';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"marketId":"round-20260714-001","operatorId":"tesla"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go marketId field
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/operator/get-market-result"

	payload := strings.NewReader("{\n  \"marketId\": \"round-20260714-001\",\n  \"operatorId\": \"tesla\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby marketId field
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/operator/get-market-result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"marketId\": \"round-20260714-001\",\n  \"operatorId\": \"tesla\"\n}"

response = http.request(request)
puts response.read_body
```

```java marketId field
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/api/operator/get-market-result")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"marketId\": \"round-20260714-001\",\n  \"operatorId\": \"tesla\"\n}")
  .asString();
```

```php marketId field
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/api/operator/get-market-result', [
  'body' => '{
  "marketId": "round-20260714-001",
  "operatorId": "tesla"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp marketId field
using RestSharp;

var client = new RestClient("https://api.example.com/api/operator/get-market-result");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"marketId\": \"round-20260714-001\",\n  \"operatorId\": \"tesla\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift marketId field
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "marketId": "round-20260714-001",
  "operatorId": "tesla"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/operator/get-market-result")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### roundId alias



**Request**

```json
{
  "operatorId": "tesla",
  "roundId": "round-20260714-001"
}
```

**Response**

```json
{
  "statusCode": "RS_OK",
  "message": "Success",
  "data": {
    "operatorId": "tesla",
    "marketId": "round-20260714-001",
    "roundId": "round-20260714-001",
    "gameId": "9001",
    "totalBets": 2,
    "settledBets": 2,
    "openBets": 0,
    "totalStake": 1000,
    "totalPayout": 1200,
    "items": [
      {
        "userId": "1001",
        "betId": "bet-001",
        "betAmount": 500,
        "resultAmount": 1200,
        "resultStatus": "WON",
        "isSettled": true,
        "placeTransactionId": "bet-transaction-id",
        "placedAtUtc": "2026-07-14T08:15:00Z",
        "resultTransactionId": "result-transaction-id"
      },
      {
        "userId": "1002",
        "betId": "bet-002",
        "betAmount": 500,
        "resultAmount": 0,
        "resultStatus": "LOST",
        "isSettled": true,
        "placeTransactionId": "bet-transaction-id-2",
        "placedAtUtc": "2026-07-14T08:16:00Z",
        "resultTransactionId": "result-transaction-id-2"
      }
    ]
  }
}
```

**SDK Code**

```python roundId alias
import requests

url = "https://api.example.com/api/operator/get-market-result"

payload = {
    "operatorId": "tesla",
    "roundId": "round-20260714-001"
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript roundId alias
const url = 'https://api.example.com/api/operator/get-market-result';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"tesla","roundId":"round-20260714-001"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go roundId alias
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/operator/get-market-result"

	payload := strings.NewReader("{\n  \"operatorId\": \"tesla\",\n  \"roundId\": \"round-20260714-001\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby roundId alias
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/operator/get-market-result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"tesla\",\n  \"roundId\": \"round-20260714-001\"\n}"

response = http.request(request)
puts response.read_body
```

```java roundId alias
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/api/operator/get-market-result")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"tesla\",\n  \"roundId\": \"round-20260714-001\"\n}")
  .asString();
```

```php roundId alias
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/api/operator/get-market-result', [
  'body' => '{
  "operatorId": "tesla",
  "roundId": "round-20260714-001"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp roundId alias
using RestSharp;

var client = new RestClient("https://api.example.com/api/operator/get-market-result");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"tesla\",\n  \"roundId\": \"round-20260714-001\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift roundId alias
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "tesla",
  "roundId": "round-20260714-001"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/operator/get-market-result")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```