Market News API is an API that gives you access to thousands of news articles about international financial markets.
- CNBC
- Nasdaq
- Marketwatch
- Wallstreet Journal
- Business Insider
Model Feed ObjectsAdd more sourcesAdd auto runCreate Different Feed TypesAdd Express Server- Publish API
- Discord Bot
- Dates are not in the same timezone accross stations
The auto run feature scans stations in the background and only prints to the screen articles that are not in our database. Essentially it logs out new articles that have just been released. This is useful for a live news feed. Right now it is only accessible through a command prompt, but the next step will be to advertise the logs publically and allow clients to connect and listen to new messages being sent out. WebSockets will most likely be used for this.
- Top News
- CNBC > Top News
- World News
- CNBC > World News
- Nasdaq > International
- Wallstreet Journal > World News
- U.S. News
- CNBC > US News
- Nasdaq > US Markets
- Wallstreet Journal > US Business
- Economy
- CNBC > Economy
- Nasdaq > Economy
- Nasdaq > Taxes
- Nasdaq > Credit and Debt
- Nasdaq > Banking and Loans
- Politics
- CNBC > Politics
- Markets
- CNBC > Market Insider
- CNBC > Trader Talk
- CNBC > Options Action
- Nasdaq > Stocks
- Nasdaq > Options
- Nasdaq > US Markets
- Wallstreet Journal > Market News
- Financial
- CNBC > Finance
- CNBC > Wealth
- CNBC > Personal Finance
- CNBC > Financial Advisors
- CNBC > Small Business
- Technology
- CNBC > Technology
- Nasdaq > Technology
- Wallstreet Journal > Technology: What's News
- Business
- CNBC > Business
- CNBC > Small Business
- Nasdaq > Business
- Nasdaq > Small Business
- Wallstreet Journal > US Business
- Industry Sectors (Break down into sub-feeds)
- CNBC > Healthcare
- CNBC > Real Estate
- CNBC > Autos
- CNBC > Retail
- CNBC > Energy
- CNBC > Media
- CNBC > Travel
- Nasdaq > Real Estate
- ETF & Futures
- CNBC > Futures Now
- Nasdaq > ETFs
- Nasdaq > Futures
The functionality of this applications will be broken into two distict functions.
-
Scanning and Saving News Data
-
Query and Returning of already Saved Data
Both processes will function independently of one another
AutoScan
is a function that calls itself every 60 seconds. It will make requests to all major news stations and then save the contents into a database called stations.txt
. Once this process is done FeedScan
will run. FeedScan
is a function that reads our database and extracts relevant channels and saves it into another database called feeds.txt
. This data collection cycle is complete and we will start waiting 60 seconds to run again.
A news feed is a collection of Articles that pertain to a certain subject. By default up to 10 Articles will be sent to the client. There are a couple of filters that can be applied to this query. See below for list of filters. All news feeds can be listened to using WebSockets.
An object called FeedQueryOptions will contain all the possible filters for a query. The FeedQueryOptions will be parsed from the request body when the initial API request hits our server.
stations | string[]
: Returns articles that match one of these stations. Ex: ['cnbc'] by default, this is null. (View stations for a list of available news stations)channels | string[]
: Returns articles that match one of these channels. Ex: ['Market News'] by default, this is null. (View channels for a list of available news channels)dateStart | string
: Returns articles that are no older than this date. (Uses MM/dd/YYYY format): Ex: ['01/02/2019'] by default, this is null.dateEnd | string
: Returns articles that are no newer than this date. (Uses MM/dd/YYYY format): Ex: ['01/03/2019'] by default, this is null.titleContains | string
: Returns articles that contain this exact string in the article title. (Case insensitive): Ex: ['Google'] by default, this is null.contentContains | string
: Returns articles that contain this exact string in the article contents. (Case insensitive): Ex: ['Mark Zuckerberg'] by default, this is null.