Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/en/docs/qa/general.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ sidebar_position: 0

## Q1: Do I need to open a live account to call Longbridge Developers?

No. The platform provides a **paper account** — you can develop and debug quote and trading interfaces without opening a real securities account. The **paper account** supports real-time quotes for HK, US, and A-share markets, as well as basic trading functionality for HK and US stocks and ETFs, making it suitable for API integration and feature verification.
It depends on the account region. For AP (Longbridge HK / SG) accounts, the platform provides a **paper account** — you can develop and debug quote and trading interfaces without opening a real securities account. The **paper account** supports real-time quotes for HK, US, and A-share markets, as well as basic trading functionality for HK and US stocks and ETFs, making it suitable for API integration and feature verification.

Longbridge US accounts have no paper account, because the US data center does not provide one (see Q2).

That said, the paper account differs from the live environment in areas such as order matching and cash rules. If you want to experience the platform's full capabilities, we recommend opening a live account as well.

Expand All @@ -23,9 +25,13 @@ Paper accounts and live accounts share the same App Key & Secret, but have diffe

## Q4: Which markets and types of securities are supported for quote and trading in paper account debugging?

Market: Supports real-time market data for Hong Kong stocks, US stocks, and A-share markets. For advanced market data such as full US market data and Hong Kong Level2 data, they can be purchased through the online market store and accessed via OpenAPI.
Paper accounts are available for AP (Longbridge HK / SG) accounts only; Longbridge US accounts have no paper account.

Market: AP paper accounts support real-time market data for Hong Kong stocks, US stocks, and A-share markets. For advanced market data such as full US market data and Hong Kong Level2 data, they can be purchased through the online market store and accessed via OpenAPI.

Trading: AP paper accounts support trading of Hong Kong and US stocks, ETFs, Hong Kong warrants, and US options.

Trading: Supports trading of Hong Kong and US stocks, ETFs, Hong Kong warrant trading, and US options. Short selling is supported for US stocks. OTC stocks and pre & post market trading are not supported in paper accounts.
For live accounts, coverage depends on the account region: HK stocks, A-shares, and HK warrants are available to AP accounts, while Longbridge US accounts cover US stocks (including exchange-traded ADRs), ETFs, options, and crypto.

## Q5: Interface call frequency limits

Expand Down
6 changes: 5 additions & 1 deletion docs/en/docs/qa/trade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Both paper and live accounts support regular Limit orders, Market orders, and Co

## Q2: What are the trading hours for paper accounts?

This applies to AP (Longbridge HK / SG) paper accounts only; Longbridge US accounts have no paper account.

Trading hours for paper accounts for Hong Kong stocks are the same as in the real environment. Trading pre & post market is not supported for U.S. stocks in the paper environment, only regular trading hours are supported.

## Q3: How can I trade overnight sessions for U.S. stocks?
Expand All @@ -17,7 +19,9 @@ To place orders for overnight trading, you can specify overnight trading by pass

## Q4: What are the trading rules for paper accounts?

Paper accounts currently support trading in Hong Kong and U.S. stocks, ETFs, Hong Kong warrants, and U.S. options. Short selling is supported for U.S. stocks. However, OTC trading and pre & post market trading are not supported in paper accounts.
This applies to AP (Longbridge HK / SG) paper accounts only; Longbridge US accounts have no paper account.

AP paper accounts support trading in Hong Kong and U.S. stocks, ETFs, Hong Kong warrants, and U.S. options. Pre & post market trading is not supported in paper accounts.

Trades in the paper environment are matched based on the bid-ask spread from the real market. If the buy order price is higher than or equal to the ask price and the sell order price is lower than or equal to the bid price, a trade can be executed. Market orders are matched by default.

Expand Down
12 changes: 9 additions & 3 deletions docs/zh-CN/docs/qa/general.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ sidebar_position: 0

## Q1: 一定要开通真实账户才能调用 Longbridge Developers 吗?

