Coder Social home page Coder Social logo

frontend-coding-interview's Introduction

Instructions

This task involves building a simple text UI to help people buy calls and puts on Lyra.

Ask us any questions about the expected final product, and how options or Lyra's API works. We prefer thoughtful questions, planning and correctness over completeness.

Dependencies

  1. React: A library for building user interfaces
  2. Chakra: A simple component library
  3. Next.js: A simple framework for spinning up apps

Important Notes

  1. If the strike price is greater than the spot price (current ETH value), we expect the price to go up and should buy a call. If the strike is lower than spot, we expect the price to go down and should buy a put.

    The first videos of this Khan Academy course provide a more detailed example.

  2. Markets have many expiries, and expiries have many strikes.

Setup

  1. Clone and install the application
git clone https://github.com/lyra-finance/lyra-frontend-challenge.git
yarn install
  1. Run the application
yarn dev
  1. Complete the challenge. Edit src/pages/index.ts to complete the challenge, and watch http://localhost:3000 for realtime updates.

Lyra API Reference

We have included functions to call the necessary Lyra API endpoints to complete the challenge. These are wrapped as:

fetchAllCurrencies()
  • Gets all active currencies on Lyra with their spot price
fetchInstruments(params)
  • Gets all active instruments for a given currency and type

You can access the API documentation for more details on the request parameters and respective response body.

frontend-coding-interview's People

Contributors

earthtojake avatar

Watchers

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