Market-wide breadth, advance/decline, and sector rotation
curl --request GET \
--url https://flow-api.skylit.ai/v1/flow/market-breadth \
--header 'Authorization: Bearer <token>'import requests
url = "https://flow-api.skylit.ai/v1/flow/market-breadth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://flow-api.skylit.ai/v1/flow/market-breadth', 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://flow-api.skylit.ai/v1/flow/market-breadth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://flow-api.skylit.ai/v1/flow/market-breadth"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://flow-api.skylit.ai/v1/flow/market-breadth")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow-api.skylit.ai/v1/flow/market-breadth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"date": "2023-12-25",
"majorIndices": [
{
"ticker": "<string>",
"bullishPremium": 123,
"bearishPremium": 123,
"netPremium": 123,
"fir": 123
}
],
"aggregateSentiment": {
"combinedBullish": 123,
"combinedBearish": 123,
"combinedNetPremium": 123,
"combinedFir": 123
},
"advanceDecline": {
"advancing": 1,
"declining": 1,
"unchanged": 1,
"total": 1,
"ratio": 123,
"breadthPct": 123,
"marketAvgFir": 123
},
"sectorRotation": [
{
"sector": "<string>",
"etf": "<string>",
"fir": 123,
"netPremium": 123
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "d7574836"
}
}Market
Market-wide breadth, advance/decline, and sector rotation
Combines SPY/QQQ/IWM aggregate sentiment with an advance/decline ratio (over directional FIR) and per-sector rotation signals. Ideal as a single “is the market risk-on or risk-off right now” probe.
GET
/
v1
/
flow
/
market-breadth
Market-wide breadth, advance/decline, and sector rotation
curl --request GET \
--url https://flow-api.skylit.ai/v1/flow/market-breadth \
--header 'Authorization: Bearer <token>'import requests
url = "https://flow-api.skylit.ai/v1/flow/market-breadth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://flow-api.skylit.ai/v1/flow/market-breadth', 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://flow-api.skylit.ai/v1/flow/market-breadth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://flow-api.skylit.ai/v1/flow/market-breadth"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://flow-api.skylit.ai/v1/flow/market-breadth")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow-api.skylit.ai/v1/flow/market-breadth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"date": "2023-12-25",
"majorIndices": [
{
"ticker": "<string>",
"bullishPremium": 123,
"bearishPremium": 123,
"netPremium": 123,
"fir": 123
}
],
"aggregateSentiment": {
"combinedBullish": 123,
"combinedBearish": 123,
"combinedNetPremium": 123,
"combinedFir": 123
},
"advanceDecline": {
"advancing": 1,
"declining": 1,
"unchanged": 1,
"total": 1,
"ratio": 123,
"breadthPct": 123,
"marketAvgFir": 123
},
"sectorRotation": [
{
"sector": "<string>",
"etf": "<string>",
"fir": 123,
"netPremium": 123
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "d7574836"
}
}Authorizations
Skylit API key in the Authorization header
(Authorization: Bearer fs_live_<key>). X-API-Key is also accepted.
Query Parameters
Trading date (YYYY-MM-DD). Defaults to today.
Absolute FIR threshold (in %) used to classify a ticker as
advancing or declining. Tickers with |fir| < threshold count
as unchanged.
Was this page helpful?
⌘I

