Giter VIP home page Giter VIP logo

hr-mobile-ios-test's Introduction

iOS Mobile Engineer - Technical Test

Summary

Looking at the design spec attached, you will see a market watchlist of currency pairings. Your task will be to recreate this screen which will contain some dynamic elements.

Obtaining the data

There are a few options:

  • a publicly-accessible API available here however this has been less reliable recently.
  • sign up to a brokerage that offers API access such as Oanda. You should never have to pay any fees for forex pricing data.

Specific requirements:

  • Use Kotlin (Android), or SwiftUI (iOS)
  • Use MVVM
  • The app should available on both landscape and portrait mode
  • The amount of forex pairs displayed will be determined by the amount available on the API. (Please choose 5 forex pairs at least)
  • Because the API DOES NOT provide Sell/Buy prices, you can assume that the price returned from the API is the mid-price and create the sell/buy price by adding/removing 1-10% randomly from that price (the random element would simulate the variable spread that you would see from a real broker).
  • The prices need to be regularly updated (e.g.: per second). (You can add the local MOCK service for the prices changing.)
  • When the prices update, the % change Needs to also update, ordinarily this would be calculated from the day’s open price, but since the API DOES NOT provide that, you can base the % change from the first price you receive once you launch the app. The UI should change to reflect the increase or decrease.
  • Assume the account base currency is in USD:
    • Imagine you go long $10,000 USD worth units on Each forex pairing at the first price you received.
    • The Equity is calculated by the current value of your total assets, it is also expected to change dynamically.
    • The Balance should be $10,000 USD * Number of forex pairings available.
    • The Margin / Used values on panel can be hardcoded $12,345.
  • Include Unit Tests where appropriate

Submission

Push the app to a private GitHub repo and collaborate with GitHub user ywsing-msrl.

How we will judge the test:

We will evaluate how closely the finished result matches the design. In terms of the code, providing tests, documentation, demonstrating architectural knowledge and error handling, using threading correctly where appropriate and especially correctly leveraging the functional aspects of the language (Kotlin/Swift) are all things that would be considered beneficial.

hr-mobile-ios-test's People

Contributors

jaybuidl avatar ywsing-msrl avatar

Stargazers

 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.