- ๐ Table of Contents
- ๐ Overview
- ๐ repository Structure
- ๐ Getting Started
- ๐ค Contributing
- ๐ License
- ๐ Acknowledgments
Get the spot price of any token pair listed on curve.
โโโ Get-Curve-Spot-Price/
โโโ .build/
โ โโโ ICurvePool.json
โ โโโ IDAI.json
โ โโโ IERC20.json
โ โโโ IMATIC.json
โ โโโ IUSDC.json
โ โโโ IWBTC.json
โ โโโ IWETH.json
โ โโโ __local__.json
โโโ ape-config.yaml
โโโ contracts/
โ โโโ interfaces/
โ โโโ ICurvePool.sol
โ โโโ IDAI.sol
โ โโโ IERC20.sol
โ โโโ IMATIC.sol
โ โโโ IUSDC.sol
โ โโโ IWBTC.sol
โ โโโ IWETH.sol
โโโ poetry.lock
โโโ pyproject.toml
โโโ scripts/
โโโ constants.py
โโโ get_price.py
โโโ tokens.py
โโโ utils.py
- Clone the Get-Curve-Spot-Price repository:
git clone https://github.com/Aviksaikat/Get-Curve-Spot-Price
- Change to the project directory:
cd Get-Curve-Spot-Price
- Install the dependencies:
- install poetry
poetry install
poery ape run scripts/get_price.py
# Or
poetry shell
ape run scripts/get_price.py
poery ape test
Contributions are welcome! Here are several ways you can contribute:
- Submit Pull Requests: Review open PRs, and submit your own PRs.
- Join the Discussions: Share your insights, provide feedback, or ask questions.
- Report Issues: Submit bugs found or log feature requests for AVIKSAIKAT.
Click to expand
- Fork the Repository: Start by forking the project repository to your GitHub account.
- Clone Locally: Clone the forked repository to your local machine using a Git client.
git clone <your-forked-repo-url>
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear and concise message describing your updates.
git commit -m 'Implemented new feature x.'
- Push to GitHub: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
Once your PR is reviewed and approved, it will be merged into the main branch.