Buy-coins challenge
This application converts bitcoin rates to naira based on exchange rate and margin
Django
GraphQL (Graphene)
Follow these steps to set up the app.
$ git clone https://github.com/dbytecoderc/buy-coins-challenge.git
$ cd buy-coins-challenge
pipenv --three
pipenv shell
pipenv install
pipenv uninstall
pipenv install --sequential
python manage.py runserver
visit: http://127.0.0.1:8000/graphql/ in your browser and run the query below
query { calculatePrice(choiceType: SELL, margin: 2, exchangeRate: 360) { calculatedPrice } }