Skip to main content

SBI Securities parser plugin for Insighta CLI

Project description

insighta-sbi-tool

insighta-cli 用の SBI証券パーサープラグイン。

インストール

pip install insighta-sbi-tool

insighta-cliinsighta-sdk が依存関係として自動インストールされます。

使い方

# SBI取引履歴をCSVにパース
insighta --work sbi-us-stocks parse

# パース結果を現在の保有銘柄と照合
insighta --work sbi-us-stocks verify

認証

insighta.cloud/settingsDeveloper タブから API キーを取得し、保存します:

insighta config --credentials credentials.yaml

credentials.yaml の形式:

api_key: "your-api-key-here"
endpoint: "https://openapi.insighta.cloud"

対応フォーマット

種類 形式 エンコーディング
注文履歴 HTML (Webスクレイプ) UTF-8
保有銘柄一覧 HTML (Webスクレイプ) UTF-8
約定履歴 CSV Shift_JIS
入出金振替 CSV UTF-8
外貨入出金 CSV UTF-8
為替取引 CSV Shift_JIS
配当金 CSV Shift_JIS
国内投信取引 CSV Shift_JIS

ワークスペース構成

workspaces/sbi-us-stocks/
├── input/
│   ├── sbi/          ← SBIファイルをここに配置(自動分類)
│   ├── seed/         ← 既存保有銘柄CSV(任意)
│   └── rate.csv      ← 為替レート期間(任意)
└── output/
    ├── history.csv   ← 生成された取引履歴
    ├── order.csv     ← 生成された注文グループ
    └── upload.yaml   ← アップロード設定

開発

pip install -e .
insighta --help

ガイドラインは CONTRIBUTING.md を参照してください。

ライセンス

CC-BY-NC-4.0 — LICENSE を参照

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insighta_sbi_tool-0.1.3.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insighta_sbi_tool-0.1.3-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file insighta_sbi_tool-0.1.3.tar.gz.

File metadata

  • Download URL: insighta_sbi_tool-0.1.3.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for insighta_sbi_tool-0.1.3.tar.gz
Algorithm Hash digest
SHA256 28b5d024ece92de09e2f3813f0bad633e98bf469ce1eef029f9e8832d9f31bf1
MD5 a69ffca05ed22317e72c45c496a66837
BLAKE2b-256 0e3caccdbd575341f28f60c55859d86b81aa4b862c51c69fc8c14b83bbfe3094

See more details on using hashes here.

File details

Details for the file insighta_sbi_tool-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for insighta_sbi_tool-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e4d2e794f29e322a9e212d9b365c9046427e490b115cbd460252d89f4dadba
MD5 c72225168793e0f83c4c23928a5d8710
BLAKE2b-256 352b4d46ec9b4528b19a4c07c6e488c4a3d1ad53f33f5c0550cff76e5f0a3cc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page