종목 스크리너 실행
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/screener/search \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/screener/search"
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/screener/search', 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/screener/search",
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/screener/search"
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/screener/search")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/screener/search")
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{
"results": {
"data": "<string>"
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}스크리너
종목 스크리너 실행
전략 ID 또는 사용자 지정 조건으로 스크리너를 실행합니다.
GET
/
api
/
market-data
/
screener
/
search
종목 스크리너 실행
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/screener/search \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/screener/search"
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/screener/search', 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/screener/search",
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/screener/search"
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/screener/search")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/screener/search")
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{
"results": {
"data": "<string>"
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}인증
ApiKeyHeaderBearerAuth
계정 설정에서 생성한 Financial Context key입니다. x-api-key: <key>로 전송하세요.
쿼리 매개변수
시장 코드입니다. 사용자 지정 조건 스크리닝은 기본적으로 US를 사용하며, 전략 ID로 실행할 때는 생략합니다.
전략 ID입니다. 제공하면 스크리너가 해당 전략을 실행합니다.
필수 범위:
x >= 1strategy_id의 호환 별칭입니다.
필수 범위:
x >= 1사용자 지정 스크리닝 조건입니다. KEY:MIN:MAX 또는 JSON 배열을 지원합니다.
conditions의 호환 별칭입니다.
추가로 표시할 지표이며 쉼표로 구분하거나 JSON 배열로 전달합니다.
0부터 시작하는 페이지 번호입니다. 기본값은 0입니다.
필수 범위:
x >= 0페이지당 항목 수입니다. 기본값은 20, 최대값은 100입니다.
필수 범위:
1 <= x <= 100size의 호환 별칭입니다.
필수 범위:
1 <= x <= 100응답
스크리너 결과
- Option 1
- Option 2
Show child attributes
Show child attributes