All URIs are relative to https://gateway.eod-stock-api.site/api
Method | HTTP request | Description |
---|---|---|
v1_stocks_contract_call_put_id_get | GET /v1/stocks/contract/{call_put_id} | |
v1_stocks_options_stock_stock_code_get | GET /v1/stocks/options/stock/{stock_code} |
ContractResponse v1_stocks_contract_call_put_id_get(call_put_id)
given call_put_id return Contract
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.OptionsApi(api_client)
call_put_id = 'call_put_id_example' # str |
try:
api_response = api_instance.v1_stocks_contract_call_put_id_get(call_put_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling OptionsApi->v1_stocks_contract_call_put_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
call_put_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]
OptionsResponse v1_stocks_options_stock_stock_code_get(stock_code)
get Stock options data for the provided stock 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.OptionsApi(api_client)
stock_code = 'stock_code_example' # str |
try:
api_response = api_instance.v1_stocks_options_stock_stock_code_get(stock_code)
pprint(api_response)
except ApiException as e:
print("Exception when calling OptionsApi->v1_stocks_options_stock_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]