Saltar al contenido principal
GET
/
api
/
v3
/
fundamentals
/
cash-flow
جلب التدفق النقدي v3
curl --request GET \
  --url https://api.benzinga.com/api/v3/fundamentals/cash-flow \
  --header 'Key: <api-key>'
import requests

url = "https://api.benzinga.com/api/v3/fundamentals/cash-flow"

headers = {"Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Key: '<api-key>'}};

fetch('https://api.benzinga.com/api/v3/fundamentals/cash-flow', 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/v3/fundamentals/cash-flow",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Key: <api-key>"
],
]);

$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/v3/fundamentals/cash-flow"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Key", "<api-key>")

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/v3/fundamentals/cash-flow")
.header("Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.benzinga.com/api/v3/fundamentals/cash-flow")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "ok": "true",
  "data": []
}
{
  "ok": false,
  "errors": [
    {
      "code": "auth_failed",
      "id": "unauthorized",
      "value": "Token de autenticación no válido o ausente"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "no_data_found",
      "id": "not_found",
      "value": "No se encontraron datos para los parámetros especificados"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "internal_server_error",
      "id": "server_error",
      "value": "Se produjo un error inesperado al procesar su solicitud"
    }
  ]
}
{
  "ok": "true",
  "data": []
}
{
  "ok": false,
  "errors": [
    {
      "code": "auth_failed",
      "id": "unauthorized",
      "value": "Token de autenticación no válido o ausente"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "no_data_found",
      "id": "not_found",
      "value": "No se encontraron datos para los parámetros especificados"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "internal_server_error",
      "id": "server_error",
      "value": "Se produjo un error inesperado al procesar su solicitud"
    }
  ]
}

Autorizaciones

Key
string
header
requerido

Parámetros de consulta

symbols
string
requerido

قائمة بالرموز مفصولة بفواصل (مثل: AAPL, MSFT)

from
string

تاريخ بدء الاستعلام بتنسيق YYYY-MM-DD. التنسيقات المدعومة: YYYY-MM-DD، ‏YTD (منذ بداية العام)، ‏1MONTH/1m/1M (منذ شهر واحد)

to
string

تاريخ الانتهاء للاستعلام بصيغة YYYY-MM-DD. يعيد البيانات حتى هذا التاريخ بما في ذلك.

date
string

مرشح نوع التقرير. القيم: TTM (آخر اثني عشر شهرًا)، A (كما أُبلغ عنه)، R (مُعاد عرضه)، P (أولي)

Respuesta

بيانات قائمة التدفقات النقدية