재무 캘린더 가져오기
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/calendar/finance \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/calendar/finance"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://openapi.fcontext.com/api/market-data/calendar/finance', 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://openapi.fcontext.com/api/market-data/calendar/finance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-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://openapi.fcontext.com/api/market-data/calendar/finance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-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://openapi.fcontext.com/api/market-data/calendar/finance")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/calendar/finance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"calendar": {
"date": "<string>",
"list": [
{
"date": "<string>",
"count": 123,
"infos": [
{
"symbol": "<string>",
"market": "<string>",
"content": "<string>",
"counterName": "<string>",
"eventType": "<string>",
"datetime": "<string>",
"star": 123
}
]
}
],
"nextDate": "<string>"
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}캘린더
재무 캘린더 가져오기
실적 발표, 배당, 분할, IPO, 거시 이벤트 등 재무 캘린더 이벤트를 가져옵니다.
GET
/
api
/
market-data
/
calendar
/
finance
재무 캘린더 가져오기
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/calendar/finance \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/calendar/finance"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://openapi.fcontext.com/api/market-data/calendar/finance', 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://openapi.fcontext.com/api/market-data/calendar/finance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-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://openapi.fcontext.com/api/market-data/calendar/finance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-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://openapi.fcontext.com/api/market-data/calendar/finance")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/calendar/finance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"calendar": {
"date": "<string>",
"list": [
{
"date": "<string>",
"count": 123,
"infos": [
{
"symbol": "<string>",
"market": "<string>",
"content": "<string>",
"counterName": "<string>",
"eventType": "<string>",
"datetime": "<string>",
"star": 123
}
]
}
],
"nextDate": "<string>"
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}인증
ApiKeyHeaderBearerAuth
계정 설정에서 생성한 Financial Context key입니다. x-api-key: <key>로 전송하세요.
쿼리 매개변수
이벤트 유형: report, dividend, split, ipo 또는 macrodata; 숫자 값 0-7도 허용됩니다.
시작일 YYYY-MM-DD. 생략하면 종료일 3일 전이 기본값입니다.
종료일 YYYY-MM-DD. 생략하면 현재 날짜가 기본값입니다.
선택적 시장 코드: US만 지원됩니다.
응답
재무 캘린더
Show child attributes
Show child attributes
⌘I