Skip to content

Latest commit

 

History

History
62 lines (49 loc) · 3.61 KB

README.md

File metadata and controls

62 lines (49 loc) · 3.61 KB

Virtual Crypt Trade

Description:

Hello My name is Ryoga Seko. I'm from Japan. This is a video for CS 50 FinalProject.

これは仮想的に暗号資産を取引するためのWebアプリケーションです。 This is an application for trading crypt currencies virtually.

作成の背景は、私自身暗号資産に興味があるが、 ①投資するお金がない ②Volarilityが高い という理由で暗号資産の購入を躊躇してしまっていたことがあります。 There are two reasons why I created this web service. First, There are lots of people who want to invest crypt currencies, but have enough money to invest in it. Second, investint in Cryptcurrency is an incredibly volatile investment. Thus, There is a high risk of investing in it.

初心者がいきなり取引を始めるのはリスクが大きいので、 まずはシミュレーションゲームで楽しんでもら得ればと考えています。 So, I would like to people who want to start crypt investment to enjoy it while using this app.

このアプリケーションの特徴は主に3つあります。 1つ目は、ユーザーが暗号資産の売り買いを行えることです。 /buyでは、ユーザーが暗号資産を購入でき、/sellでは、売ることができます。 また、購入可能な暗号資産がどれくらいなのかを表示するアルゴリズムを作成しました。 また、ユーザーは自分の過去の売り買いの取引履歴を/transactionsから確認することができます。 There are three main features on this application. The first is that users can buy and sell crypto assets. at /buy, users can buy crypto assets, and a /sell, they can sell them. We have also created an algorithm that displays how much crypto assets are available for purchase within your budget. Users can also view their past buy and sell transaction history at /transactions.

2つ目は、どれくらいの資産の増減があるのかを一目でわかることです。 /indexでは売り買いにより生じた利益や保持している暗号資産の価値により、グラフの値が変動します。 このグラフは、javascriptのライブラリを使用して実装しました。 また、非同期通信を行う必要があったので、Pythonのajaxについて学び実装しました。 The second feature is that you can see how much your assets have increased or decreased. At /index, the value of the graph fluctuates depending on the profits generated by selling and buying and the value of the crypto assets held. This graph was implemented using a javascript library. We also needed to communicate asynchronously, so I learned about it and implemented ajax in Python.

The third third feature is the gamification element. By ranking users based on their profits, It can be possible to make trading more active and fun. The sort was implemented using bubble sort, which I learned in CS50.

This is my CS 50 final FinalProject. I'm going to release this app in a few days

次に、各Pythonモジュールの説明をします。 loop_profit.pyは、非同期通信でユーザーの利益を計算するためのモジュールです。 app.pyはメインのモジュールで、HTTPリクエストが送られた時の処理が書かれています。

Next, each Python module is explained. loop_profit.py is a module for calculating the user's profit through ajax. app.py is the main module and contains the processing when an HTTP request is requested.

データベースはSQLiteを使用しました。 Also, SQLite was used as the database.