Trailing per-time-of-day flow baseline (avg + stddev)
curl --request GET \
--url https://flow-api.skylit.ai/v1/flow/{ticker}/baseline \
--header 'Authorization: Bearer <token>'import requests
url = "https://flow-api.skylit.ai/v1/flow/{ticker}/baseline"
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/{ticker}/baseline', 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/{ticker}/baseline",
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/{ticker}/baseline"
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/{ticker}/baseline")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow-api.skylit.ai/v1/flow/{ticker}/baseline")
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": {
"ticker": "<string>",
"bucket": "<string>",
"lookbackDays": 123,
"startTimeOfDay": "<string>",
"endTimeOfDay": "<string>",
"buckets": [
{
"timeOfDay": "14:30",
"daysCount": 1,
"avgTradeCount": 123,
"stddevTradeCount": 123,
"avgPremium": 123,
"stddevPremium": 123,
"avgFir": 123,
"stddevFir": 123
}
],
"queryTimeMs": 1
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "d7574836"
}
}
Flow
Trailing per-time-of-day flow baseline (avg + stddev)
Time-of-day baseline buckets for {ticker} — average and standard
deviation of trade count, premium, and FIR per intraday bucket over a
configurable lookback window. The reference distribution behind
/v1/flow/{ticker}/momentum z-scores.
GET
/
v1
/
flow
/
{ticker}
/
baseline
Trailing per-time-of-day flow baseline (avg + stddev)
curl --request GET \
--url https://flow-api.skylit.ai/v1/flow/{ticker}/baseline \
--header 'Authorization: Bearer <token>'import requests
url = "https://flow-api.skylit.ai/v1/flow/{ticker}/baseline"
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/{ticker}/baseline', 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/{ticker}/baseline",
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/{ticker}/baseline"
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/{ticker}/baseline")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow-api.skylit.ai/v1/flow/{ticker}/baseline")
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": {
"ticker": "<string>",
"bucket": "<string>",
"lookbackDays": 123,
"startTimeOfDay": "<string>",
"endTimeOfDay": "<string>",
"buckets": [
{
"timeOfDay": "14:30",
"daysCount": 1,
"avgTradeCount": 123,
"stddevTradeCount": 123,
"avgPremium": 123,
"stddevPremium": 123,
"avgFir": 123,
"stddevFir": 123
}
],
"queryTimeMs": 1
},
"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.
Path Parameters
Underlying ticker symbol (uppercase, e.g. SPY, AAPL).
Example:
"SPY"
Query Parameters
Bucket size for the time series. Coarser buckets (1d, 1w) are rejected on
intraday endpoints.
Available options:
1min, 5min, 15min, 30min, 1h Trailing window size in trading days.
Required range:
1 <= x <= 30Lower bound of intraday window (HH:MM ET).
Example:
"09:30"
Upper bound of intraday window (HH:MM ET).
Example:
"16:00"
Required range:
x >= 0Required range:
x >= 0Was this page helpful?

