An options exchange template built on the Ethereum blockchain with a deployer-defined common medium of exchange XToken.sol
and a user defined erc20 token used for trade. The functionality is quickly understood refering to the Call
and Put
diagrams.
- Users can use and/or customize
XToken.sol
,YToken.sol
to change and extend the base token functionality - Writing, cancelling, buying, exercising and refunding options built-in
- Brownie: Python backend blockchain framework
- Ganache: Providing local development blockchains
- Clone the repository:
git clone https://github.com/etorelan/OptionTrade.git
- Install dependencies:
cd OptionTrade/
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.env
file in the root directory and set thePRIVATE_KEY
variable to your wallet's private key:
- Create a
This project is licensed under the MIT License
- Special thanks to the developers of Solidity, Brownie, and Ganache for their tools and documentation.
- Thanks to the open-source community for providing helpful resources and tutorials.