Skip to content

Logic simulator of the Blockchain demonstration experiment of margin trading.

Notifications You must be signed in to change notification settings

maru919/BC-experiment-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BC-experiment-simulator

ブロックチェーンを利用した貸借取引実証実験のロジックのシミュレーションを行うためのリポジトリ。

Financial data

株価データは pandas-datareader を利用して Yahoo! Finance から取得。

追記@2021-07-07

現在 pandas-datareader は Yahoo! Finance の API アクセス制限?によってアクセスが正常にできない様子。 代わりにyfinance を利用してデータを取得。 License要確認。

Usage

See notebooks in /sandbox. Experiments for the thesis were executed in /sandbox/experiments.

シナリオ②(JCT 可変複数裏付け)

VariableLocalTransaction()クラスを利用して取引を再現。

sandbox/simulate_VariableLocal.ipynb を参照。

シナリオ③(JCT 固定複数裏付け)

StableTransaction()クラスを利用して取引を再現。

sandbox/simulate_Stable.ipynb を参照。

実証実験用シミュレータ

/scripts/variable_local.py の AutoAdjustmentTransaction() で実装。 sandbox/simulate_AutoAdjustment を参照。

Sandbox

検証・シミュレーション用の .ipynb ファイルなどは sandbox 以下に配置。

⚠️注記

修論提出直前に修正した箇所は煩雑になっているので時間があればリファクタします。

About

Logic simulator of the Blockchain demonstration experiment of margin trading.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published