Skip to content

A simple program for calculating cryptocurrency prices on decentralized exchanges

License

Notifications You must be signed in to change notification settings

EvanGottschalk/DEXcalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

DEXcalculator

A simple program for calculating cryptocurrency prices on decentralized exchanges
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

I initially built DEXcalculator as part of a programming challenge to find arbitrage opportunities between decentralized exchanges. Its main purpose is to calculate the prices of trading particular amounts of cryptocurrencies on particular exchanges. The particulars are chosen by user input, allowing one to find better prices for certain amounts of cryptocurrencies on different exchanges at different times.

Built With

  • Python 3.6
  • web3

Getting Started

Getting DEXcalculator up and running is easy (and free!).

Prerequisites

Before using DEXcalculator, one must create a free account on Alchemy.com to obtain an API key. The Web3 library is also required for DEXcalculator to make necessary API calls.

Installation

  1. To use DEXcalculator, one must obtain their own Alchemy API key. This is quick, simple, and free to do. 1a. First, create a free account on Alchemy.com. 1b. Next, create a blank app using the "+CREATE APP" button (the app's particular parameters are not relevant to DEXcalculator). 1c. That's it! The new API key will be displayed on the Alchemy dashboard.

  2. Install the web3 library, which is listed in requirements.txt. The easiest way to do this to download requirements.txt and use pip:

    pip install -r requirements.txt
    
  3. Download DEXcalculator.py

  4. Congratulations! DEXcalculator can now be used to calculate prices on decentralized exchanges. Simply run the .py file, input an Alchemy API key (or link), and choose the spending parameters to have the current price calculated! DEXcalculator can also be incorporated into other programs as a means of obtaining in-the-moment prices of specific amounts of cryptocurrency traded on specific exchanges.

Usage

Running DEXcalculator.py allows one to choose a cryptocurrency to spend, a cryptocurrency to receive, an amount to spend, and a decentralized exchange to do it all on. Doing so will display the price of per spent cryptocurrency of the cryptocurrency they will receive.

Importing DEXcalculator enables a program to quickly access prices of different cryptocurrencies on different decentralized exchanges. For example, the ArbitrageAggregator program uses it to find profitable arbitrage opportunities, in which a cryptocurrency is bought on one exchange and then sold on another at a higher price.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU GPL-3 License. See LICENSE for more information.

Contact

Evan Gottschalk - @Fort1Evan - magnus5557@gmail.com

Project Link: https://github.com/EvanGottschalk/DEXcalculator

Acknowledgements

Thinking about contributing to this project? Please do! Your Github username will then appear here.

About

A simple program for calculating cryptocurrency prices on decentralized exchanges

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages