GithubHelp home page GithubHelp logo

michaelaoash / synch-time-fredapi Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 52 KB

Google Apps Script to FRED API for FRED series joined by date

License: BSD 2-Clause "Simplified" License

JavaScript 91.28% HTML 8.72%
economic-data federal-reserve fred google-apps-script google-sheets

synch-time-fredapi's Introduction

FRED-GoogleSheets (synch-time-fredApi)

This script pulls data series from FRED using the FRED API and joins the series by date in a Google Sheet

  • Reads list of desired FRED series and parameters (start, end, frequency, aggregation method, order, etc.) from spreadsheet
  • Joins series by date
  • The test Google Sheet provided also
    • Retrieves series metadata
    • Searches for FRED series by keyword

Use notes

  • You need:
    1. A free FRED API key available from https://research.stlouisfed.org/docs/api/api_key.html
    2. A Google Sheet with a sheet called "Series" listing the FRED code for the series and parameters for the query.
  • One-time set-up on the Google Sheet: on the Notes/Technical sheet, update the FRED API key with your FRED API key
  • Regular use:
    • Enter desired FRED series id's in column A of the sheet Series and set parameters or accept defaults in columns F through K
    • Run the script with new menu item FRED -> "Get FRED Data"
    • (On the first run, there may be a one-time authorization to permit the script to run. Follow the prompts in the dialog boxes to allow the script to run.)

Editing notes

  • Use Tools -> Script Editor to open the Google Apps Script associated with the Google Sheet
  • Use clasp to edit and manage the script locally. This facilitates going back and forth between the git repository and your Google Apps Script via a local version.

To update or modify a working version

  1. Using git: create/update your fork with the latest version from the main repository and pull from your fork to your local version.
  2. Locally: Modify the program as needed.
  3. Using clasp: login to your Apps Script and push your local version to your Apps Script. Test on Apps Script.
  4. Using clasp to pull and push, modify on either Apps Script or locally and test on Apps Script.

When done:

  1. Using clasp: final pull/push with Apps Script so that the working Apps Script matches your local version
  2. Using git: push to your fork and submit a pull request to the main repository

synch-time-fredapi's People

Contributors

michaelaoash avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

onatour

synch-time-fredapi's Issues

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.