이상 시장 활동 가져오기
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/market/unusual_items \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/market/unusual_items"
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/market/unusual_items', 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/market/unusual_items",
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/market/unusual_items"
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/market/unusual_items")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/market/unusual_items")
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{
"unusualItems": {
"allOff": true,
"changes": [
{
"symbol": "<string>",
"name": "<string>",
"alertName": "<string>",
"alertTime": 123,
"changeValues": [
"<string>"
],
"emotion": 123
}
]
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}시장
이상 시장 활동 가져오기
지정한 시장의 이상 가격 또는 거래량 활동을 가져오며, 선택적으로 심볼로 필터링할 수 있습니다.
GET
/
api
/
market-data
/
market
/
unusual_items
이상 시장 활동 가져오기
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/market/unusual_items \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/market/unusual_items"
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/market/unusual_items', 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/market/unusual_items",
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/market/unusual_items"
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/market/unusual_items")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/market/unusual_items")
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{
"unusualItems": {
"allOff": true,
"changes": [
{
"symbol": "<string>",
"name": "<string>",
"alertName": "<string>",
"alertTime": 123,
"changeValues": [
"<string>"
],
"emotion": 123
}
]
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}인증
ApiKeyHeaderBearerAuth
계정 설정에서 생성한 Financial Context key입니다. x-api-key: <key>로 전송하세요.
쿼리 매개변수
시장 코드입니다. US만 지원됩니다.
선택적 종목 심볼 필터입니다.
반환할 레코드 수입니다. 기본값은 50, 최대값은 100입니다.
필수 범위:
1 <= x <= 100응답
이상 활동
Show child attributes
Show child attributes
⌘I