Skip to content

Latest commit

 

History

History
61 lines (59 loc) · 4.78 KB

BackendFunctions.md

File metadata and controls

61 lines (59 loc) · 4.78 KB

Backend Functions

This is a list of all functions I worked on. It also gives a brief description of what each function is about. Any "Gotchas" faced by me are also highlighted here.

  • EV_Function.ipynb: ipynb containing all progress made by the team on producing an as of dated valution. The code uses Intrnio API to look for specific quarterly or yearly filing for a particular company. It then uses these filings of a particular as of date to produce the enterprise value.

  • FLask_learn.ipynb: Flask learning tutorial for the team.

  • workshop_fin_rough.ipynb: Initial learning tutotial and experimentation done by the team.

  • gen_footballfield.py

    • add_FOOTBALLFIELD: Posting new "football field" to database.

    • update_FF_NAME: Updates the name of the "football field" in the database.

    • delete_FOOTBALLFIELD: deletes a particular "football field" from the database.

  • app.py:

  • get_users: GET users of the app

  • add_users: POST users to the database. Receives user data from frontend and sends it to add_USERDATA.

  • sign_ins: Receives user data from frontend and sends it to sign_in.

  • add_valuations:Receives valuation data from frontend and sends it to add_VALUATION.

  • update_valuation_names: Receives use valuation name from frontend and sends it to update_VALUATION_NAME

  • update_VALUATION_METRIC: Receives new valuation metric from frontend and sends it to update_VALUATION_METRIC

  • update_valuation_stat:Receives new valuation stat from frontend and sends it to update_VALUATION_STAT

  • update_valuation_spread:Receives new valuation spread from frontend and sends it to update_VALUATION_SPREAD

  • update_valuation_color:Receives new valuation spread from frontend and sends it to update_VALUATION_COLOR

  • generate_valuations: Receives valuation and football field info to genenrate a valuation by calling the function generate_valautions

  • retrieve_valuations: GETs valuations

  • retireve_comps: GETs comps

  • retrieve_footballfields_bytarget: GET football fields by targets

  • retrieve_footballfields: GET football fields by targets and footballfieldTimeSeries

  • add_comps: POST comps. Receives comp and valuation data and sends it to add_COMP

  • delete_comps: DELETE comps. Receives comp and valuation data and sends it to delete_COMP

  • update_ff_names: Receives football field data and sends it to update_FF_NAME

  • add_targets: Receives football field data and sends it to add_TARGET

  • retreieve_targets: Retrieves targets by userId

  • retreieve_targets: Retrieves targets by symbol

  • add_footballfields: Receives data about targets and football fields and sends it to add_FOOTBALLFIELD

  • delete_footballfields: Receives data about targets and football fields and sends it to delete_FOOTBALLFIELD

  • delete_valuations: ceives data about football fields and valuations and sends it to delete_VALUATION

  • search_ticker: GETs a company's name and ticker depending on its ticker

  • get-pip.py

  • manage.py

  • models.py

  • routes.py:

  • gen_valuation.py

    • get_metrics:Gets financial metrics from the comps and the target from IEX

    • add_COMP:Adds comparables to COMPS table from IEX

    • update_VALUATION:Update the valuation's calculations. As soon as a new comp is added to the valuation, a valuation is generated and the valuation already added to the table is updated

    • get_output: Obtains the outputs (both the multiples and the enterprise value) of a valuation

    • retrieve_valuation_comps: Retrieves the comps that belong to a valuation

    • generate_valuation: Generates a valuation. Then calls update_VALUATION to update the valuation with the valuation generated

    • add_VALUATION:Adds new valuation to VALUATION table from IEX. This only contains the default values

    • update_VALUATION_NAME: Updates the name of the "valuation" in the database.

    • update_VALUATION_METRIC: Updates the field "metric" in our VALUATIONS table.

    • update_VALUATION_STAT: Updates the field "stat" in our VALUATIONS table.

    • update_VALUATION_SPREAD: Updates the field "spread" in our VALUATIONS table.

    • update_VALUATION_COLOR: Updates the field "color" in our VALUATIONS table.

    • delete_VALUATION: Deletes a "valuation" in the database.

    • delete_COMP: Deletes a "comp" in the database.

  • Targets.py

    • add_TARGET: Adds a target to the dataset

  • user_identification.py

    • add_USERDATA: Creates a user profile. Adds user data to the database so that login can be facilitated at anytime.

    • sign_in: Authenticates user's login credentials at the backend. Does this by cross checking the the user credentials with the user database in IEX cloud.

  • testing.py: File to test python functions