{"id":22343578,"url":"https://github.com/datajuggler/stockdata","last_synced_at":"2025-03-26T09:43:52.243Z","repository":{"id":188537361,"uuid":"678904285","full_name":"DataJuggler/StockData","owner":"DataJuggler","description":"StockData imports daily price data from eoddata.com.","archived":false,"fork":false,"pushed_at":"2024-02-12T13:56:18.000Z","size":24824,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T11:16:29.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataJuggler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-08-15T16:45:56.000Z","updated_at":"2024-10-02T13:31:08.000Z","dependencies_parsed_at":"2023-08-15T20:15:53.008Z","dependency_job_id":"dd403a7b-bfd2-46e8-8be9-ad646fa936fa","html_url":"https://github.com/DataJuggler/StockData","commit_stats":null,"previous_names":["datajuggler/stockdata"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FStockData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FStockData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FStockData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataJuggler%2FStockData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataJuggler","download_url":"https://codeload.github.com/DataJuggler/StockData/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245631769,"owners_count":20647187,"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-12-04T08:16:25.720Z","updated_at":"2025-03-26T09:43:52.222Z","avatar_url":"https://github.com/DataJuggler.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n8.15.2023: StockData is checked into GitHub\n\n# Video for how this project was built\n\nCreate a Stock Predictor with C# and ML.NET Part I\nhttps://youtu.be/hF8LkvwOXQY\n\n# Setup Instructions\n\nUpdate 9.21.2023: If you don't want to rerun the program, you can now download the full database from\nhttps://datajuggler.com - click on the Download Tab, and the StockDataDatabaseWithData.zip is available.\n\n1. Create a SQL Server database named StockData and execute StockDataDatabase.sql located in the SQL folder.\n2. Create a connection string * and set a User level environment variable named StockDataConnString and \nset the connection string as the value. Your connection string should something like the following:\nData Source=(ServerName);Initial Catalog=StockData;Integrated Security=True;Encrypt=False;\n3. Copy the NASDAQ.txt and NYSE.txt files from the ProcessedFolder, to the Documents folder.\n4. If you ever need to rerun the files, repeat step 3 and excecute ResetStocks.sql and \nResetAll.sql, which are both located in the SQL folder of this project.\n5. Import Stocks before you process the files.\n\nThe site eoddata.com is used to create the NASDAQ.txt and NYSE.txt files. I download the latest two files\nevery night. \n\n* DataTier.Net, which built the data tier this project uses, comes with a tool called Connection Builder and\nyou will probably think it is wortht the price (of free).\n\n# Copied from ExcelerateWinApp\n\n7.24.2023: New Video\n\nThe Best C# Excel Library In The Galaxy\nhttps://youtu.be/uWXiz52cqlg\n\n# DataJuggler.StockData\nStockData is a WinForms app designed to make it easy to load and save Excel objects \nthat were created using\u003cbr\u003e\u003cbr\u003e\n\nBlazor Excelerate\u003cbr\u003e\n\nhttps://excelerate.datajuggler.com\u003cbr\u003e\nCode Generate C# Classes From Excel Header Rows\n\n# Instructions to run this project:\n\nTo Install ExcelerateWinApp via Nuget and DOT NET CLI, navigate to the folder you wish to create your project in\n\n    cd c:\\Projects\\ExcelerateWinApp\n    dotnet new install DataJuggler.Excelerate\n    dotnet new DataJuggler.Excelerate\n\n# Update 8.24.2023\n\nI perform the following query to find stocks that are no longer listed\nChange the date to the last date you have data for.\n\nSelect * From StockStreak Where CurrentStreak = 1\nAnd StreakEndDate \u003c '2023-08-23' \n\nI also added a stored procedure to delete the stock from the following tables\nStock, StockStreak, DailyPriceData\n\nExec RemoveStock @StockId\n\n# How the Stocks were imported\n\n1. The project has two .xlsx files located in Documents\\Stocks of this project.\nThe .xlsx files were created using NASDAQ.com https://www.nasdaq.com/market-activity/stocks/screener \nThe two Excel files were created by saving the .csv for NASDAQ and NYSE in Excel as a .xlsx extension.\n\nThe C# classes were code generated from\n\nBlazor Excelerate\u003cbr\u003e\nhttps://excelerate.datajuggler.com\u003cbr\u003e\n\nUse StockData.Objects for the namespace or rename this project to your liking\n \n2. Copy the classes created into the Objects folder of StockData (this is already done for this project)\n\n3. Load Excel Worksheet(s) - Example is included Import Stocks button click event.\n\t\n       // load your object(s)\n       string workbookPath = FileSelector.Text;\n\n       // Example WorksheetInfo objects           \n       WorksheetInfo info = new WorksheetInfo();\n       info.LoadColumnOptions = LoadColumnOptionsEnum.LoadAllColumnsExceptExcluded;\n       info.Path = workbookPath;\t\n\n       // Set your SheetName\n       info.SheetName = \"Address\";\n\n       // Example WorksheetInfo objects           \n       WorksheetInfo info2 = new WorksheetInfo();\n       info2.LoadColumnOptions = LoadColumnOptionsEnum.LoadAllColumnsExceptExcluded;\n       info2.Path = workbookPath;\n\n       // Set the SheetName for info2\n       info2.SheetName = 'States\";\n\n       // Example load Worksheets\n       Worksheet addressWorksheet = ExcelDataLoader.LoadWorksheet(workbookPath, info);\n       Worksheet statesWorksheet = ExcelDataLoader.LoadWorksheet(workbookPath, info2);\n\n5. Load your list of objects\n \n        // Examples loading the Address and States sheet from MemberData.xlsx\n        List\u003cAddress\u003e addresses = Address.Load(addressWorksheet);\n        List\u003cStates\u003e states = States.Load(statesWorksheet);\n\n6. Perform updates on your List of objects\n\n   For this example, I inserted a column StateName into the Address sheet in Excel and\n   added a few state names manually. You must add a few entries so the data type can be\n   attempted to be determined. Then I code generated Address and States classes using\n   Blazor Excelerate\u003cbr\u003e\n   https://excelerate.datajuggler.com\n\n   This method set the Address.StateName for each row by looking up the State Name by StateId\n\t\n       /// \u003csummary\u003e\n       /// Lookup the StateName for each Address object by StateId\n       /// \u003c/summary\u003e\n       public void FixStateNames(ref List\u003cAddress\u003e addresses, List\u003cStates\u003e states)\n       {\n           // verify both lists exists and have at least one item\n           if (ListHelper.HasOneOrMoreItems(addresses, states))\n           {\n              // Iterate the collection of Address objects\n              foreach (Address address in addresses)\n              {\n                  // get a local copy\n                  int stateId = address.StateId;\n\n                  // set the stateName\n                  address.StateName = states.Where(x =\u003e x.Id == stateId).FirstOrDefault().Name;\n\n                  // Increment the value for Graph\n                  Graph.Value++;\n\n                  // update the UI every 100\n                  if (Graph.Value % 100 == 0)\n                  {\n                      Refresh();\n                      Application.DoEvents();\n                   }\n              }\n           }\n        }\n\t\n7. Save your worksheet back to Excel\n\n       // resetup the graph                    \n       Graph.Maximum = addresses.Count;\n       Graph.Value = 0;\n\n       // change the text\n       StatusLabel.Text = \"Saving Addresses please wait...\";\n\n       // you must convert the list objects to List\u003cIExcelerateObject\u003e before it can be saved\n       List\u003cIExcelerateObject\u003e excelerateObjectList = addresses.Cast\u003cIExcelerateObject\u003e().ToList();\n\n       // Now save the worksheet\n       SaveWorksheetResponse response = ExcelHelper.SaveWorksheet(excelerateObjectList, addressWorksheet, info, SaveWorksheetCallback, 500);\n\n8. (Optional) Leave a Star on DataJuggler.Excelerate, Blazor Excelerate or this project on GitHub\n\n    DataJuggler.Excelerate\n    https://github.com/DataJuggler/Excelerate\n\n    Blazor Excelerate\n    https://github.com/DataJuggler/Blazor.Excelerate\n\t\n    Excelerate Win App\n    https://github.com/DataJuggler/StockData\n\n9. (Optional) Subscribe to my YouTube channel\n    https://youtube.com/DataJuggler\n\n# News\n\n1.0.5:\n7.24.203: Some bug fixes were found when I made this video. The project seems pretty stable.\n\n7.24.2023: New Video\n\nThe Best C# Excel Library In The Galaxy\nhttps://youtu.be/uWXiz52cqlg\n\nAlso, NuGet package DataJuggler.Excelerate was updated with links to this project.\n\n1.0.0\n7.23.2023: First Working Version Released\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatajuggler%2Fstockdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatajuggler%2Fstockdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatajuggler%2Fstockdata/lists"}