Create Research Run
curl --request POST \
--url https://api.example.com/api/internal/regime/v2/research/runs \
--header 'Content-Type: application/json' \
--data '
{
"logic_version": "<string>",
"feature_version": "<string>",
"variant": "<string>",
"run_id": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": [
"<string>"
]
},
"cost_model": {
"model_id": "default",
"commission_bps": 0,
"slippage_bps": 0,
"spread_bps": 0
},
"strategy_family_registry_version": "strategy-family-registry-v1",
"source_query_windows": [
{
"source": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"input_artifact_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"code_version_pins": {},
"approved": false,
"feature_sets": [
{
"as_of": "2023-11-07T05:31:56Z",
"effective_for_session": "2023-12-25",
"logic_version": "<string>",
"feature_version": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": [
"<string>"
]
},
"variant": "corrected",
"vix_percentile": 50,
"realized_vol_percentile": 50,
"realized_vol_change_z": 123,
"range_percentile": 50,
"drawdown_pct": 123,
"tail_loss_z": 123,
"return_20d_z": 123,
"trend_persistence": 0.5,
"breadth_pct": 50,
"breadth_change_pct": 123,
"avg_correlation": 0,
"correlation_change_z": 123,
"intraday_trend_strength": 0.5,
"opening_drive_z": 123,
"failed_auction": true,
"noise_z": 123,
"source_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
}
],
"observations": [
{
"regime_axes": {},
"gross_return": 123,
"r_multiple": 123,
"cost_bps": 0,
"trade_date": "2023-12-25",
"subperiod": "<string>"
}
]
}
'import requests
url = "https://api.example.com/api/internal/regime/v2/research/runs"
payload = {
"logic_version": "<string>",
"feature_version": "<string>",
"variant": "<string>",
"run_id": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": ["<string>"]
},
"cost_model": {
"model_id": "default",
"commission_bps": 0,
"slippage_bps": 0,
"spread_bps": 0
},
"strategy_family_registry_version": "strategy-family-registry-v1",
"source_query_windows": [
{
"source": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"input_artifact_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"code_version_pins": {},
"approved": False,
"feature_sets": [
{
"as_of": "2023-11-07T05:31:56Z",
"effective_for_session": "2023-12-25",
"logic_version": "<string>",
"feature_version": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": ["<string>"]
},
"variant": "corrected",
"vix_percentile": 50,
"realized_vol_percentile": 50,
"realized_vol_change_z": 123,
"range_percentile": 50,
"drawdown_pct": 123,
"tail_loss_z": 123,
"return_20d_z": 123,
"trend_persistence": 0.5,
"breadth_pct": 50,
"breadth_change_pct": 123,
"avg_correlation": 0,
"correlation_change_z": 123,
"intraday_trend_strength": 0.5,
"opening_drive_z": 123,
"failed_auction": True,
"noise_z": 123,
"source_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
}
],
"observations": [
{
"regime_axes": {},
"gross_return": 123,
"r_multiple": 123,
"cost_bps": 0,
"trade_date": "2023-12-25",
"subperiod": "<string>"
}
]
}
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({
logic_version: '<string>',
feature_version: '<string>',
variant: '<string>',
run_id: '<string>',
asset_scope: {kind: 'market_index', primary_asset: 'SPY', universe: ['<string>']},
cost_model: {model_id: 'default', commission_bps: 0, slippage_bps: 0, spread_bps: 0},
strategy_family_registry_version: 'strategy-family-registry-v1',
source_query_windows: [
{
source: '<string>',
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
notes: '<string>'
}
],
input_artifact_refs: [
{
source: '<string>',
source_id: '<string>',
artifact_id: '<string>',
as_of: '2023-11-07T05:31:56Z',
notes: '<string>'
}
],
code_version_pins: {},
approved: false,
feature_sets: [
{
as_of: '2023-11-07T05:31:56Z',
effective_for_session: '2023-12-25',
logic_version: '<string>',
feature_version: '<string>',
asset_scope: {kind: 'market_index', primary_asset: 'SPY', universe: ['<string>']},
variant: 'corrected',
vix_percentile: 50,
realized_vol_percentile: 50,
realized_vol_change_z: 123,
range_percentile: 50,
drawdown_pct: 123,
tail_loss_z: 123,
return_20d_z: 123,
trend_persistence: 0.5,
breadth_pct: 50,
breadth_change_pct: 123,
avg_correlation: 0,
correlation_change_z: 123,
intraday_trend_strength: 0.5,
opening_drive_z: 123,
failed_auction: true,
noise_z: 123,
source_refs: [
{
source: '<string>',
source_id: '<string>',
artifact_id: '<string>',
as_of: '2023-11-07T05:31:56Z',
notes: '<string>'
}
]
}
],
observations: [
{
regime_axes: {},
gross_return: 123,
r_multiple: 123,
cost_bps: 0,
trade_date: '2023-12-25',
subperiod: '<string>'
}
]
})
};
fetch('https://api.example.com/api/internal/regime/v2/research/runs', 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.example.com/api/internal/regime/v2/research/runs",
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([
'logic_version' => '<string>',
'feature_version' => '<string>',
'variant' => '<string>',
'run_id' => '<string>',
'asset_scope' => [
'kind' => 'market_index',
'primary_asset' => 'SPY',
'universe' => [
'<string>'
]
],
'cost_model' => [
'model_id' => 'default',
'commission_bps' => 0,
'slippage_bps' => 0,
'spread_bps' => 0
],
'strategy_family_registry_version' => 'strategy-family-registry-v1',
'source_query_windows' => [
[
'source' => '<string>',
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'notes' => '<string>'
]
],
'input_artifact_refs' => [
[
'source' => '<string>',
'source_id' => '<string>',
'artifact_id' => '<string>',
'as_of' => '2023-11-07T05:31:56Z',
'notes' => '<string>'
]
],
'code_version_pins' => [
],
'approved' => false,
'feature_sets' => [
[
'as_of' => '2023-11-07T05:31:56Z',
'effective_for_session' => '2023-12-25',
'logic_version' => '<string>',
'feature_version' => '<string>',
'asset_scope' => [
'kind' => 'market_index',
'primary_asset' => 'SPY',
'universe' => [
'<string>'
]
],
'variant' => 'corrected',
'vix_percentile' => 50,
'realized_vol_percentile' => 50,
'realized_vol_change_z' => 123,
'range_percentile' => 50,
'drawdown_pct' => 123,
'tail_loss_z' => 123,
'return_20d_z' => 123,
'trend_persistence' => 0.5,
'breadth_pct' => 50,
'breadth_change_pct' => 123,
'avg_correlation' => 0,
'correlation_change_z' => 123,
'intraday_trend_strength' => 0.5,
'opening_drive_z' => 123,
'failed_auction' => true,
'noise_z' => 123,
'source_refs' => [
[
'source' => '<string>',
'source_id' => '<string>',
'artifact_id' => '<string>',
'as_of' => '2023-11-07T05:31:56Z',
'notes' => '<string>'
]
]
]
],
'observations' => [
[
'regime_axes' => [
],
'gross_return' => 123,
'r_multiple' => 123,
'cost_bps' => 0,
'trade_date' => '2023-12-25',
'subperiod' => '<string>'
]
]
]),
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.example.com/api/internal/regime/v2/research/runs"
payload := strings.NewReader("{\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"variant\": \"<string>\",\n \"run_id\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"cost_model\": {\n \"model_id\": \"default\",\n \"commission_bps\": 0,\n \"slippage_bps\": 0,\n \"spread_bps\": 0\n },\n \"strategy_family_registry_version\": \"strategy-family-registry-v1\",\n \"source_query_windows\": [\n {\n \"source\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"input_artifact_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"code_version_pins\": {},\n \"approved\": false,\n \"feature_sets\": [\n {\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"effective_for_session\": \"2023-12-25\",\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"variant\": \"corrected\",\n \"vix_percentile\": 50,\n \"realized_vol_percentile\": 50,\n \"realized_vol_change_z\": 123,\n \"range_percentile\": 50,\n \"drawdown_pct\": 123,\n \"tail_loss_z\": 123,\n \"return_20d_z\": 123,\n \"trend_persistence\": 0.5,\n \"breadth_pct\": 50,\n \"breadth_change_pct\": 123,\n \"avg_correlation\": 0,\n \"correlation_change_z\": 123,\n \"intraday_trend_strength\": 0.5,\n \"opening_drive_z\": 123,\n \"failed_auction\": true,\n \"noise_z\": 123,\n \"source_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ]\n }\n ],\n \"observations\": [\n {\n \"regime_axes\": {},\n \"gross_return\": 123,\n \"r_multiple\": 123,\n \"cost_bps\": 0,\n \"trade_date\": \"2023-12-25\",\n \"subperiod\": \"<string>\"\n }\n ]\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.example.com/api/internal/regime/v2/research/runs")
.header("Content-Type", "application/json")
.body("{\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"variant\": \"<string>\",\n \"run_id\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"cost_model\": {\n \"model_id\": \"default\",\n \"commission_bps\": 0,\n \"slippage_bps\": 0,\n \"spread_bps\": 0\n },\n \"strategy_family_registry_version\": \"strategy-family-registry-v1\",\n \"source_query_windows\": [\n {\n \"source\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"input_artifact_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"code_version_pins\": {},\n \"approved\": false,\n \"feature_sets\": [\n {\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"effective_for_session\": \"2023-12-25\",\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"variant\": \"corrected\",\n \"vix_percentile\": 50,\n \"realized_vol_percentile\": 50,\n \"realized_vol_change_z\": 123,\n \"range_percentile\": 50,\n \"drawdown_pct\": 123,\n \"tail_loss_z\": 123,\n \"return_20d_z\": 123,\n \"trend_persistence\": 0.5,\n \"breadth_pct\": 50,\n \"breadth_change_pct\": 123,\n \"avg_correlation\": 0,\n \"correlation_change_z\": 123,\n \"intraday_trend_strength\": 0.5,\n \"opening_drive_z\": 123,\n \"failed_auction\": true,\n \"noise_z\": 123,\n \"source_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ]\n }\n ],\n \"observations\": [\n {\n \"regime_axes\": {},\n \"gross_return\": 123,\n \"r_multiple\": 123,\n \"cost_bps\": 0,\n \"trade_date\": \"2023-12-25\",\n \"subperiod\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/internal/regime/v2/research/runs")
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 \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"variant\": \"<string>\",\n \"run_id\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"cost_model\": {\n \"model_id\": \"default\",\n \"commission_bps\": 0,\n \"slippage_bps\": 0,\n \"spread_bps\": 0\n },\n \"strategy_family_registry_version\": \"strategy-family-registry-v1\",\n \"source_query_windows\": [\n {\n \"source\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"input_artifact_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"code_version_pins\": {},\n \"approved\": false,\n \"feature_sets\": [\n {\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"effective_for_session\": \"2023-12-25\",\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"variant\": \"corrected\",\n \"vix_percentile\": 50,\n \"realized_vol_percentile\": 50,\n \"realized_vol_change_z\": 123,\n \"range_percentile\": 50,\n \"drawdown_pct\": 123,\n \"tail_loss_z\": 123,\n \"return_20d_z\": 123,\n \"trend_persistence\": 0.5,\n \"breadth_pct\": 50,\n \"breadth_change_pct\": 123,\n \"avg_correlation\": 0,\n \"correlation_change_z\": 123,\n \"intraday_trend_strength\": 0.5,\n \"opening_drive_z\": 123,\n \"failed_auction\": true,\n \"noise_z\": 123,\n \"source_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ]\n }\n ],\n \"observations\": [\n {\n \"regime_axes\": {},\n \"gross_return\": 123,\n \"r_multiple\": 123,\n \"cost_bps\": 0,\n \"trade_date\": \"2023-12-25\",\n \"subperiod\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"logic_version": "<string>",
"feature_version": "<string>",
"variant": "<string>",
"horizon_profiles": [
"macro"
],
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": [
"<string>"
]
},
"cost_model_id": "<string>",
"strategy_family_registry_version": "<string>",
"immutable_hash": "<string>",
"status": "completed",
"snapshot_ids": [
"<string>"
],
"evidence_ids": [
"<string>"
],
"artifact_ids": [
"<string>"
],
"input_artifact_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"source_query_windows": [
{
"source": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"horizon_binding": "prior_session",
"notes": "<string>"
}
],
"code_version_pins": {},
"notes": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}regime-vnext-internal
Create Research Run
POST
/
api
/
internal
/
regime
/
v2
/
research
/
runs
Create Research Run
curl --request POST \
--url https://api.example.com/api/internal/regime/v2/research/runs \
--header 'Content-Type: application/json' \
--data '
{
"logic_version": "<string>",
"feature_version": "<string>",
"variant": "<string>",
"run_id": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": [
"<string>"
]
},
"cost_model": {
"model_id": "default",
"commission_bps": 0,
"slippage_bps": 0,
"spread_bps": 0
},
"strategy_family_registry_version": "strategy-family-registry-v1",
"source_query_windows": [
{
"source": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"input_artifact_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"code_version_pins": {},
"approved": false,
"feature_sets": [
{
"as_of": "2023-11-07T05:31:56Z",
"effective_for_session": "2023-12-25",
"logic_version": "<string>",
"feature_version": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": [
"<string>"
]
},
"variant": "corrected",
"vix_percentile": 50,
"realized_vol_percentile": 50,
"realized_vol_change_z": 123,
"range_percentile": 50,
"drawdown_pct": 123,
"tail_loss_z": 123,
"return_20d_z": 123,
"trend_persistence": 0.5,
"breadth_pct": 50,
"breadth_change_pct": 123,
"avg_correlation": 0,
"correlation_change_z": 123,
"intraday_trend_strength": 0.5,
"opening_drive_z": 123,
"failed_auction": true,
"noise_z": 123,
"source_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
}
],
"observations": [
{
"regime_axes": {},
"gross_return": 123,
"r_multiple": 123,
"cost_bps": 0,
"trade_date": "2023-12-25",
"subperiod": "<string>"
}
]
}
'import requests
url = "https://api.example.com/api/internal/regime/v2/research/runs"
payload = {
"logic_version": "<string>",
"feature_version": "<string>",
"variant": "<string>",
"run_id": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": ["<string>"]
},
"cost_model": {
"model_id": "default",
"commission_bps": 0,
"slippage_bps": 0,
"spread_bps": 0
},
"strategy_family_registry_version": "strategy-family-registry-v1",
"source_query_windows": [
{
"source": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"input_artifact_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"code_version_pins": {},
"approved": False,
"feature_sets": [
{
"as_of": "2023-11-07T05:31:56Z",
"effective_for_session": "2023-12-25",
"logic_version": "<string>",
"feature_version": "<string>",
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": ["<string>"]
},
"variant": "corrected",
"vix_percentile": 50,
"realized_vol_percentile": 50,
"realized_vol_change_z": 123,
"range_percentile": 50,
"drawdown_pct": 123,
"tail_loss_z": 123,
"return_20d_z": 123,
"trend_persistence": 0.5,
"breadth_pct": 50,
"breadth_change_pct": 123,
"avg_correlation": 0,
"correlation_change_z": 123,
"intraday_trend_strength": 0.5,
"opening_drive_z": 123,
"failed_auction": True,
"noise_z": 123,
"source_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
}
],
"observations": [
{
"regime_axes": {},
"gross_return": 123,
"r_multiple": 123,
"cost_bps": 0,
"trade_date": "2023-12-25",
"subperiod": "<string>"
}
]
}
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({
logic_version: '<string>',
feature_version: '<string>',
variant: '<string>',
run_id: '<string>',
asset_scope: {kind: 'market_index', primary_asset: 'SPY', universe: ['<string>']},
cost_model: {model_id: 'default', commission_bps: 0, slippage_bps: 0, spread_bps: 0},
strategy_family_registry_version: 'strategy-family-registry-v1',
source_query_windows: [
{
source: '<string>',
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
notes: '<string>'
}
],
input_artifact_refs: [
{
source: '<string>',
source_id: '<string>',
artifact_id: '<string>',
as_of: '2023-11-07T05:31:56Z',
notes: '<string>'
}
],
code_version_pins: {},
approved: false,
feature_sets: [
{
as_of: '2023-11-07T05:31:56Z',
effective_for_session: '2023-12-25',
logic_version: '<string>',
feature_version: '<string>',
asset_scope: {kind: 'market_index', primary_asset: 'SPY', universe: ['<string>']},
variant: 'corrected',
vix_percentile: 50,
realized_vol_percentile: 50,
realized_vol_change_z: 123,
range_percentile: 50,
drawdown_pct: 123,
tail_loss_z: 123,
return_20d_z: 123,
trend_persistence: 0.5,
breadth_pct: 50,
breadth_change_pct: 123,
avg_correlation: 0,
correlation_change_z: 123,
intraday_trend_strength: 0.5,
opening_drive_z: 123,
failed_auction: true,
noise_z: 123,
source_refs: [
{
source: '<string>',
source_id: '<string>',
artifact_id: '<string>',
as_of: '2023-11-07T05:31:56Z',
notes: '<string>'
}
]
}
],
observations: [
{
regime_axes: {},
gross_return: 123,
r_multiple: 123,
cost_bps: 0,
trade_date: '2023-12-25',
subperiod: '<string>'
}
]
})
};
fetch('https://api.example.com/api/internal/regime/v2/research/runs', 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.example.com/api/internal/regime/v2/research/runs",
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([
'logic_version' => '<string>',
'feature_version' => '<string>',
'variant' => '<string>',
'run_id' => '<string>',
'asset_scope' => [
'kind' => 'market_index',
'primary_asset' => 'SPY',
'universe' => [
'<string>'
]
],
'cost_model' => [
'model_id' => 'default',
'commission_bps' => 0,
'slippage_bps' => 0,
'spread_bps' => 0
],
'strategy_family_registry_version' => 'strategy-family-registry-v1',
'source_query_windows' => [
[
'source' => '<string>',
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'notes' => '<string>'
]
],
'input_artifact_refs' => [
[
'source' => '<string>',
'source_id' => '<string>',
'artifact_id' => '<string>',
'as_of' => '2023-11-07T05:31:56Z',
'notes' => '<string>'
]
],
'code_version_pins' => [
],
'approved' => false,
'feature_sets' => [
[
'as_of' => '2023-11-07T05:31:56Z',
'effective_for_session' => '2023-12-25',
'logic_version' => '<string>',
'feature_version' => '<string>',
'asset_scope' => [
'kind' => 'market_index',
'primary_asset' => 'SPY',
'universe' => [
'<string>'
]
],
'variant' => 'corrected',
'vix_percentile' => 50,
'realized_vol_percentile' => 50,
'realized_vol_change_z' => 123,
'range_percentile' => 50,
'drawdown_pct' => 123,
'tail_loss_z' => 123,
'return_20d_z' => 123,
'trend_persistence' => 0.5,
'breadth_pct' => 50,
'breadth_change_pct' => 123,
'avg_correlation' => 0,
'correlation_change_z' => 123,
'intraday_trend_strength' => 0.5,
'opening_drive_z' => 123,
'failed_auction' => true,
'noise_z' => 123,
'source_refs' => [
[
'source' => '<string>',
'source_id' => '<string>',
'artifact_id' => '<string>',
'as_of' => '2023-11-07T05:31:56Z',
'notes' => '<string>'
]
]
]
],
'observations' => [
[
'regime_axes' => [
],
'gross_return' => 123,
'r_multiple' => 123,
'cost_bps' => 0,
'trade_date' => '2023-12-25',
'subperiod' => '<string>'
]
]
]),
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.example.com/api/internal/regime/v2/research/runs"
payload := strings.NewReader("{\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"variant\": \"<string>\",\n \"run_id\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"cost_model\": {\n \"model_id\": \"default\",\n \"commission_bps\": 0,\n \"slippage_bps\": 0,\n \"spread_bps\": 0\n },\n \"strategy_family_registry_version\": \"strategy-family-registry-v1\",\n \"source_query_windows\": [\n {\n \"source\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"input_artifact_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"code_version_pins\": {},\n \"approved\": false,\n \"feature_sets\": [\n {\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"effective_for_session\": \"2023-12-25\",\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"variant\": \"corrected\",\n \"vix_percentile\": 50,\n \"realized_vol_percentile\": 50,\n \"realized_vol_change_z\": 123,\n \"range_percentile\": 50,\n \"drawdown_pct\": 123,\n \"tail_loss_z\": 123,\n \"return_20d_z\": 123,\n \"trend_persistence\": 0.5,\n \"breadth_pct\": 50,\n \"breadth_change_pct\": 123,\n \"avg_correlation\": 0,\n \"correlation_change_z\": 123,\n \"intraday_trend_strength\": 0.5,\n \"opening_drive_z\": 123,\n \"failed_auction\": true,\n \"noise_z\": 123,\n \"source_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ]\n }\n ],\n \"observations\": [\n {\n \"regime_axes\": {},\n \"gross_return\": 123,\n \"r_multiple\": 123,\n \"cost_bps\": 0,\n \"trade_date\": \"2023-12-25\",\n \"subperiod\": \"<string>\"\n }\n ]\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.example.com/api/internal/regime/v2/research/runs")
.header("Content-Type", "application/json")
.body("{\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"variant\": \"<string>\",\n \"run_id\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"cost_model\": {\n \"model_id\": \"default\",\n \"commission_bps\": 0,\n \"slippage_bps\": 0,\n \"spread_bps\": 0\n },\n \"strategy_family_registry_version\": \"strategy-family-registry-v1\",\n \"source_query_windows\": [\n {\n \"source\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"input_artifact_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"code_version_pins\": {},\n \"approved\": false,\n \"feature_sets\": [\n {\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"effective_for_session\": \"2023-12-25\",\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"variant\": \"corrected\",\n \"vix_percentile\": 50,\n \"realized_vol_percentile\": 50,\n \"realized_vol_change_z\": 123,\n \"range_percentile\": 50,\n \"drawdown_pct\": 123,\n \"tail_loss_z\": 123,\n \"return_20d_z\": 123,\n \"trend_persistence\": 0.5,\n \"breadth_pct\": 50,\n \"breadth_change_pct\": 123,\n \"avg_correlation\": 0,\n \"correlation_change_z\": 123,\n \"intraday_trend_strength\": 0.5,\n \"opening_drive_z\": 123,\n \"failed_auction\": true,\n \"noise_z\": 123,\n \"source_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ]\n }\n ],\n \"observations\": [\n {\n \"regime_axes\": {},\n \"gross_return\": 123,\n \"r_multiple\": 123,\n \"cost_bps\": 0,\n \"trade_date\": \"2023-12-25\",\n \"subperiod\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/internal/regime/v2/research/runs")
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 \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"variant\": \"<string>\",\n \"run_id\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"cost_model\": {\n \"model_id\": \"default\",\n \"commission_bps\": 0,\n \"slippage_bps\": 0,\n \"spread_bps\": 0\n },\n \"strategy_family_registry_version\": \"strategy-family-registry-v1\",\n \"source_query_windows\": [\n {\n \"source\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"input_artifact_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ],\n \"code_version_pins\": {},\n \"approved\": false,\n \"feature_sets\": [\n {\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"effective_for_session\": \"2023-12-25\",\n \"logic_version\": \"<string>\",\n \"feature_version\": \"<string>\",\n \"asset_scope\": {\n \"kind\": \"market_index\",\n \"primary_asset\": \"SPY\",\n \"universe\": [\n \"<string>\"\n ]\n },\n \"variant\": \"corrected\",\n \"vix_percentile\": 50,\n \"realized_vol_percentile\": 50,\n \"realized_vol_change_z\": 123,\n \"range_percentile\": 50,\n \"drawdown_pct\": 123,\n \"tail_loss_z\": 123,\n \"return_20d_z\": 123,\n \"trend_persistence\": 0.5,\n \"breadth_pct\": 50,\n \"breadth_change_pct\": 123,\n \"avg_correlation\": 0,\n \"correlation_change_z\": 123,\n \"intraday_trend_strength\": 0.5,\n \"opening_drive_z\": 123,\n \"failed_auction\": true,\n \"noise_z\": 123,\n \"source_refs\": [\n {\n \"source\": \"<string>\",\n \"source_id\": \"<string>\",\n \"artifact_id\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"notes\": \"<string>\"\n }\n ]\n }\n ],\n \"observations\": [\n {\n \"regime_axes\": {},\n \"gross_return\": 123,\n \"r_multiple\": 123,\n \"cost_bps\": 0,\n \"trade_date\": \"2023-12-25\",\n \"subperiod\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"logic_version": "<string>",
"feature_version": "<string>",
"variant": "<string>",
"horizon_profiles": [
"macro"
],
"asset_scope": {
"kind": "market_index",
"primary_asset": "SPY",
"universe": [
"<string>"
]
},
"cost_model_id": "<string>",
"strategy_family_registry_version": "<string>",
"immutable_hash": "<string>",
"status": "completed",
"snapshot_ids": [
"<string>"
],
"evidence_ids": [
"<string>"
],
"artifact_ids": [
"<string>"
],
"input_artifact_refs": [
{
"source": "<string>",
"source_id": "<string>",
"artifact_id": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
],
"source_query_windows": [
{
"source": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"horizon_binding": "prior_session",
"notes": "<string>"
}
],
"code_version_pins": {},
"notes": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Available options:
macro, swing, intraday Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum array length:
1000Show child attributes
Show child attributes
Maximum array length:
20000Show child attributes
Show child attributes
Response
Successful Response
Available options:
macro, swing, intraday Show child attributes
Show child attributes
Available options:
completed, failed Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes