{"action":"created","issue":{"url":"https://api.github.com/repos/epogrebnyak/mini-kep-app/issues/8","repository_url":"https://api.github.com/repos/epogrebnyak/mini-kep-app","labels_url":"https://api.github.com/repos/epogrebnyak/mini-kep-app/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/epogrebnyak/mini-kep-app/issues/8/comments","events_url":"https://api.github.com/repos/epogrebnyak/mini-kep-app/issues/8/events","html_url":"https://github.com/epogrebnyak/mini-kep-app/issues/8","id":255884913,"number":8,"title":"FRED-like API interface","user":{"login":"epogrebnyak","id":9265326,"avatar_url":"https://avatars3.githubusercontent.com/u/9265326?v=4","gravatar_id":"","url":"https://api.github.com/users/epogrebnyak","html_url":"https://github.com/epogrebnyak","followers_url":"https://api.github.com/users/epogrebnyak/followers","following_url":"https://api.github.com/users/epogrebnyak/following{/other_user}","gists_url":"https://api.github.com/users/epogrebnyak/gists{/gist_id}","starred_url":"https://api.github.com/users/epogrebnyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epogrebnyak/subscriptions","organizations_url":"https://api.github.com/users/epogrebnyak/orgs","repos_url":"https://api.github.com/users/epogrebnyak/repos","events_url":"https://api.github.com/users/epogrebnyak/events{/privacy}","received_events_url":"https://api.github.com/users/epogrebnyak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-07T10:08:37Z","updated_at":"2017-09-07T13:27:28Z","closed_at":null,"author_association":"OWNER","body":"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. \r\n\r\nThis is fantasy url system for this app:\r\n\r\n\r\n```\r\n# dataset varname domain\r\n# can also be 'oil', 'china', 'us'  \r\n# the idea is to make varibale name like INDPRO short but need reference to country somewhere\r\n/ru   # Russian macro stats     \r\n\r\n/all - global namespace to get many variable from different sources\r\n\r\n/domains # list all domains\r\n\r\n# similar to FRED\r\n# list available categories in this domain\r\n# note in FRED categories are a graph (each id has parent id)\r\n/ru/categories\r\n\r\n# list all variables\r\n/ru/names\r\n\r\n#indicator homepage, returns an html with graph and description \r\n/ru/series/INDPRO\r\n\r\n\r\n# note fred has two functions \r\n# one for the series info\r\n# https://research.stlouisfed.org/docs/api/fred/series.html\r\n# other for data\r\n# https://research.stlouisfed.org/docs/api/fred/series_observations.html\r\n\r\n# for the data must return something feedable to pd.read_json()\r\n\r\n#actual data retrieved by <frequency>/<mod>, where <mod> is a mix of unit or transformation\r\n/ru/series/INDPRO/a/yoy \r\n/ru/series/INDPRO/q/rog \r\n/ru/series/INDPRO/m/rog\r\n\r\n# some other data \r\n/oil/series/BRENT/m/eop\r\n/oil/series/BRENT/a/avg\r\n\r\n#can we just keep it without unit sometimes? adding usd is not symmetric to eop/avg\r\n/oil/series/BRENT/d/\r\n\r\n# to experiment with notation - domain with underscore\r\n/cbr_fx/series/USDRUR/d/\r\n/cbr_fx/series/USDRUR/m/eop\r\n/cbr_fx/series/USDRUR/y/avg\r\n\r\n# as in https://fedstat.ru/indicator/37393\r\n/ru_export/series/COPPER/m/vol\r\n/ru_export/series/COPPER/m/price\r\n\r\n\r\n#available frequencies and modifications\r\n/cbr_fx/series/USDRUR/freq #will list a subset of h,d,w,m,q,y\r\n/cbr_fx/series/USDRUR/mod  #will list eop, avg\r\n\r\n#truncating data \r\n# reason: eg in USDRUR daily from 1991 is a lot of datapoints, may want just few latest one\r\n# how about truncating by a year\r\n/cbr_fx/series/USDRUR/m/eop/2017\r\n\r\n#finalising data format - probably not a good idea - \r\ncsv/cbr_fx/series/USDRUR/m/eop\r\nxlsx/cbr_fx/series/USDRUR/m/eop\r\nxls/cbr_fx/series/USDRUR/m/eop\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/epogrebnyak/mini-kep-app/issues/comments/327798829","html_url":"https://github.com/epogrebnyak/mini-kep-app/issues/8#issuecomment-327798829","issue_url":"https://api.github.com/repos/epogrebnyak/mini-kep-app/issues/8","id":327798829,"user":{"login":"epogrebnyak","id":9265326,"avatar_url":"https://avatars3.githubusercontent.com/u/9265326?v=4","gravatar_id":"","url":"https://api.github.com/users/epogrebnyak","html_url":"https://github.com/epogrebnyak","followers_url":"https://api.github.com/users/epogrebnyak/followers","following_url":"https://api.github.com/users/epogrebnyak/following{/other_user}","gists_url":"https://api.github.com/users/epogrebnyak/gists{/gist_id}","starred_url":"https://api.github.com/users/epogrebnyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epogrebnyak/subscriptions","organizations_url":"https://api.github.com/users/epogrebnyak/orgs","repos_url":"https://api.github.com/users/epogrebnyak/repos","events_url":"https://api.github.com/users/epogrebnyak/events{/privacy}","received_events_url":"https://api.github.com/users/epogrebnyak/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T13:27:28Z","updated_at":"2017-09-07T13:27:28Z","author_association":"OWNER","body":"Предполагаемая единица хранения:\r\n```<НАЗВАНИЕ_ПЕРЕМЕННОЙ>-<единица_изм>-<дата>-<значение>-<частота>-<домен>```"}}
{"actor":{"display_login":"epogrebnyak"}}