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
103 changes: 50 additions & 53 deletions docs/.vitepress/theme/components/Pricing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ const LOCALE = {
title: 'Trading & Account APIs',
desc: 'Fundamentals, analysis, news, assets, orders — every core API is free.',
},
{
title: 'Basic Market Data',
desc: 'Nasdaq Basic, HK Level 1, CN Level 1 — bundled with your account. <a href="https://longbridge.com/markets">View live market data</a> to see what\'s included.',
},
{ title: 'Real-time Market Data', desc: 'US LV1, HK Level 1, CN Level 1 real-time quotes — included free on registration. <a href="https://longbridge.com/markets">View live market data</a> to see what\'s included.' },
{ title: 'Push & Pull Data', desc: 'WebSocket real-time push and REST API pull — unlimited.' },
],
},
realtime: {
eyebrow: 'REAL-TIME MARKET DATA',
title: 'Subscribe only to what you need.',
desc: 'OpenAPI quote permissions are independent from App / PC / Web and must be purchased separately. Activate via <a href="https://longbridge.com/hk/download">Longbridge App</a> → Me → Quote Store.',
desc: 'OpenAPI quote permissions are independent from App / PC / Web. US LV1 is free on registration; subscribe to the rest as needed via Activate via <a href="https://longbridge.com/hk/download">Longbridge App</a> → Me → Quote Store.',
},
billing: { label: 'Billing' },
cycle: {
Expand All @@ -50,9 +47,9 @@ const LOCALE = {
market: 'US Market',
name: 'US LV1 Real-time',
badge: '',
tagline: 'Nasdaq LV1 real-time quotes with best bid/ask, including pre / post-market.',
tagline: 'US LV1 real-time quotes with best bid/ask across pre-market, regular, after-hours, and overnight sessions.',
coverage: 'US market only',
feats: ['Nasdaq LV1 real-time quotes', 'Pre / post-market (overnight)', 'WebSocket real-time push'],
feats: ['US LV1 real-time quotes', 'Pre / post-market & overnight', 'WebSocket real-time push'],
},
{
market: 'HK Market',
Expand All @@ -76,8 +73,7 @@ const LOCALE = {
eyebrow: 'FEATURE COMPARISON',
title: "What's included in each plan.",
plans: [
{ label: 'Nasdaq Basic', tag: 'Free', color: 'var(--lb-up)' },
{ label: 'US LV1', tag: 'Paid', color: 'var(--lb-market-us)' },
{ label: 'US LV1', tag: 'Free', color: 'var(--lb-market-us)' },
{ label: 'OPRA', tag: 'Paid', color: 'var(--lb-ai-mention)' },
{ label: 'HK LV1', tag: 'Free (promo)', color: 'var(--lb-up)' },
{ label: 'HK LV2', tag: 'Paid', color: 'var(--lb-market-hk)' },
Expand Down Expand Up @@ -109,7 +105,7 @@ const LOCALE = {
},
{
q: 'Do I need a subscription to test the API?',
a: 'No. Trading, account, and fundamentals APIs are free. You can also use Basic Market Data tiers (Nasdaq Basic, HK LV1, CN LV1) for free.',
a: 'No. Trading, account, and fundamentals APIs are free. US LV1, HK LV1, and CN LV1 real-time quotes are also free on registration.',
},
{
q: 'Can I cancel anytime?',
Expand Down Expand Up @@ -141,17 +137,14 @@ const LOCALE = {
price: '免费',
items: [
{ title: '交易与账户 API', desc: '基本面、分析、资讯、资产、订单——所有核心 API 均免费。' },
{
title: '基础行情数据',
desc: '纳斯达克基础行情、港股一档、A 股一档——随账户附赠。<a href="https://longbridge.com/markets">查看实时行情</a>了解包含内容。',
},
{ title: '实时行情数据', desc: '美股 LV1、港股一档、A 股一档实时行情——注册即免费赠送。<a href="https://longbridge.com/markets">查看实时行情</a>了解包含内容。' },
{ title: '推送与拉取数据', desc: 'WebSocket 实时推送与 REST API 拉取——无限制。' },
],
},
realtime: {
eyebrow: '实时行情数据',
title: '只订阅您需要的数据',
desc: 'OpenAPI 行情权限与 App / PC / Web 独立,需单独购买。通过<a href="https://longbridge.com/hk/download">长桥 App</a> → 我的 → 行情商店开通。',
desc: 'OpenAPI 行情权限与 App / PC / Web 独立。US LV1 注册即免费赠送,其余按需通过<a href="https://longbridge.com/hk/download">长桥 App</a> → 我的 → 行情商店开通。',
},
billing: { label: '计费周期' },
cycle: {
Expand All @@ -170,9 +163,9 @@ const LOCALE = {
market: '美股市场',
name: 'US LV1 实时行情',
badge: '',
tagline: '纳斯达克 LV1 实时行情,含最优买卖价及盘前/盘后数据。',
tagline: '美股 LV1 实时行情,含最优买卖价及盘前、盘中、盘后、夜盘全时段。',
coverage: '仅限美股市场',
feats: ['纳斯达克 LV1 实时行情', '盘前/盘后(隔夜)', 'WebSocket 实时推送'],
feats: ['美股 LV1 实时行情', '盘前/盘后及夜盘', 'WebSocket 实时推送'],
},
{
market: '港股市场',
Expand All @@ -196,8 +189,7 @@ const LOCALE = {
eyebrow: '功能对比',
title: '各方案功能一览',
plans: [
{ label: 'Nasdaq Basic', tag: '免费', color: 'var(--lb-up)' },
{ label: '美股 LV1', tag: '付费', color: 'var(--lb-market-us)' },
{ label: '美股 LV1', tag: '免费', color: 'var(--lb-market-us)' },
{ label: 'OPRA', tag: '付费', color: 'var(--lb-ai-mention)' },
{ label: '港股 LV1', tag: '推广免费', color: 'var(--lb-up)' },
{ label: '港股 LV2', tag: '付费', color: 'var(--lb-market-hk)' },
Expand Down Expand Up @@ -229,7 +221,7 @@ const LOCALE = {
},
{
q: '测试 API 需要订阅吗?',
a: '不需要。交易、账户和基本面 API 均免费。您也可以免费使用基础行情(纳斯达克基础、港股 LV1、A 股 LV1。',
a: '不需要。交易、账户和基本面 API 均免费。美股 LV1、港股 LV1、A 股 LV1 实时行情也注册即免费赠送。',
},
{ q: '可以随时取消吗?', a: '可以。在下一个计费周期前随时取消。行情权限在已付费周期结束前持续有效。' },
{
Expand All @@ -255,17 +247,14 @@ const LOCALE = {
price: '免費',
items: [
{ title: '交易與帳戶 API', desc: '基本面、分析、資訊、資產、訂單——所有核心 API 均免費。' },
{
title: '基礎行情數據',
desc: '納斯達克基礎行情、港股一檔、A 股一檔——隨帳戶附贈。<a href="https://longbridge.com/markets">查看即時行情</a>了解包含內容。',
},
{ title: '即時行情數據', desc: '美股 LV1、港股一檔、A 股一檔即時行情——註冊即免費贈送。<a href="https://longbridge.com/markets">查看即時行情</a>了解包含內容。' },
{ title: '推送與拉取數據', desc: 'WebSocket 即時推送與 REST API 拉取——無限制。' },
],
},
realtime: {
eyebrow: '即時行情數據',
title: '只訂閱您需要的數據。',
desc: 'OpenAPI 行情權限與 App / PC / Web 獨立,需單獨購買。透過<a href="https://longbridge.com/hk/download">長橋 App</a> → 我的 → 行情商店開通。',
desc: 'OpenAPI 行情權限與 App / PC / Web 獨立。US LV1 註冊即免費贈送,其餘按需透過<a href="https://longbridge.com/hk/download">長橋 App</a> → 我的 → 行情商店開通。',
},
billing: { label: '計費週期' },
cycle: {
Expand All @@ -284,9 +273,9 @@ const LOCALE = {
market: '美股市場',
name: 'US LV1 即時行情',
badge: '',
tagline: '納斯達克 LV1 即時行情,含最優買賣價及盤前/盤後數據。',
tagline: '美股 LV1 即時行情,含最優買賣價及盤前、盤中、盤後、夜盤全時段。',
coverage: '僅限美股市場',
feats: ['納斯達克 LV1 即時行情', '盤前/盤後(隔夜)', 'WebSocket 即時推送'],
feats: ['美股 LV1 即時行情', '盤前/盤後及夜盤', 'WebSocket 即時推送'],
},
{
market: '港股市場',
Expand All @@ -310,8 +299,7 @@ const LOCALE = {
eyebrow: '功能對比',
title: '各方案功能一覽。',
plans: [
{ label: 'Nasdaq Basic', tag: '免費', color: 'var(--lb-up)' },
{ label: '美股 LV1', tag: '付費', color: 'var(--lb-market-us)' },
{ label: '美股 LV1', tag: '免費', color: 'var(--lb-market-us)' },
{ label: 'OPRA', tag: '付費', color: 'var(--lb-ai-mention)' },
{ label: '港股 LV1', tag: '推廣免費', color: 'var(--lb-up)' },
{ label: '港股 LV2', tag: '付費', color: 'var(--lb-market-hk)' },
Expand Down Expand Up @@ -343,7 +331,7 @@ const LOCALE = {
},
{
q: '測試 API 需要訂閱嗎?',
a: '不需要。交易、帳戶和基本面 API 均免費。您也可以免費使用基礎行情(納斯達克基礎、港股 LV1、A 股 LV1。',
a: '不需要。交易、帳戶和基本面 API 均免費。美股 LV1、港股 LV1、A 股 LV1 即時行情也註冊即免費贈送。',
},
{ q: '可以隨時取消嗎?', a: '可以。在下一個計費週期前隨時取消。行情權限在已付費週期結束前持續有效。' },
{
Expand Down Expand Up @@ -372,6 +360,7 @@ const PAID_PLANS = [
currency: 'HK$',
color: 'var(--lb-market-us)',
hasBadge: false,
free: true,
cycles: {
auto: { price: 558, discount: 22 },
monthly: { price: 718 },
Expand All @@ -384,6 +373,7 @@ const PAID_PLANS = [
currency: 'HK$',
color: 'var(--lb-market-hk)',
hasBadge: true,
free: false,
cycles: {
auto: { price: 558, discount: 22 },
monthly: { price: 718 },
Expand All @@ -396,6 +386,7 @@ const PAID_PLANS = [
currency: 'HK$',
color: 'var(--lb-ai-mention)',
hasBadge: false,
free: false,
cycles: {
auto: { price: 22, discount: 45 },
monthly: { price: 40 },
Expand All @@ -414,19 +405,19 @@ const FREE_ICONS = [
const BILLING_CYCLES = [{ key: 'auto' }, { key: 'monthly' }, { key: 'quarterly' }, { key: 'annual', badge: true }]

const MATRIX_ROW_DATA = [
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 1, 0, 0, 0, 0],
[1, 1, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0],
[0, 0, 1, 0, 0, 0],
[0, 0, 0, 1, 1, 0],
[0, 0, 0, 1, 1, 0],
[0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1],
[1, 1, 1, 1, 1],
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 0],
[1, 0, 0, 0, 0],
[1, 0, 0, 0, 0],
[0, 1, 0, 0, 0],
[0, 0, 1, 1, 0],
[0, 0, 1, 1, 0],
[0, 0, 0, 1, 0],
[0, 0, 0, 1, 0],
[0, 0, 0, 1, 0],
[0, 0, 0, 0, 1],
]

const cycle = ref('auto')
Expand Down Expand Up @@ -602,17 +593,22 @@ const matrixRows = computed<MatrixRow[]>(() => {
</div>
<h3 class="pricing-plan-name">{{ p.name }}</h3>
<div class="pricing-plan-price">
<span class="pricing-plan-cur">{{ p.currency }}</span>
<span class="pricing-plan-num">{{ planCycle(p).price }}</span>
<span class="pricing-plan-suf">{{ cycleSuffix }}</span>
<span v-if="planCycle(p).discount" class="pricing-plan-discount">-{{ planCycle(p).discount }}%</span>
</div>
<div v-if="planCycle(p).approxMo" class="pricing-plan-approx">
≈{{ p.currency }}{{ planCycle(p).approxMo }}{{ content.suffix.mo }}
</div>
<div v-else-if="planCycle(p).discount" class="pricing-plan-was">
{{ content.plan.was }} <s>{{ p.currency }}{{ p.cycles.monthly.price }}{{ content.suffix.mo }}</s>
<span v-if="p.free" class="pricing-plan-num">{{ content.free.price }}</span>
<template v-else>
<span class="pricing-plan-cur">{{ p.currency }}</span>
<span class="pricing-plan-num">{{ planCycle(p).price }}</span>
<span class="pricing-plan-suf">{{ cycleSuffix }}</span>
<span v-if="planCycle(p).discount" class="pricing-plan-discount">-{{ planCycle(p).discount }}%</span>
</template>
</div>
<template v-if="!p.free">
<div v-if="planCycle(p).approxMo" class="pricing-plan-approx">
≈{{ p.currency }}{{ planCycle(p).approxMo }}{{ content.suffix.mo }}
</div>
<div v-else-if="planCycle(p).discount" class="pricing-plan-was">
{{ content.plan.was }} <s>{{ p.currency }}{{ p.cycles.monthly.price }}{{ content.suffix.mo }}</s>
</div>
</template>
<p class="pricing-plan-tag">{{ p.tagline }}</p>
<div class="pricing-plan-cov">
<svg
Expand Down Expand Up @@ -644,6 +640,7 @@ const matrixRows = computed<MatrixRow[]>(() => {
</li>
</ul>
<a
v-if="!p.free"
class="btn btn-primary pricing-plan-cta"
href="https://longbridge.com/download"
target="_blank"
Expand Down
1 change: 0 additions & 1 deletion docs/en/docs/cli/market-data/market-temp.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ sidebar_position: 10

Get the Longbridge market temperature index — a composite 0–100 sentiment gauge combining valuation and market sentiment. Higher = more bullish.

<QuotePermission command="market-temp" />

## Basic Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/en/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ Please pay attention to protect your **Access Token** information, anyone who ge
| `LONGBRIDGE_QUOTE_WS_URL` | Quote websocket endpoint url (Default: `wss://openapi-quote.longbridge.com/v2`) |
| `LONGBRIDGE_TRADE_WS_URL` | Trade websocket endpoint url (Default: `wss://openapi-trade.longbridge.com/v2`) |
| `LONGBRIDGE_REGION` | Override API region; SDK auto-selects by network. Set to `cn` or `hk` if incorrect. |
| `LONGBRIDGE_ENABLE_OVERNIGHT` | Enable overnight quote, `true` or `false` (Default: `false`). Requires purchasing the "LV1 Real-time Quotes (OpenAPI)" quote card in the Longbridge App. US stocks only. |
| `LONGBRIDGE_ENABLE_OVERNIGHT` | Enable overnight quote, `true` or `false` (Default: `false`). Overnight quotes are free. US stocks only. |
| `LONGBRIDGE_PUSH_CANDLESTICK_MODE` | `realtime` or `confirmed` (Default: `realtime`) |
| `LONGBRIDGE_PRINT_QUOTE_PACKAGES` | Print quote packages when connected, `true` or `false` (Default: `true`) |
| `LONGBRIDGE_LOG_PATH` | Set the path of the log files (Default: no logs) |
Expand Down Expand Up @@ -915,7 +915,7 @@ After running, the output is as follows:
To subscribe to market data, please check the [Developer Center](https://open.longbridge.com/account) - "Quote authority" is correct

- HK Market - BMP basic quotation is unable to subscribe with WebSocket as it has no real-time quote push.
- US Market - Nasdaq Basic (Only OpenAPI).
- US Market - LV1 real-time quotes, free on registration (pre-market, regular, after-hours, and overnight sessions; OpenAPI only).

Before running, visit the [Developer Center](https://open.longbridge.com/dashboard) and ensure that the account has the correct quote level.

Expand Down
1 change: 0 additions & 1 deletion docs/en/docs/market/status/history-market-temp.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sidebar_position: 3

This interface is used to get historical market temperature.

<QuotePermission command="market-temp" />

<CliCommand>
# HK temperature Q1 2025
Expand Down
1 change: 0 additions & 1 deletion docs/en/docs/market/status/market-temp.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sidebar_position: 2

Get Current Market Temperature

<QuotePermission command="market-temp" />

<CliCommand>
# HK market sentiment temperature
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/qa/quote.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The security code uses the `ticker.region` format, `ticker` represents the code

## Q6: How to enable Overnight quote

- **Overnight quote data is not available by default.** You need to purchase the **"LV1 Real-time Quotes (OpenAPI)"** quote card in the "Quote Store" of the Longbridge mobile app to access overnight data.
- **Overnight quotes are free.** No quote card purchase required.
- Overnight quotes are currently **only available for US stocks**. Hong Kong stocks do not support overnight quotes.
- After obtaining the overnight quote permission, you still need to actively enable it by filling in the key `need_over_night_quote`, value `true` in the `metadata` field of the authentication interface.

Expand Down
1 change: 0 additions & 1 deletion docs/en/docs/quote/analytics/filings.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ headingLevel: 2

Get the filings list for a specified security.

<QuotePermission level="basic" />

<CliCommand>
# regulatory filings for Apple
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ All Quote APIs require OpenAPI quote permissions. These are **separate from App/
| **Basic** | LV1 US/CN real-time; HK BMP (~15 min delay, no push) | Included with OpenAPI activation |
| **LV1 Real-time** (HK) | HK real-time quotes + WebSocket push support | Purchase "LV1 Real-time Quotes (OpenAPI)" via Quote Store |
| **LV2 Subscription** | Level 2 order book (depth), HK broker queue | Purchase LV2 subscription via Quote Store |
| **Overnight** (US) | US pre/post-market extended-hours data | Purchase LV1 card + set `LONGBRIDGE_ENABLE_OVERNIGHT=true` |
| **Overnight** (US) | US pre/post-market extended-hours data | Free; set `LONGBRIDGE_ENABLE_OVERNIGHT=true` |

Check your current permissions at [Developer Center](https://open.longbridge.com/dashboard). Purchase quote cards via **Longbridge App → My → My Quotes → Quote Store**.
1 change: 0 additions & 1 deletion docs/en/docs/quote/stocks/broker-ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ sidebar_position: 7

This API is used to obtain participant IDs data (which can be synchronized once a day).

<QuotePermission level="basic" />

<CliCommand>
# list all market maker broker IDs and names (HK market)
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/stocks/candlestick.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ longbridge kline NVDA.US --period day --count 20
| period | int32 | Yes | Candlestick period, for example: `1000`, see [Period](../objects#period---candlestick-period) |
| count | int32 | Yes | Count of cancdlestick, for example: `100`<br /><br />**Check rules:** <br />maximum count is `1000` |
| adjust_type | int32 | Yes | Adjustment type, for example: `0`, see [AdjustType](../objects#adjusttype---candlestick-adjustment-type) |
| trade_session | int32 | No | Trading session, 0: intraday, 100: All (pre, intraday, post, overnight)<br/><br/>Note: Overnight data requires purchasing the "LV1 Real-time Quotes (OpenAPI)" quote card. US stocks only. |
| trade_session | int32 | No | Trading session, 0: intraday, 100: All (pre, intraday, post, overnight)<br/><br/>Note: Overnight data is free, US stocks only; enable the `enable_overnight` parameter to receive it. |

### Protobuf

Expand Down
Loading
Loading