Skip to main content
POST
/
v1
/
holdings
/
funds
/
trends
/
Fund Position Signals
curl --request POST \
  --url https://api.bigdata.com/v1/holdings/funds/trends/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "type": "stock",
  "market_cap": "large_cap",
  "sort_dir": "desc"
}
'
import requests

url = "https://api.bigdata.com/v1/holdings/funds/trends/"

payload = {
"type": "stock",
"market_cap": "large_cap",
"sort_dir": "desc"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: 'stock', market_cap: 'large_cap', sort_dir: 'desc'})
};

fetch('https://api.bigdata.com/v1/holdings/funds/trends/', 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.bigdata.com/v1/holdings/funds/trends/",
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([
'type' => 'stock',
'market_cap' => 'large_cap',
'sort_dir' => 'desc'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.bigdata.com/v1/holdings/funds/trends/"

payload := strings.NewReader("{\n \"type\": \"stock\",\n \"market_cap\": \"large_cap\",\n \"sort_dir\": \"desc\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-KEY", "<api-key>")
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.bigdata.com/v1/holdings/funds/trends/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"stock\",\n \"market_cap\": \"large_cap\",\n \"sort_dir\": \"desc\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bigdata.com/v1/holdings/funds/trends/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"stock\",\n \"market_cap\": \"large_cap\",\n \"sort_dir\": \"desc\"\n}"

response = http.request(request)
puts response.read_body
{
  "results": {
    "calls": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "current": 123,
        "previous": 123,
        "change": 123,
        "rp_entity_id": "D8442A",
        "change_percent": 25
      }
    ],
    "puts": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "current": 123,
        "previous": 123,
        "change": 123,
        "rp_entity_id": "D8442A",
        "change_percent": 25
      }
    ],
    "new_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "current": 123,
        "previous": 123,
        "change": 123,
        "rp_entity_id": "D8442A",
        "change_percent": 25
      }
    ],
    "closed_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "current": 123,
        "previous": 123,
        "change": 123,
        "rp_entity_id": "D8442A",
        "change_percent": 25
      }
    ],
    "increased_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "current": 123,
        "previous": 123,
        "change": 123,
        "rp_entity_id": "D8442A",
        "change_percent": 25
      }
    ],
    "reduced_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "current": 123,
        "previous": 123,
        "change": 123,
        "rp_entity_id": "D8442A",
        "change_percent": 25
      }
    ],
    "holding_in_top": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "current": 123,
        "previous": 123,
        "change": 123,
        "rp_entity_id": "D8442A",
        "change_percent": 25
      }
    ],
    "net_calls": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "net_calls": 123,
        "calls": 123,
        "puts": 123,
        "rp_entity_id": "D8442A"
      }
    ],
    "net_puts": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "net_puts": 123,
        "calls": 123,
        "puts": 123,
        "rp_entity_id": "D8442A"
      }
    ],
    "net_new_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "net_new_positions": 123,
        "new_positions": 123,
        "closed_positions": 123,
        "rp_entity_id": "D8442A"
      }
    ],
    "net_closed_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "net_closed_positions": 123,
        "new_positions": 123,
        "closed_positions": 123,
        "rp_entity_id": "D8442A"
      }
    ],
    "net_increased_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "net_increased_positions": 123,
        "increased_positions": 123,
        "reduced_positions": 123,
        "rp_entity_id": "D8442A"
      }
    ],
    "net_reduced_positions": [
      {
        "target_identifier_id": "<string>",
        "name": "<string>",
        "active": true,
        "net_reduced_positions": 123,
        "increased_positions": 123,
        "reduced_positions": 123,
        "rp_entity_id": "D8442A"
      }
    ]
  },
  "metadata": {
    "sort_dir": "<string>",
    "reporting_year": 2025,
    "reporting_quarter": 1,
    "filters_applied": {},
    "mapping": {
      "stock": {
        "4A6F00": "GOOGL",
        "D8442A": "AAPL"
      }
    }
  },
  "errors": [
    {
      "message": "<string>"
    }
  ]
}
{
"message": "Bad Request Error",
"statusCode": 400
}
{
"message": "Too many requests. Please try again later.",
"statusCode": 429
}
{
"message": "Internal Server Error",
"statusCode": 500
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Schema for the request to the fund trends public API.

type
enum<string> | null

The type of securities to retrieve. One of 'stock' or 'etf'. Returns all types if not specified.

Available options:
stock,
etf
Example:

"stock"

market_cap
enum<string> | null

The market cap of securities to retrieve. Returns all market caps if not specified.

Available options:
mega_cap,
large_cap,
mid_cap,
small_cap,
micro_cap
Example:

"large_cap"

sort_dir
string
default:desc

The order to sort the results by. One of 'asc' or 'desc'.

Example:

"desc"

Response

Successful Response

Main response for fund trends aggregated endpoint.

results
PublicFundTrendsResults · object
required

Container with all fund trends data.

metadata
PublicFundTrendsMetadata · object
required

Metadata for fund trends response.

errors
ErrorDetail · object[] | null