Skip to main content

Add your description here

Project description

Brownian

Python application

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 ...

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

brownian_stock-0.0.51.tar.gz (691.1 kB view details)

Uploaded Source

Built Distribution

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

brownian_stock-0.0.51-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

Details for the file brownian_stock-0.0.51.tar.gz.

File metadata

  • Download URL: brownian_stock-0.0.51.tar.gz
  • Upload date:
  • Size: 691.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for brownian_stock-0.0.51.tar.gz
Algorithm Hash digest
SHA256 b14def03a44536bbb33eb1f111e6fecc0115348a2eff25864767ff4576d7e371
MD5 8961a72c0375ba97b36c166d20ad1418
BLAKE2b-256 9fbf5a8f9e89ffef2f5336a1af6b496c45dbaf18e1bcbf26923bef319a500a5d

See more details on using hashes here.

File details

Details for the file brownian_stock-0.0.51-py3-none-any.whl.

File metadata

File hashes

Hashes for brownian_stock-0.0.51-py3-none-any.whl
Algorithm Hash digest
SHA256 97fe08d3b003eed206a757c7d669c40df0dbbe0d8bc47db75e427e39a499c553
MD5 6c712e18553e4cffc95f2e8c2134cde6
BLAKE2b-256 db6a55a52fac80642bc4e035ef1219ef4d804dc31aedd4ef281a00cdfe1e4a6f

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