Git Product home page Git Product logo

tradingapp's Introduction

Trading App

This project was a blackbox for me, based on the requirements tried to decouple the idea and give a solution, but I'll be happy to discuss and give more detailed idea once I understand fully the requirements.

What I have introduced in this solution?

In order to have easy maintenance, I decoupled the existing hard coded one and made it much more extendable.

Introduced two endpoints

  • saving signal specifications
    • can be used internally,
    • haven't used any authentication
  • receiving signal
    • GET method
    • returns 200 when signal is present

This endpoint helps to create signals by sending a JSON and save in database (in-memory db, used for challenging purposes);

curl --location --request POST 'http://localhost:8080/create' \
    --header 'Content-Type: application/json' \
    --data-raw '{
    "signal": 16,
    "type": "SETUP",
    "calculate": true,
    "specificationss" : [{"param": 1, "value": 60}, {"param": 2, "value": 50}, {"param": 3, "value": 30}]
    }'

And, this one is to call the signals based on signal ID.

curl --location --request GET 'http://localhost:8080/api/v1/signal/1'

Thank you for reviewing my code!

tradingapp's People

Contributors

riatabduramani avatar

Watchers

 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.