List trade cards for the current session
curl --request GET \
--url https://api.example.com/api/graph/v1/trade/cardsimport requests
url = "https://api.example.com/api/graph/v1/trade/cards"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/trade/cards', 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/graph/v1/trade/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/graph/v1/trade/cards"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/graph/v1/trade/cards")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/trade/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"cards": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source": "strategy_lib",
"paper_live_mode": "paper",
"mode": "autonomous",
"instrument": {
"kind": "equity",
"symbol": "<string>",
"underlying": "<string>",
"option_details": {
"strike": "<string>",
"expiration": "2023-12-25",
"type": "C"
}
},
"column_state": "queue",
"sizing": {
"type": "<string>",
"value": "<string>",
"computed_shares": "0",
"computed_risk_dollars": "0"
},
"source_ref": "<string>",
"strategy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"strategy_name": "<string>",
"strategy_version": 123,
"substate": "hunting",
"entry_triggers": {},
"exit_rules": {},
"broker_order_id": "<string>",
"fill_ladder": [
{
"ts": "2023-11-07T05:31:56Z",
"shares": "<string>",
"price": "<string>",
"side": "buy",
"broker_fill_id": "<string>"
}
],
"position": {
"shares": "<string>",
"avg_price": "<string>",
"unrealized_pnl": "0",
"realized_pnl": "0"
},
"fitness": {
"regime_match": "active",
"fitness_score": 50,
"ripe": false,
"last_computed_at": "2023-11-07T05:31:56Z"
},
"costs": {
"expected_commission": "<string>",
"expected_slippage_bps": "<string>",
"realized_commission": "<string>",
"realized_slippage_bps": "<string>",
"expected_fill_price": "<string>",
"realized_fill_price": "<string>"
},
"reconcile_state": "ok",
"audit_log_count": 0,
"latest_audit_entry": {
"ts": "2023-11-07T05:31:56Z",
"actor": "user",
"action": "<string>",
"reason": "",
"correlation_id": "<string>",
"market_snapshot": {
"ts": "2023-11-07T05:31:56Z",
"bar_symbol": "",
"bar_open": "<string>",
"bar_high": "<string>",
"bar_low": "<string>",
"bar_close": "<string>",
"bar_volume": 123,
"bar_vwap": "<string>",
"quote_bid": "<string>",
"quote_ask": "<string>",
"quote_bid_size": 123,
"quote_ask_size": 123,
"indicators": {},
"regime_dominant": "",
"regime_confidence": 123,
"signals": {},
"risk_day_dollars": "<string>",
"risk_pct_cap": 123,
"risk_loss_remaining": "<string>"
},
"before": {},
"after": {},
"strategy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"strategy_version": 123
},
"schema_version": 1
}
],
"total": 123,
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}trade-cards
List trade cards for the current session
Return all cards for the current trading session, grouped by column. The current session is determined by the most recent session_id.
GET
/
api
/
graph
/
v1
/
trade
/
cards
List trade cards for the current session
curl --request GET \
--url https://api.example.com/api/graph/v1/trade/cardsimport requests
url = "https://api.example.com/api/graph/v1/trade/cards"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/trade/cards', 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/graph/v1/trade/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/graph/v1/trade/cards"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/graph/v1/trade/cards")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/trade/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"cards": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source": "strategy_lib",
"paper_live_mode": "paper",
"mode": "autonomous",
"instrument": {
"kind": "equity",
"symbol": "<string>",
"underlying": "<string>",
"option_details": {
"strike": "<string>",
"expiration": "2023-12-25",
"type": "C"
}
},
"column_state": "queue",
"sizing": {
"type": "<string>",
"value": "<string>",
"computed_shares": "0",
"computed_risk_dollars": "0"
},
"source_ref": "<string>",
"strategy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"strategy_name": "<string>",
"strategy_version": 123,
"substate": "hunting",
"entry_triggers": {},
"exit_rules": {},
"broker_order_id": "<string>",
"fill_ladder": [
{
"ts": "2023-11-07T05:31:56Z",
"shares": "<string>",
"price": "<string>",
"side": "buy",
"broker_fill_id": "<string>"
}
],
"position": {
"shares": "<string>",
"avg_price": "<string>",
"unrealized_pnl": "0",
"realized_pnl": "0"
},
"fitness": {
"regime_match": "active",
"fitness_score": 50,
"ripe": false,
"last_computed_at": "2023-11-07T05:31:56Z"
},
"costs": {
"expected_commission": "<string>",
"expected_slippage_bps": "<string>",
"realized_commission": "<string>",
"realized_slippage_bps": "<string>",
"expected_fill_price": "<string>",
"realized_fill_price": "<string>"
},
"reconcile_state": "ok",
"audit_log_count": 0,
"latest_audit_entry": {
"ts": "2023-11-07T05:31:56Z",
"actor": "user",
"action": "<string>",
"reason": "",
"correlation_id": "<string>",
"market_snapshot": {
"ts": "2023-11-07T05:31:56Z",
"bar_symbol": "",
"bar_open": "<string>",
"bar_high": "<string>",
"bar_low": "<string>",
"bar_close": "<string>",
"bar_volume": 123,
"bar_vwap": "<string>",
"quote_bid": "<string>",
"quote_ask": "<string>",
"quote_bid_size": 123,
"quote_ask_size": 123,
"indicators": {},
"regime_dominant": "",
"regime_confidence": 123,
"signals": {},
"risk_day_dollars": "<string>",
"risk_pct_cap": 123,
"risk_loss_remaining": "<string>"
},
"before": {},
"after": {},
"strategy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"strategy_version": 123
},
"schema_version": 1
}
],
"total": 123,
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}