不需要。平台提供**模拟账户**,无需开通真实证券账户即可完成行情与交易接口的开发调试。**模拟账户**支持港股、美股、A 股实时行情查询,以及港美股股票、ETF 等基础交易功能,适合接口联调与功能验证。
取决于账户所属地区。对于 AP(Longbridge HK / SG)账户,平台提供**模拟账户**,无需开通真实证券账户即可完成行情与交易接口的开发调试。**模拟账户**支持港股、美股、A 股实时行情查询,以及港美股股票、ETF 等基础交易功能,适合接口联调与功能验证。

Longbridge US 账户不提供模拟账户,美国数据中心没有模拟环境(参见 Q2)。

不过,模拟账户在交易撮合、资金规则等方面与真实环境存在差异,如需完整体验平台能力,建议同时开通真实账户。

Expand All @@ -23,9 +25,13 @@ Longbridge US 账户不提供模拟账户,美国数据中心没有模拟环境

## Q4: 模拟调试支持哪些市场和品种的行情和交易

行情:支持港股、美股、A 股通市场实时行情,其中,美股全美行情、港股 Level2 等高级行情也可通过在线行情商店购买对应行情权益后,通过 OpenAPI 获取行情数据。
模拟账户仅面向 AP(Longbridge HK / SG)账户提供;Longbridge US 账户不提供模拟账户。

行情:AP 模拟账户支持港股、美股、A 股通市场实时行情,其中,美股全美行情、港股 Level2 等高级行情也可通过在线行情商店购买对应行情权益后,通过 OpenAPI 获取行情数据。

交易:AP 模拟账户支持港美股股票、ETF、港股轮证、美股期权交易。

交易:支持港美股股票、ETF、港股轮证、美股期权交易,其中美股支持股票做空。美股 OTC、盘前盘后交易在模拟账号下暂未支持。
实盘账户的覆盖范围取决于账户所属地区:港股、A 股和港股轮证面向 AP 账户提供;Longbridge US 账户覆盖美股(含交易所上市的 ADR)、ETF、期权和加密货币。

## Q5: 接口调用频次及数量限制

Expand Down
6 changes: 5 additions & 1 deletion docs/zh-CN/docs/qa/trade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ sidebar_position: 2

## Q2: 模拟账户交易时间有哪些?

本问题仅适用于 AP(Longbridge HK / SG)模拟账户;Longbridge US 账户不提供模拟账户。

模拟账户港股时间与真实环境相同,美股暂未支持盘前盘后交易,仅支持常规交易时段模拟撮合。

## Q3: 如何进美股夜盘交易?
Expand All @@ -17,7 +19,9 @@ sidebar_position: 2

## Q4: 模拟账户下的交易规则?

模拟账户目前支持港美股股票、ETF、港股轮证、美股期权交易,其中美股支持股票做空。美股 OTC、盘前盘后交易在模拟账号下暂未支持。
本问题仅适用于 AP(Longbridge HK / SG)模拟账户;Longbridge US 账户不提供模拟账户。

AP 模拟账户支持港美股股票、ETF、港股轮证、美股期权交易。美股盘前盘后交易在模拟账户下不支持。

模拟交易参考真实市场买卖摆盘进行撮合,即当委托买入价高于等于摆盘卖一价、委托卖出价低于等于摆盘买一价,即可撮合成交,市价单默认均可成交。

Expand Down
12 changes: 9 additions & 3 deletions docs/zh-HK/docs/qa/general.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ sidebar_position: 0

## Q1: 一定要開通真實帳號才能呼叫 Longbridge Developers 嗎?

不需要。平台提供**模擬帳戶**,無需開通真實證券帳戶即可完成行情與交易介面的開發偵錯。**模擬帳戶**支援港股、美股、A 股即時行情查詢,以及港美股股票、ETF 等基礎交易功能,適合介面聯調與功能驗證。
取決於帳戶所屬地區。對於 AP(Longbridge HK / SG)帳戶,平台提供**模擬帳戶**,無需開通真實證券帳戶即可完成行情與交易介面的開發偵錯。**模擬帳戶**支援港股、美股、A 股即時行情查詢,以及港美股股票、ETF 等基礎交易功能,適合介面聯調與功能驗證。

Longbridge US 帳戶不提供模擬帳戶,美國數據中心沒有模擬環境(參見 Q2)。

