Commit Graph

62 Commits

Author SHA1 Message Date
Hogan 6109102994 docs(fundamental): add business-segments, institution-rating-views, industry-rank, industry-peers, financial-report-snapshot (#999)
## Summary

Adds documentation for 6 new fundamental SDK APIs ported from
[longbridge-terminal PR
#202](https://github.com/longbridge/longbridge-terminal/pull/202).

**18 files created** across `zh-CN`, `zh-HK`, and `en`:

| API | SDK Method | Endpoint |
|-----|-----------|----------|
| Business Segments | `business_segments` | `GET
/v1/quote/fundamentals/business-segments` |
| Business Segments History | `business_segments_history` | `GET
/v1/quote/fundamentals/business-segments/history` |
| Institutional Rating Views | `institution_rating_views` | `GET
/v1/quote/ratings/institutional` |
| Industry Ranking | `industry_rank` | `GET /v1/quote/industry/rank` |
| Industry Peer Hierarchy | `industry_peers` | `GET
/v1/quote/industries/peers` |
| Financial Report Snapshot | `financial_report_snapshot` | `GET
/v1/quote/financials/earnings-snapshot` |

## Related PRs

- SDK (Rust): https://github.com/longbridge/openapi/pull/526
- SDK (Go): https://github.com/longbridge/openapi-go/pull/91

## Test plan

- [ ] Preview renders correctly for all 3 locales
- [ ] `<SDKLinks>` components resolve to correct methods
- [ ] `<CliCommand>` blocks display expected CLI invocations
- [ ] Response JSON examples and schema tables are accurate

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-20 16:21:26 +08:00
Endless 89d39f2be1 feat: sync new SDK APIs from openapi to docs site (#962)
## Summary

Syncs new SDK interfaces introduced in openapi to the developers
documentation site, along with a range of docs, UI, and infrastructure
improvements.

## New API Documentation (EN / zh-CN / zh-HK)

### Quote APIs
- `option_volume` — option volume query
- `option_volume_daily` — daily option volume query
- `short_positions` — short position data
- `update_pinned` — update pinned securities

### Fundamental APIs
- **Calendar**: dividend, earnings, IPO, macro, split calendars
- **Fundamental**: company profile, corporate actions, dividends,
executives, financial reports, fund holdings, ratings, shareholders,
valuations
- **Market**: AH premium, broker positions, index components, market
status, trading stats, unusual items

### Account APIs
- **Alert**: create, delete, list, update alerts
- **DCA** (dollar-cost averaging): create, delete, list, update, history
- **Portfolio**: capital flow, exchange rates, profit analysis (by
market, detail, summary)
- **Sharelist**: create, delete, list, update share lists

## UI / Site Improvements

- **Pricing page**: new tri-locale pricing comparison page for market
data subscription tiers; fixes for responsive layout and static QR code
on mobile
- **FeaturesMenu**: mega-menu dropdown in main nav with 9 financial data
product categories; full i18n support
- **Nav**: moved API Reference from top nav to Docs sidebar (opens in
new tab)
- **Homepage visual polish**: neutral color vars on ArchCanvas, distinct
card accent hues, section border delineation, ProductSkill gradient,
flat GetStarted background
- **Quote permission**: added permission notices across CLI docs, API
docs, and API Reference; removed unreliable client-side permission
status detection
- **Mock login toggle**: dev-only panel to simulate login/logout state;
shared reactive `useLoginState` composable

## Docs Updates

- CLI v0.19.2 release notes + updated `finance-calendar` subcommand
examples
- Corrected quote permission names to match Quote Store (pluralization,
Nasdaq Basic rename)
- Updated skill guide to use CLI-first flow
- Fixed missing zh-HK translations

## Bug Fixes

- Fixed UnoCSS build error from arbitrary `font-feature-settings` class
- Added `result.root` null guard in `postcss.config.mjs` to prevent
PostCSS crash
- Fixed home page footer rendering
- Fixed pricing page build dist

🤖 Auto-generated by Endless.

---------

Co-authored-by: 老袁 Yuan Zhanghong <zhanghong.yuan@longbridge-inc.com>
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-05-14 18:13:11 +08:00
Hogan 655bb92075 fix(pack-skills): add environment selector + fix step id conflict (#993)
## Problem

PR #992 merged a version of `pack-skills.yml` that was **missing the
environment-selection logic**. Both canary and release always upload
regardless of what you select.

## Two root causes

1. **Wrong version merged** — the file in #992 didn't include
`workflow_dispatch` inputs, the `Resolve environment` step, or the `if:`
conditions
2. **Reserved keyword** — the step used `id: env`, but `env` is a
built-in GitHub Actions context. Using it as a step ID causes
`steps.env.outputs.*` to silently fail, making every `if:` evaluate to
`true`

## Fix

- Adds `workflow_dispatch` inputs: `canary` / `release` / `both`
(default: `canary`)
- Adds `Resolve environment` step with `id: setup` (not `env`)
- Adds `if:` conditions: canary step only runs when target is `canary`
or `both`; release step only when `release` or `both`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 17:48:26 +08:00
Hogan 47cd4e6982 ci: pack-skills with environment selector (canary/release/both) (#992)
## Summary

Adds `pack-skills.yml` — triggered by `repository_dispatch` from
`longbridge/skills` or manually via `workflow_dispatch`.

## Changes from previous version

Added `environment` input parameter:

| Value | Behaviour |
|---|---|
| `canary` (default) | Upload to canary OSS only — safe for testing, no
production impact |
| `release` | Upload to release OSS only |
| `both` | Upload to both (full release) |

## How to test safely

1. Run `workflow_dispatch` in `longbridge/developers` → select
**`canary`**
2. Verify zip files appear at `oss://lb-assets/github/canary/.../skill/`
3. Once confirmed, run with **`both`** to push to production

## Secrets used

Reuses existing secrets — no new secrets needed:
- `FE_LB_ASSET_ACCESS_KEY_ID`
- `FE_LB_ASSET_ACCESS_KEY_SECRET`

## Counterpart

PR #23 in `longbridge/skills` — sends the dispatch event (also updated
to manual-only + passes `environment`).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 12:02:34 +08:00
hold-baby 267a813a7d feat(region): add China region build with page whitelist, URL rewriti… (#405)
…ng and independent deployment

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-04-03 21:33:12 +08:00
Jason Lee 8d4dc396a7 ci: add Cloudflare Pages deployment to release workflow (#403)
## Summary

- Add `workflow_dispatch` trigger to `release.yml` for manual runs
- Deploy to Cloudflare Pages project `developers` after existing Aliyun
OSS upload (parallel deployment)

## Required Secrets

Add these to GitHub repo Secrets before merging:
- `CLOUDFLARE_API_TOKEN`
- `CLOUDFLARE_ACCOUNT_ID`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:13:40 +08:00
Jason Lee ad5c458345 chore: Fix release script to update zip. 2026-03-23 21:14:55 +08:00
xiaobo-gaga 29396ae9cc Add Discord review notification workflow 2026-02-27 17:06:17 +08:00
袁昌瑞 6b96976dfb feat: rename LongPort to Longbridge 2025-11-21 19:00:00 +08:00
Geylnu f9a57355ce fix: configure API base URL for longport-internal SDK environment (#331)
Co-authored-by: 石石 <lei.yang@longbridge-inc.com>
2025-08-18 16:02:32 +08:00
hold-baby bb3123302c Release v2 (#328)
新增针对现有的 Http 接口提供了一个在线调试面板,可在线对当前 API
的参数进行调试,便于用户更直观的查看返回结果并提供复制和下载按钮。调试默认使用模拟账户的凭证,真实账户需要手动填写

---------

Co-authored-by: 石石 <lei.yang@longbridge-inc.com>
Co-authored-by: tzyoo <tzyitooo@gmail.com>
Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2025-07-18 16:36:28 +08:00
ihavecoke 4385c55c71 Support llms-full.txt. 2025-05-09 23:44:23 +08:00
Jason Lee 8a777a29c2 chore: Switch to use Bun to dev and build. (#312) 2025-03-20 14:15:43 +08:00
ihavecoke 3ed9935014 feat: Add support for llms.txt file deployment (#306) 2025-03-19 17:40:18 +08:00
ihavecoke 5c82112707 feat: Implement raw markdown file processing and distribution (#305) 2025-03-19 14:25:33 +08:00
Jason Lee c600f580c3 Update CI to cancel previous. (#284) 2024-05-29 19:27:31 +08:00
Jason Lee f8aaec7dd7 Update autocorrect.yml (#281) 2024-05-29 19:05:15 +08:00
ihavecoke e50d2a47b8 Fixed aliyun ossutils url break issue 2023-11-03 11:03:32 +08:00
sunfuze 3dd0cfd685 Update release.yml
fix ossutil download url
2023-11-03 10:38:17 +08:00
ihavecoke 3263e9e462 Remove test branch config 2023-10-05 10:55:55 +08:00
ihavecoke 038a7df0d0 Upload relese dist file to oss 2023-10-05 10:55:55 +08:00
ihavecoke 2cc6ae77dc Upload dist to oss 2023-10-05 10:55:55 +08:00
Jason Lee e03dc22bb3 Revert "Add scripts/fix-assets-cdn.sh to replace /assets into https://static.lbkrs.com/openapi-website/assets"
This reverts commit 6d39a7bd37.
2023-08-17 17:25:57 +08:00
Jason Lee 9a052d1ba3 Merge branch 'build-test' 2023-08-17 17:25:52 +08:00
Jason Lee d4a306b6b7 Release branch to deploy 2023-08-17 17:25:20 +08:00
Jason Lee 10b35bfef2 Fix S3 cp html cache-control 2023-08-17 16:29:59 +08:00
Jason Lee 6d39a7bd37 Add scripts/fix-assets-cdn.sh to replace /assets into https://static.lbkrs.com/openapi-website/assets 2023-08-17 15:07:44 +08:00
Jason Lee 0a44c37e9c Update release.yml to upload into HK bucket 2023-08-17 14:18:24 +08:00
Jason Lee 5ff2f5cf06 Improve CI to use ReviewDog to report the AutoCorrect suggestions. (#205) 2023-08-02 10:02:03 +08:00
Jason Lee e55425bef4 查找替换 Longbridge 改为 LongPort 2023-03-09 14:39:57 +08:00
Jason Lee af9e3168b2 Add GitHub for build test for push and pull_request 2022-06-16 10:37:18 +08:00
ihavecoke 3aa5f75cbc Support canary branch deploy canary env 2022-05-05 18:48:34 +08:00
Jason Lee 9951e89e1e Update release.yml 2022-04-29 10:12:01 +08:00
Jason Lee 7fca4a36c0 Fix release CI for deploy on main branch. 2022-04-29 10:11:50 +08:00
mixbo 1baf8f715d 去掉不需要的脚本 (#45) 2022-04-28 22:54:23 +08:00
ihavecoke 0d9bee7387 调整 CI 脚本 2022-04-28 22:05:35 +08:00
Jason Lee 6faa32d8ab Merge pull request #38 from longbridgeapp/main
Create a release
2022-04-28 20:34:44 +08:00
Jason Lee e626c4b5ca Config for deploy canary with main branch 2022-04-25 20:02:03 +08:00
Jason Lee fe909f7911 调整 Swagger 自动生成的 Markdown 文件 Git ignore,只在发布的时候走 CI build 2022-04-25 19:30:26 +08:00
ihavecoke a032b0f4d0 Fix github action syntax error 2022-04-21 16:24:17 +08:00
ihavecoke fe2430835b Test relese hk upload dist 2022-04-19 15:36:18 +08:00
ihavecoke d943f772e4 Add release env action job 2022-04-19 15:21:55 +08:00
ihavecoke f0ef53d6a7 Change autocorrect jobs trigger 2022-04-19 15:21:19 +08:00
ihavecoke 2af74c4524 Change autocorrect job 2022-04-17 20:27:01 +08:00
于跃 7c89f160dd ci: add autocorrect action 2022-04-15 18:02:25 +08:00
ihavecoke afdcc1b4a1 Fix ci directory not found error 2022-04-15 12:45:17 +08:00
ihavecoke efc36220a7 Revert use canary branch deploy 2022-04-15 12:10:39 +08:00
ihavecoke 798446701d Fix tags regex to deploy canary 2022-04-15 12:07:59 +08:00
ihavecoke 1dcfec8271 Use regex tags name deploy canary 2022-04-15 12:04:27 +08:00
ihavecoke 35aee51842 Change canary action job trigger condition 2022-04-15 12:01:48 +08:00