Kalshi Quote
curl --request POST \
--url https://api.simmer.markets/api/sdk/trade/kalshi/quote \
--header 'Content-Type: application/json' \
--data '
{
"market_id": "<string>",
"side": "<string>",
"wallet_address": "<string>",
"amount": 0,
"shares": 0,
"action": "buy"
}
'import requests
url = "https://api.simmer.markets/api/sdk/trade/kalshi/quote"
payload = {
"market_id": "<string>",
"side": "<string>",
"wallet_address": "<string>",
"amount": 0,
"shares": 0,
"action": "buy"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
market_id: '<string>',
side: '<string>',
wallet_address: '<string>',
amount: 0,
shares: 0,
action: 'buy'
})
};
fetch('https://api.simmer.markets/api/sdk/trade/kalshi/quote', 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://api.simmer.markets/api/sdk/trade/kalshi/quote",
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([
'market_id' => '<string>',
'side' => '<string>',
'wallet_address' => '<string>',
'amount' => 0,
'shares' => 0,
'action' => 'buy'
]),
CURLOPT_HTTPHEADER => [
"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://api.simmer.markets/api/sdk/trade/kalshi/quote"
payload := strings.NewReader("{\n \"market_id\": \"<string>\",\n \"side\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"amount\": 0,\n \"shares\": 0,\n \"action\": \"buy\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.simmer.markets/api/sdk/trade/kalshi/quote")
.header("Content-Type", "application/json")
.body("{\n \"market_id\": \"<string>\",\n \"side\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"amount\": 0,\n \"shares\": 0,\n \"action\": \"buy\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simmer.markets/api/sdk/trade/kalshi/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market_id\": \"<string>\",\n \"side\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"amount\": 0,\n \"shares\": 0,\n \"action\": \"buy\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"transaction": "<string>",
"quote_id": "<string>",
"in_amount": 123,
"out_amount": 123,
"price": 123,
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Kalshi
Kalshi Quote
Get an unsigned Kalshi transaction for BYOW trading.
Flow: Client calls /quote → signs locally → calls /submit with signed tx. The SDK handles this automatically when SOLANA_PRIVATE_KEY is set.
POST
/
api
/
sdk
/
trade
/
kalshi
/
quote
Kalshi Quote
curl --request POST \
--url https://api.simmer.markets/api/sdk/trade/kalshi/quote \
--header 'Content-Type: application/json' \
--data '
{
"market_id": "<string>",
"side": "<string>",
"wallet_address": "<string>",
"amount": 0,
"shares": 0,
"action": "buy"
}
'import requests
url = "https://api.simmer.markets/api/sdk/trade/kalshi/quote"
payload = {
"market_id": "<string>",
"side": "<string>",
"wallet_address": "<string>",
"amount": 0,
"shares": 0,
"action": "buy"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
market_id: '<string>',
side: '<string>',
wallet_address: '<string>',
amount: 0,
shares: 0,
action: 'buy'
})
};
fetch('https://api.simmer.markets/api/sdk/trade/kalshi/quote', 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://api.simmer.markets/api/sdk/trade/kalshi/quote",
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([
'market_id' => '<string>',
'side' => '<string>',
'wallet_address' => '<string>',
'amount' => 0,
'shares' => 0,
'action' => 'buy'
]),
CURLOPT_HTTPHEADER => [
"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://api.simmer.markets/api/sdk/trade/kalshi/quote"
payload := strings.NewReader("{\n \"market_id\": \"<string>\",\n \"side\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"amount\": 0,\n \"shares\": 0,\n \"action\": \"buy\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.simmer.markets/api/sdk/trade/kalshi/quote")
.header("Content-Type", "application/json")
.body("{\n \"market_id\": \"<string>\",\n \"side\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"amount\": 0,\n \"shares\": 0,\n \"action\": \"buy\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simmer.markets/api/sdk/trade/kalshi/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market_id\": \"<string>\",\n \"side\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"amount\": 0,\n \"shares\": 0,\n \"action\": \"buy\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"transaction": "<string>",
"quote_id": "<string>",
"in_amount": 123,
"out_amount": 123,
"price": 123,
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
⌘I
