All URIs are relative to https://api.equibles.com
Method | HTTP request | Description |
---|---|---|
currencies | GET /stocks/exchanges/currencies | Get the list of all the currencies supported by this API. |
list | GET /stocks/exchanges/list | Get the list of all the exchanges supported by this API. |
stocks | GET /stocks/exchanges/stocks | Get all the stocks for a given exchange. |
CurrenciesResponse currencies()
Get the list of all the currencies supported by this API.
from __future__ import print_function
import time
import equibles_stocks
from equibles_stocks.rest import ApiException
from pprint import pprint
# Configure API key authorization: Query String
configuration = equibles_stocks.Configuration()
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# create an instance of the API class
api_instance = equibles_stocks.ExchangesApi(equibles_stocks.ApiClient(configuration))
try:
# Get the list of all the currencies supported by this API.
api_response = api_instance.currencies()
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangesApi->currencies: %s\n" % e)
This endpoint does not need any parameter.
[Query String](../README.md#Query String)
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExchangesResponse list()
Get the list of all the exchanges supported by this API.
from __future__ import print_function
import time
import equibles_stocks
from equibles_stocks.rest import ApiException
from pprint import pprint
# Configure API key authorization: Query String
configuration = equibles_stocks.Configuration()
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# create an instance of the API class
api_instance = equibles_stocks.ExchangesApi(equibles_stocks.ApiClient(configuration))
try:
# Get the list of all the exchanges supported by this API.
api_response = api_instance.list()
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangesApi->list: %s\n" % e)
This endpoint does not need any parameter.
[Query String](../README.md#Query String)
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FinancialAssetsResponse stocks(operating_mic)
Get all the stocks for a given exchange.
Returns a list of fully qualified ticker names. A fully qualified ticker has the following structure: [Ticker].[ExchangeMic] Example: AAPL.XNAS.
from __future__ import print_function
import time
import equibles_stocks
from equibles_stocks.rest import ApiException
from pprint import pprint
# Configure API key authorization: Query String
configuration = equibles_stocks.Configuration()
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# create an instance of the API class
api_instance = equibles_stocks.ExchangesApi(equibles_stocks.ApiClient(configuration))
operating_mic = 'operating_mic_example' # str | The operating MIC of the exchange to search.
try:
# Get all the stocks for a given exchange.
api_response = api_instance.stocks(operating_mic)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangesApi->stocks: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
operating_mic | str | The operating MIC of the exchange to search. |
[Query String](../README.md#Query String)
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]