不過,模擬帳戶在交易撮合、資金規則等方面與真實環境存在差異,如需完整體驗平台能力,建議同時開通真實帳戶。

Expand All @@ -23,9 +25,13 @@ Longbridge US 帳戶不提供模擬帳戶,美國數據中心沒有模擬環境

## Q4: 模擬調試支援哪些市場和品種的行情和交易

行情:支援港股、美股、A 股通市場即時行情,其中,美股全美行情、港股 Level2 等高級行情也可透過線上行情商店購買對應行情權益後,透過 OpenAPI 取得行情資料。
模擬帳戶僅面向 AP(Longbridge HK / SG)帳戶提供;Longbridge US 帳戶不提供模擬帳戶。

行情:AP 模擬帳戶支援港股、美股、A 股通市場即時行情,其中,美股全美行情、港股 Level2 等高級行情也可透過線上行情商店購買對應行情權益後,透過 OpenAPI 取得行情資料。

交易:AP 模擬帳戶支援港美股股票、ETF、港股輪證、美股期權交易。

交易:支援港美股股票、ETF、港股輪證、美股期權交易,其中美股支援股票做空。美股 OTC、盤前盤後交易在模擬帳號下暫未支援。
實盤帳戶的覆蓋範圍取決於帳戶所屬地區:港股、A 股和港股輪證面向 AP 帳戶提供;Longbridge US 帳戶覆蓋美股(含交易所上市的 ADR)、ETF、期權和加密貨幣。

## Q5: 介面呼叫頻次及數量限制

Expand Down
6 changes: 5 additions & 1 deletion docs/zh-HK/docs/qa/trade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ sidebar_position: 2

## Q2: 模擬帳戶交易時間有哪些?

本問題僅適用於 AP(Longbridge HK / SG)模擬帳戶;Longbridge US 帳戶不提供模擬帳戶。

模擬帳戶港股時間與真實環境相同,美股暫不支援盤前盤後交易,僅支援常規交易時段模擬撮合。

## Q3: 如何進行美股夜盤交易?
Expand All @@ -17,7 +19,9 @@ sidebar_position: 2

## Q4: 模擬帳戶的交易規則?

模擬帳戶目前支援港美股股票、ETF、港股輪證、美股期權交易,其中美股支援股票做空。美股場外交易、盤前盤後交易在模擬帳戶下暫不支援。
本問題僅適用於 AP(Longbridge HK / SG)模擬帳戶;Longbridge US 帳戶不提供模擬帳戶。

AP 模擬帳戶支援港美股股票、ETF、港股輪證、美股期權交易。美股盤前盤後交易在模擬帳戶下不支援。

模擬交易參考真實市場買賣檔進行撮合,即當委託買入價高於等於買一價、委託賣出價低於等於賣一價時,即可撮合成交,市價單默認均可成交。

