جلب بيانات اتجاه رمز التداول
curl --request GET \
--url 'https://api.benzinga.com/api/v1/trending-tickers?token='import requests
url = "https://api.benzinga.com/api/v1/trending-tickers?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v1/trending-tickers?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/v1/trending-tickers?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/v1/trending-tickers?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/v1/trending-tickers?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v1/trending-tickers?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{
"ok": true,
"data": [
{
"ticker": "AAPL",
"exchange": "NASDAQ",
"metrics": [
{
"time_bucket": "2025-12-30T11:00:00Z",
"count": 36,
"count_mavg": 738,
"scaled_count": 0.008905160240828991,
"scaled_count_mavg": 0.18255577981472015,
"market_count_average": 0.8544670939445496
}
]
}
]
}
티커 동향
티커 트렌드 데이터
GET
/
api
/
v1
/
trending-tickers
جلب بيانات اتجاه رمز التداول
curl --request GET \
--url 'https://api.benzinga.com/api/v1/trending-tickers?token='import requests
url = "https://api.benzinga.com/api/v1/trending-tickers?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v1/trending-tickers?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/v1/trending-tickers?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/v1/trending-tickers?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/v1/trending-tickers?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v1/trending-tickers?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{
"ok": true,
"data": [
{
"ticker": "AAPL",
"exchange": "NASDAQ",
"metrics": [
{
"time_bucket": "2025-12-30T11:00:00Z",
"count": 36,
"count_mavg": 738,
"scaled_count": 0.008905160240828991,
"scaled_count_mavg": 0.18255577981472015,
"market_count_average": 0.8544670939445496
}
]
}
]
}
{
"ok": true,
"data": [
{
"ticker": "AAPL",
"exchange": "NASDAQ",
"metrics": [
{
"time_bucket": "2025-12-30T11:00:00Z",
"count": 36,
"count_mavg": 738,
"scaled_count": 0.008905160240828991,
"scaled_count_mavg": 0.18255577981472015,
"market_count_average": 0.8544670939445496
}
]
}
]
}
{
"ok": false,
"errors": [
{
"id": "hbiGJjhsSpnfhM8aBePyTB",
"code": "auth_failed",
"value": "authentication failed"
}
]
}