Skip to content

Commit 9045c27

Browse files
Updated Fundamentals API
1 parent cda89ff commit 9045c27

File tree

2 files changed

+434
-351
lines changed

2 files changed

+434
-351
lines changed

README.md

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ configuration = IntelligentStockMarketAPI.Configuration(
126126
# To get your API KEY visit [Intelligent EOD Stock Market API](https://eod-stock-market-api.site/login)
127127

128128
# Enter a context with an instance of the API client
129-
with IntelligentStockMarketAPI.ApiClient() as api_client:
129+
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
130130
# Create an instance of the API class
131131
api_instance = IntelligentStockMarketAPI.ExchangesApi(api_client)
132132
exchange_code = 'TO' # str | Toronto Exchange Canada
@@ -138,6 +138,69 @@ with IntelligentStockMarketAPI.ApiClient() as api_client:
138138
print("Exception when calling ExchangesApi->v1_exchange_exchange_with_tickers_code_exchange_code_get: %s\n" % e)
139139
```
140140

141+
### Latest Financial News Feed
142+
### This will return the latest financial news articles grouped by their related tickers
143+
144+
Get list of all News Upper Bound is an Integer indicating a total number of articles to return
145+
146+
```python
147+
from __future__ import print_function
148+
import time
149+
import IntelligentStockMarketAPI
150+
from IntelligentStockMarketAPI.rest import ApiException
151+
from pprint import pprint
152+
# Defining the host is optional and defaults to http://https://gateway.eod-stock-api.site/api
153+
# See configuration.py for a list of all supported configuration parameters.
154+
configuration = IntelligentStockMarketAPI.Configuration(
155+
host = "http://https://gateway.eod-stock-api.site/api",
156+
api_key = "SECRET API KEY",
157+
)
158+
159+
160+
# Enter a context with an instance of the API client
161+
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
162+
# Create an instance of the API class
163+
api_instance = IntelligentStockMarketAPI.FinancialNewsApi(api_client)
164+
upper_bound = 56 # int |
165+
try:
166+
api_response = api_instance.v1_news_articles_bounded_upper_bound_get(upper_bound)
167+
pprint(api_response)
168+
except ApiException as e:
169+
print("Exception when calling FinancialNewsApi->v1_news_articles_bounded_upper_bound_get: %s\n" % e)
170+
```
171+
172+
173+
Get Financial News Articles By Ticker
174+
175+
### Example
176+
177+
```python
178+
from __future__ import print_function
179+
import time
180+
import IntelligentStockMarketAPI
181+
from IntelligentStockMarketAPI.rest import ApiException
182+
from pprint import pprint
183+
# Defining the host is optional and defaults to http://https://gateway.eod-stock-api.site/api
184+
# See configuration.py for a list of all supported configuration parameters.
185+
configuration = IntelligentStockMarketAPI.Configuration(
186+
host = "http://https://gateway.eod-stock-api.site/api",
187+
api_key = "SECRET API KEY",
188+
)
189+
190+
191+
# Enter a context with an instance of the API client
192+
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
193+
# Create an instance of the API class
194+
api_instance = IntelligentStockMarketAPI.FinancialNewsApi(api_client)
195+
stock_code = 'stock_code_example' # str |
196+
197+
try:
198+
api_response = api_instance.v1_news_articles_by_ticker_stock_code_get(stock_code)
199+
pprint(api_response)
200+
except ApiException as e:
201+
print("Exception when calling FinancialNewsApi->v1_news_articles_by_ticker_stock_code_get: %s\n" % e)
202+
```
203+
141204

142205
## Documentation for API Endpoints
143206

0 commit comments

Comments
 (0)