التمويل والتحويل
حالة السوق API
تحقق إن كانت البورصات الكبرى مفتوحة الآن مع مواعيد الفتح والإغلاق.
طلب الرؤوس
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | market-status.p.rapidapi.com |
نقاط النهاية
GET
/v1/finance/market-hours Get an exchange's trading hours, holidays, and half-days for a year
حدود
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
exchange | string | required | — | <= 32 chars; matches \S |
year | integer | optional | — | — |
أمثلة على الكود
curl --request GET \
--url 'https://market-status.p.rapidapi.com/v1/finance/market-hours?exchange=example' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: market-status.p.rapidapi.com' const url = "https://market-status.p.rapidapi.com/v1/finance/market-hours?exchange=example";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "market-status.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://market-status.p.rapidapi.com/v1/finance/market-hours"
querystring = {"exchange": "example"}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "market-status.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) GET
/v1/finance/market-status Check whether a stock exchange is open right now
حدود
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
exchange | string | required | — | <= 32 chars; matches \S |
أمثلة على الكود
curl --request GET \
--url 'https://market-status.p.rapidapi.com/v1/finance/market-status?exchange=example' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: market-status.p.rapidapi.com' const url = "https://market-status.p.rapidapi.com/v1/finance/market-status?exchange=example";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "market-status.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://market-status.p.rapidapi.com/v1/finance/market-status"
querystring = {"exchange": "example"}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "market-status.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) مثال تفاعلي
$ GET /v1/finance/market-status?exchange=NYSE
{"exchange":"New York Stock Exchange","mic":"XNYS","timezone":"America/New_York","local_time":"2026-07-06T08:45:00-04:00","open_now":false,"status":"closed","reason":"outside_hours","holiday_name":null,"next_open":"2026-07-06T09:30:00-04:00","next_close":"2026-07-06T16:00:00-04:00"} الاشتراك والترخيص
يمكنك الوصول إلى واجهة برمجة التطبيقات هذه بمستويات جاهزة للاستخدام التجاري على RapidAPI. خطط مرنة مصممة للمشاريع الجانبية والشركات الناشئة وهياكل الإنتاج كبيرة الحجم.
دعم المطورين
هل تحتاج إلى مساعدة في التكامل أو لديك طلب نقطة نهاية مخصص؟ فريقنا الهندسي موجود هنا للمساعدة في المصادقة ومخططات الحمولة وزيادة حدود معدل التردد العالي.
أداء النظام
مراقبة على مدار 24 ساعة طوال أيام الأسبوع مع وقت تشغيل بنسبة 99.9% لاتفاقية مستوى الخدمة. تم تصميمه فوق خدمات صغيرة سحابية أصلية مع تخزين مؤقت على الحافة موزع عالميًا لضمان أوقات استجابة منخفضة للغاية.
جميع الأنظمة التشغيلية