Skip to content

k-s-t-i/bitstack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitstack Coding Challenge

The goal of this coding challenge is to create a simple bitcoin price calculator on the BTC/EUR trading pair.

Inputs:

  • BTC ask

Output:

  • Total price of BTC ask

Setup

This repository depends on Poetry as a package manager.

Run:

  • poetry install to install all dependencies
  • poetry add package-name to install any additional dependency (you can use any dependency you like)
  • poetry run pytest tests to run all tests

Running a development server:

  • You can use make run to automatically run your development server

Code formatting

Mypy and Black are used for code formatting. All code formatting rules have already been specified.

You can use the Makefile to automatically format your code. (make format)

Fetching Data

All data will be fetched from the Bitstamp Orderbook.

The orderbook returns all bids and asks on the EURBTC trading pair.

Each Ask is composed of (at minimum):

  • Bitcoin on sale
  • Price asked

Calculating Price

It is upto you to gather how you would go about calculating BTC price for large orders (> 2 BTC).

Testing

A simple fuzz-based test has already been created.

It is upto you to add test cases to help testing your bitcoin price calculator.

Your API must pass all fuzz tests as well as your own tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.4%
  • Makefile 16.6%