cURL
curl --request GET \
--url https://api.tilt.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tilt.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/"
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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/', 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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/",
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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/"
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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tilt.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/")
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{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"account": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"created": "2023-11-07T05:31:56Z"
},
"weights": [
{
"ticker": "<string>",
"ticker_symbol": "<string>",
"ticker_name": "<string>",
"weight": "<string>",
"active_weight": "<string>",
"initial_weight": "<string>",
"benchmark_weight": "<string>",
"imputed_alpha": "<string>",
"tax_alpha": "<string>",
"no_trade": true,
"no_hold": true,
"no_buy": true,
"no_sell": true
}
],
"orders": [
{
"ticker": "<string>",
"ticker_symbol": "<string>",
"amount": "<string>",
"tax_lots": [
{
"cost_basis": "<string>",
"quantity": "<string>",
"trade_date": "2023-12-25",
"gain": "<string>"
}
],
"fx_cost_breakdown": {
"base_amount_usd": "<string>",
"fx_rate": "<string>",
"fx_fee_percentage": "<string>",
"fx_fee_amount_usd": "<string>",
"net_amount_usd": "<string>"
},
"amount_usd": "<string>",
"existing_quantity": "<string>",
"existing_weight": "<string>",
"existing_market_value": "<string>",
"target_weight": "<string>"
}
],
"executed_at": "2023-11-07T05:31:56Z",
"optimization_summary": {
"total_optimized_weight": "<string>",
"total_benchmark_weight": "<string>",
"total_ideal_weight": "<string>",
"total_active_weight": "<string>",
"imputed_alpha": "<string>",
"simple_tcost": "<string>",
"transaction_cost": "<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>",
"optimized_risk_annualized_percentage": "<string>",
"average_drift": "<string>",
"max_drift": "<string>",
"resolved_tax_gamma": "<string>",
"tax_gamma_iterations": -1
},
"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>"
},
"trade_attributions": [
{
"ticker": "<string>",
"ticker_symbol": "<string>",
"ticker_name": "<string>",
"imputed_alpha": "<string>",
"benchmark_weight": "<string>",
"tax_alpha": "<string>",
"trade_weight": "<string>",
"active_weight": "<string>",
"initial_weight": "<string>",
"optimized_weight": "<string>",
"tax_loss_harvesting_sell": true,
"tax_loss_harvesting_buy": true,
"tilt_exposure_sell": true,
"tilt_exposure_buy": true,
"no_hold_restriction": true,
"no_trade_restriction": true,
"no_buy_restriction": true,
"no_sell_restriction": true,
"hold_benchmark_restriction": true,
"initial_active_weight": "<string>",
"reduced_active_weight": true,
"constraints_and_hedging": true,
"risk_aversion_alpha": "<string>"
}
],
"failure_reason": "<string>",
"execution_summary": {
"sells_processed": 1073741823,
"buys_processed": 1073741823,
"tax_lots_removed": 1073741823,
"tax_lots_reduced": 1073741823,
"tax_lots_created": 1073741823,
"warnings": "<unknown>"
}
}Bulk Customization
Get Optimization Task Result
GET
/
api
/
v1
/
custom
/
org
/
{organization_uuid}
/
optimized_proposals
/
{proposal_uuid}
/
cURL
curl --request GET \
--url https://api.tilt.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tilt.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/"
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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/', 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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/",
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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/"
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.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tilt.io/api/v1/custom/org/{organization_uuid}/optimized_proposals/{proposal_uuid}/")
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{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"account": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"created": "2023-11-07T05:31:56Z"
},
"weights": [
{
"ticker": "<string>",
"ticker_symbol": "<string>",
"ticker_name": "<string>",
"weight": "<string>",
"active_weight": "<string>",
"initial_weight": "<string>",
"benchmark_weight": "<string>",
"imputed_alpha": "<string>",
"tax_alpha": "<string>",
"no_trade": true,
"no_hold": true,
"no_buy": true,
"no_sell": true
}
],
"orders": [
{
"ticker": "<string>",
"ticker_symbol": "<string>",
"amount": "<string>",
"tax_lots": [
{
"cost_basis": "<string>",
"quantity": "<string>",
"trade_date": "2023-12-25",
"gain": "<string>"
}
],
"fx_cost_breakdown": {
"base_amount_usd": "<string>",
"fx_rate": "<string>",
"fx_fee_percentage": "<string>",
"fx_fee_amount_usd": "<string>",
"net_amount_usd": "<string>"
},
"amount_usd": "<string>",
"existing_quantity": "<string>",
"existing_weight": "<string>",
"existing_market_value": "<string>",
"target_weight": "<string>"
}
],
"executed_at": "2023-11-07T05:31:56Z",
"optimization_summary": {
"total_optimized_weight": "<string>",
"total_benchmark_weight": "<string>",
"total_ideal_weight": "<string>",
"total_active_weight": "<string>",
"imputed_alpha": "<string>",
"simple_tcost": "<string>",
"transaction_cost": "<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>",
"optimized_risk_annualized_percentage": "<string>",
"average_drift": "<string>",
"max_drift": "<string>",
"resolved_tax_gamma": "<string>",
"tax_gamma_iterations": -1
},
"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>"
},
"trade_attributions": [
{
"ticker": "<string>",
"ticker_symbol": "<string>",
"ticker_name": "<string>",
"imputed_alpha": "<string>",
"benchmark_weight": "<string>",
"tax_alpha": "<string>",
"trade_weight": "<string>",
"active_weight": "<string>",
"initial_weight": "<string>",
"optimized_weight": "<string>",
"tax_loss_harvesting_sell": true,
"tax_loss_harvesting_buy": true,
"tilt_exposure_sell": true,
"tilt_exposure_buy": true,
"no_hold_restriction": true,
"no_trade_restriction": true,
"no_buy_restriction": true,
"no_sell_restriction": true,
"hold_benchmark_restriction": true,
"initial_active_weight": "<string>",
"reduced_active_weight": true,
"constraints_and_hedging": true,
"risk_aversion_alpha": "<string>"
}
],
"failure_reason": "<string>",
"execution_summary": {
"sells_processed": 1073741823,
"buys_processed": 1073741823,
"tax_lots_removed": 1073741823,
"tax_lots_reduced": 1073741823,
"tax_lots_created": 1073741823,
"warnings": "<unknown>"
}
}Authorizations
Response
200 - application/json
Show child attributes
Show child attributes
pending- Pendingcompleted- Completedfailed- Failed
Available options:
pending, completed, failed Show child attributes
Show child attributes
Show child attributes
Show child attributes
Timestamp when this proposal was executed and tax lots were updated
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I