Skip to content

Commit e89d4ba

Browse files
authored
fix(docs): fix DCA SDKLinks method names and remove delete_dca page (#1033)
## Summary Two issues fixed in the DCA documentation (all 3 locales: zh-CN, zh-HK, en): 1. **SDKLinks method names were wrong** — the `<SDKLinks>` components referenced non-existent method names, causing broken SDK code links 2. **`delete_dca.md` removed** — the SDK has no `delete` method; the CLI example on that page already used `dca stop`, so the page was redundant with `stop_dca.md` ## SDKLinks fixes | File | Before | After | |------|--------|-------| | `list_dca.md` | `method="list_dca"` | `method="list"` | | `create_dca.md` | `method="create_dca"` | `method="create"` | | `update_dca.md` | `method="update_dca"` | `method="update"` | | `dca_history.md` | `method="dca_history"` | `method="history"` | Already correct (no change): `pause`, `resume`, `stop`, `stats`, `check_support`, `calc_date`, `set_reminder` ## Removed files (3 locales) - `docs/{locale}/docs/account/dca/delete_dca.md` — SDK has no `delete` method; functionality is covered by `stop_dca.md` ## Test plan - [x] `autocorrect --lint docs/` — no issues ✅ - [x] Local dev server verified (`npm run dev`) ✅ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 5381239 commit e89d4ba

15 files changed

Lines changed: 12 additions & 651 deletions

File tree

docs/en/docs/account/dca/create_dca.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ longbridge dca create AAPL.US --amount 500 --frequency monthly --day-of-month 15
1717
longbridge dca create TSLA.US --amount 200 --frequency weekly --day-of-week mon
1818
</CliCommand>
1919

20-
<SDKLinks module="dca" klass="DCAContext" method="create_dca" />
20+
<SDKLinks module="dca" klass="DCAContext" method="create" />
2121

2222

2323
## Parameters

docs/en/docs/account/dca/dca_history.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Get the execution history for a specific DCA plan including trade dates, amounts
1616
longbridge dca history 1225781523156889600
1717
</CliCommand>
1818

19-
<SDKLinks module="dca" klass="DCAContext" method="dca_history" />
19+
<SDKLinks module="dca" klass="DCAContext" method="history" />
2020

2121

2222
## Parameters

docs/en/docs/account/dca/delete_dca.md

Lines changed: 0 additions & 213 deletions
This file was deleted.

docs/en/docs/account/dca/list_dca.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ longbridge dca
1717
longbridge dca --status Active
1818
</CliCommand>
1919

20-
<SDKLinks module="dca" klass="DCAContext" method="list_dca" />
20+
<SDKLinks module="dca" klass="DCAContext" method="list" />
2121

2222

2323
## Parameters

docs/en/docs/account/dca/update_dca.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ longbridge dca pause 1225781523156889600
1717
longbridge dca resume 1225781523156889600
1818
</CliCommand>
1919

20-
<SDKLinks module="dca" klass="DCAContext" method="update_dca" />
20+
<SDKLinks module="dca" klass="DCAContext" method="update" />
2121

2222

2323
## Parameters

docs/zh-CN/docs/account/dca/create_dca.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ longbridge dca create AAPL.US --amount 500 --frequency monthly --day-of-month 15
1717
longbridge dca create TSLA.US --amount 200 --frequency weekly --day-of-week mon
1818
</CliCommand>
1919

20-
<SDKLinks module="dca" klass="DCAContext" method="create_dca" />
20+
<SDKLinks module="dca" klass="DCAContext" method="create" />
2121

2222

2323
## Parameters

docs/zh-CN/docs/account/dca/dca_history.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ headingLevel: 2
1616
longbridge dca history 1225781523156889600
1717
</CliCommand>
1818

19-
<SDKLinks module="dca" klass="DCAContext" method="dca_history" />
19+
<SDKLinks module="dca" klass="DCAContext" method="history" />
2020

2121

2222
## Parameters

0 commit comments

Comments
 (0)