List trade intents
curl --request GET \
--url https://charan-signal-api.localhost/api/v1/trade-intentsimport requests
url = "https://charan-signal-api.localhost/api/v1/trade-intents"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://charan-signal-api.localhost/api/v1/trade-intents', 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://charan-signal-api.localhost/api/v1/trade-intents",
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://charan-signal-api.localhost/api/v1/trade-intents"
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://charan-signal-api.localhost/api/v1/trade-intents")
.asString();require 'uri'
require 'net/http'
url = URI("https://charan-signal-api.localhost/api/v1/trade-intents")
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{
"meta": {
"generatedAt": "2023-11-07T05:31:56Z",
"scrapedAt": "2023-11-07T05:31:56Z",
"total": 123,
"count": 123,
"limit": 123,
"sort": "asc",
"filters": {}
},
"data": [
{
"id": "<string>",
"signalEventId": "<string>",
"idempotencyKey": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"confidence": "high",
"intent": "enter",
"readiness": "ready_for_sizing",
"instrument": {},
"ibkr": {
"route": "TWS_API",
"contract": {},
"missing": [
"<string>"
]
},
"nautilus": {},
"order": {
"action": "BUY",
"orderType": "MKT",
"timeInForce": "DAY",
"totalQuantity": null,
"transmit": false
},
"safeguards": {
"mode": "paper",
"submit": false,
"requiredChecks": [
"<string>"
]
},
"signal": {}
}
]
}{
"error": "<string>"
}API Reference
List trade intents
Returns paper-first IBKR/Nautilus trade-intent drafts derived from signal events.
GET
/
api
/
v1
/
trade-intents
List trade intents
curl --request GET \
--url https://charan-signal-api.localhost/api/v1/trade-intentsimport requests
url = "https://charan-signal-api.localhost/api/v1/trade-intents"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://charan-signal-api.localhost/api/v1/trade-intents', 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://charan-signal-api.localhost/api/v1/trade-intents",
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://charan-signal-api.localhost/api/v1/trade-intents"
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://charan-signal-api.localhost/api/v1/trade-intents")
.asString();require 'uri'
require 'net/http'
url = URI("https://charan-signal-api.localhost/api/v1/trade-intents")
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{
"meta": {
"generatedAt": "2023-11-07T05:31:56Z",
"scrapedAt": "2023-11-07T05:31:56Z",
"total": 123,
"count": 123,
"limit": 123,
"sort": "asc",
"filters": {}
},
"data": [
{
"id": "<string>",
"signalEventId": "<string>",
"idempotencyKey": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"confidence": "high",
"intent": "enter",
"readiness": "ready_for_sizing",
"instrument": {},
"ibkr": {
"route": "TWS_API",
"contract": {},
"missing": [
"<string>"
]
},
"nautilus": {},
"order": {
"action": "BUY",
"orderType": "MKT",
"timeInForce": "DAY",
"totalQuantity": null,
"transmit": false
},
"safeguards": {
"mode": "paper",
"submit": false,
"requiredChecks": [
"<string>"
]
},
"signal": {}
}
]
}{
"error": "<string>"
}Query Parameters
Examples:
"CHARAN"
"CLUTCH"
Examples:
"AMD"
"TSLA"
Available options:
open, add, hold, trim, close Available options:
high, medium, low Required range:
1 <= x <= 1000Available options:
asc, desc