跳转到主要内容
GET
https://api.aisa.one/apis/v1/financial
/
earnings
获取收益快照
curl --request GET \
  --url https://api.aisa.one/apis/v1/financial/earnings \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.aisa.one/apis/v1/financial/earnings"

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/earnings', 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/earnings",
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/earnings"

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/earnings")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.aisa.one/apis/v1/financial/earnings")

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
{
  "earnings": {
    "ticker": "<string>",
    "report_period": "2023-12-25",
    "fiscal_period": "<string>",
    "currency": "<string>",
    "quarterly": {
      "fiscal_period": "<string>",
      "currency": "<string>",
      "revenue": 123,
      "estimated_revenue": 123,
      "earnings_per_share": 123,
      "estimated_earnings_per_share": 123,
      "net_income": 123,
      "gross_profit": 123,
      "operating_income": 123,
      "weighted_average_shares": 123,
      "weighted_average_shares_diluted": 123,
      "cash_and_equivalents": 123,
      "total_debt": 123,
      "total_assets": 123,
      "total_liabilities": 123,
      "shareholders_equity": 123,
      "net_cash_flow_from_operations": 123,
      "capital_expenditure": 123,
      "net_cash_flow_from_investing": 123,
      "net_cash_flow_from_financing": 123,
      "change_in_cash_and_equivalents": 123,
      "free_cash_flow": 123,
      "revenue_chg": 123,
      "net_income_chg": 123,
      "operating_income_chg": 123,
      "gross_profit_chg": 123,
      "net_cash_flow_from_operations_chg": 123,
      "net_cash_flow_from_investing_chg": 123,
      "net_cash_flow_from_financing_chg": 123,
      "free_cash_flow_chg": 123
    },
    "annual": {
      "fiscal_period": "<string>",
      "currency": "<string>",
      "revenue": 123,
      "estimated_revenue": 123,
      "earnings_per_share": 123,
      "estimated_earnings_per_share": 123,
      "net_income": 123,
      "gross_profit": 123,
      "operating_income": 123,
      "weighted_average_shares": 123,
      "weighted_average_shares_diluted": 123,
      "cash_and_equivalents": 123,
      "total_debt": 123,
      "total_assets": 123,
      "total_liabilities": 123,
      "shareholders_equity": 123,
      "net_cash_flow_from_operations": 123,
      "capital_expenditure": 123,
      "net_cash_flow_from_investing": 123,
      "net_cash_flow_from_financing": 123,
      "change_in_cash_and_equivalents": 123,
      "free_cash_flow": 123,
      "revenue_chg": 123,
      "net_income_chg": 123,
      "operating_income_chg": 123,
      "gross_profit_chg": 123,
      "net_cash_flow_from_operations_chg": 123,
      "net_cash_flow_from_investing_chg": 123,
      "net_cash_flow_from_financing_chg": 123,
      "free_cash_flow_chg": 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"
}
指定 ticker 的最新财报快照。返回最近报告的 EPS 和收入,并在有数据时返回一致预期、相对于预期的意外幅度以及环比变化。 最适合: 财报发布日仪表板、跟踪是否超出或低于一致预期,以及在 ticker 卡片上显示最新财报数据。

示例

curl -X GET "https://api.aisa.one/apis/v1/financial/earnings?ticker=NVDA" \
  -H "Authorization: Bearer $AISA_API_KEY"

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

ticker
string
必填

股票代码。

响应

收益响应

earnings
object