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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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