Brownian
Brownianは日本株取引に対応した株取引フレームワークです。JQuantsからのデータダウンロード, 取引モデルの作成, バックテスト, 実取引まで網羅的にサポートします.
Usage
以下のサブコマンドを実行すると指定したディレクトリ以下にJQuantesから取得した情報をCSVで保存します.
brownian download <保存先のディレクトリ名>
ログイン情報の設定
またdownloadオプションには--usernameおよび--passwordオプションが用意されていて、実行時にこれらの引数を指定して実行することもできます。
これらの引数は.brownianrcの内容より優先して利用されます。
DBの更新・CSVの生成
以下のコマンドを実行すると, ダウンロードしたデータを集計してSQLiteデータベース上に格納します. またデータベースから銘柄毎の株価情報・決算情報を集計しCSVを生成します.
$ brownian download <保存先フォルダ名>
$ brownian generate <保存先フォルダ名>
ディレクトリの構成
raw_stock
JQuantsから取得した日毎の株価情報
raw_statements
JQuantsから取得した日毎の決算情報
stock
genereateコマンドで生成した銘柄毎の株価情報. 株価は調整済みの数字.
Install
各種コマンドのインストール前にvenvをactivateしてください.
python3 -m venv .venv
source .venv/bin/activate
For Developer
Prerequires
- rye
- gh
Set up
Run following commands.
rye sync
Utility commands.
- To test.
rye run pytest
- Lint and format
rye run invoke lint
rye run invoke format
Publish a release
Run the following command. This command increment the version number and make a release PR.
.bump_version.sh
test run
rye run brownian ...
Metadata
Release files for brownian-stock 0.0.51
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brownian_stock-0.0.51.tar.gz | 691.1 kB | Without provenance | Details for brownian_stock-0.0.51.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brownian_stock-0.0.51-py3-none-any.whl | Python 3 | none | any | Details for brownian_stock-0.0.51-py3-none-any.whl |
Total release size: 775.1 kB
Release files / brownian_stock-0.0.51.tar.gz
| Download URL | brownian_stock-0.0.51.tar.gz |
|---|---|
| Size | 691.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b14def03a44536bbb33eb1f111e6fecc0115348a2eff25864767ff4576d7e371
|
|
BLAKE2b-256 checksum How to use checksums |
9fbf5a8f9e89ffef2f5336a1af6b496c45dbaf18e1bcbf26923bef319a500a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / brownian_stock-0.0.51-py3-none-any.whl
| Download URL | brownian_stock-0.0.51-py3-none-any.whl |
|---|---|
| Size | 84.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97fe08d3b003eed206a757c7d669c40df0dbbe0d8bc47db75e427e39a499c553
|
|
BLAKE2b-256 checksum How to use checksums |
db6a55a52fac80642bc4e035ef1219ef4d804dc31aedd4ef281a00cdfe1e4a6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for brownian-stock 0.0.51
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.