finterm tool insider_trades AAPL --as-of-date 2024-03-15import requests
url = "https://api.finterm.ai/api/v1/ownership/insider-trades"
payload = {
"ticker": "<string>",
"as_of_date": "<string>",
"limit": 250,
"transaction_codes": [],
"include_derivatives": True,
"include_holdings": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ticker: '<string>',
as_of_date: '<string>',
limit: 250,
transaction_codes: [],
include_derivatives: true,
include_holdings: true
})
};
fetch('https://api.finterm.ai/api/v1/ownership/insider-trades', 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.finterm.ai/api/v1/ownership/insider-trades",
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([
'ticker' => '<string>',
'as_of_date' => '<string>',
'limit' => 250,
'transaction_codes' => [
],
'include_derivatives' => true,
'include_holdings' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.finterm.ai/api/v1/ownership/insider-trades"
payload := strings.NewReader("{\n \"ticker\": \"<string>\",\n \"as_of_date\": \"<string>\",\n \"limit\": 250,\n \"transaction_codes\": [],\n \"include_derivatives\": true,\n \"include_holdings\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.finterm.ai/api/v1/ownership/insider-trades")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ticker\": \"<string>\",\n \"as_of_date\": \"<string>\",\n \"limit\": 250,\n \"transaction_codes\": [],\n \"include_derivatives\": true,\n \"include_holdings\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.finterm.ai/api/v1/ownership/insider-trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ticker\": \"<string>\",\n \"as_of_date\": \"<string>\",\n \"limit\": 250,\n \"transaction_codes\": [],\n \"include_derivatives\": true,\n \"include_holdings\": true\n}"
response = http.request(request)
puts response.read_body{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"data": {
"ticker": "<string>",
"as_of_date": "<string>",
"trades": [
{
"ticker": "<string>",
"issuer": "<string>",
"name": "<string>",
"title": "<string>",
"is_board_director": true,
"is_officer": true,
"is_ten_percent_owner": true,
"transaction_date": "<string>",
"filing_date": "<string>",
"transaction_code": "<string>",
"transaction_type": "<string>",
"transaction_shares": 123,
"transaction_price_per_share": 123,
"transaction_value": 123,
"shares_owned_after_transaction": 123,
"nature_of_ownership": "<string>",
"security_title": "<string>",
"is_10b5_1_plan": true,
"filing_url": "<string>"
}
],
"summary": {
"open_market_net_value_90d": 123,
"buy_count_90d": 123,
"sell_count_90d": 123,
"window_complete": true
},
"truncated": true
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}SEC Form 4 insider transactions with a trailing 90-day open-market summary.
Get insider transactions and holdings filed with the SEC by a company’s officers, directors, and 10% owners, normalized into one row per reported security event. Each row carries the owner’s role flags, the transaction code and type, shares, price, value, post-transaction ownership, whether it was part of a pre-arranged trading plan, and the source filing URL. A summary block reports the trailing 90-day open-market net value with buy and sell counts, and whether that window was fully scanned. Pass a date to get the view as of a specific filing date.
finterm tool insider_trades AAPL --as-of-date 2024-03-15import requests
url = "https://api.finterm.ai/api/v1/ownership/insider-trades"
payload = {
"ticker": "<string>",
"as_of_date": "<string>",
"limit": 250,
"transaction_codes": [],
"include_derivatives": True,
"include_holdings": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ticker: '<string>',
as_of_date: '<string>',
limit: 250,
transaction_codes: [],
include_derivatives: true,
include_holdings: true
})
};
fetch('https://api.finterm.ai/api/v1/ownership/insider-trades', 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.finterm.ai/api/v1/ownership/insider-trades",
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([
'ticker' => '<string>',
'as_of_date' => '<string>',
'limit' => 250,
'transaction_codes' => [
],
'include_derivatives' => true,
'include_holdings' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.finterm.ai/api/v1/ownership/insider-trades"
payload := strings.NewReader("{\n \"ticker\": \"<string>\",\n \"as_of_date\": \"<string>\",\n \"limit\": 250,\n \"transaction_codes\": [],\n \"include_derivatives\": true,\n \"include_holdings\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.finterm.ai/api/v1/ownership/insider-trades")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ticker\": \"<string>\",\n \"as_of_date\": \"<string>\",\n \"limit\": 250,\n \"transaction_codes\": [],\n \"include_derivatives\": true,\n \"include_holdings\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.finterm.ai/api/v1/ownership/insider-trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ticker\": \"<string>\",\n \"as_of_date\": \"<string>\",\n \"limit\": 250,\n \"transaction_codes\": [],\n \"include_derivatives\": true,\n \"include_holdings\": true\n}"
response = http.request(request)
puts response.read_body{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"data": {
"ticker": "<string>",
"as_of_date": "<string>",
"trades": [
{
"ticker": "<string>",
"issuer": "<string>",
"name": "<string>",
"title": "<string>",
"is_board_director": true,
"is_officer": true,
"is_ten_percent_owner": true,
"transaction_date": "<string>",
"filing_date": "<string>",
"transaction_code": "<string>",
"transaction_type": "<string>",
"transaction_shares": 123,
"transaction_price_per_share": 123,
"transaction_value": 123,
"shares_owned_after_transaction": 123,
"nature_of_ownership": "<string>",
"security_title": "<string>",
"is_10b5_1_plan": true,
"filing_url": "<string>"
}
],
"summary": {
"open_market_net_value_90d": 123,
"buy_count_90d": 123,
"sell_count_90d": 123,
"window_complete": true
},
"truncated": true
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}{
"finterm": {
"schema": "<string>",
"tool": "<string>",
"args": {},
"request_id": "<string>",
"cursor": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"upgrade_url": "<string>"
}
}Authorizations
A live account API key from FINTERM_API_KEY.
Body
Stock ticker symbol
Filing-date cutoff in YYYY-MM-DD format
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$Maximum rows to return
1 <= x <= 500Form 4 transaction-code filters
P, S, A, M, F, G, C, W Include derivative-security rows
Include ownership-statement rows