Giter Club home page Giter Club logo

pythontechnicaltest's Introduction

Origin Markets Backend Test

Implementation

superuser login:

account: origin

password: origin

token: Token 86853d0d9abab75e6db091901164bfe59e6390dd

Spec:

We would like you to implement an api to: ingest some data representing bonds, query an external api for some additional data, store the result, and make the resulting data queryable via api.

  • Fork this hello world repo leveraging Django & Django Rest Framework. (If you wish to use something else like flask that's fine too.)
  • Please pick and use a form of authentication, so that each user will only see their own data. (DRF Auth Options)
  • We are missing some data! Each bond will have a lei field (Legal Entity Identifier). Please use the GLEIF API to find the corresponding Legal Name of the entity which issued the bond.
  • If you are using a database, SQLite is sufficient.
  • Please test any additional logic you add.

Project Quickstart

Inside a virtual environment running Python 3:

  • pip install -r requirement.txt
  • ./manage.py runserver to run server.
  • ./manage.py test to run tests.

API

We should be able to send a request to:

POST /bonds/

to create a "bond" with data that looks like:

{
    "isin": "FR0000131104",
    "size": 100000000,
    "currency": "EUR",
    "maturity": "2025-02-28",
    "lei": "R0MUWSFPU8MPRO8K5P83"
}

We should be able to send a request to:

GET /bonds/

to see something like:

[
    {
        "isin": "FR0000131104",
        "size": 100000000,
        "currency": "EUR",
        "maturity": "2025-02-28",
        "lei": "R0MUWSFPU8MPRO8K5P83",
        "legal_name": "BNPPARIBAS"
    },
    ...
]

We would also like to be able to add a filter such as: GET /bonds/?legal_name=BNPPARIBAS

to reduce down the results.

pythontechnicaltest's People

Contributors

robert-taylor-origin avatar dependabot[bot] avatar danieltsanghang avatar resleyr avatar resinderate 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.