cURL
curl --request GET \
--url https://api.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_id}/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_id}/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"metadata": "<unknown>"
},
"client": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"metadata": "<unknown>"
},
"status": "PENDING",
"params": "<unknown>",
"result": {
"baseline": {
"summary": {
"total_optimized_weight": "<string>",
"total_benchmark_weight": "<string>",
"total_ideal_weight": "<string>",
"total_active_weight": "<string>",
"imputed_alpha": "<string>",
"transaction_cost": "<string>",
"simple_tcost": "<string>",
"commissions_bps": "<string>",
"market_impact_bps": "<string>",
"bid_ask_cost_bps": "<string>",
"nav": "<string>",
"turnover": "<string>",
"benchmark_risk_annualized_percentage": "<string>",
"active_risk_annualized_percentage": "<string>",
"reported_benchmark_risk_annualized_percentage": "<string>",
"reported_active_risk_annualized_percentage": "<string>",
"optimized_risk_annualized_percentage": "<string>",
"tilt_risk_annualized_percentage": "<string>",
"average_drift": "<string>",
"max_drift": "<string>",
"resolved_tax_gamma": "<string>",
"tax_gamma_iterations": 123
},
"weights": [
{
"ticker": "<string>",
"optimized_weight": "<string>",
"initial_weight": "<string>",
"benchmark_weight": "<string>",
"active_weight": "<string>",
"imputed_alpha": "<string>",
"tax_alpha": "<string>",
"no_trade": true,
"no_hold": true,
"no_buy": true,
"no_sell": true,
"ticker_symbol": "<string>",
"ticker_name": "<string>"
}
],
"resolved_overrides": {},
"constraints": {
"config": {},
"no_hold_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"no_trade_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"asset_bounds": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>",
"target_weight": 123,
"lower_bound": 123,
"upper_bound": 123,
"min_active": 123,
"max_active": 123
}
]
},
"error": "<string>",
"tax_budget_result": {
"requested_budget_usd": "<string>",
"estimated_tax_usd": "<string>",
"status": "compliant",
"selected_gamma": 123,
"evaluation_count": 123,
"termination_reason": "<string>",
"net_gains_budget_usd": "<string>",
"net_realized_gains_usd": "<string>"
},
"tax_summary": {
"short_term_gain": "<string>",
"short_term_loss": "<string>",
"long_term_gain": "<string>",
"long_term_loss": "<string>",
"short_term_net": "<string>",
"long_term_net": "<string>",
"tax_due": "<string>"
}
},
"scenarios": [
{
"label": "<string>",
"summary": {
"total_optimized_weight": "<string>",
"total_benchmark_weight": "<string>",
"total_ideal_weight": "<string>",
"total_active_weight": "<string>",
"imputed_alpha": "<string>",
"transaction_cost": "<string>",
"simple_tcost": "<string>",
"commissions_bps": "<string>",
"market_impact_bps": "<string>",
"bid_ask_cost_bps": "<string>",
"nav": "<string>",
"turnover": "<string>",
"benchmark_risk_annualized_percentage": "<string>",
"active_risk_annualized_percentage": "<string>",
"reported_benchmark_risk_annualized_percentage": "<string>",
"reported_active_risk_annualized_percentage": "<string>",
"optimized_risk_annualized_percentage": "<string>",
"tilt_risk_annualized_percentage": "<string>",
"average_drift": "<string>",
"max_drift": "<string>",
"resolved_tax_gamma": "<string>",
"tax_gamma_iterations": 123
},
"weights": [
{
"ticker": "<string>",
"optimized_weight": "<string>",
"initial_weight": "<string>",
"benchmark_weight": "<string>",
"active_weight": "<string>",
"imputed_alpha": "<string>",
"tax_alpha": "<string>",
"no_trade": true,
"no_hold": true,
"no_buy": true,
"no_sell": true,
"ticker_symbol": "<string>",
"ticker_name": "<string>"
}
],
"resolved_overrides": {},
"constraints": {
"config": {},
"no_hold_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"no_trade_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"asset_bounds": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>",
"target_weight": 123,
"lower_bound": 123,
"upper_bound": 123,
"min_active": 123,
"max_active": 123
}
]
},
"error": "<string>",
"tax_budget_result": {
"requested_budget_usd": "<string>",
"estimated_tax_usd": "<string>",
"status": "compliant",
"selected_gamma": 123,
"evaluation_count": 123,
"termination_reason": "<string>",
"net_gains_budget_usd": "<string>",
"net_realized_gains_usd": "<string>"
},
"tax_summary": {
"short_term_gain": "<string>",
"short_term_loss": "<string>",
"long_term_gain": "<string>",
"long_term_loss": "<string>",
"short_term_net": "<string>",
"long_term_net": "<string>",
"tax_due": "<string>"
},
"path": {},
"price_date": "2023-12-25"
}
]
},
"error_message": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}Dynamic Rules
Get Preview Job Result
GET
/
api
/
v1
/
custom
/
org
/
{organization_uuid}
/
dynamic_rules
/
preview
/
{job_id}
/
cURL
curl --request GET \
--url https://api.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_id}/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_id}/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tilt.now/api/v1/custom/org/{organization_uuid}/dynamic_rules/preview/{job_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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"metadata": "<unknown>"
},
"client": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"metadata": "<unknown>"
},
"status": "PENDING",
"params": "<unknown>",
"result": {
"baseline": {
"summary": {
"total_optimized_weight": "<string>",
"total_benchmark_weight": "<string>",
"total_ideal_weight": "<string>",
"total_active_weight": "<string>",
"imputed_alpha": "<string>",
"transaction_cost": "<string>",
"simple_tcost": "<string>",
"commissions_bps": "<string>",
"market_impact_bps": "<string>",
"bid_ask_cost_bps": "<string>",
"nav": "<string>",
"turnover": "<string>",
"benchmark_risk_annualized_percentage": "<string>",
"active_risk_annualized_percentage": "<string>",
"reported_benchmark_risk_annualized_percentage": "<string>",
"reported_active_risk_annualized_percentage": "<string>",
"optimized_risk_annualized_percentage": "<string>",
"tilt_risk_annualized_percentage": "<string>",
"average_drift": "<string>",
"max_drift": "<string>",
"resolved_tax_gamma": "<string>",
"tax_gamma_iterations": 123
},
"weights": [
{
"ticker": "<string>",
"optimized_weight": "<string>",
"initial_weight": "<string>",
"benchmark_weight": "<string>",
"active_weight": "<string>",
"imputed_alpha": "<string>",
"tax_alpha": "<string>",
"no_trade": true,
"no_hold": true,
"no_buy": true,
"no_sell": true,
"ticker_symbol": "<string>",
"ticker_name": "<string>"
}
],
"resolved_overrides": {},
"constraints": {
"config": {},
"no_hold_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"no_trade_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"asset_bounds": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>",
"target_weight": 123,
"lower_bound": 123,
"upper_bound": 123,
"min_active": 123,
"max_active": 123
}
]
},
"error": "<string>",
"tax_budget_result": {
"requested_budget_usd": "<string>",
"estimated_tax_usd": "<string>",
"status": "compliant",
"selected_gamma": 123,
"evaluation_count": 123,
"termination_reason": "<string>",
"net_gains_budget_usd": "<string>",
"net_realized_gains_usd": "<string>"
},
"tax_summary": {
"short_term_gain": "<string>",
"short_term_loss": "<string>",
"long_term_gain": "<string>",
"long_term_loss": "<string>",
"short_term_net": "<string>",
"long_term_net": "<string>",
"tax_due": "<string>"
}
},
"scenarios": [
{
"label": "<string>",
"summary": {
"total_optimized_weight": "<string>",
"total_benchmark_weight": "<string>",
"total_ideal_weight": "<string>",
"total_active_weight": "<string>",
"imputed_alpha": "<string>",
"transaction_cost": "<string>",
"simple_tcost": "<string>",
"commissions_bps": "<string>",
"market_impact_bps": "<string>",
"bid_ask_cost_bps": "<string>",
"nav": "<string>",
"turnover": "<string>",
"benchmark_risk_annualized_percentage": "<string>",
"active_risk_annualized_percentage": "<string>",
"reported_benchmark_risk_annualized_percentage": "<string>",
"reported_active_risk_annualized_percentage": "<string>",
"optimized_risk_annualized_percentage": "<string>",
"tilt_risk_annualized_percentage": "<string>",
"average_drift": "<string>",
"max_drift": "<string>",
"resolved_tax_gamma": "<string>",
"tax_gamma_iterations": 123
},
"weights": [
{
"ticker": "<string>",
"optimized_weight": "<string>",
"initial_weight": "<string>",
"benchmark_weight": "<string>",
"active_weight": "<string>",
"imputed_alpha": "<string>",
"tax_alpha": "<string>",
"no_trade": true,
"no_hold": true,
"no_buy": true,
"no_sell": true,
"ticker_symbol": "<string>",
"ticker_name": "<string>"
}
],
"resolved_overrides": {},
"constraints": {
"config": {},
"no_hold_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"no_trade_tickers": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>"
}
],
"asset_bounds": [
{
"tilt_asset_id": "<string>",
"symbol": "<string>",
"active": true,
"reason": "<string>",
"condition": "<string>",
"target_weight": 123,
"lower_bound": 123,
"upper_bound": 123,
"min_active": 123,
"max_active": 123
}
]
},
"error": "<string>",
"tax_budget_result": {
"requested_budget_usd": "<string>",
"estimated_tax_usd": "<string>",
"status": "compliant",
"selected_gamma": 123,
"evaluation_count": 123,
"termination_reason": "<string>",
"net_gains_budget_usd": "<string>",
"net_realized_gains_usd": "<string>"
},
"tax_summary": {
"short_term_gain": "<string>",
"short_term_loss": "<string>",
"long_term_gain": "<string>",
"long_term_loss": "<string>",
"short_term_net": "<string>",
"long_term_net": "<string>",
"tax_due": "<string>"
},
"path": {},
"price_date": "2023-12-25"
}
]
},
"error_message": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}Response
200 - application/json