# coding: utf-8
"""
LUSID API
# Introduction This page documents the [LUSID APIs](https://api.lusid.com/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages : * [C#](https://github.com/finbourne/lusid-sdk-csharp) * [Java](https://github.com/finbourne/lusid-sdk-java) * [JavaScript](https://github.com/finbourne/lusid-sdk-js) * [Python](https://github.com/finbourne/lusid-sdk-python) # Data Model The LUSID API has a relatively lightweight but extremely powerful data model. One of the goals of LUSID was not to enforce on clients a single rigid data model but rather to provide a flexible foundation onto which clients can streamline their data. One of the primary tools to extend the data model is through using properties. Properties can be associated with amongst others: - * Transactions * Instruments * Portfolios The LUSID data model is exposed through the LUSID APIs. The APIs provide access to both business objects and the meta data used to configure the systems behaviours. The key business entities are: - * **Portfolios** A portfolio is the primary container for transactions and holdings. * **Derived Portfolios** Derived portfolios allow portfolios to be created based on other portfolios, by overriding or overlaying specific items * **Holdings** A holding is a position account for a instrument within a portfolio. Holdings can only be adjusted via transactions. * **Transactions** A Transaction is a source of transactions used to manipulate holdings. * **Corporate Actions** A corporate action is a market event which occurs to a instrument, for example a stock split * **Instruments** A instrument represents a currency, tradable instrument or OTC contract that is attached to a transaction and a holding. * **Properties** Several entities allow additional user defined properties to be associated with them. For example, a Portfolio manager may be associated with a portfolio Meta data includes: - * **Transaction Types** Transactions are booked with a specific transaction type. The types are client defined and are used to map the Transaction to a series of movements which update the portfolio holdings. * **Properties Types** Types of user defined properties used within the system. This section describes the data model that LUSID exposes via the APIs. ## Scope All data in LUSID is segregated at the client level. Entities in LUSID are identifiable by a unique code. Every entity lives within a logical data partition known as a Scope. Scope is an identity namespace allowing two entities with the same unique code to co-exist within individual address spaces. For example, prices for equities from different vendors may be uploaded into different scopes such as `client/vendor1` and `client/vendor2`. A portfolio may then be valued using either of the price sources by referencing the appropriate scope. LUSID Clients cannot access scopes of other clients. ## Schema A detailed description of the entities used by the API and parameters for endpoints which take a JSON document can be retrieved via the `schema` endpoint. ## Instruments LUSID has its own built-in instrument master which you can use to master your own instrument universe. Every instrument must be created with one or more unique market identifiers, such as [FIGI](https://openfigi.com/). For any non-listed instruments (eg OTCs), you can upload an instrument against a custom ID of your choosing. In addition, LUSID will allocate each instrument a unique 'LUSID instrument identifier'. The LUSID instrument identifier is what is used when uploading transactions, holdings, prices, etc. The API exposes an `instrument/lookup` endpoint which can be used to lookup these LUSID identifiers using their market identifiers. Cash can be referenced using the ISO currency code prefixed with \"`CCY_`\" e.g. `CCY_GBP` ## Instrument Prices (Analytics) Instrument prices are stored in LUSID's Analytics Store | Field|Type|Description | | ---|---|--- | | InstrumentUid|string|Unique instrument identifier | | Value|decimal|Value of the analytic, eg price | | Denomination|string|Underlying unit of the analytic, eg currency, EPS etc. | ## Instrument Data Instrument data can be uploaded to the system using the [Instrument Properties](#tag/InstrumentProperties) endpoint. | Field|Type|Description | | ---|---|--- | | Key|propertykey|The key of the property. This takes the format {domain}/{scope}/{code} e.g. 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'. | | Value|string|The value of the property. | | EffectiveFrom|datetimeoffset|The effective datetime from which the property is valid. | ## Portfolios Portfolios are the top-level entity containers within LUSID, containing transactions, corporate actions and holdings. The transactions build up the portfolio holdings on which valuations, analytics profit & loss and risk can be calculated. Properties can be associated with Portfolios to add in additional model data. Portfolio properties can be changed over time as well. For example, to allow a Portfolio Manager to be linked with a Portfolio. Additionally, portfolios can be securitised and held by other portfolios, allowing LUSID to perform \"drill-through\" into underlying fund holdings ### Reference Portfolios Reference portfolios are portfolios that contain only weights, as opposed to transactions, and are designed to represent entities such as indices. ### Derived Portfolios LUSID also allows for a portfolio to be composed of another portfolio via derived portfolios. A derived portfolio can contain its own transactions and also inherits any transactions from its parent portfolio. Any changes made to the parent portfolio are automatically reflected in derived portfolio. Derived portfolios in conjunction with scopes are a powerful construct. For example, to do pre-trade what-if analysis, a derived portfolio could be created a new namespace linked to the underlying live (parent) portfolio. Analysis can then be undertaken on the derived portfolio without affecting the live portfolio. ### Portfolio Groups Portfolio groups allow the construction of a hierarchy from portfolios and groups. Portfolio operations on the group are executed on an aggregated set of portfolios in the hierarchy. For example: * Global Portfolios _(group)_ * APAC _(group)_ * Hong Kong _(portfolio)_ * Japan _(portfolio)_ * Europe _(group)_ * France _(portfolio)_ * Germany _(portfolio)_ * UK _(portfolio)_ In this example **Global Portfolios** is a group that consists of an aggregate of **Hong Kong**, **Japan**, **France**, **Germany** and **UK** portfolios. ### Movements Engine The Movements engine sits on top of the immutable event store and is used to manage the relationship between input trading actions and their associated portfolio holdings. The movements engine reads in the following entity types:- * Posting Transactions * Applying Corporate Actions * Holding Adjustments These are converted to one or more movements and used by the movements engine to calculate holdings. At the same time it also calculates running balances, and realised P&L. The outputs from the movements engine are holdings and transactions. ## Transactions A transaction represents an economic activity against a Portfolio. Transactions are processed according to a configuration. This will tell the LUSID engine how to interpret the transaction and correctly update the holdings. LUSID comes with a set of transaction types you can use out of the box, or you can configure your own set(s) of transactions. For more details see the [LUSID Getting Started Guide for transaction configuration.](https://support.lusid.com/configuring-transaction-types) | Field|Type|Description | | ---|---|--- | | TransactionId|string|The unique identifier for the transaction. | |
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:lusid-sdk-preview-0.10.793.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | lusid-sdk-preview-0.10.793.tar.gz (236个子文件)
setup.cfg 38B
PKG-INFO 336B
PKG-INFO 336B
transaction_portfolios_api.py 150KB
portfolio_groups_api.py 103KB
portfolios_api.py 89KB
instruments_api.py 87KB
search_api.py 69KB
property_definitions_api.py 56KB
analytics_stores_api.py 56KB
corporate_action_sources_api.py 56KB
quotes_api.py 54KB
data_types_api.py 54KB
aggregation_api.py 52KB
cut_label_definitions_api.py 51KB
reference_portfolio_api.py 51KB
structured_result_data_api.py 50KB
structured_market_data_api.py 50KB
api_client.py 48KB
output_transaction.py 48KB
schemas_api.py 44KB
configuration_recipe_api.py 44KB
__init__.py 40KB
transaction.py 40KB
transaction_request.py 39KB
system_configuration_api.py 39KB
application_metadata_api.py 38KB
property_definition.py 38KB
__init__.py 38KB
results_api.py 37KB
derived_transaction_portfolios_api.py 37KB
reconciliations_api.py 37KB
realised_gain_loss.py 36KB
create_transaction_portfolio_request.py 36KB
complete_portfolio.py 36KB
rest.py 36KB
portfolio.py 35KB
instrument.py 34KB
portfolio_search_result.py 34KB
reconciliation_break.py 34KB
create_data_type_request.py 34KB
data_type.py 34KB
portfolio_holding.py 34KB
aggregation_request.py 34KB
pricing_options.py 34KB
create_derived_transaction_portfolio_request.py 34KB
configuration.py 33KB
portfolio_group.py 33KB
create_results.py 33KB
update_data_type_request.py 33KB
create_property_definition_request.py 33KB
get_reference_portfolio_constituents_response.py 33KB
change.py 32KB
execution_request.py 32KB
quote_series_id.py 32KB
upsert_corporate_action_request.py 32KB
configuration_recipe_snippet.py 32KB
lusid_validation_problem_details.py 32KB
expanded_group.py 32KB
corporate_action.py 32KB
portfolio_details.py 32KB
structured_market_data_id.py 32KB
create_portfolio_group_request.py 31KB
reference_portfolio_constituent.py 31KB
transaction_configuration_type_alias.py 31KB
nested_aggregation_response.py 31KB
holding_adjustment.py 31KB
upsert_reference_portfolio_constituents_request.py 31KB
holdings_adjustment.py 31KB
list_aggregation_response.py 31KB
transaction_configuration_movement_data_request.py 31KB
target_tax_lot_request.py 31KB
market_data_key_rule.py 31KB
market_options.py 31KB
lusid_problem_details.py 31KB
transaction_configuration_movement_data.py 31KB
access_controlled_resource.py 31KB
target_tax_lot.py 31KB
identifier_part_schema.py 31KB
stream.py 31KB
entities_api.py 31KB
cut_label_definition.py 31KB
instrument_definition.py 30KB
transaction_query_parameters.py 30KB
adjust_holding_request.py 30KB
quote.py 30KB
holdings_adjustment_header.py 30KB
market_context_suppliers.py 30KB
configuration_recipe.py 30KB
vendor_model_rule.py 30KB
structured_result_data.py 30KB
corporate_action_transition_component.py 30KB
create_reference_portfolio_request.py 30KB
create_cut_label_definition_request.py 30KB
corporate_action_source.py 30KB
structured_result_data_id.py 30KB
aggregation_response_node_of_dictionary_of_string_to_object.py 30KB
get_quotes_response.py 30KB
field_schema.py 30KB
upsert_recipe_request.py 30KB
共 236 条
- 1
- 2
- 3
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IMG_20241125_212210.jpg
- 本地安装GSVA,有很多选择,我选了相对最新的
- yolo算法-橡胶圈数据集-23984张图像带标签-机器人-橡胶圈.zip
- wordpress网址导航主题模板 自适应手机端+附整站源码
- yolo算法-手套-无手套-人数据集-14773张图像带标签-手套-无手套-人-无头盔-无口罩-没有安全鞋-无护耳器-无背心-护耳器-背心-安全鞋-无玻璃-头盔-面具-玻璃杯.zip
- yolo算法-动物类别数据集-21613张图像带标签-人-奶牛-鹰-大象-汽车-猪-水牛-熊-鹿-雨伞-狗-老虎-浣熊-狼.zip
- Go语言实现高质量代理池构建与部署
- yolo算法-多类别动物数据集-8893张图像带标签-猴子-奶牛-大象-水牛-美洲虎-熊-鹿-马-狗-老虎-鸟-狮子-猎豹-山羊.zip
- Video_1732514072178.mp4
- yolo算法-手套-无手套-人数据集-14163张图像带标签-手套-无手套.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功