Skip to main content

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.290
  • Package version: 2.0.56
  • 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 enrich_instrument POST /api/instrument/onboarding/enrich [EARLY ACCESS] EnrichInstrument: Enriches an existing LUSID instrument using vendor data. Enrichment included identifiers, properties and market data.
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

Documentation For Authorization

Authentication schemes defined for the API:

oauth2

Author

info@finbourne.com

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

finbourne_horizon_sdk-2.0.56.tar.gz (58.7 kB view hashes)

Uploaded Source

Built Distribution

finbourne_horizon_sdk-2.0.56-py3-none-any.whl (103.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page