Giter Club home page Giter Club logo

workflow's Introduction

Development workflow

Project description

Rest API to manage BTC buy orders. Client places order to purchase BTC for fiat at a market price. API does not create transactions on the Bitcoin blockchain, but simply stores the order information in its database for further processing.

Requirements

  • Uses coindesk.com exchange rates
  • Currency is described with ISO3 code (EUR, GBP, USD)
  • Sum of bitcoin amount of all orders stored in the system must not exceed 100BTC. System must not allow creation of new orders which would cause the constraint to be violated.
  • BTC use a precision of 8 decimal digits, and always round up.

Prerequisites

  • docker
  • docker-compose

Running

docker-compose up

API is running locally on port 8000.

Specification

OpenApi specification is created from code and avaiable as [swagger] (http://localhost:8000/docs) (also as json spec) and redoc.

Tests

$ docker-compose run app pytest --cov=src --cov-report=term-missing

or with tox

$ tox

workflow's People

Contributors

lzukowski avatar

Stargazers

Dmitriy Shesterkin avatar Maciej Matuszczak avatar Artem B avatar Sebastian Buczyński avatar

Watchers

 avatar Sebastian Buczyński avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.