All URIs are relative to https://gateway.eod-stock-api.site/api Note that if you prefer you can just call this endpoints using your preferred method e.g python requests module in which case you will have to supply your api_key togather with the http request as a path parameter
Method | HTTP request | Description |
---|---|---|
v1_eod_date_exchange_code_get | GET /v1/eod/{_date}/{exchange_code} | |
v1_eod_date_exchange_code_stock_code_get | GET /v1/eod/{_date}/{exchange_code}.{stock_code} | |
v1_eod_from_to_exchange_code_get | GET /v1/eod/{_from}.{_to}/{exchange_code} | |
v1_eod_from_to_stock_code_get | GET /v1/eod/{_from}.{_to}/{stock_code} |
will return end of day data for a certain exchange on a specific date identified by exchange code
from __future__ import print_function
import IntelligentStockMarketAPI
from IntelligentStockMarketAPI.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://gateway.eod-stock-api.site/api
# See configuration.py for a list of all supported configuration parameters.
configuration = IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api",
api_key = "API KEY"
)
# Enter a context with an instance of the API client
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = IntelligentStockMarketAPI.EodApi(api_client)
date = '222-01-02' # str | YYYY-MM-DD
exchange_code = 'TO' # str | Exchange Code For Toronto Stock Exchange
try:
api_response = api_instance.v1_eod_date_exchange_code_get(date, exchange_code)
pprint(api_response)
except ApiException as e:
print(f"Exception : {e}")
Name | Type | Description | Notes |
---|---|---|---|
date | str | YYYY-MM-DD | |
exchange_code | str |
api_key : str -> can be obtained from our website at https://eod-stock-api.site
- Content-Type: "application/json"
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
will return end of day data for a certain stock at a given date
from __future__ import print_function
import IntelligentStockMarketAPI
from IntelligentStockMarketAPI.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://gateway.eod-stock-api.site/api
# See configuration.py for a list of all supported configuration parameters.
configuration = IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api",
api_key = "API KEY", # Obtain an API Key from our website at https://eod-stock-api.site/login#signup
)
# Enter a context with an instance of the API client
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = IntelligentStockMarketAPI.EodApi(api_client)
date = '2022-01-02' # str | Format YYYY-MM-DD
exchange_code = 'TO' # str | See SExchange API in order to obtain Exchange Codes
stock_code = 'AAPL' # str | Ticker Symbol for the stock you want to check EOD Data for
try:
api_response = api_instance.v1_eod_date_exchange_code_stock_code_get(date, exchange_code, stock_code)
pprint(api_response)
except ApiException as e:
print(f"Exception : {e}")
Name | Type | Description | Notes |
---|---|---|---|
date | str | YYYY-MM-DD | Date Formatted String |
exchange_code | str | TO | Toronto Exchange Canada |
stock_code | str | AAPL | Ticker Symbol as listed on Stock Exchange |
api_key str -> can be obtained from our website at https://eod-stock-api.site
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Status OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
return a list of eod historical data on exchange_code from one date to the other
from __future__ import print_function
import IntelligentStockMarketAPI
from IntelligentStockMarketAPI.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://gateway.eod-stock-api.site/api
# See configuration.py for a list of all supported configuration parameters.
configuration = IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api",
api_key = "API KEY"
)
# Enter a context with an instance of the API client
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = IntelligentStockMarketAPI.EodApi(api_client)
exchange_code = 'exchange_code_example' # str |
_to = 'to_example' # str |
_from = '_from_example' # str |
try:
api_response = api_instance.v1_eod_from_to_exchange_code_get(exchange_code, _to, _from)
pprint(api_response)
except ApiException as e:
print("Exception when calling EodApi: {}".format(e))
Name | Type | Description | Notes |
---|---|---|---|
exchange_code | str | ||
_to | str | YYYY-MM-DD | Date String |
_from | str | YYYY-MM-DD | Date String |
api_key -> can be obtained from our website at https://eod-stock-api.site
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Status OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Will return end of day data for a certain stock at a given date range , given by to and from field
from __future__ import print_function
import IntelligentStockMarketAPI
from IntelligentStockMarketAPI.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://gateway.eod-stock-api.site/api
# See configuration.py for a list of all supported configuration parameters.
configuration = IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api",
api_key = "API Key"
)
# Enter a context with an instance of the API client
with IntelligentStockMarketAPI.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = IntelligentStockMarketAPI.EodApi(api_client)
stock_code = 'MSFT' # str |
_to = '2023-01-01' # str |
_from = '2022-01-01' # str |
try:
api_response = api_instance.v1_eod_from_to_stock_code_get(stock_code, _to, _from)
pprint(api_response)
except ApiException as e:
print("Exception : {}".format(e))
Name | Type | Description | Notes |
---|---|---|---|
stock_code | str | Ticker Symbol | |
_to | str | YYYY-MM-DD | |
_from | str | YYYY-MM-DD |
api_key -> can be obtained from our website at https://eod-stock-api.site
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]