搜索财务报表
curl --request POST \
--url https://api.aisa.one/apis/v1/financial/financials/search/screener \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": [
{
"field": "<string>",
"value": 123
}
],
"period": "ttm",
"limit": 100,
"order_by": "ticker",
"historical": false
}
'import requests
url = "https://api.aisa.one/apis/v1/financial/financials/search/screener"
payload = {
"filters": [
{
"field": "<string>",
"value": 123
}
],
"period": "ttm",
"limit": 100,
"order_by": "ticker",
"historical": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: [{field: '<string>', value: 123}],
period: 'ttm',
limit: 100,
order_by: 'ticker',
historical: false
})
};
fetch('https://api.aisa.one/apis/v1/financial/financials/search/screener', 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/search/screener",
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([
'filters' => [
[
'field' => '<string>',
'value' => 123
]
],
'period' => 'ttm',
'limit' => 100,
'order_by' => 'ticker',
'historical' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aisa.one/apis/v1/financial/financials/search/screener"
payload := strings.NewReader("{\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": 123\n }\n ],\n \"period\": \"ttm\",\n \"limit\": 100,\n \"order_by\": \"ticker\",\n \"historical\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/financial/financials/search/screener")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": 123\n }\n ],\n \"period\": \"ttm\",\n \"limit\": 100,\n \"order_by\": \"ticker\",\n \"historical\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/financial/financials/search/screener")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": 123\n }\n ],\n \"period\": \"ttm\",\n \"limit\": 100,\n \"order_by\": \"ticker\",\n \"historical\": false\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"currency": "<string>"
}
]
}{
"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"
}财务报表
股票筛选器
股票筛选器
POST
https://api.aisa.one/apis/v1/financial
/
financials
/
search
/
screener
搜索财务报表
curl --request POST \
--url https://api.aisa.one/apis/v1/financial/financials/search/screener \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": [
{
"field": "<string>",
"value": 123
}
],
"period": "ttm",
"limit": 100,
"order_by": "ticker",
"historical": false
}
'import requests
url = "https://api.aisa.one/apis/v1/financial/financials/search/screener"
payload = {
"filters": [
{
"field": "<string>",
"value": 123
}
],
"period": "ttm",
"limit": 100,
"order_by": "ticker",
"historical": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: [{field: '<string>', value: 123}],
period: 'ttm',
limit: 100,
order_by: 'ticker',
historical: false
})
};
fetch('https://api.aisa.one/apis/v1/financial/financials/search/screener', 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/search/screener",
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([
'filters' => [
[
'field' => '<string>',
'value' => 123
]
],
'period' => 'ttm',
'limit' => 100,
'order_by' => 'ticker',
'historical' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aisa.one/apis/v1/financial/financials/search/screener"
payload := strings.NewReader("{\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": 123\n }\n ],\n \"period\": \"ttm\",\n \"limit\": 100,\n \"order_by\": \"ticker\",\n \"historical\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/financial/financials/search/screener")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": 123\n }\n ],\n \"period\": \"ttm\",\n \"limit\": 100,\n \"order_by\": \"ticker\",\n \"historical\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/financial/financials/search/screener")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": 123\n }\n ],\n \"period\": \"ttm\",\n \"limit\": 100,\n \"order_by\": \"ticker\",\n \"historical\": false\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"currency": "<string>"
}
]
}{
"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.
请求体
application/json
应用于搜索的筛选器对象数组。
Minimum array length:
1Show child attributes
Show child attributes
财务数据的时间段。
可用选项:
annual, quarterly, ttm 要返回的最大结果数量。
必填范围:
1 <= x <= 100用于对结果排序的字段。使用 -field 按降序排列。
可用选项:
ticker, -ticker, report_period, -report_period 财务数据的货币。
可用选项:
USD, EUR, GBP, JPY, CHF, AUD, CAD, SEK 是否返回历史财务数据。
响应
搜索成功响应
符合请求的筛选条件的股票。
Show child attributes
Show child attributes
⌘I