Follow Company
curl --request POST \
--url https://api.reportify.cn/v1/tools/user/follow-company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "<string>"
}
'import requests
url = "https://api.reportify.cn/v1/tools/user/follow-company"
payload = { "symbol": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: '<string>'})
};
fetch('https://api.reportify.cn/v1/tools/user/follow-company', 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://api.reportify.cn/v1/tools/user/follow-company",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reportify.cn/v1/tools/user/follow-company"
payload := strings.NewReader("{\n \"symbol\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reportify.cn/v1/tools/user/follow-company")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reportify.cn/v1/tools/user/follow-company")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"symbol": "<string>",
"ticker": "<string>",
"market": "<string>",
"name": "<string>",
"chinese_name": "<string>",
"english_name": "<string>",
"logo": "<string>",
"followed_at": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}账号关注
Follow Company
Follow a company by stock symbol
POST
/
v1
/
tools
/
user
/
follow-company
Follow Company
curl --request POST \
--url https://api.reportify.cn/v1/tools/user/follow-company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "<string>"
}
'import requests
url = "https://api.reportify.cn/v1/tools/user/follow-company"
payload = { "symbol": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: '<string>'})
};
fetch('https://api.reportify.cn/v1/tools/user/follow-company', 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://api.reportify.cn/v1/tools/user/follow-company",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reportify.cn/v1/tools/user/follow-company"
payload := strings.NewReader("{\n \"symbol\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reportify.cn/v1/tools/user/follow-company")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reportify.cn/v1/tools/user/follow-company")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"symbol": "<string>",
"ticker": "<string>",
"market": "<string>",
"name": "<string>",
"chinese_name": "<string>",
"english_name": "<string>",
"logo": "<string>",
"followed_at": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}关注公司
URL:/v1/tools/user/follow-company方法:
POST描述: 关注一家公司,将其添加到用户的关注列表中。
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| symbol | string | 是 | 股票代码,格式为 市场:代码(如 US:AAPL、HK:00700、SH:600519、SZ:000001) |
响应参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| symbol | string | 股票代码(如 US:AAPL) |
| ticker | string | 股票简码(如 AAPL) |
| market | string | 市场(如 US, HK, CN) |
| name | string | 公司名称 |
| chinese_name | string | 中文名称 |
| english_name | string | 英文名称 |
| logo | string | 公司 Logo URL |
| followed_at | integer | 关注时间戳(毫秒) |
请求示例
cURLcurl -X POST "https://api.reportify.cn/v1/tools/user/follow-company" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol": "US:AAPL"}'
import requests
url = "https://api.reportify.cn/v1/tools/user/follow-company"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(url, headers=headers, json={"symbol": "US:AAPL"})
data = response.json()
print(f"已关注: {data['name']} ({data['symbol']})")
const response = await fetch(
'https://api.reportify.cn/v1/tools/user/follow-company',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({ symbol: 'US:AAPL' })
}
);
const data = await response.json();
console.log(`已关注: ${data.name} (${data.symbol})`);
响应示例
{
"symbol": "US:AAPL",
"ticker": "AAPL",
"market": "US",
"name": "Apple Inc.",
"chinese_name": "苹果公司",
"english_name": "Apple Inc.",
"logo": "https://example.com/logos/aapl.png",
"followed_at": 1704067200000
}
错误响应
| 状态码 | 描述 |
|---|---|
| 400 | symbol 参数缺失或格式错误 |
| 422 | 请求参数验证失败 |
使用场景
-
添加公司到关注列表
- 用户在浏览公司信息时一键关注
- 构建个性化投资组合
-
与获取关注列表和时间线配合使用
- 关注公司后,通过
followed_companies获取完整列表 - 通过时间线接口获取关注公司的最新动态
- 关注公司后,通过
Authorizations
Enter your Bearer token
Body
application/json
Request model for following/unfollowing a company
Stock symbol, e.g. 00700 / AAPL
Response
Successful Response
Followed company information
⌘I
