longbridge statement
Download and export account statements — daily settlement summaries or monthly reports.
Basic Usage
longbridge statement| date | file_key |
|------------|--------------------------------------|
| 2026-04-10 | stmt_daily_20260410_abc123 |
| 2026-04-09 | stmt_daily_20260409_def456 |
| 2026-04-08 | stmt_daily_20260408_ghi789 |
...Examples
List recent daily statements
longbridge statement
# Specify a start date and limit
longbridge statement --start-date 20260401 --limit 10Lists available daily statements with their dates and file keys. File keys are used with the export subcommand.
List monthly statements
longbridge statement --type monthly
# Limit to last 6 months
longbridge statement --type monthly --limit 6Returns monthly summary statements instead of daily ones.
List statements (subcommand form)
longbridge statement list
longbridge statement list --type daily --start-date 20260401Equivalent to longbridge statement — the list subcommand makes the intent explicit.
Export a statement to terminal
longbridge statement export --file-key stmt_daily_20260410_abc123Prints all non-empty sections of the statement as Markdown to stdout. Use a file_key from longbridge statement list.
Export specific sections
# Export only equity holdings and stock trades
longbridge statement export --file-key stmt_daily_20260410_abc123 --section equity_holdings --section stock_tradesAvailable sections include: asset, account_balances, equity_holdings, account_balance_changes, stock_trades, equity_holding_changes, option_trades, fund_trades, and more.
Export as CSV files
# Export all sections to a directory as CSV
longbridge statement export --file-key stmt_daily_20260410_abc123 -o ./statements/
# Export specific sections as CSV
longbridge statement export --file-key stmt_daily_20260410_abc123 --section equity_holdings --export-format csv -o ./statements/When -o is provided, the default export format switches to CSV. Each section is saved as a separate file in the output directory.
Requirements
A valid OAuth login is required. Run longbridge login if you have not yet authenticated.