GithubHelp home page GithubHelp logo

forex-challenge's Introduction

A local proxy for Forex rates challenge

Build a local proxy for getting Currency Exchange Rates

See details

Restrictions

  1. We limited only to 1000 requests per day.
  2. We have 72 unique pairs of courencies. Rates for them should be at max 5 minutes old.
  3. Our service should handle at least 10000 request per day.

Solution

Instead of calling One Frame API for each pair of currencies separately we will use scheduler and download rates for all 72 pairs for one call. In that way if we for example will be calling One Frame api once per 4 minutes we will consume only 360 request in 24 hours. Results of our calls we will keep in cache for 5 minutes to be able to serve our clients.

How to run

One frame API token from this page can be assigned to environment variable ONEFRAME_AUTH_TOKEN and then it's possible to run project with usual sbt run command or passed token to sbt like this: sbt '-J-DONEFRAME_AUTH_TOKEN=your-token' run
Server will listen on localhost on port 8080

forex-challenge's People

Contributors

sergeda avatar

Watchers

 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.