値動き上位を取得
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/market/top_movers \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/market/top_movers"
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/top_movers', 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/top_movers",
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/top_movers"
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/top_movers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/market/top_movers")
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{
"topMovers": {
"events": [
{
"timestamp": "<string>",
"alertReason": "<string>",
"alertType": 123,
"stock": {
"symbol": "<string>",
"code": "<string>",
"name": "<string>",
"lastDone": "<string>",
"change": "<string>"
},
"post": "<unknown>"
}
],
"nextParams": "<unknown>"
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}市場
値動き上位を取得
関連ニュース付きの高ボラティリティ銘柄を取得します。
GET
/
api
/
market-data
/
market
/
top_movers
値動き上位を取得
curl --request GET \
--url https://openapi.fcontext.com/api/market-data/market/top_movers \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.fcontext.com/api/market-data/market/top_movers"
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/top_movers', 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/top_movers",
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/top_movers"
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/top_movers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.fcontext.com/api/market-data/market/top_movers")
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{
"topMovers": {
"events": [
{
"timestamp": "<string>",
"alertReason": "<string>",
"alertType": 123,
"stock": {
"symbol": "<string>",
"code": "<string>",
"name": "<string>",
"lastDone": "<string>",
"change": "<string>"
},
"post": "<unknown>"
}
],
"nextParams": "<unknown>"
}
}{
"error": "<string>"
}{
"error": "Unauthorized: missing API key"
}承認
ApiKeyHeaderBearerAuth
アカウント設定で生成された Financial Context key。x-api-key: <key> として送信します。
クエリパラメータ
単一の市場コード。省略時はすべての市場を返します。
カンマ区切りの市場コード。market より優先されます。
並び替えモード:hot(デフォルト)、time、または change。0/1/2 も使用できます。
対象日 YYYY-MM-DD。省略時は最新データを返します。
返すレコード数。デフォルトは 20、最大 100。
必須範囲:
1 <= x <= 100レスポンス
値動き上位
Show child attributes
Show child attributes
⌘I