Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
/ Shuumulator Public archive

📈 Shuumulator project contains a program which continuously simulates stock trading with solid logic, a web page of Vue.js and a web application of Django. To tell the outline of the logic, it comes that if you trade following specified profit rate and loss rate, your total profit will become zero. It doesn't expect money; it is the trading for …

Notifications You must be signed in to change notification settings

yuu-eguci/Shuumulator

Repository files navigation

Shuumulator

📈 Shuumulator project contains a program which continuously simulates stock trading with solid logic, a web page of Vue.js and a web application of Django. To tell the outline of the logic, it comes that if you trade following specified profit rate and loss rate, your total profit will become zero. It doesn't expect money; it is the trading for play.

shuumulator

Description

readme

  • いんたーねっとから現在株価を取得
  • その価格をでーたべーすに保存(買付を表す)

Hours later...

  • いんたーねっとから現在株価を取得
  • でーたべーすに保存した価格から「けっこう上がった」「けっこう下がった」ら、でーたべーすに現在価格を保存(売付を表す)
  • 「けっこう」の基準は Mr.S(友達)の考えたロジックを使う

以上の処理が GitHub Actions で常時回っています。するとでーたべーすにこんなの↓が貯まる。

買った 売った 差額
A xxx yen xxx yen xxx yen
B xxx yen xxx yen - xxx yen

Purpose

  • てきとうに買って、勝率が5割になるのか確認
  • Mr.S のロジックは収支がプラマイゼロになることを意図している。そうなるのか確認

How to check it out

1

2

3

4

5

How it works

動作する様子です。

shuumulator-screen-shot1

shuumulator-screen-shot2

Installation

Create .env file. But no one can use this program but I, because you need to know the database structure.

MYSQL_HOST='xxxx'
MYSQL_USER='xxxx'
MYSQL_PASSWORD='xxxx'
MYSQL_DATABASE='xxxx'
SLACK_BOT_TOKEN='xxxx'
SLACK_MESSAGE_CHANNEL='xxxx'
pipenv install
pipenv shell

# Simulate trading.
python main.py

# Aggregate tradings.
python main_2_aggregation.py

About

📈 Shuumulator project contains a program which continuously simulates stock trading with solid logic, a web page of Vue.js and a web application of Django. To tell the outline of the logic, it comes that if you trade following specified profit rate and loss rate, your total profit will become zero. It doesn't expect money; it is the trading for …

Topics

Resources

Stars

Watchers

Forks

Languages