Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

A stock exchange platform made with substrate for undergrad thesis

License

Notifications You must be signed in to change notification settings

hoonsubin/exchange_platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Substrate Stock Exchange Platform

A stock exchange platform made with substrate for undergrad thesis.

Limitations of the current build

  • It only supports sell/buy limit order. Market order is technically possible if there are enough traders and transactions in the market, but for now I only track the market value.

Public Functions

  • Put sell/buy order
  • Give issue rights (substitute for IPO) (sudo)
  • Revoke issue rights (sudo)
  • Change authorized shares (sudo)
  • Issue shares
  • Retire shares
  • Freeze/unfreeze market (sudo) (sudo means the caller must have sudo keys)

How to run/hack the node

First, use the following command to install Rust and the WASM toolchain

curl https://sh.rustup.rs -sSf | sh
rustup target add wasm32-unknown-unknown --toolchain nightly

Next, use the following command to build the node

./exchange_platform/scripts/build.sh && cargo build --release

You can run the developer node with the following command

./exchange_platform/target/release/exchange_platform --dev

Happy hacking!

About the thesis

This is a project developed for an Undergraduate thesis for Ritsumeikan Asia Pacific University College of International Management written by Hoon Kim. This thesis has received the Outstanding Thesis Award in the Undergraduate category.

Certification

About

A stock exchange platform made with substrate for undergrad thesis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published