{"id":25898481,"url":"https://github.com/canastro/wolfy-brain","last_synced_at":"2026-06-08T00:32:11.815Z","repository":{"id":43627484,"uuid":"71693671","full_name":"canastro/wolfy-brain","owner":"canastro","description":"Neural Network for the Wolfy project","archived":false,"fork":false,"pushed_at":"2016-11-02T18:22:45.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T20:08:53.254Z","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/canastro.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}},"created_at":"2016-10-23T09:36:46.000Z","updated_at":"2016-10-23T09:38:32.000Z","dependencies_parsed_at":"2022-09-10T23:40:26.412Z","dependency_job_id":null,"html_url":"https://github.com/canastro/wolfy-brain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canastro%2Fwolfy-brain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canastro%2Fwolfy-brain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canastro%2Fwolfy-brain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canastro%2Fwolfy-brain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canastro","download_url":"https://codeload.github.com/canastro/wolfy-brain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587818,"owners_count":19986628,"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":"2025-03-03T00:18:58.048Z","updated_at":"2026-06-08T00:32:11.770Z","avatar_url":"https://github.com/canastro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probe Stock Market\n## Goal\nThis project is my attempt to gather multiple sources of knowledge and make wiser decisions on when to buy/sell securities.\n\n## How it works?\n### Data collected:\nAt the moment this project collects the following information:\n* Articles from bloomberg, cnbc, reuters, seeking-alpha, wcj and yahoo;\n* Tweets\n* Ratings on nasdaq.com website\n* Prices\n\n### Process Data:\n* **Sentiment analysis:** From the articles and tweets is extracted the sentiment. The sentiment of a tweet also reflects the number of followers and the number of favorites (the ratio that this impacts the sentiment still needs some testing to reach more realistic values).\n* **Technical Analysis:** From the price variations the engine will look for known patterns to trigger alerts of possible changes\n* **Neural Network:** Taking advantage of the massive amount of available data, a neural network is fed with prices and it will try to learn to predict how normally price oscillations occur.\n\n## Future works\n* Improve sentiment analysis, comparing text against a list of words is not accurate enough;\n* Apply technical analysis on the price data collected;\n* Create a client website for management and consultation of graphs (price, sentiment, ratings, etc.);\n\n## Technology\nI've never made a \"big\" nodejs project, so this was also my opportunity to try out some stuff.\n\nSome of the relevant libraries used:\n* **cheerio** - used for webscraping\n* **graphql** - instead of the traditional RESTfull services\n* **graffiti \u0026 graffiti-mongoose** - wrapper around graphql which remove some boilerplate reusing the models from mongoose and offering queries and mutations out of the box\n* **node-schedule** - job scheduler with DSL similar to unix cronjob\n* **nodemailer** - to send out emails with the daily reports\n* **sentiment** - AFINN-based sentiment analysis library\n* **twit** - use twitter API\n* **winston** - logging\n* **zmq** - ZeroMQ, a queue library\n* **synaptic** - Architecture-free neural network library\n* **commander** - Command-line interfaces\n\n## Usage\n\n### Run appplication\n* npm run start\n* mongod\n\n### Run neural network\n* npm run neural\n\n### Seed / Test commands\n* ./seed/index.js price --interval 30 --period 20 --reset\n* ./seed/index.js reports --since 3\n* ./seed/index.js tweets --since 10\n* ./seed/index.js train --symbol TSLA\n* ./seed/index.js addprice\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanastro%2Fwolfy-brain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanastro%2Fwolfy-brain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanastro%2Fwolfy-brain/lists"}