FINBOURNE Horizon API
Project description
finbourne-horizon-sdk
FINBOURNE Technology
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.213
- Package version: 2.0.7
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.finbourne.com
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/finbourne/horizon-sdk-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/finbourne/horizon-sdk-python.git
)
Then import the package:
import finbourne_horizon
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import finbourne_horizon
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import finbourne_horizon
from finbourne_horizon.rest import ApiException
from pprint import pprint
from finbourne_horizon import (
ApiClientFactory,
ApplicationMetadataApi,
EnvironmentVariablesConfigurationLoader,
SecretsFileConfigurationLoader,
ArgsConfigurationLoader
)
# Use the finbourne_horizon ApiClientFactory to build Api instances with a configured api client
# By default this will read config from environment variables
# Then from a secrets.json file found in the current working directory
api_client_factory = ApiClientFactory()
# The ApiClientFactory can be passed an iterable of configuration loaders to read configuration from
api_url = "https://fbn-prd.lusid.com/horizon"
# Path to a secrets.json file containing authentication credentials
# See https://support.lusid.com/knowledgebase/article/KA-01667/en-us
# for a detailed guide to setting up the SDK make authenticated calls to LUSID APIs
secrets_path = os.getenv("FBN_SECRETS_PATH")
app_name="LusidJupyterNotebook"
config_loaders = [
EnvironmentVariablesConfigurationLoader(),
SecretsFileConfigurationLoader(api_secrets_file=secrets_path),
ArgsConfigurationLoader(api_url=api_url, app_name=app_name)
]
api_client_factory = ApiClientFactory(config_loaders=config_loaders)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use
async with api_client_factory:
# Create an instance of the API class
api_instance = finbourne_horizon.InstrumentApi(api_client)
onboard_instrument_request = finbourne_horizon.OnboardInstrumentRequest() # OnboardInstrumentRequest |
try:
# [EARLY ACCESS] CreateInstrument: Creates and masters instruments with third party vendors.
api_response = await api_instance.create_instrument(onboard_instrument_request)
print("The response of InstrumentApi->create_instrument:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling InstrumentApi->create_instrument: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://fbn-prd.lusid.com/horizon
Class | Method | HTTP request | Description |
---|---|---|---|
InstrumentApi | create_instrument | POST /api/instrument/onboarding/create | [EARLY ACCESS] CreateInstrument: Creates and masters instruments with third party vendors. |
InstrumentApi | get_open_figi_parameter_option | GET /api/instrument/onboarding/search/openfigi/parameterOptions | [EARLY ACCESS] GetOpenFigiParameterOption: Get all supported market sector values for OpenFigi search |
InstrumentApi | retrieve_perm_id_result | GET /api/instrument/onboarding/search/permid/{id} | [EARLY ACCESS] RetrievePermIdResult: Retrieve PermId results from a previous query. |
InstrumentApi | search_open_figi | GET /api/instrument/onboarding/search/openfigi | [EARLY ACCESS] SearchOpenFigi: Search OpenFigi for instruments that match the specified terms. |
InstrumentApi | vendors | GET /api/instrument/onboarding/vendors | [EARLY ACCESS] Vendors: Gets the VendorProducts of any supported and licenced integrations for a given market sector and security type. |
ProcessHistoryApi | create_complete_event | POST /api/process-history/event/complete | [EARLY ACCESS] CreateCompleteEvent: Write a completed event to the Horizon Dashboard |
ProcessHistoryApi | create_update_event | POST /api/process-history/event/update | [EARLY ACCESS] CreateUpdateEvent: Write an update event to the Horizon Dashboard |
ProcessHistoryApi | get_latest_runs | GET /api/process-history/$latestRuns | [EARLY ACCESS] GetLatestRuns: Get latest run for each process |
ProcessHistoryApi | process_entry_updates | POST /api/process-history/entries/$query | [EARLY ACCESS] ProcessEntryUpdates: Get process entry updates for a query |
ProcessHistoryApi | process_history_entries | POST /api/process-history/$query | [EARLY ACCESS] ProcessHistoryEntries: Get process history entries |
VendorApi | get_core_field_mappings_for_product_entity | GET /api/vendor/mappings/fields | [EARLY ACCESS] GetCoreFieldMappingsForProductEntity: Get core field mappings for a given vendor product's entity. |
VendorApi | get_optional_mappings_for_product_entity | GET /api/vendor/mappings/optional | [EARLY ACCESS] GetOptionalMappingsForProductEntity: Get a user defined LUSID property mappings for the specified vendor / LUSID entity. |
VendorApi | get_property_mappings_for_product_entity | GET /api/vendor/mappings/properties | [EARLY ACCESS] GetPropertyMappingsForProductEntity: Gets the property mappings for a given vendor product's entity |
VendorApi | query_vendors | POST /api/vendor/$query | [EARLY ACCESS] QueryVendors: Query for vendors and their packages with entities and sub-entities. |
VendorApi | set_optional_mappings_for_product_entity | POST /api/vendor/mappings/optional | [EARLY ACCESS] SetOptionalMappingsForProductEntity: Create a user defined LUSID property mappings for the specified vendor / LUSID entity. |
Documentation For Models
- AllowedParameterValue
- AuditCompleteRequest
- AuditCompleteResponse
- AuditCompleteStatus
- AuditFileDetails
- AuditFileType
- AuditUpdateRequest
- AuditUpdateResponse
- FileDetails
- Link
- LusidEntity
- LusidField
- LusidProblemDetails
- LusidPropertyDefinition
- LusidPropertyDefinitionOverrides
- LusidPropertyDefinitionOverridesResponse
- LusidPropertyToVendorFieldMapping
- LusidValidationProblemDetails
- OnboardInstrumentRequest
- OnboardInstrumentResponse
- OpenFigiData
- OpenFigiParameterOptionName
- OpenFigiPermIdResult
- OpenFigiSearchResult
- Optionality
- PagedResourceListOfProcessInformation
- PagedResourceListOfProcessUpdateResult
- PagedResourceListOfVendorProduct
- PermIdData
- ProcessInformation
- ProcessSummary
- ProcessUpdateResult
- ResourceId
- RowDetails
- VendorProduct
Documentation For Authorization
Authentication schemes defined for the API:
oauth2
- Type: OAuth
- Flow: implicit
- Authorization URL: https://lusid.okta.com/oauth2/default/v1/authorize
- Scopes: N/A
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for finbourne_horizon_sdk-2.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 536a08e66cd711bfef94895f953e84cbf7fbb448bde7edf24b13f0fa250195df |
|
MD5 | a88f93b88f941182379a953af2325e04 |
|
BLAKE2b-256 | c8e4ff02a6a6e3d6a7a34774e92080ec53c7998c244b94b1f32f6bb5c9e9fb64 |
Hashes for finbourne_horizon_sdk-2.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec9770ad448390e21b5d4c537fe2b127e67a1e870bd1a85b1fc96ae353071c3 |
|
MD5 | b5a85d9cb1e04003c593dc5758d8903f |
|
BLAKE2b-256 | df3c511351734bf544bff99145868d71c0c65c7172bb8352d4ae1333853fbead |