銘柄スクリーナーを実行
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 >= 01 ページあたりの項目数。デフォルトは 20、最大 100。
必須範囲:
1 <= x <= 100size の互換エイリアス。
必須範囲:
1 <= x <= 100レスポンス
スクリーナー結果
- Option 1
- Option 2
Show child attributes
Show child attributes
⌘I