Skip to content

Commit af3ecff

Browse files
realease version 0.0.6
1 parent dddf2b3 commit af3ecff

File tree

6 files changed

+366
-2
lines changed

6 files changed

+366
-2
lines changed

src/.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ lib64/
1616
parts/
1717
sdist/
1818
var/
19-
*.egg-info/
2019
.installed.cfg
21-
*.egg
20+
2221

2322
# PyInstaller
2423
# Usually these files are written by a python script from a template
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
Metadata-Version: 2.1
2+
Name: Intelligent-Stock-Market-API
3+
Version: 0.0.6
4+
Summary: An Intelligent EOD Stock Market, Financial News & Financial Social Media Trends API
5+
Home-page: https://eod-stock-api.site
6+
Author: MJ API Development
7+
Author-email: [email protected]
8+
License: Apache 2.0
9+
Project-URL: Documentation, https://github.com/MJ-API-Development/stock-api-pythonsdk
10+
Project-URL: Source, https://github.com/MJ-API-Development/stock-api-pythonsdk
11+
Project-URL: Tracker, https://github.com/MJ-API-Development/stock-api-pythonsdk/issues
12+
Project-URL: Subscribe - API Keys, https://eod-stock-api.site/login#signup
13+
Project-URL: Intelligent Stock Market API, https://eod-stock-api.site
14+
Project-URL: API Gateway, https://gateway.eod-stock-api.site
15+
Keywords: OpenAPI,Intelligent EOD Stock Market API,EOD STOCK API,Financial News API,Financial Social Media Trends
16+
Requires-Python: >=3.7
17+
Description-Content-Type: text/markdown
18+
19+
# Intelligent EOD Stock Market API Python SDK
20+
21+
<h2>Intelligent EOD Stocks API</h2>
22+
<p>
23+
Intelligent Stock Market API provides end-of-day stock data worldwide, financial news, and financial social
24+
media trends for web application developers, researchers and service providers.
25+
The API covers over 150,000 tickers, stocks, mutual funds, and more from around the world.
26+
It offers information for any period, including daily, weekly.
27+
<ul>
28+
<li>Exchange Information</li>
29+
<li>Stock Tickers Data</li>
30+
<li>End of Day (EOD) Stock Data</li>
31+
<li>Fundamental Data</li>
32+
<li>Stock Options And Splits Data</li>
33+
<li>Financial News API</li>
34+
<li>Social Media Trend Data For Stocks</li>
35+
<li>Sentiment Analysis for News & Social Media</li>
36+
</ul>
37+
The information provided covers more than 150 000 tickers, stocks, mutual funds and more around the world.
38+
we provide information for any period, including daily, weekly.
39+
</p>
40+
41+
- API version: v1
42+
- Package version: 0.0.3
43+
44+
## Requirements.
45+
46+
Python 3.4+
47+
48+
## Installation & Usage
49+
### pip install
50+
51+
you can install directly from pypi -
52+
find our package at [Intelligent-Stock-Market-API](https://pypi.org/project/Intelligent-Stock-Market-API)
53+
54+
On Windows
55+
```sh
56+
pip install Intelligent-Stock-Market-API
57+
58+
```
59+
60+
On Linux
61+
you may need to run `pip` with root permission:
62+
```sh
63+
sudo pip install Intelligent-Stock-Market-API
64+
```
65+
66+
67+
Then import the package:
68+
```python
69+
import IntelligentStockMarketAPI
70+
```
71+
72+
### Setuptools
73+
74+
75+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
76+
77+
On Windows
78+
```sh
79+
python setup.py install --user
80+
```
81+
82+
On Linux
83+
(or `sudo python setup.py install` to install the package for all users)
84+
85+
Then import the package:
86+
```python
87+
import IntelligentStockMarketAPI
88+
```
89+
90+
## Getting Started
91+
92+
Please follow the [installation procedure](#installation--usage) and then run the following:
93+
94+
95+
#### Defining the host is optional and defaults to https://gateway.eod-stock-api.site/api
96+
#### See configuration.py for a list of all supported configuration parameters.
97+
98+
### EOD Data By Exchange and Date
99+
100+
```python
101+
from __future__ import print_function
102+
103+
import time
104+
import IntelligentStockMarketAPI
105+
from IntelligentStockMarketAPI.rest import ApiException
106+
from pprint import pprint
107+
108+
# To get your API KEY visit [Intelligent EOD Stock Market API](https://eod-stock-market-api.site/login)
109+
# and create your free acoount
110+
configuration = IntelligentStockMarketAPI.Configuration(
111+
host = "https://gateway.eod-stock-api.site/api",
112+
api_key = "SECRET API KEY"
113+
)
114+
115+
# Defining the host is optional and defaults to https://gateway.eod-stock-api.site/api
116+
# See configuration.py for a list of all supported configuration parameters.
117+
# Enter a context with an instance of the API client
118+
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
119+
# Create an instance of the API class
120+
api_instance = IntelligentStockMarketAPI.EodApi(api_client)
121+
date = '2022-02-02' # str |
122+
exchange_code = 'TO' # str | "Country"="Canada", "name": "Toronto Exchange", "operating_mic": "XTSE"
123+
124+
try:
125+
api_response = api_instance.v1_eod_date_exchange_code_get(date, exchange_code)
126+
pprint(api_response)
127+
except ApiException as e:
128+
print("Exception when calling EodApi->v1_eod_date_exchange_code_get: %s\n" % e)
129+
```
130+
131+
132+
### Exchange Details with Complete Ticker List Endpoint
133+
```python
134+
135+
from __future__ import print_function
136+
import time
137+
import IntelligentStockMarketAPI
138+
from IntelligentStockMarketAPI.rest import ApiException
139+
from pprint import pprint
140+
# Defining the host is optional and defaults to https://gateway.eod-stock-api.site/api
141+
# See configuration.py for a list of all supported configuration parameters.
142+
configuration = IntelligentStockMarketAPI.Configuration(
143+
host = "https://gateway.eod-stock-api.site/api",
144+
api_key = "SECRET API KEY"
145+
)
146+
# To get your API KEY visit [Intelligent EOD Stock Market API](https://eod-stock-market-api.site/login)
147+
148+
# Enter a context with an instance of the API client
149+
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
150+
# Create an instance of the API class
151+
api_instance = IntelligentStockMarketAPI.ExchangesApi(api_client)
152+
exchange_code = 'TO' # str | Toronto Exchange Canada
153+
154+
try:
155+
api_response = api_instance.v1_exchange_exchange_with_tickers_code_exchange_code_get(exchange_code)
156+
pprint(api_response)
157+
except ApiException as e:
158+
print("Exception when calling ExchangesApi->v1_exchange_exchange_with_tickers_code_exchange_code_get: %s\n" % e)
159+
```
160+
161+
### Latest Financial News Feed
162+
### This will return the latest financial news articles grouped by their related tickers
163+
164+
Get list of all News Upper Bound is an Integer indicating a total number of articles to return
165+
166+
```python
167+
from __future__ import print_function
168+
import time
169+
import IntelligentStockMarketAPI
170+
from IntelligentStockMarketAPI.rest import ApiException
171+
from pprint import pprint
172+
# Defining the host is optional and defaults to http://https://gateway.eod-stock-api.site/api
173+
# See configuration.py for a list of all supported configuration parameters.
174+
configuration = IntelligentStockMarketAPI.Configuration(
175+
host = "http://https://gateway.eod-stock-api.site/api",
176+
api_key = "SECRET API KEY",
177+
)
178+
179+
180+
# Enter a context with an instance of the API client
181+
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
182+
# Create an instance of the API class
183+
api_instance = IntelligentStockMarketAPI.FinancialNewsApi(api_client)
184+
upper_bound = 56 # int |
185+
try:
186+
api_response = api_instance.v1_news_articles_bounded_upper_bound_get(upper_bound)
187+
pprint(api_response)
188+
except ApiException as e:
189+
print("Exception when calling FinancialNewsApi->v1_news_articles_bounded_upper_bound_get: %s\n" % e)
190+
```
191+
192+
193+
### Get Financial News Articles By Ticker
194+
195+
### Example
196+
197+
```python
198+
from __future__ import print_function
199+
import time
200+
import IntelligentStockMarketAPI
201+
from IntelligentStockMarketAPI.rest import ApiException
202+
from pprint import pprint
203+
# Defining the host is optional and defaults to http://https://gateway.eod-stock-api.site/api
204+
# See configuration.py for a list of all supported configuration parameters.
205+
configuration = IntelligentStockMarketAPI.Configuration(
206+
host = "http://https://gateway.eod-stock-api.site/api",
207+
api_key = "SECRET API KEY",
208+
)
209+
210+
211+
# Enter a context with an instance of the API client
212+
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
213+
# Create an instance of the API class
214+
api_instance = IntelligentStockMarketAPI.FinancialNewsApi(api_client)
215+
stock_code = 'stock_code_example' # str |
216+
217+
try:
218+
api_response = api_instance.v1_news_articles_by_ticker_stock_code_get(stock_code)
219+
pprint(api_response)
220+
except ApiException as e:
221+
print("Exception when calling FinancialNewsApi->v1_news_articles_by_ticker_stock_code_get: %s\n" % e)
222+
```
223+
224+
225+
## Documentation for API Endpoints
226+
227+
All URIs are relative to *https://gateway.eod-stock-api.site/api*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
setup.cfg
2+
setup.py
3+
IntelligentStockMarketAPI/__init__.py
4+
IntelligentStockMarketAPI/api_client.py
5+
IntelligentStockMarketAPI/configuration.py
6+
IntelligentStockMarketAPI/exceptions.py
7+
IntelligentStockMarketAPI/rest.py
8+
IntelligentStockMarketAPI/api/__init__.py
9+
IntelligentStockMarketAPI/api/eod_api.py
10+
IntelligentStockMarketAPI/api/exchanges_api.py
11+
IntelligentStockMarketAPI/api/financial_news_api.py
12+
IntelligentStockMarketAPI/api/fundamentals_api.py
13+
IntelligentStockMarketAPI/api/options_api.py
14+
IntelligentStockMarketAPI/api/sentiment_api.py
15+
IntelligentStockMarketAPI/api/stocks_api.py
16+
IntelligentStockMarketAPI/models/__init__.py
17+
IntelligentStockMarketAPI/models/address_response.py
18+
IntelligentStockMarketAPI/models/analyst.py
19+
IntelligentStockMarketAPI/models/annual_balance_sheet.py
20+
IntelligentStockMarketAPI/models/annual_balance_sheet_response.py
21+
IntelligentStockMarketAPI/models/balance_sheet.py
22+
IntelligentStockMarketAPI/models/balance_sheets.py
23+
IntelligentStockMarketAPI/models/contract_response.py
24+
IntelligentStockMarketAPI/models/contracts.py
25+
IntelligentStockMarketAPI/models/eod_stock.py
26+
IntelligentStockMarketAPI/models/eod_stock_list_response.py
27+
IntelligentStockMarketAPI/models/eod_stock_response.py
28+
IntelligentStockMarketAPI/models/exchange.py
29+
IntelligentStockMarketAPI/models/exchange_list_response.py
30+
IntelligentStockMarketAPI/models/exchange_listed_companies_response.py
31+
IntelligentStockMarketAPI/models/exchange_listed_stock.py
32+
IntelligentStockMarketAPI/models/exchange_request.py
33+
IntelligentStockMarketAPI/models/exchange_response.py
34+
IntelligentStockMarketAPI/models/exchange_with_listed_tickers.py
35+
IntelligentStockMarketAPI/models/exchange_with_tickers.py
36+
IntelligentStockMarketAPI/models/general.py
37+
IntelligentStockMarketAPI/models/general_address.py
38+
IntelligentStockMarketAPI/models/general_contact.py
39+
IntelligentStockMarketAPI/models/general_listings.py
40+
IntelligentStockMarketAPI/models/general_officers.py
41+
IntelligentStockMarketAPI/models/general_response.py
42+
IntelligentStockMarketAPI/models/highlights.py
43+
IntelligentStockMarketAPI/models/highlights_response.py
44+
IntelligentStockMarketAPI/models/news.py
45+
IntelligentStockMarketAPI/models/news_response_list.py
46+
IntelligentStockMarketAPI/models/number_dividends_by_year.py
47+
IntelligentStockMarketAPI/models/options.py
48+
IntelligentStockMarketAPI/models/options_response.py
49+
IntelligentStockMarketAPI/models/payload.py
50+
IntelligentStockMarketAPI/models/public_fundamental.py
51+
IntelligentStockMarketAPI/models/public_fundamentals_response.py
52+
IntelligentStockMarketAPI/models/quarterly_balance_response.py
53+
IntelligentStockMarketAPI/models/quarterly_balance_sheet.py
54+
IntelligentStockMarketAPI/models/related_tickers.py
55+
IntelligentStockMarketAPI/models/resolution.py
56+
IntelligentStockMarketAPI/models/sentiment.py
57+
IntelligentStockMarketAPI/models/share_stats.py
58+
IntelligentStockMarketAPI/models/split_dividends.py
59+
IntelligentStockMarketAPI/models/stock.py
60+
IntelligentStockMarketAPI/models/stock1.py
61+
IntelligentStockMarketAPI/models/stock_list_request.py
62+
IntelligentStockMarketAPI/models/stock_list_response.py
63+
IntelligentStockMarketAPI/models/stock_response.py
64+
IntelligentStockMarketAPI/models/stock_trend_setters.py
65+
IntelligentStockMarketAPI/models/technicals.py
66+
IntelligentStockMarketAPI/models/thumbnail.py
67+
IntelligentStockMarketAPI/models/ticker_exchange_code.py
68+
IntelligentStockMarketAPI/models/valuations.py
69+
Intelligent_Stock_Market_API.egg-info/PKG-INFO
70+
Intelligent_Stock_Market_API.egg-info/SOURCES.txt
71+
Intelligent_Stock_Market_API.egg-info/dependency_links.txt
72+
Intelligent_Stock_Market_API.egg-info/requires.txt
73+
Intelligent_Stock_Market_API.egg-info/top_level.txt
74+
tests/test_address_response.py
75+
tests/test_analyst.py
76+
tests/test_annual_balance_sheet.py
77+
tests/test_annual_balance_sheet_response.py
78+
tests/test_balance_sheet.py
79+
tests/test_balance_sheets.py
80+
tests/test_contract_response.py
81+
tests/test_contracts.py
82+
tests/test_eod_api.py
83+
tests/test_eod_stock.py
84+
tests/test_eod_stock_list_response.py
85+
tests/test_eod_stock_response.py
86+
tests/test_exchange.py
87+
tests/test_exchange_list_response.py
88+
tests/test_exchange_listed_companies_response.py
89+
tests/test_exchange_listed_stock.py
90+
tests/test_exchange_request.py
91+
tests/test_exchange_response.py
92+
tests/test_exchange_with_listed_tickers.py
93+
tests/test_exchange_with_tickers.py
94+
tests/test_exchanges_api.py
95+
tests/test_financial_news_api.py
96+
tests/test_fundamentals_api.py
97+
tests/test_general.py
98+
tests/test_general_address.py
99+
tests/test_general_contact.py
100+
tests/test_general_listings.py
101+
tests/test_general_officers.py
102+
tests/test_general_response.py
103+
tests/test_highlights.py
104+
tests/test_highlights_response.py
105+
tests/test_news.py
106+
tests/test_news_response_list.py
107+
tests/test_number_dividends_by_year.py
108+
tests/test_options.py
109+
tests/test_options_api.py
110+
tests/test_options_response.py
111+
tests/test_payload.py
112+
tests/test_public_fundamental.py
113+
tests/test_public_fundamentals_response.py
114+
tests/test_quarterly_balance_response.py
115+
tests/test_quarterly_balance_sheet.py
116+
tests/test_related_tickers.py
117+
tests/test_resolution.py
118+
tests/test_sentiment.py
119+
tests/test_sentiment_api.py
120+
tests/test_share_stats.py
121+
tests/test_split_dividends.py
122+
tests/test_stock.py
123+
tests/test_stock1.py
124+
tests/test_stock_list_request.py
125+
tests/test_stock_list_response.py
126+
tests/test_stock_response.py
127+
tests/test_stock_trend_setters.py
128+
tests/test_stocks_api.py
129+
tests/test_technicals.py
130+
tests/test_thumbnail.py
131+
tests/test_ticker_exchange_code.py
132+
tests/test_valuations.py
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
urllib3>=1.15
2+
six>=1.10
3+
certifi
4+
python-dateutil
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IntelligentStockMarketAPI

0 commit comments

Comments
 (0)