Available with: All-In-One and Fundamentals Data Feed packages.
Consumption: Each request consumes 10 API calls.
The insider transactions API data is available for all US companies that report Form 4 to SEC. Insider trading involves trading in a public company’s stock by someone who has non-public, material information about that stock for any reason. In some cases, insider transactions could be very useful for making investment decisions.
Quick Start
The Insider Transactions Data API is a part of Fundamental API and accessible under Fundamental subscription. Each Insider Transactions API request consumes 10 API calls. To get insider transactions use the following URL:
https://eodhd.com/api/insider-transactions?api_token={YOUR_API_TOKEN}&fmt=json
curl --location "https://eodhd.com/api/insider-transactions?api_token={YOUR_API_TOKEN}&fmt=json"
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://eodhd.com/api/insider-transactions?api_token={YOUR_API_TOKEN}&fmt=json',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$data = curl_exec($curl);
curl_close($curl);
try {
$data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
var_dump($data);
} catch (Exception $e) {
echo 'Error. '.$e->getMessage();
}
import requests
url = f'https://eodhd.com/api/insider-transactions?api_token={YOUR_API_TOKEN}&fmt=json'
data = requests.get(url).json()
print(data)
library(httr)
library(jsonlite)
url <- 'https://eodhd.com/api/insider-transactions?api_token={YOUR_API_TOKEN}&fmt=json'
response <- GET(url)
if (http_type(response) == "application/json") {
content <- content(response, "text", encoding = "UTF-8")
cat(content)
} else {
cat("Error while receiving data\n")
}
- api_token: String. REQUIRED. Your api_token to access the API. You will get it after registration.
- limit: Number. OPTIONAL. The limit for entries per result, from 1 to 1000. Default value: 100.
- from and to: String. OPTIONAL. The format is ‘YYYY-MM-DD’. If you need data from Jan 1, 2021, to Feb 10, 2021, you should use from=2021-01-15 and to=2021-02-10. Default value: to – the current date, from – one year ago.
- code: String. OPTIONAL. To get the data only for Apple Inc (AAPL), use AAPL.US or AAPL ticker code. By default, all possible symbols will be displayed.
Here you can see the example of the past insider transactions for AAPL:
At the moment we support two transaction codes. The transaction code “P” – Purchase of securities on an exchange or from another person. And the transaction code “S” – Sale of securities on an exchange or to another person.
Read more about our Fundamental Data. For fundamentals, we support US and non-US exchanges. Major US and non-US symbols supported from 1980x, more than 30 years of the data. The same for large-cap companies on non-US markets. Symbols from major US exchanges (around 7000 symbols in total from NYSE, NASDAQ, and ARCA) 10 years both for yearly and quarterly. For minor companies, we have data for the last 7 years and the previous 24 quarters. And the data is continually growing.