{"id":37032302,"url":"https://github.com/orshe4/marketstack","last_synced_at":"2026-01-14T03:57:54.892Z","repository":{"id":54204930,"uuid":"290747321","full_name":"orshe4/marketstack","owner":"orshe4","description":".Net Real-Time, Intraday \u0026 Historical Stock Market Data API","archived":false,"fork":false,"pushed_at":"2021-03-03T08:31:51.000Z","size":44,"stargazers_count":21,"open_issues_count":1,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-06T08:58:20.600Z","etag":null,"topics":["api","csharp","dotnet","historical-data","marketstack","stocks-api","stocks-data"],"latest_commit_sha":null,"homepage":"","language":"C#","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/orshe4.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":"2020-08-27T10:35:15.000Z","updated_at":"2025-08-17T01:23:03.000Z","dependencies_parsed_at":"2022-08-13T09:10:37.195Z","dependency_job_id":null,"html_url":"https://github.com/orshe4/marketstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orshe4/marketstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orshe4%2Fmarketstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orshe4%2Fmarketstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orshe4%2Fmarketstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orshe4%2Fmarketstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orshe4","download_url":"https://codeload.github.com/orshe4/marketstack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orshe4%2Fmarketstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","csharp","dotnet","historical-data","marketstack","stocks-api","stocks-data"],"created_at":"2026-01-14T03:57:54.386Z","updated_at":"2026-01-14T03:57:54.877Z","avatar_url":"https://github.com/orshe4.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Marketstack API\n[![NuGet version (Marketstack)](https://img.shields.io/nuget/v/Marketstack.svg?style=flat-square)](https://www.nuget.org/packages/Marketstack/)\n\n\n[marketstack](https://marketstack.com) is a JSON-based REST API for real-time, intraday and historical stock market data, supporting 125,000+ stock ticker symbols from 72+ worldwide stock exchanges. The API was built upon powerful apilayer cloud infrastructure, handling any volume with ease - from a few API requests per day all the way to millions of calls per minute.\n\n## Give a Star! :star:\nIf you like or are using this project please give it a star. Thanks!\n\n## Supported Stock Market Data\n\n* **125.000+ Stock Tickers**\n* **72+ Stock Exchanges**\n* **50+ Countries**\n\n## In-depth Documentation\n\nAn in-depth API documentation, including interactive code examples and extensive descriptions can be found at [marketstack.com/documentation](https://marketstack.com/documentation)\n\n## Usage\n\n**Initialize MarketstackService:**\n```c#\n    var options = Options.Create(new MarketstackOptions() { ApiToken = \"apiToken\"});\n    var marketstackService = new MarketstackService(options, NullLogger\u003cMarketstackService\u003e.Instance);    \n```\n\n**GetExchanges:**\n```c#\n    var exchanges = await marketstackService.GetExchanges();\n```\n\n**GetExchangeStocks:**\n```c#\n    var nasdaqMic = \"XNAS\";\n    var stocks = await marketstackService.GetExchangeStocks(nasdaqMic);\n```    \n    \n**GetStockEodBars:**\n```c#\n    var appleSymbol = \"AAPL\";\n    var fromDate = DateTime.Now.AddDays(-200);\n    var toDate = DateTime.Now;\n    var bars = await marketstackService.GetStockEodBars(appleSymbol, fromDate, toDate);      \n```\n**Parallel Requests:**\n\nParallel requests are supported using the [Throttling Libary](https://github.com/orshe4/Throttling) that allows limiting the number of requests per second.\n\n```c#\n    var options = Options.Create(new MarketstackOptions() { ApiToken = apiKey, MaxRequestsPerSecond = 3, Https = true });\n    var marketstackService = new MarketstackService(options, NullLogger\u003cMarketstackService\u003e.Instance);\n    List\u003cstring\u003e symbols = new List\u003cstring\u003e() { \"AAPL\", \"MSFT\", \"GOOG\", \"VOD\", \"NVDA\", \"NFLX\", \"PEP\", \"NOW\", \"VEEV\", \"MOH\" };\n    var fromDate = new DateTime(2017, 9, 1);\n    var toDate = DateTime.Now;\n    var tasks = symbols.Select(async (symbol) =\u003e await marketstackService.GetStockEodBars(symbol, fromDate, toDate));\n    var stocksBars = await Task.WhenAll(tasks);\n```\n\n## Tests\n\nBefore running the tests, the ApiToken should be set using: \n\n```\nsetx ASPNETCORE_MarketstackApiToken {Your_Api_Token} /M\n```\n\n## Legal\n\nAll usage of the marketstack website, API, and services is subject to the [marketstack Terms \u0026 Conditions](https://marketstack.com/terms) and all annexed legal documents and agreements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forshe4%2Fmarketstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forshe4%2Fmarketstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forshe4%2Fmarketstack/lists"}