curl --request GET \
--url 'https://api.benzinga.com/api/v1/erx-gaps?token='import requests
url = "https://api.benzinga.com/api/v1/erx-gaps?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v1/erx-gaps?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/erx-gaps?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/erx-gaps?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/erx-gaps?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v1/erx-gaps?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": 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": "حدث خطأ غير متوقع أثناء معالجة طلبك"
}
]
}
فجوات ERX
curl --request GET \
--url 'https://api.benzinga.com/api/v1/erx-gaps?token='import requests
url = "https://api.benzinga.com/api/v1/erx-gaps?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v1/erx-gaps?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/erx-gaps?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/erx-gaps?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/erx-gaps?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v1/erx-gaps?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": 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": "حدث خطأ غير متوقع أثناء معالجة طلبك"
}
]
}
{}
{
"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": "حدث خطأ غير متوقع أثناء معالجة طلبك"
}
]
}
التفويضات
معلمات الاستعلام
إزاحة الصفحة. لأسباب تتعلق بالتحسين والأداء والجوانب التقنية، يتم تقييد إزاحات الصفحات بين 0 و100000. قيِّد نتائج الاستعلام باستخدام معاملات أخرى مثل التاريخ. القيمة الافتراضية هي 0
عدد النتائج المُعادة. الحد الأقصى 1000
تاريخ الاستعلام عن بيانات calendar. يُستخدم كاختصار لـ date_from و date_to إذا كانتا متطابقتين. الإعداد الافتراضي هو آخر تاريخ متاح
تاريخ البدء بتنسيق YYYY-MM-DD
تاريخ الانتهاء بالتنسيق YYYY-MM-DD
الطابع الزمني (Unix) لآخر مرة كانت السجلات محدَّثة فيها (بتوقيت UTC). سيؤدي ذلك إلى فرض ترتيب فرز تكون فيه القيم أكبر من أو تساوي الطابع الزمني المُشار إليه
الاستجابة
فجوات ERx
Show child attributes
Show child attributes
5
Show child attributes
Show child attributes
true
0.15
Show child attributes
Show child attributes
"Above EMA21"
"2024-01-09T10:30:00.000Z"
Show child attributes
Show child attributes
"Above 50%"
"2024-01-09T10:30:00.000Z"
155.75
"2024-01-09T00:00:00.000Z"
157.5
153.25
3.75
156
155.5
"64a1b2c3d4e5f6789012345"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
true
false
"2024-01-19T00:00:00.000Z"
10
true
154.5
true
150.25
156.25
Show child attributes
Show child attributes
true
"AAPL"
"2024-01-09T00:00:00.000Z"
1704758400
12500000
8500000
Show child attributes
Show child attributes
هل كانت هذه الصفحة مفيدة؟