April 6, 2017 | Written by: Carlos Espejo
Categorized: How-tos | What's New
Share this post:
Accern monitors over 300 million public news websites, blogs, SEC filings, and social media websites such as Twitter in real time to help institutional investors find relevant news stories across 8,000 U.S. public equities. The company provides quantitative traders with a low-latency API data feed solution and also serves fundamental investors, proprietary traders, equity researchers, and others with a web-based portal.
Here’s a list of the types of content and data sources that Accern monitors:
- Data Sources – Acquires information from over 300 million online sources, that includes:
- Public News Websites
- Public Blogs
- Press Releases
- Social Media Sites, such as Twitter
- Financial Documents, e.g., SEC Filings
- Financial Assets Coverage – 8,000-plus U.S. public equities
- Financial Events Coverage – 1,000-plus financial events
- Financial Asset Mapping – Tickers, Bloomberg IDs
- Number of Articles Processed Each Day – 5 Million News/Blogs and 160 million Tweets
- Number of Articles Delivered Each Day – 20,000+
- Format of Data Delivered – JSON, CSV
Adding the Accern API to your Bluemix Dashboard
First, you will need to create a Bluemix account, if you do not already have one.
Sign up for Bluemix. It’s free!
To add Accern API to your Bluemix Dashboard, search for Accern in the Bluemix Catalog, and you’ll be presented with the service tile. Click on the service tile, and you’ll get the Catalog Service Details page, as shown below.
Getting your API Access Token
To activate your Accern API on Bluemix, you will need an API access token. To get an API access token, you will need to create an account. Follow the steps below to request the API access token.
Step 1: Creating an account on Accern
Go to https://app.accern.com and create an account. If you already have an account, you can login directly to the platform.
Step 2: Requesting your API access token
Once you have successfully logged in, you can click on the menu option at the top-right corner. Then, click on the API Tokens option, as shown below.
Next, choose the number of Access tokens you need and submit your request, as shown below.
Once you have requested the token, our team will review your request and the token(s) will be sent to your registered email address.
Accessing Accern API
You are now ready to access the Accern API using your authentication token. To authenticate your API call, provide your access token as shown below:
Make sure to replace TOKEN above with your token. Let us say your token is abcdxyz1234, then your request will look like this:
This API call will return the100 most recent documents in JSON format. If you want to receive data in a flattened CSV format, your API call will change to the one below:
Notice the .csv part in the url.
Passing Filter Parameters in the API Call
Accern API supports several filter parameters to segment the data to suit your needs. These parameters are last_id, index, and ticker.
||Expected index string value
When filtering by index, your API request will change as shown in the example below:
This request will fetch the 100 most recent documents that belong to any company in the S&P 500 index.
To receive documents from multiple indexes, you can pass comma-separated index string values. See the example below that illustrates this use case:
This request will fetch the 100 most recent documents that belong to any company in the S&P 500 or Dow 30 indexes.
- ticker: Filters documents by ticker. To filter by multiple tickers pass a comma-separated list of tickers. Currently, the API supports only the U.S. public equities and their corresponding tickers. Here’s an example request:
This request will fetch the 100 most recent documents that mention Amazon.com, Inc. (AMZN)
If you want to track multiple companies, you can pass a comma-separated list of tickers, as in the example request below:
This request will fetch the 100 most recent documents that mention Amazon.com, Inc. (AMZN) or Apple Corporation (AAPL).
So far, we have summarized the basic usage of the Accern API. For more advanced topics, please follow the links provided below.
If you need any technical support, like historical data access or backtest reports, feel free to drop us a note at firstname.lastname@example.org. Or, you can post a comment on this blog article. Our team will get back to you as soon as possible.