Giter Club home page Giter Club logo

go-exercise's Introduction

Golang Developer Assigment

Develop in Go language a service that will provide an API for retrieval of the Last Traded Price of Bitcoin for the following currency pairs:

  1. BTC/USD
  2. BTC/CHF
  3. BTC/EUR

The request path is: /api/v1/ltp

The response shall constitute JSON of the following structure:

{
  "ltp": [
    {
      "pair": "BTC/CHF",
      "amount": "49000.12"
    },
    {
      "pair": "BTC/EUR",
      "amount": "50000.12"
    },
    {
      "pair": "BTC/USD",
      "amount": "52000.12"
    }
  ]
}

You shall provide time accuracy of the data up to the last minute.

Requirements:

  1. Code shall be hosted in a remote public repository
  2. readme.md includes clear steps to build and run the app
  3. Integration tests
  4. Dockerized application

Docs

The public Kraken API might be used to retrieve the above LTP information API Documentation (The values of the last traded price is called “last trade closed”)

Building and running

	docker build -t service .
	docker run -p 80:80 service 

Testing

	go test ./...

go-exercise's People

Contributors

kogan69 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.