Company Profile
Get a company’s profile information including founding year, employee count, headquarters, and description.
SDK Links
Python |
Rust |
Go |
Node.js |
Java |
C++ |
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | YES | Security symbol, e.g. 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.company_profile("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.company_profile("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.company_profile('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.getCompanyProfile("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.company_profile("AAPL.US").await?;
println!("{:?}", resp);
Ok(())
}#include <iostream>
#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.company_profile("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.CompanyProfile(context.Background(), "AAPL.US")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", resp)
}Response
Response Example
{
"code": 0,
"message": "success",
"data": {
"company_name": "Apple Inc.",
"name": "Apple",
"ticker": "AAPL",
"market": "NasdaqGS",
"founded": "1976",
"employees": "166000",
"manager": "Timothy D. Cook",
"website": "www.apple.com",
"phone": "(408) 996-1010",
"address": "One Apple Park Way, Cupertino, California, United States",
"profile": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, a...",
"region": "US",
"sector": 0,
"year_end": "September 27",
"icon": "https://assets.lbkrs.com/ticker/ST/US/AAPL.png"
}
}
Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | CompanyProfileResponse |
| 400 | Bad request | None |
Schemas
CompanyProfileResponse
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | false | Chinese name |
| company_name | string | false | Full company name |
| ticker | string | false | Ticker symbol |
| market | string | false | Listing exchange |
| sector | integer | false | Industry sector |
| category | string | false | Company category |
| founded | string | false | Founding year |
| listing_date | string | false | IPO listing date |
| employees | string | false | Number of employees |
| chairman | string | false | Chairman |
| manager | string | false | CEO / General manager |
| secretary | string | false | Company secretary |
| address | string | false | Registered address |
| office_address | string | false | Office address |
| string | false | Contact email | |
| website | string | false | Company website |
| profile | string | false | Business description |
| icon | string | false | Stock icon URL |
| region | string | false | Region |
| shares_offered | string | false | Total shares offered |
| issue_price | string | false | IPO issue price |
| year_end | string | false | Fiscal year-end |
| zip_code | string | false | Postal code |
| phone | string | false | Phone number |
| fax | string | false | Fax number |
| legal_repr | string | false | Legal representative |
| legal_counsel | string | false | Legal counsel |
| accounting_firm | string | false | Accounting firm |
| audit_inst | string | false | Audit institution |
| securities_rep | string | false | Securities representative |
| bus_license | string | false | Business license number |
| ads_ratio | string | false | ADS ratio |