获取现金流量表
curl --request GET \
--url https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements', 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.aisa.one/apis/v1/financial/financials/cash-flow-statements",
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://api.aisa.one/apis/v1/financial/financials/cash-flow-statements"
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://api.aisa.one/apis/v1/financial/financials/cash-flow-statements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements")
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{
"cash_flow_statements": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"currency": "<string>",
"net_income": 123,
"depreciation_and_amortization": 123,
"share_based_compensation": 123,
"net_cash_flow_from_operations": 123,
"capital_expenditure": 123,
"business_acquisitions_and_disposals": 123,
"investment_acquisitions_and_disposals": 123,
"net_cash_flow_from_investing": 123,
"issuance_or_repayment_of_debt_securities": 123,
"issuance_or_purchase_of_equity_shares": 123,
"dividends_and_other_cash_distributions": 123,
"net_cash_flow_from_financing": 123,
"change_in_cash_and_equivalents": 123,
"effect_of_exchange_rate_changes": 123,
"ending_cash_balance": 123,
"free_cash_flow": 123
}
]
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}{
"error": "Not Found",
"message": "Ticker XXXX not found"
}财务报表
现金流量表
获取现金流量表
GET
https://api.aisa.one/apis/v1/financial
/
financials
/
cash-flow-statements
获取现金流量表
curl --request GET \
--url https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements', 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.aisa.one/apis/v1/financial/financials/cash-flow-statements",
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://api.aisa.one/apis/v1/financial/financials/cash-flow-statements"
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://api.aisa.one/apis/v1/financial/financials/cash-flow-statements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/financial/financials/cash-flow-statements")
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{
"cash_flow_statements": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"currency": "<string>",
"net_income": 123,
"depreciation_and_amortization": 123,
"share_based_compensation": 123,
"net_cash_flow_from_operations": 123,
"capital_expenditure": 123,
"business_acquisitions_and_disposals": 123,
"investment_acquisitions_and_disposals": 123,
"net_cash_flow_from_investing": 123,
"issuance_or_repayment_of_debt_securities": 123,
"issuance_or_purchase_of_equity_shares": 123,
"dividends_and_other_cash_distributions": 123,
"net_cash_flow_from_financing": 123,
"change_in_cash_and_equivalents": 123,
"effect_of_exchange_rate_changes": 123,
"ending_cash_balance": 123,
"free_cash_flow": 123
}
]
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}{
"error": "Not Found",
"message": "Ticker XXXX not found"
}授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
股票代码。未提供 cik 时必填。
现金流量表的时间周期。
可用选项:
annual, quarterly, ttm 返回的现金流量表最大数量。
公司的中央索引键(CIK)。
按 YYYY-MM-DD 格式的确切报告期日期筛选。
筛选报告期大于或等于 YYYY-MM-DD 格式指定日期的数据。
筛选报告期小于或等于 YYYY-MM-DD 格式指定日期的数据。
按报告周期筛选,报告周期须晚于 YYYY-MM-DD 格式的日期。
筛选报告周期早于指定日期的报告,日期格式为 YYYY-MM-DD。
响应
现金流量表响应
Show child attributes
Show child attributes
⌘I