-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
After reading https://research.stlouisfed.org/docs/api/fred/ here are some thoughts on how this app urls may look like and what they'd do.
This is fantasy url system for this app:
# dataset varname domain
# can also be 'oil', 'china', 'us'
# the idea is to make varibale name like INDPRO short but need reference to country somewhere
/ru # Russian macro stats
/all - global namespace to get many variable from different sources
/domains # list all domains
# similar to FRED
# list available categories in this domain
# note in FRED categories are a graph (each id has parent id)
/ru/categories
# list all variables
/ru/names
#indicator homepage, returns an html with graph and description
/ru/series/INDPRO
# note fred has two functions
# one for the series info
# https://research.stlouisfed.org/docs/api/fred/series.html
# other for data
# https://research.stlouisfed.org/docs/api/fred/series_observations.html
# for the data must return something feedable to pd.read_json()
#actual data retrieved by <frequency>/<mod>, where <mod> is a mix of unit or transformation
/ru/series/INDPRO/a/yoy
/ru/series/INDPRO/q/rog
/ru/series/INDPRO/m/rog
# some other data
/oil/series/BRENT/m/eop
/oil/series/BRENT/a/avg
#can we just keep it without unit sometimes? adding usd is not symmetric to eop/avg
/oil/series/BRENT/d/
# to experiment with notation - domain with underscore
/cbr_fx/series/USDRUR/d/
/cbr_fx/series/USDRUR/m/eop
/cbr_fx/series/USDRUR/y/avg
# as in https://fedstat.ru/indicator/37393
/ru_export/series/COPPER/m/vol
/ru_export/series/COPPER/m/price
#available frequencies and modifications
/cbr_fx/series/USDRUR/freq #will list a subset of h,d,w,m,q,y
/cbr_fx/series/USDRUR/mod #will list eop, avg
#truncating data
# reason: eg in USDRUR daily from 1991 is a lot of datapoints, may want just few latest one
# how about truncating by a year
/cbr_fx/series/USDRUR/m/eop/2017
#finalising data format - probably not a good idea -
csv/cbr_fx/series/USDRUR/m/eop
xlsx/cbr_fx/series/USDRUR/m/eop
xls/cbr_fx/series/USDRUR/m/eop
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels