victor-nweze-deel / coin-box

A BTC price calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KEY BADGE
AUTHOR Jiggy
BUILD STATUS Build Status
MAINTAINABILITY Maintainability
TEST COVERAGE Test Coverage

GRAPHIQL COIN-BOX

This API is A graphql-powered interface running on the ruby on rails framework.

SETUP

  • Ruby version
  • 2.6.0
  • Bundler version
  • 2.1.4
  • System dependencies
  • Once this repository is pulled, run bundle install in the working directory to install the necessary dependencies
  • Database creation
  • Run bin/rails db:create
  • How to run the test suite
  • Run bundle exec rspec spec

USAGE

SAMPLE REQUEST:

{
  calculatePrice(
    type: "sell"
    margin: 0.1
    exchangeRate: 363.5
  ) {
    price
  }
}

SAMPLE RESPONSE:

{
  "data": {
    "calculatePrice": {
      "price": 3260359.46
    }
  }
}

About

A BTC price calculator


Languages

Language:Ruby 78.2%Language:HTML 12.5%Language:JavaScript 7.9%Language:CSS 1.5%