All URIs are relative to https://api.equibles.com
Method | HTTP request | Description |
---|---|---|
CallList | GET /stocks/news/list | List News |
Publishers | GET /stocks/news/publishers | List Publishers |
NewsResponse CallList (string apiKey, string fullTicker, string publisherName, int? page, int? pageSize)
List News
Get the latest news for a stock.
using System;
using System.Diagnostics;
using Equibles.Stocks.Api;
using Equibles.Stocks.Client;
using Equibles.Stocks.Model;
namespace Example
{
public class CallListExample
{
public void main()
{
// Configure API key authorization: Query String
Configuration.Default.AddApiKey("apiKey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("apiKey", "Bearer");
var apiInstance = new NewsApi();
var apiKey = apiKey_example; // string |
var fullTicker = fullTicker_example; // string | The fully qualified ticker of the stock used to filter the results. Example: AAPL.XNAS (optional)
var publisherName = publisherName_example; // string | A news publisher used to filter the results. (optional)
var page = 56; // int? | The number of the page to request. (optional) (default to 1)
var pageSize = 56; // int? | The number of elements in each page. Max value: 500. (optional) (default to 100)
try
{
// List News
NewsResponse result = apiInstance.CallList(apiKey, fullTicker, publisherName, page, pageSize);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NewsApi.CallList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
apiKey | string | ||
fullTicker | string | The fully qualified ticker of the stock used to filter the results. Example: AAPL.XNAS | [optional] |
publisherName | string | A news publisher used to filter the results. | [optional] |
page | int? | The number of the page to request. | [optional] [default to 1] |
pageSize | int? | The number of elements in each page. Max value: 500. | [optional] [default to 100] |
[Query String](../README.md#Query String)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PublishersResponse Publishers (string apiKey, int? page, int? pageSize)
List Publishers
Get all the publishers.
using System;
using System.Diagnostics;
using Equibles.Stocks.Api;
using Equibles.Stocks.Client;
using Equibles.Stocks.Model;
namespace Example
{
public class PublishersExample
{
public void main()
{
// Configure API key authorization: Query String
Configuration.Default.AddApiKey("apiKey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("apiKey", "Bearer");
var apiInstance = new NewsApi();
var apiKey = apiKey_example; // string |
var page = 56; // int? | The number of the page to request. (optional) (default to 1)
var pageSize = 56; // int? | The number of elements in each page. Max value: 1000. (optional) (default to 100)
try
{
// List Publishers
PublishersResponse result = apiInstance.Publishers(apiKey, page, pageSize);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NewsApi.Publishers: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
apiKey | string | ||
page | int? | The number of the page to request. | [optional] [default to 1] |
pageSize | int? | The number of elements in each page. Max value: 1000. | [optional] [default to 100] |
[Query String](../README.md#Query String)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]