Giter VIP home page Giter VIP logo

yield_curve_repo's Introduction

yield_curve_repo's People

Contributors

ajleonardi avatar dependabot[bot] avatar

Watchers

 avatar

yield_curve_repo's Issues

Make daily yield data values clickable

  • message at the top like "the 3:m and 10Y terms ahve been inverted for x months/days/years"
  • Daily Yield Value takes you to a chart of that value over time
  • similar to comp page, should probably re-use that template

Base Template

  • HTML header: All the open graph stuff and social stuff
  • Section 1: Body
    Section2: Footer:
  • link to about page
  • link to privacy policy
  • Overview of what it is
  • dynamic version number

Yield Curve State to String (Short)

Model Function to return the text of the state of the object.

If Date is Today:

  • "The Yield Curve is inverted!"
  • "The Yield Curve is not inverted!"

If Date is not today:

  • "On , the Yield Curve was inverted!"
  • "On , the Yield Curve was not inverted!"

Tweet Daily

Each day after grabbing the treasuring details, tweet out whether the YC is inverted or not:

  • If it is inverted: "The Treasury yield curve has been inverted for x days: "
  • If it was inverted yesterday and now it's not: "The Treasury yield curve is back to normal after being inverted for x days: "
  • If it is not inverted and was not yesterday: "The Treasury yield curve is not inverted.

*Ultimately add more variety around this, e.g. if it looks like it's getting close to being inverted, etc.

Curve Data Page (MVP)

It shows:

  • The Yield Curve Status (in appropriate tense)
  • The Yield Curve Data
  • forward/backward navigation
  • formatting looks good

Definition of done:

  • has all details above
  • All language is in appropriate tense

Update Comp URLs

  • Comp URL should follow format /comp/st_label/lt_label/year/month/day?duration=xxx
  • will need to implement a get_comp function similar to the one we use for the index etc
  • test to make sure this doesn't dramatically negatively impact performance (since not fetching ID, and there's date manipulation)

Create Comp Page which Shows the Chart of the "Inversion"

  • chart shows 1 year of data
  • index on date
  • index on maybe all three: date, sty term, lty term
  • comp matrix links to this page
  • prev/next behavior (just change header to have a back button?
  • range kwarg can be used to adjust date_range
  • fix hover color change in comp matrix

Create Privacy Policy

  • write content
  • set up url etc
  • make sure home link is dynamic
  • make sure metadata is passed correctly (page title, etc)

Index Page (MVP)

Index Page is Today's yield data

It shows:

  • The Yield Curve Status (in present tense)
  • The Yield Curve Data for today
  • navigate forward and backward

Definition of Done:

  • includes above
  • all language is in present tense

Yield Curve State To String (Long)

Leverage the return from the duration of the current state to create an english language message for a given date.

this may belong in the model class.

If The Date is today:

  • "The Yield Curve Has been Inverted for x days"
  • "The Yield Curve was last Inverted x days ago"

If the date is not today:

  • "On , the Yield Curve had been inverted for x days"
  • "On , the Yield Curve had not been inverted for x days"

Fetch Data from Treasury

Function which takes: year, month?, day?

  • requests xml from treasury for date
  • for each item:
  • creates an object
  • determines if inverted
  • saves yd object
  • creates comp objects

Create Comps Grid on Yield Data Page

Create a grid which lays out which portions of the yield curve are inverted:

  • Grid has header and side labels
  • Grid looks organized
  • Row/Column labels are bold
  • Cells are color coded
  • Check number of Database calls to make sure this is working as expected (e.g. <10 db calls -- not hundreds).

Create About Page

  • write content
  • create url/view/etc
  • set up dynamic "home" link
  • make sure the metadata ("title", etc) gets passed correctly

Source of Data to cite

Update the Model to include a url as a cite-able source. This comes in from the xml. - it should point to that day's data.

DB Indexing

  • Index on date for sure
  • Index on is_inverted?

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.