All URIs are relative to https://gateway.eod-stock-api.site/api
Method | HTTP request | Description |
---|---|---|
v1_stock_code_stock_code_get | GET /v1/stock/code/{stock_code} | |
v1_stocks_country_country_get | GET /v1/stocks/country/{country} | |
v1_stocks_currency_currency_get | GET /v1/stocks/currency/{currency} | |
v1_stocks_exchange_code_exchange_code_get | GET /v1/stocks/exchange/code/{exchange_code} | |
v1_stocks_exchange_id_exchange_id_get | GET /v1/stocks/exchange/id/{exchange_id} | |
v1_stocks_get | GET /v1/stocks | |
v1_stocks_post | POST /v1/stocks |
StockResponse v1_stock_code_stock_code_get(stock_code)
given stock code return stock details
from __future__ import print_function
import time
import src.IntelligentStockMarketAPI
from src.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 = src.IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api"
)
# Enter a context with an instance of the API client
with src.IntelligentStockMarketAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = src.IntelligentStockMarketAPI.StocksApi(api_client)
stock_code = 'stock_code_example' # str |
try:
api_response = api_instance.v1_stock_code_stock_code_get(stock_code)
pprint(api_response)
except ApiException as e:
print("Exception when calling StocksApi->v1_stock_code_stock_code_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
stock_code | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
0 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StockListResponse v1_stocks_country_country_get(country)
returns a list of stocks listed in a certain country
from __future__ import print_function
import time
import src.IntelligentStockMarketAPI
from src.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 = src.IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api"
)
# Enter a context with an instance of the API client
with src.IntelligentStockMarketAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = src.IntelligentStockMarketAPI.StocksApi(api_client)
country = 'country_example' # str |
try:
api_response = api_instance.v1_stocks_country_country_get(country)
pprint(api_response)
except ApiException as e:
print("Exception when calling StocksApi->v1_stocks_country_country_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
country | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
0 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StockListResponse v1_stocks_currency_currency_get(currency)
returns a list of stocks listed with a certain currency
from __future__ import print_function
import time
import src.IntelligentStockMarketAPI
from src.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 = src.IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api"
)
# Enter a context with an instance of the API client
with src.IntelligentStockMarketAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = src.IntelligentStockMarketAPI.StocksApi(api_client)
currency = 'currency_example' # str |
try:
api_response = api_instance.v1_stocks_currency_currency_get(currency)
pprint(api_response)
except ApiException as e:
print("Exception when calling StocksApi->v1_stocks_currency_currency_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
currency | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
0 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StockListResponse v1_stocks_exchange_code_exchange_code_get(exchange_code)
given an exchange_code code return a list of stocks in the exchange_code
from __future__ import print_function
import time
import src.IntelligentStockMarketAPI
from src.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 = src.IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api"
)
# Enter a context with an instance of the API client
with src.IntelligentStockMarketAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = src.IntelligentStockMarketAPI.StocksApi(api_client)
exchange_code = 'exchange_code_example' # str |
try:
api_response = api_instance.v1_stocks_exchange_code_exchange_code_get(exchange_code)
pprint(api_response)
except ApiException as e:
print("Exception when calling StocksApi->v1_stocks_exchange_code_exchange_code_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
exchange_code | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
0 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StockListResponse v1_stocks_exchange_id_exchange_id_get(exchange_id)
given an exchange_code id return a list of stocks in the exchange_code
from __future__ import print_function
import time
import src.IntelligentStockMarketAPI
from src.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 = src.IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api"
)
# Enter a context with an instance of the API client
with src.IntelligentStockMarketAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = src.IntelligentStockMarketAPI.StocksApi(api_client)
exchange_id = 'exchange_id_example' # str |
try:
api_response = api_instance.v1_stocks_exchange_id_exchange_id_get(exchange_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling StocksApi->v1_stocks_exchange_id_exchange_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
exchange_id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
0 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StockListResponse v1_stocks_get()
returns a complete list of stocks present
from __future__ import print_function
import time
import src.IntelligentStockMarketAPI
from src.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 = src.IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api"
)
# Enter a context with an instance of the API client
with src.IntelligentStockMarketAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = src.IntelligentStockMarketAPI.StocksApi(api_client)
try:
api_response = api_instance.v1_stocks_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling StocksApi->v1_stocks_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
0 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StockListResponse v1_stocks_post(body=body)
create new stocks from a list of stocks
from __future__ import print_function
import time
import src.IntelligentStockMarketAPI
from src.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 = src.IntelligentStockMarketAPI.Configuration(
host = "https://gateway.eod-stock-api.site/api"
)
# Enter a context with an instance of the API client
with src.IntelligentStockMarketAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = src.IntelligentStockMarketAPI.StocksApi(api_client)
body = src.IntelligentStockMarketAPI.StockListRequest() # StockListRequest | (optional)
try:
api_response = api_instance.v1_stocks_post(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling StocksApi->v1_stocks_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | StockListRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
0 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]