Recalculate a conditional option scenario
Read-only server calculation, not a quote or execution. Anonymous access requires a matching invite pass and permits public hypothetical instruments only. Owned references require a visible, eligible conversation and card. The response rechecks deletion, forgetting and memory revision after data reads. Maximum body size is 16,384 bytes. Current endpoint rate limits apply. Include origin_message_id and origin_analysis_id from the published widget to append a scenario interaction trace; this does not reopen a completed turn.
curl --request POST \
--url https://joyride.exchange/api/v1/ai/trade-scenarios \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input_revision": 1,
"anonymous_id": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_analysis_id": "<string>",
"instrument": "<string>",
"quantity": "<string>",
"basis": "hypothetical",
"package_premium": "<string>",
"entry_fee": "<string>",
"settlement_prices": [
"<string>"
]
}
'import requests
url = "https://joyride.exchange/api/v1/ai/trade-scenarios"
payload = {
"input_revision": 1,
"anonymous_id": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_analysis_id": "<string>",
"instrument": "<string>",
"quantity": "<string>",
"basis": "hypothetical",
"package_premium": "<string>",
"entry_fee": "<string>",
"settlement_prices": ["<string>"]
}
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({
input_revision: 1,
anonymous_id: '<string>',
conversation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
origin_message_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
origin_analysis_id: '<string>',
instrument: '<string>',
quantity: '<string>',
basis: 'hypothetical',
package_premium: '<string>',
entry_fee: '<string>',
settlement_prices: ['<string>']
})
};
fetch('https://joyride.exchange/api/v1/ai/trade-scenarios', 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://joyride.exchange/api/v1/ai/trade-scenarios",
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([
'input_revision' => 1,
'anonymous_id' => '<string>',
'conversation_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'origin_message_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'origin_analysis_id' => '<string>',
'instrument' => '<string>',
'quantity' => '<string>',
'basis' => 'hypothetical',
'package_premium' => '<string>',
'entry_fee' => '<string>',
'settlement_prices' => [
'<string>'
]
]),
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://joyride.exchange/api/v1/ai/trade-scenarios"
payload := strings.NewReader("{\n \"input_revision\": 1,\n \"anonymous_id\": \"<string>\",\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_message_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_analysis_id\": \"<string>\",\n \"instrument\": \"<string>\",\n \"quantity\": \"<string>\",\n \"basis\": \"hypothetical\",\n \"package_premium\": \"<string>\",\n \"entry_fee\": \"<string>\",\n \"settlement_prices\": [\n \"<string>\"\n ]\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://joyride.exchange/api/v1/ai/trade-scenarios")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input_revision\": 1,\n \"anonymous_id\": \"<string>\",\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_message_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_analysis_id\": \"<string>\",\n \"instrument\": \"<string>\",\n \"quantity\": \"<string>\",\n \"basis\": \"hypothetical\",\n \"package_premium\": \"<string>\",\n \"entry_fee\": \"<string>\",\n \"settlement_prices\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://joyride.exchange/api/v1/ai/trade-scenarios")
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 \"input_revision\": 1,\n \"anonymous_id\": \"<string>\",\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_message_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_analysis_id\": \"<string>\",\n \"instrument\": \"<string>\",\n \"quantity\": \"<string>\",\n \"basis\": \"hypothetical\",\n \"package_premium\": \"<string>\",\n \"entry_fee\": \"<string>\",\n \"settlement_prices\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"analysis_id": "<string>",
"basis_revision": "<string>",
"input_revision": 1,
"basis": "hypothetical",
"side": "buy",
"source_ids": [
"<string>"
],
"observed_at_ms": 123,
"finality": "<string>",
"legs": [
{
"quantity": "<string>",
"contract": {
"instrument": "<string>",
"underlying": "<string>",
"strike": "<string>",
"option_type": "call",
"expiry_ms": 123,
"settlement_method": "<string>",
"twap_window_start_ms": 123
}
}
],
"entry_cash_delta_usdc": "<string>",
"actual_fee_usdc": "<string>",
"signed_fee_maximum_usdc": "<string>",
"bounds_cost_basis": "<string>",
"maximum_loss": {
"status": "finite",
"amount_usdc": "<string>",
"reason": "<string>"
},
"maximum_profit": {
"status": "finite",
"amount_usdc": "<string>",
"reason": "<string>"
},
"breakeven_references_usdc": [
"<string>"
],
"scenarios": [
{
"settlement_reference_usdc": "<string>",
"gross_payoff_usdc": "<string>",
"net_before_settlement_fees_usdc": "<string>"
}
],
"early_exit": {
"status": "<string>",
"reason": "<string>"
},
"remaining_cost_basis": "<string>",
"limitations": [
"<string>"
]
}Authorizations
Joyride Core session JWT obtained from the SIWS flow
(public/get_nonce + public/auth on the Core trading WebSocket).
Include as: Authorization: Bearer <jwt>
Body
x >= 0Show child attributes
Show child attributes
Hypothetical positive decimal contracts
Hypothetical or unfilled proposal side; required for a two-way proposal
buy, sell hypothetical Assumed whole-package ask for buy or bid for sell in USD; negative prices reverse the cash flow; omit when unknown
Assumed entry fee in USD; omit when unknown
81settlement, early_exit Response
Analysis for the supplied input revision; discard obsolete client revisions
Decimal strings in USD/contracts. Conditional settlement-reference math, not an executable quote or promised chain receipt. Actual entry fee is separate from signed fee maximum. Remaining cost basis is not inferred.
x >= 0hypothetical, executed buy, sell 8Show child attributes
Show child attributes
Only finite bounds carry amount_usdc; unavailable bounds carry a reason.
Show child attributes
Show child attributes
Only finite bounds carry amount_usdc; unavailable bounds carry a reason.
Show child attributes
Show child attributes
81Show child attributes
Show child attributes
Unavailable until authoritative settlement timing/method and a supported valuation basis exist.
Show child attributes
Show child attributes
curl --request POST \
--url https://joyride.exchange/api/v1/ai/trade-scenarios \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input_revision": 1,
"anonymous_id": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_analysis_id": "<string>",
"instrument": "<string>",
"quantity": "<string>",
"basis": "hypothetical",
"package_premium": "<string>",
"entry_fee": "<string>",
"settlement_prices": [
"<string>"
]
}
'import requests
url = "https://joyride.exchange/api/v1/ai/trade-scenarios"
payload = {
"input_revision": 1,
"anonymous_id": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin_analysis_id": "<string>",
"instrument": "<string>",
"quantity": "<string>",
"basis": "hypothetical",
"package_premium": "<string>",
"entry_fee": "<string>",
"settlement_prices": ["<string>"]
}
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({
input_revision: 1,
anonymous_id: '<string>',
conversation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
origin_message_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
origin_analysis_id: '<string>',
instrument: '<string>',
quantity: '<string>',
basis: 'hypothetical',
package_premium: '<string>',
entry_fee: '<string>',
settlement_prices: ['<string>']
})
};
fetch('https://joyride.exchange/api/v1/ai/trade-scenarios', 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://joyride.exchange/api/v1/ai/trade-scenarios",
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([
'input_revision' => 1,
'anonymous_id' => '<string>',
'conversation_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'origin_message_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'origin_analysis_id' => '<string>',
'instrument' => '<string>',
'quantity' => '<string>',
'basis' => 'hypothetical',
'package_premium' => '<string>',
'entry_fee' => '<string>',
'settlement_prices' => [
'<string>'
]
]),
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://joyride.exchange/api/v1/ai/trade-scenarios"
payload := strings.NewReader("{\n \"input_revision\": 1,\n \"anonymous_id\": \"<string>\",\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_message_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_analysis_id\": \"<string>\",\n \"instrument\": \"<string>\",\n \"quantity\": \"<string>\",\n \"basis\": \"hypothetical\",\n \"package_premium\": \"<string>\",\n \"entry_fee\": \"<string>\",\n \"settlement_prices\": [\n \"<string>\"\n ]\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://joyride.exchange/api/v1/ai/trade-scenarios")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input_revision\": 1,\n \"anonymous_id\": \"<string>\",\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_message_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_analysis_id\": \"<string>\",\n \"instrument\": \"<string>\",\n \"quantity\": \"<string>\",\n \"basis\": \"hypothetical\",\n \"package_premium\": \"<string>\",\n \"entry_fee\": \"<string>\",\n \"settlement_prices\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://joyride.exchange/api/v1/ai/trade-scenarios")
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 \"input_revision\": 1,\n \"anonymous_id\": \"<string>\",\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_message_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"origin_analysis_id\": \"<string>\",\n \"instrument\": \"<string>\",\n \"quantity\": \"<string>\",\n \"basis\": \"hypothetical\",\n \"package_premium\": \"<string>\",\n \"entry_fee\": \"<string>\",\n \"settlement_prices\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"analysis_id": "<string>",
"basis_revision": "<string>",
"input_revision": 1,
"basis": "hypothetical",
"side": "buy",
"source_ids": [
"<string>"
],
"observed_at_ms": 123,
"finality": "<string>",
"legs": [
{
"quantity": "<string>",
"contract": {
"instrument": "<string>",
"underlying": "<string>",
"strike": "<string>",
"option_type": "call",
"expiry_ms": 123,
"settlement_method": "<string>",
"twap_window_start_ms": 123
}
}
],
"entry_cash_delta_usdc": "<string>",
"actual_fee_usdc": "<string>",
"signed_fee_maximum_usdc": "<string>",
"bounds_cost_basis": "<string>",
"maximum_loss": {
"status": "finite",
"amount_usdc": "<string>",
"reason": "<string>"
},
"maximum_profit": {
"status": "finite",
"amount_usdc": "<string>",
"reason": "<string>"
},
"breakeven_references_usdc": [
"<string>"
],
"scenarios": [
{
"settlement_reference_usdc": "<string>",
"gross_payoff_usdc": "<string>",
"net_before_settlement_fees_usdc": "<string>"
}
],
"early_exit": {
"status": "<string>",
"reason": "<string>"
},
"remaining_cost_basis": "<string>",
"limitations": [
"<string>"
]
}