بيانات الشركات المالية v2.1
curl --request GET \
--url 'https://api.benzinga.com/api/v2.1/fundamentals/company?token='import requests
url = "https://api.benzinga.com/api/v2.1/fundamentals/company?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v2.1/fundamentals/company?token=', 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.benzinga.com/api/v2.1/fundamentals/company?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.benzinga.com/api/v2.1/fundamentals/company?token="
req, _ := http.NewRequest("GET", url, nil)
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.benzinga.com/api/v2.1/fundamentals/company?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2.1/fundamentals/company?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"result": [
{
"company": {
"primarySymbol": "AAPL",
"primaryExchange": "NAS",
"cik": "320193",
"isin": "CA03785Y1007",
"cusip": "03785Y100",
"standardName": "Apple",
"countryId": "USA",
"isReit": false,
"industryTemplateCode": "N",
"businessCountryId": "USA",
"isLimitedPartnership": false,
"yearofEstablishment": 1977,
"isLimitedLiabilityCompany": false
},
"symbol": "AAPL",
"idType": "SYMBOL",
"id": "AAPL"
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "認証トークンが無効であるか、指定されていません"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "指定されたパラメータに対するデータが見つかりませんでした"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "リクエストの処理中に予期しないエラーが発生しました"
}
]
}
企業ファンダメンタルズ
企業
GET
/
api
/
v2.1
/
fundamentals
/
company
بيانات الشركات المالية v2.1
curl --request GET \
--url 'https://api.benzinga.com/api/v2.1/fundamentals/company?token='import requests
url = "https://api.benzinga.com/api/v2.1/fundamentals/company?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v2.1/fundamentals/company?token=', 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.benzinga.com/api/v2.1/fundamentals/company?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.benzinga.com/api/v2.1/fundamentals/company?token="
req, _ := http.NewRequest("GET", url, nil)
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.benzinga.com/api/v2.1/fundamentals/company?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2.1/fundamentals/company?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"result": [
{
"company": {
"primarySymbol": "AAPL",
"primaryExchange": "NAS",
"cik": "320193",
"isin": "CA03785Y1007",
"cusip": "03785Y100",
"standardName": "Apple",
"countryId": "USA",
"isReit": false,
"industryTemplateCode": "N",
"businessCountryId": "USA",
"isLimitedPartnership": false,
"yearofEstablishment": 1977,
"isLimitedLiabilityCompany": false
},
"symbol": "AAPL",
"idType": "SYMBOL",
"id": "AAPL"
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "認証トークンが無効であるか、指定されていません"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "指定されたパラメータに対するデータが見つかりませんでした"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "リクエストの処理中に予期しないエラーが発生しました"
}
]
}
{
"result": [
{
"company": {
"primarySymbol": "AAPL",
"primaryExchange": "NAS",
"cik": "320193",
"isin": "CA03785Y1007",
"cusip": "03785Y100",
"standardName": "Apple",
"countryId": "USA",
"isReit": false,
"industryTemplateCode": "N",
"businessCountryId": "USA",
"isLimitedPartnership": false,
"yearofEstablishment": 1977,
"isLimitedLiabilityCompany": false
},
"symbol": "AAPL",
"idType": "SYMBOL",
"id": "AAPL"
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "認証トークンが無効であるか、指定されていません"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "指定されたパラメータに対するデータが見つかりませんでした"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "リクエストの処理中に予期しないエラーが発生しました"
}
]
}
承認
クエリパラメータ
قائمة من رموز تداول الأسهم مفصولة بفواصل (على سبيل المثال: AAPL,MSFT,GOOGL). إلزامي.
تصفية النتائج للتواريخ في هذا التاريخ أو بعده. التنسيق: YYYY-MM-DD (مثال: 2024-01-01)
عامل تصفية للفترة الزمنية لفترات التقارير المالية. القيم المدعومة: Q1، Q2، Q3، Q4 (أرباع سنوية)، FY (السنة المالية)، TTM (الاثنا عشر شهرًا الأخيرة)
نوع التقرير المالي. القيم المدعومة: TTM (آخر اثني عشر شهرًا)، A (كما أُبلِغ عنه في الأصل)، R (قيم مُعاد بيانها)، P (إعلانات أولية)
レスポンス
البيانات المالية للشركة
The response is of type object.
⌘I