{"id":21006257,"url":"https://github.com/derlin/investing-historical-data","last_synced_at":"2025-05-15T01:33:48.507Z","repository":{"id":151664279,"uuid":"66081045","full_name":"derlin/investing-historical-data","owner":"derlin","description":"Fetch historical data from investing.com","archived":false,"fork":false,"pushed_at":"2018-09-01T06:45:43.000Z","size":31,"stargazers_count":40,"open_issues_count":2,"forks_count":20,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T02:03:50.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-19T12:32:03.000Z","updated_at":"2025-02-16T15:26:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"139d40e2-3b89-4acb-bfdb-ac9c9698ba4a","html_url":"https://github.com/derlin/investing-historical-data","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Finvesting-historical-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Finvesting-historical-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Finvesting-historical-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Finvesting-historical-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derlin","download_url":"https://codeload.github.com/derlin/investing-historical-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254256761,"owners_count":22040354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T08:50:23.490Z","updated_at":"2025-05-15T01:33:48.501Z","avatar_url":"https://github.com/derlin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"(see other branches for development versions)\n\n# Investing\n\nA little command-line app to download historical data from [investing.com](http://www.investing.com/) in CSV format.\n\n# Setup\n\n```\ngit clone git@github.com:derlin/investing-historical-data.git\ncd investing-historical-data\nnpm install\n```\n\n# Usage \n\nTo run the script,  use one of the following:\n```\nnpm start -- \u003cargs\u003e\nnode investing.js \u003cargs\u003e\n``` \n\n\n# Available commands\n\n\n      Commands:\n      \n        get [name|id]  get historical data\n        list           list all available commodities\n        help [cmd]     display help for [cmd]\n      \n      Options:\n      \n        -h, --help     output usage information\n        -V, --version  output the version number\n\n\n## list\n\nGet the list of available commodities.\n\n      Options:\n      \n        -h, --help            output usage information\n        -V, --version         output the version number\n        -c --country [UK|US]  list only commodities from the given country\n        -r --regex [search]   find commodities with names matching regex. Example: ca, d, \"[cad]a\"\n\n\n## get \n\nDownload historical data from [investing.com](http://www.investing.com/). By default, the result is printed to the console. Use `-f` if you want the csv te be saved directly into a file.\n\n      Options:\n      \n        -h, --help             output usage information\n        -V, --version          output the version number\n        -i --id [id]           id of the commodity to fetch\n        -s --startdate [date]  start date in MM/dd/yyyy format.\n        -e --enddate [date]    end date in MM/dd/yyyy format.\n        -f --file [file]       result file. If none, the result will be printed to the console.\n        -v --verbose           enable verbose mode.\n\n\n# Commodities\n\nThe program supports commodities from US and UK. If you need a commodity which is not listed by `list`, you can try to find its id in the _investing.com_ page. \n\nFor example, to find the id corresponding to gold:\n\n1. go to http://www.investing.com/commodities/gold;\n2. open the developer console of your navigator;\n3. in the html source file, search the string `pair_id`, for example: `\u003cdiv pair_id=\"8830\"\u003e...\u003c/div\u003e`.\n\nHere you go ! 8830 is the gold commodity id. You can not run `investing.js get -i 8830`.\n\nUsually, commodities ids are between 8800-8999 or 950000-961999. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Finvesting-historical-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderlin%2Finvesting-historical-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Finvesting-historical-data/lists"}