curl --request GET \
--url https://api.trysoar.com/v1/markets/{market_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.trysoar.com/v1/markets/{market_id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.trysoar.com/v1/markets/{market_id}', 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.trysoar.com/v1/markets/{market_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trysoar.com/v1/markets/{market_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trysoar.com/v1/markets/{market_id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trysoar.com/v1/markets/{market_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ticker": "<string>",
"market_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_ticker": "<string>",
"project_market_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"outcome_label": "<string>",
"state": "active",
"min_price": 123,
"max_price": 123,
"tick_size": 123,
"maker_fee_rate": "0.0700",
"taker_fee_rate": "0.0700",
"open_interest": 1,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"strike_value": "1050000000000.00",
"strike_unit": "<string>",
"last_price": 123
}{
"code": "unauthenticated",
"error": "API key or bearer token required"
}{
"code": "forbidden_scope",
"error": "api key lacks scope: trade"
}{
"code": "invalid_request_body",
"error": "<string>",
"details": "<string>"
}{
"code": "rate_limited",
"error": "rate limited (per-api-key)"
}Get a market by ticker or id
curl --request GET \
--url https://api.trysoar.com/v1/markets/{market_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.trysoar.com/v1/markets/{market_id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.trysoar.com/v1/markets/{market_id}', 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.trysoar.com/v1/markets/{market_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trysoar.com/v1/markets/{market_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trysoar.com/v1/markets/{market_id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trysoar.com/v1/markets/{market_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ticker": "<string>",
"market_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_ticker": "<string>",
"project_market_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"outcome_label": "<string>",
"state": "active",
"min_price": 123,
"max_price": 123,
"tick_size": 123,
"maker_fee_rate": "0.0700",
"taker_fee_rate": "0.0700",
"open_interest": 1,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"strike_value": "1050000000000.00",
"strike_unit": "<string>",
"last_price": 123
}{
"code": "unauthenticated",
"error": "API key or bearer token required"
}{
"code": "forbidden_scope",
"error": "api key lacks scope: trade"
}{
"code": "invalid_request_body",
"error": "<string>",
"details": "<string>"
}{
"code": "rate_limited",
"error": "rate limited (per-api-key)"
}Authorizations
Per-user API key. Create and revoke keys from your SOAR account settings. A revoked key stops working within 60 seconds.
Path Parameters
The market's ticker or its event_market_id UUID. Tickers are
case-insensitive.
^[A-Za-z0-9.](?:[A-Za-z0-9.-]*[A-Za-z0-9.])?$"ANTHROPIC-VALUATION-26Q3-1.05T"
Response
The market.
The parent prediction market — the ladder a rung belongs to.
active, halted, resolved Decimal string, and a FRACTION not a percent — "0.0700" means
7%. Fees follow a Kalshi-style parabolic curve, rate x qty x p x (1-p), ceiled to whole cents and computed on the original economic
price rather than the canonical YES price. The current denominator
is deliberately scaled down for the paper-money beta; it is not the
eventual production rate.
"0.0700"
"0.0700"
Contracts outstanding — covered YES+NO pairs issued and not yet
retired. Same field as MarketStats.open_interest; see there for
the full definition.
x >= 0Absent when unset.
The rung's valuation threshold as a decimal string, not a number: a float64 loses precision here, and a $16B strike has been observed round-tripping as 15999999999.999998. Absent on binary markets, which genuinely have no strike; present on every ladder rung.
"1050000000000.00"
Absent when the market has never traded.
Was this page helpful?