Metadata-Version: 2.4
Name: insighta-sbi-tool
Version: 0.1.0
Summary: SBI Securities parser plugin for Insighta CLI
Project-URL: Homepage, https://insighta.cloud
Author: insighta cloud Inc.
License-Expression: CC-BY-NC-4.0
License-File: LICENSE
Keywords: insighta,parser,portfolio,sbi,securities
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: >=3.10
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: insighta-cli>=0.1.0
Requires-Dist: pandas>=2.0.0
Description-Content-Type: text/markdown

# insighta-sbi-tool

SBI Securities (Japan) parser plugin for [insighta-cli](https://github.com/insighta-cloud/insighta-cli).

## Installation

```bash
pip install insighta-sbi-tool
```

This automatically installs `insighta-cli` and `insighta-sdk` as dependencies.

## Usage

```bash
# Parse SBI trade history into CSV
insighta --work sbi-us-stocks parse

# Verify parsed data against current holdings
insighta --work sbi-us-stocks verify
```

## Supported Formats

| Type | Format | Encoding |
|------|--------|----------|
| Order history | HTML (web scrape) | UTF-8 |
| Holdings summary | HTML (web scrape) | UTF-8 |
| Trade settlement | CSV | Shift_JIS |
| Transfer history | CSV | UTF-8 |
| Foreign currency deposits | CSV | UTF-8 |
| Currency exchange | CSV | Shift_JIS |
| Dividends | CSV | Shift_JIS |
| Domestic fund trades | CSV | Shift_JIS |

## Workspace Structure

```
workspaces/sbi-us-stocks/
├── input/
│   ├── sbi/          ← Place all SBI files here (auto-classified)
│   ├── seed/         ← Pre-existing holdings CSV (optional)
│   └── rate.csv      ← Exchange rate periods (optional)
└── output/
    ├── history.csv   ← Generated trade history
    ├── order.csv     ← Generated order groups
    └── upload.yaml   ← Upload configuration
```

## Development

```bash
pip install -e .
insighta --help
```

See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## License

CC-BY-NC-4.0 — See [LICENSE](LICENSE)
