技术指标查询
全球行情技术指标查询:MACD/RSI/BOLL/EMA/KDJ/CCI/ATR 等,按品种+周期计算
Documentation
指标数据查询
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
全球行情技术指标查询:MACD/RSI/BOLL/EMA/KDJ/CCI/ATR 等,按品种+周期计算
指标数据查询
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
curl --request GET \
--url 'https://openapi.toolkk.com/v1/aliyunmarket-cmapi029045-query-indicator' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "symbol": "合约代码(参考连接 http://demo.konpn.com/symbols.shtml )。指标数据只输出最新的10个。计算数据可能因参数原因导致有误,请反...",\n "period": "周期取 15S(可能有),1M,3M,5M,10M,15M,30M,1H,2H,4H,D(W周,M月可能有)",\n "indkey": "指标Key,支持指标这里查询 map.konpn.com:10002/localrm/query/indicatorlist",\n "outputcount": "输出数量,最多500",\n "args": "指标参数,json的urlencode传入。对应指标参数格式这里查询 map.konpn.com:10002/localrm/query/indicatorge..."\n}'import os
import requests
url = "https://openapi.toolkk.com/v1/aliyunmarket-cmapi029045-query-indicator"
payload = {
"symbol": "合约代码(参考连接 http://demo.konpn.com/symbols.shtml )。指标数据只输出最新的10个。计算数据可能因参数原因导致有误,请反...",
"period": "周期取 15S(可能有),1M,3M,5M,10M,15M,30M,1H,2H,4H,D(W周,M月可能有)",
"indkey": "指标Key,支持指标这里查询 map.konpn.com:10002/localrm/query/indicatorlist",
"outputcount": "输出数量,最多500",
"args": "指标参数,json的urlencode传入。对应指标参数格式这里查询 map.konpn.com:10002/localrm/query/indicatorge..."
}
headers = {
"Content-Type": "application/json",
"X-API-Key": os.getenv("TOOLKK_API_KEY", "YOUR_API_KEY"),
}
response = requests.get(url, headers=headers, params=payload, timeout=30)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/aliyunmarket-cmapi029045-query-indicator"
payload := []byte("{\n \"symbol\": \"合约代码(参考连接 http://demo.konpn.com/symbols.shtml )。指标数据只输出最新的10个。计算数据可能因参数原因导致有误,请反...\",\n \"period\": \"周期取 15S(可能有),1M,3M,5M,10M,15M,30M,1H,2H,4H,D(W周,M月可能有)\",\n \"indkey\": \"指标Key,支持指标这里查询 map.konpn.com:10002/localrm/query/indicatorlist\",\n \"outputcount\": \"输出数量,最多500\",\n \"args\": \"指标参数,json的urlencode传入。对应指标参数格式这里查询 map.konpn.com:10002/localrm/query/indicatorge...\"\n}")
req, err := http.NewRequest("GET", endpoint, bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ToolkkExample {
public static void main(String[] args) throws Exception {
String payload = "{\n \"symbol\": \"合约代码(参考连接 http://demo.konpn.com/symbols.shtml )。指标数据只输出最新的10个。计算数据可能因参数原因导致有误,请反...\",\n \"period\": \"周期取 15S(可能有),1M,3M,5M,10M,15M,30M,1H,2H,4H,D(W周,M月可能有)\",\n \"indkey\": \"指标Key,支持指标这里查询 map.konpn.com:10002/localrm/query/indicatorlist\",\n \"outputcount\": \"输出数量,最多500\",\n \"args\": \"指标参数,json的urlencode传入。对应指标参数格式这里查询 map.konpn.com:10002/localrm/query/indicatorge...\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/aliyunmarket-cmapi029045-query-indicator"))
.method("GET", HttpRequest.BodyPublishers.ofString(payload))
.header("Content-Type", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}{
"symbol": "合约代码(参考连接 http://demo.konpn.com/symbols.shtml )。指标数据只输出最新的10个。计算数据可能因参数原因导致有误,请反...",
"period": "周期取 15S(可能有),1M,3M,5M,10M,15M,30M,1H,2H,4H,D(W周,M月可能有)",
"indkey": "指标Key,支持指标这里查询 map.konpn.com:10002/localrm/query/indicatorlist",
"outputcount": "输出数量,最多500",
"args": "指标参数,json的urlencode传入。对应指标参数格式这里查询 map.konpn.com:10002/localrm/query/indicatorge..."
}{
"Tick": 1624636800,
"Histogram": -405.5369,
"Macd": -1953.8285,
"Signal": -1751.06
}The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.symbol | object | {...} |
| properties.symbol.type | string | string |
| properties.symbol.description | string | 合约代码(参考连接 http://demo.konpn.com/symbols.shtml )。指标数据只输出最新的10个。计算数据可能因参数原因导致有误,请反馈 |
| properties.period | object | {...} |
| properties.period.type |
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.Tick | object | {...} |
| properties.Tick.type | string | number |
| properties.Tick.example | number | 1624636800 |
| properties.Histogram | object | {...} |
| properties.Histogram.type | string |
<?php
$endpoint = 'https://openapi.toolkk.com/v1/aliyunmarket-cmapi029045-query-indicator';
$payload = "{\n \"symbol\": \"合约代码(参考连接 http://demo.konpn.com/symbols.shtml )。指标数据只输出最新的10个。计算数据可能因参数原因导致有误,请反...\",\n \"period\": \"周期取 15S(可能有),1M,3M,5M,10M,15M,30M,1H,2H,4H,D(W周,M月可能有)\",\n \"indkey\": \"指标Key,支持指标这里查询 map.konpn.com:10002/localrm/query/indicatorlist\",\n \"outputcount\": \"输出数量,最多500\",\n \"args\": \"指标参数,json的urlencode传入。对应指标参数格式这里查询 map.konpn.com:10002/localrm/query/indicatorge...\"\n}";
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY',
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
curl_close($ch);
echo $response;| string |
| string |
| properties.period.description | string | 周期取 15S(可能有),1M,3M,5M,10M,15M,30M,1H,2H,4H,D(W周,M月可能有) |
| properties.indkey | object | {...} |
| properties.indkey.type | string | string |
| properties.indkey.description | string | 指标Key,支持指标这里查询 map.konpn.com:10002/localrm/query/indicatorlist |
| properties.outputcount | object | {...} |
| properties.outputcount.type | string | int |
| properties.outputcount.description | string | 输出数量,最多500 |
| properties.args | object | {...} |
| properties.args.type | string | string |
| properties.args.description | string | 指标参数,json的urlencode传入。对应指标参数格式这里查询 map.konpn.com:10002/localrm/query/indicatorget?indkey=macd/*指标key*/。输出的 Args 为该指标接受参数 |
| required | array | "symbol" |
| required[] | string | symbol |
| number |
| properties.Histogram.example | number | -405.5369 |
| properties.Macd | object | {...} |
| properties.Macd.type | string | number |
| properties.Macd.example | number | -1953.8285 |
| properties.Signal | object | {...} |
| properties.Signal.type | string | number |
| properties.Signal.example | number | -1751.06 |