高管团队

获取公司关键高管列表(CEO、CFO 等)。

>_ CLI
longbridge executive TSLA.US
longbridge executive AAPL.US

Parameters

SDK 方法参数。

NameTypeRequiredDescription
symbolstring是证券代码,例如 AAPL.US

Request Example

from longbridge.openapi import FundamentalContext, Config, OAuthBuilder

oauth = OAuthBuilder("your-client-id").build(lambda url: print("Visit:", url))
config = Config.from_oauth(oauth)
ctx = FundamentalContext(config)

resp = ctx.executives("AAPL.US")
print(resp)
import asyncio
from longbridge.openapi import AsyncFundamentalContext, Config, OAuthBuilder

async def main() -> None:
    oauth = await OAuthBuilder("your-client-id").build_async(lambda url: print("Visit:", url))
    config = Config.from_oauth(oauth)
    ctx = AsyncFundamentalContext.create(config)

    resp = await ctx.executives("AAPL.US")
    print(resp)

if __name__ == "__main__":
    asyncio.run(main())
const { Config, FundamentalContext, OAuth } = require('longbridge')

async function main() {
  const oauth = await OAuth.build('your-client-id', (_, url) => {
    console.log('Open this URL to authorize: ' + url)
  })
  const config = Config.fromOAuth(oauth)
  const ctx = FundamentalContext.new(config)
  const resp = await ctx.executives('AAPL.US')
  console.log(resp)
}
main().catch(console.error)
import com.longbridge.*;
import com.longbridge.fundamental.*;

class Main {
    public static void main(String[] args) throws Exception {
        try (OAuth oauth = new OAuthBuilder("your-client-id").build(url -> System.out.println("Open to authorize: " + url)).get();
             Config config = Config.fromOAuth(oauth);
             FundamentalContext ctx = FundamentalContext.create(config)) {
            var resp = ctx.getExecutives("AAPL.US").get();
            System.out.println(resp);
        }
    }
}
use std::sync::Arc;
use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("Open: {url}")).await?;
    let config = Arc::new(Config::from_oauth(oauth));
    let ctx = FundamentalContext::new(config);
    let resp = ctx.executives("AAPL.US").await?;
    println!("{:?}", resp);
    Ok(())
}
#include &lt;iostream&gt;
#include <longbridge.hpp>

using namespace longbridge;
using namespace longbridge::fundamental;

int main() {
    OAuthBuilder("your-client-id").build(
        [](const std::string& url) { std::cout << "Open: " << url << std::endl; },
        [](auto res) {
            if (!res) return;
            Config config = Config::from_oauth(*res);
            FundamentalContext ctx = FundamentalContext::create(config);
            ctx.executives("AAPL.US", [](auto resp) {
                if (resp) std::cout << "OK" << std::endl;
            });
        });
    std::cin.get();
}
package main

import (
	"context"
	"fmt"
	"log"

	"github.com/longbridge/openapi-go/config"
	"github.com/longbridge/openapi-go/oauth"
	"github.com/longbridge/openapi-go/fundamental"
)

func main() {
	o := oauth.New("your-client-id").
		OnOpenURL(func(url string) { fmt.Println("Open this URL to authorize:", url) })
	if err := o.Build(context.Background()); err != nil {
		log.Fatal(err)
	}
	conf, err := config.New(config.WithOAuthClient(o))
	if err != nil {
		log.Fatal(err)
	}
	c, err := fundamental.NewFromCfg(conf)
	if err != nil {
		log.Fatal(err)
	}
	defer c.Close()
	resp, err := c.Executives(context.Background(), "AAPL.US")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", resp)
}

Response

Response Example

{
  "code": 0,
  "message": "success",
  "data": {
    "professional_list": [
      {
        "forward_url": "https://longbridge.com/wiki/stocks/ST.US.AAPL#company-manager",
        "professionals": [
          {
            "biography": "Tim Cook is the CEO of Apple Inc.",
            "id": "12345",
            "name": "Timothy D. Cook",
            "name_en": "Timothy D. Cook",
            "name_zhcn": "蒂姆·库克",
            "photo": "https://cdn.example.com/timcook.jpg",
            "title": "Chief Executive Officer",
            "wiki_url": "https://en.wikipedia.org/wiki/Tim_Cook"
          }
        ],
        "symbol": "AAPL.US",
        "total": 9
      }
    ]
  }
}

Response Status

StatusDescriptionSchema
200成功ExecutiveResponse
400请求错误None

Schemas

ExecutiveResponse

NameTypeRequiredDescription
professional_listobject[]是高管分组列表,见 ExecutiveGroup

ExecutiveGroup

NameTypeRequiredDescription
symbolstring是证券代码
forward_urlstring否公司高管页面链接
totalinteger否高管总数
professionalsobject[]是高管列表,见 Executive

Executive

NameTypeRequiredDescription
idstring否高管 ID
namestring是显示名称
name_enstring否英文名称
name_zhcnstring否中文名称
titlestring否职位
biographystring否简历
photostring否照片链接
wiki_urlstring否维基百科链接