Expand Down
12 changes: 6 additions & 6 deletions packages/homepage/src/sections/ApiCapabilitiesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const LOCALE = {
{
title: 'Derivatives',
count: '8+',
desc: 'Full option chains with Greeks, warrants listing, and real-time derivative quotes',
items: ['Option chains + Greeks', 'Warrant filtering', 'Issuer directory', 'Derivative quotes'],
desc: 'Full option chains with Greeks, real-time derivative quotes, and warrant listings where the market offers them',
items: ['Option chains + Greeks', 'Option volume', 'Derivative quotes', 'Warrants (where offered)'],
},
{
title: 'Financial Research',
Expand Down Expand Up @@ -75,8 +75,8 @@ const LOCALE = {
{
title: '衍生品',
count: '8+',
desc: '完整期权链含希腊字母、权证列表及实时衍生品报价',
items: ['期权链 + 希腊字母', '权证筛选', '发行商目录', '衍生品报价'],
desc: '完整期权链含希腊字母、实时衍生品报价,以及所在市场提供的权证列表',
items: ['期权链 + 希腊字母', '期权成交量', '衍生品报价', '权证(视市场而定)'],
},
{
title: '金融研究',
Expand Down Expand Up @@ -113,8 +113,8 @@ const LOCALE = {
{
title: '衍生品',
count: '8+',
desc: '完整期權鏈含希臘字母、權證列表及即時衍生品報價',
items: ['期權鏈 + 希臘字母', '權證篩選', '發行商目錄', '衍生品報價'],
desc: '完整期權鏈含希臘字母、即時衍生品報價,以及所在市場提供的權證列表',
items: ['期權鏈 + 希臘字母', '期權成交量', '衍生品報價', '權證(視市場而定)'],
},
{
title: '金融研究',
Expand Down
6 changes: 3 additions & 3 deletions packages/homepage/src/sections/FeaturesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const LOCALE = {
{
label: 'Paper Trading',
title: 'Sandbox at zero cost',
desc: 'Test orders with real market data — simulated matching based on live bid-ask spreads. No securities account required.',
desc: 'Test orders with real market data — simulated matching based on live bid-ask spreads. Available for Longbridge HK / SG accounts.',
tags: ['Sandbox', 'Zero Cost'],
},
{
Expand Down Expand Up @@ -85,7 +85,7 @@ const LOCALE = {
{
label: '模拟交易',
title: '零成本沙盒环境',
desc: '用真实市场数据测试订单——基于实时买卖价差进行模拟撮合。无需证券账户。',
desc: '用真实市场数据测试订单——基于实时买卖价差进行模拟撮合。面向 Longbridge HK / SG 账户提供。',
tags: ['沙盒', '零成本'],
},
{
Expand Down Expand Up @@ -130,7 +130,7 @@ const LOCALE = {
{
label: '模擬交易',
title: '零成本沙盒環境',
desc: '用真實市場數據測試訂單——基於即時買賣價差進行模擬撮合。無需證券帳戶。',
desc: '用真實市場數據測試訂單——基於即時買賣價差進行模擬撮合。面向 Longbridge HK / SG 帳戶提供。',
tags: ['沙盒', '零成本'],
},
{
Expand Down
13 changes: 7 additions & 6 deletions packages/homepage/src/sections/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LOCALE = {
cta1: 'Get Started',
cta2: 'Read the Docs',
highlights: [
{ u: 'markets', d: 'US · HK · SG · CN' },
{ v: 'Global', u: 'markets', d: 'Stocks · ETFs · Options' },
{ u: 'SDKs', d: 'Python · Rust · Node · Go · Java · C · C++' },
{ u: 'endpoints', d: 'Quote · Trade · Research · News' },
{ u: 'OpenAPI access', d: 'No monthly fees' },
Expand All @@ -28,7 +28,7 @@ const LOCALE = {
cta1: '开始使用',
cta2: '阅读文档',
highlights: [
{ u: '个市场', d: 'US · HK · SG · CN' },
{ v: '全球', u: '市场', d: '股票 · ETF · 期权' },
{ u: '个 SDK', d: 'Python · Rust · Node · Go · Java · C · C++' },
{ u: '+ 个接口', d: '行情 · 交易 · 研究 · 资讯' },
{ u: 'OpenAPI 接入费', d: '集成账户免费' },
Expand All @@ -42,16 +42,17 @@ const LOCALE = {
cta1: '開始使用',
cta2: '閱讀文件',
highlights: [
{ u: '個市場', d: 'US · HK · SG · CN' },
{ v: '全球', u: '市場', d: '股票 · ETF · 期權' },
{ u: '個 SDK', d: 'Python · Rust · Node · Go · Java · C · C++' },
{ u: '+ 個接口', d: '行情 · 交易 · 研究 · 資訊' },
{ u: 'OpenAPI 接入費', d: '整合帳戶免費' },
],
},
}

// Stat values are locale-independent (legacy `heroHighlights` computed).
const HIGHLIGHT_VALUES = ['4', '7', '100+', '$0']
// Stat values are locale-independent (legacy `heroHighlights` computed);
// a highlight with its own `v` overrides the shared value.
const HIGHLIGHT_VALUES = ['', '7', '100+', '$0']

const HERO_CSS = `
/* ---- legacy utilities, scoped to the hero so they don't leak ---- */
Expand Down Expand Up @@ -351,7 +352,7 @@ function localePath(locale: Locale, path: string) {

export function HeroSection({ locale }: HeroSectionProps) {
const content = LOCALE[locale] ?? LOCALE.en
const highlights = content.highlights.map((h, i) => ({ ...h, v: HIGHLIGHT_VALUES[i] }))
const highlights = content.highlights.map((h, i) => ({ ...h, v: 'v' in h ? h.v : HIGHLIGHT_VALUES[i] }))
const docsHref = localePath(locale, '/docs')

return (
Expand Down
36 changes: 7 additions & 29 deletions packages/homepage/src/sections/SdkSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const LOCALE = {
title: 'Production-grade SDKs with real-time streaming.',
desc: '7 SDKs built on a shared Rust core — subscribe to live data, place orders, and monitor positions with async/await patterns and built-in rate limiting.',
feats: [
{ h: 'Multi-Market', body: 'US · HK · SG · CN (SH/SZ) — stocks, ETFs, options, warrants.' },
{ h: 'Global Markets', body: 'Stocks, ETFs and options, plus warrants where the market offers them.' },
{
h: 'Free & Paper Trading',
body: 'No additional API charges. Paper trading with real market data, no securities account required.',
body: 'No additional API charges. Paper trading with real market data is available for Longbridge HK / SG accounts.',
strong: '$0 API charges',
},
{
Expand All @@ -44,10 +44,10 @@ const LOCALE = {
title: '生产级 SDK,支持实时流式数据',
desc: '7 个 SDK 共享 Rust 内核——订阅实时数据、下达订单、监控持仓,支持 async/await 模式与内置限速控制。',
feats: [
{ h: '多市场覆盖', body: 'US · HK · SG · CN(沪深)——股票、ETF、期权、权证。' },
{ h: '全球市场', body: '股票、ETF、期权,以及所在市场提供的权证。' },
{
h: '免费及模拟交易',
body: '无额外 API 费用。用真实市场数据进行模拟交易,无需证券账户。',
body: '无额外 API 费用。Longbridge HK / SG 账户可用真实市场数据进行模拟交易。',
strong: '零 API 费用',
},
{
Expand All @@ -63,10 +63,10 @@ const LOCALE = {
title: '生產級 SDK,支援即時串流數據',
desc: '7 個 SDK 共享 Rust 核心——訂閱即時數據、下達訂單、監控持倉,支援 async/await 模式與內建限速控制。',
feats: [
{ h: '多市場覆蓋', body: 'US · HK · SG · CN(滬深)——股票、ETF、期權、權證。' },
{ h: '全球市場', body: '股票、ETF、期權,以及所在市場提供的權證。' },
{
h: '免費及模擬交易',
body: '無額外 API 費用。用真實市場數據進行模擬交易,無需證券帳戶。',
body: '無額外 API 費用。Longbridge HK / SG 帳戶可用真實市場數據進行模擬交易。',
strong: '零 API 費用',
},
{
Expand Down Expand Up @@ -782,21 +782,6 @@ const SDK_CSS = `
color: var(--lb-fg-2);
margin-top: 4px;
}
.sdk-feat-pills {
display: flex;
gap: 4px;
margin-top: 6px;
flex-wrap: wrap;
}
.sdk-feat-pills span {
font-family: var(--app-mono);
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
border-radius: 3px;
background: var(--lb-bg-2);
color: var(--lb-fg-1);
}
.sdk-feat-strong {
font-size: 18px;
font-weight: 700;
Expand Down Expand Up @@ -936,14 +921,7 @@ export function SdkSection({ locale }: SdkSectionProps) {
</div>
<div style={{ flex: 1, minWidth: 0 }}>
<div className="sdk-feat-h">{content.feats[0].h}</div>
<div className="sdk-feat-body">
{content.feats[0].body}
<div className="sdk-feat-pills">
{['US', 'HK', 'SG', 'CN'].map((m) => (
<span key={m}>{m}</span>
))}
</div>
</div>
<div className="sdk-feat-body">{content.feats[0].body}</div>
</div>
</div>
{/* Free & Paper Trading */}
Expand Down
Loading
Loading