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
83 changes: 22 additions & 61 deletions docs/.vitepress/theme/components/Pricing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const LOCALE = {
},
{
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.',
desc: 'US LV1, 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: 'Push & Pull Data', desc: 'WebSocket real-time push and REST API pull — unlimited.' },
],
Expand All @@ -46,14 +46,6 @@ const LOCALE = {
subscribe: 'Subscribe',
was: 'Was',
items: [
{
market: 'US Market',
name: 'US LV1 Real-time',
badge: '',
tagline: 'Nasdaq LV1 real-time quotes with best bid/ask, including pre / post-market.',
coverage: 'US market only',
feats: ['Nasdaq LV1 real-time quotes', 'Pre / post-market (overnight)', 'WebSocket real-time push'],
},
{
market: 'HK Market',
name: 'HK LV2 Advanced',
Expand All @@ -76,8 +68,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 +100,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. You can also use Basic Market Data tiers (US LV1, HK LV1, CN LV1) for free.',
},
{
q: 'Can I cancel anytime?',
Expand Down Expand Up @@ -143,7 +134,7 @@ const LOCALE = {
{ title: '交易与账户 API', desc: '基本面、分析、资讯、资产、订单——所有核心 API 均免费。' },
{
title: '基础行情数据',
desc: '纳斯达克基础行情、港股一档、A 股一档——随账户附赠。<a href="https://longbridge.com/markets">查看实时行情</a>了解包含内容。',
desc: '美股 LV1、港股一档、A 股一档——随账户附赠。<a href="https://longbridge.com/markets">查看实时行情</a>了解包含内容。',
},
{ title: '推送与拉取数据', desc: 'WebSocket 实时推送与 REST API 拉取——无限制。' },
],
Expand All @@ -166,14 +157,6 @@ const LOCALE = {
subscribe: '立即订阅',
was: '原价',
items: [
{
market: '美股市场',
name: 'US LV1 实时行情',
badge: '',
tagline: '纳斯达克 LV1 实时行情,含最优买卖价及盘前/盘后数据。',
coverage: '仅限美股市场',
feats: ['纳斯达克 LV1 实时行情', '盘前/盘后(隔夜)', 'WebSocket 实时推送'],
},
{
market: '港股市场',
name: 'HK LV2 高级行情',
Expand All @@ -196,8 +179,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 +211,7 @@ const LOCALE = {
},
{
q: '测试 API 需要订阅吗?',
a: '不需要。交易、账户和基本面 API 均免费。您也可以免费使用基础行情(纳斯达克基础、港股 LV1、A 股 LV1)。',
a: '不需要。交易、账户和基本面 API 均免费。您也可以免费使用基础行情(美股 LV1、港股 LV1、A 股 LV1)。',
},
{ q: '可以随时取消吗?', a: '可以。在下一个计费周期前随时取消。行情权限在已付费周期结束前持续有效。' },
{
Expand Down Expand Up @@ -257,7 +239,7 @@ const LOCALE = {
{ title: '交易與帳戶 API', desc: '基本面、分析、資訊、資產、訂單——所有核心 API 均免費。' },
{
title: '基礎行情數據',
desc: '納斯達克基礎行情、港股一檔、A 股一檔——隨帳戶附贈。<a href="https://longbridge.com/markets">查看即時行情</a>了解包含內容。',
desc: '美股 LV1、港股一檔、A 股一檔——隨帳戶附贈。<a href="https://longbridge.com/markets">查看即時行情</a>了解包含內容。',
},
{ title: '推送與拉取數據', desc: 'WebSocket 即時推送與 REST API 拉取——無限制。' },
],
Expand All @@ -280,14 +262,6 @@ const LOCALE = {
subscribe: '立即訂閱',
was: '原價',
items: [
{
market: '美股市場',
name: 'US LV1 即時行情',
badge: '',
tagline: '納斯達克 LV1 即時行情,含最優買賣價及盤前/盤後數據。',
coverage: '僅限美股市場',
feats: ['納斯達克 LV1 即時行情', '盤前/盤後(隔夜)', 'WebSocket 即時推送'],
},
{
market: '港股市場',
name: 'HK LV2 高級行情',
Expand All @@ -310,8 +284,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 +316,7 @@ const LOCALE = {
},
{
q: '測試 API 需要訂閱嗎?',
a: '不需要。交易、帳戶和基本面 API 均免費。您也可以免費使用基礎行情(納斯達克基礎、港股 LV1、A 股 LV1)。',
a: '不需要。交易、帳戶和基本面 API 均免費。您也可以免費使用基礎行情(美股 LV1、港股 LV1、A 股 LV1)。',
},
{ q: '可以隨時取消嗎?', a: '可以。在下一個計費週期前隨時取消。行情權限在已付費週期結束前持續有效。' },
{
Expand All @@ -367,18 +340,6 @@ interface PlanCycle {
}

const PAID_PLANS = [
{
id: 'us-lv1',
currency: 'HK$',
color: 'var(--lb-market-us)',
hasBadge: false,
cycles: {
auto: { price: 558, discount: 22 },
monthly: { price: 718 },
quarterly: { price: 1748, discount: 19, approxMo: 583 },
annual: { price: 5788, discount: 33, approxMo: 482 },
} as Record<string, PlanCycle>,
},
{
id: 'hk-lv2',
currency: 'HK$',
Expand Down Expand Up @@ -414,19 +375,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],
[1, 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
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`). Overnight quotes are included free in Nasdaq Basic. US stocks only. |
| `LONGBRIDGE_ENABLE_OVERNIGHT` | Enable overnight quote, `true` or `false` (Default: `false`). Overnight quotes are included free in US LV1. 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 - US LV1 (Only OpenAPI).

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

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 quotes are included free in Nasdaq Basic.** No quote card purchase is required.
- **Overnight quotes are included free in US LV1.** No quote card purchase is 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
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 | Included free in Nasdaq Basic; set `LONGBRIDGE_ENABLE_OVERNIGHT=true` |
| **Overnight** (US) | US pre/post-market extended-hours data | Included free in US LV1; 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**.
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 is included free in Nasdaq Basic, US stocks only; enable the `enable_overnight` parameter to receive it. |
| trade_session | int32 | No | Trading session, 0: intraday, 100: All (pre, intraday, post, overnight)<br/><br/>Note: Overnight data is included free in US LV1, US stocks only; enable the `enable_overnight` parameter to receive it. |

### Protobuf

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/stocks/history-candlestick.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ longbridge kline history NVDA.US --start 2025-01-01 --end 2025-12-31
| ∟ date | string | No | Query date, in `YYYYMMDD` format, for example: 20231016. Default value: latest trading day of the underlying market. |
| ∟ minute | string | No | Query time, in `HHMM` format, for example: 09:35, only valid when querying minute-level data |
| ∟ count | int32 | No | Count of cancdlestick, valid range:`[1,1000]`. Default value: `10` |
| trade_session | int32 | No | Trading session, 0: intraday, 100: All (pre, intraday, post, overnight)<br/><br/>Note: Overnight data is included free in Nasdaq Basic, US stocks only; enable the `enable_overnight` parameter to receive it. |
| trade_session | int32 | No | Trading session, 0: intraday, 100: All (pre, intraday, post, overnight)<br/><br/>Note: Overnight data is included free in US LV1, US stocks only; enable the `enable_overnight` parameter to receive it. |

### Protobuf

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/stocks/quote.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func main() {
| ∟∟ high | string | High |
| ∟∟ low | string | Low |
| ∟∟ prev_close | string | Close of the last trade session |
| ∟ over_night_quote | object | Quote of US overnight market<br/><br/>Note: Enable the `enable_overnight` parameter to receive it; returns null otherwise. (Overnight quotes are included free in Nasdaq Basic, US stocks only.) |
| ∟ over_night_quote | object | Quote of US overnight market<br/><br/>Note: Enable the `enable_overnight` parameter to receive it; returns null otherwise. (Overnight quotes are included free in US LV1, US stocks only.) |
| ∟∟ last_done | string | Latest price |
| ∟∟ timestamp | int64 | Time of latest price |
| ∟∟ volume | int64 | Volume |
Expand Down
Loading
Loading