{"openapi":"3.0.4","info":{"title":"Build transactions","description":"Builds and returns all transactions that affect the holdings of a portfolio over a given interval of\r\neffective time into a set of output transactions. This includes transactions automatically generated by\r\nLUSID such as holding adjustments.","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/api"}],"paths":{"/api/transactionportfolios/{scope}/{code}/transactions/$build":{"post":{"tags":["Transaction Portfolios"],"summary":"Build transactions","description":"Builds and returns all transactions that affect the holdings of a portfolio over a given interval of\r\neffective time into a set of output transactions. This includes transactions automatically generated by\r\nLUSID such as holding adjustments.","operationId":"BuildTransactions","parameters":[{"name":"scope","in":"path","description":"The scope of the transaction portfolio.","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"code","in":"path","description":"The code of the transaction portfolio. Together with the scope this uniquely identifies\r\n            the transaction portfolio.","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"asAt","in":"query","description":"The asAt datetime at which to build the transactions. Defaults to return the latest\r\n            version of each transaction if not specified.","schema":{"type":"string","format":"date-time"},"x-nullable":true},{"name":"filter","in":"query","description":"Expression to filter the result set.\r\n            For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\".\r\n            For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.","schema":{"maxLength":16384,"minLength":0,"pattern":"^[\\s\\S]*$","type":"string"}},{"name":"propertyKeys","in":"query","description":"A list of property keys from the \"Instrument\" or \"Transaction\" domain to decorate onto\r\n            the transactions. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or\r\n            \"Transaction/strategy/quantsignal\".","schema":{"type":"array","items":{"type":"string","description":"The key that uniquely identifies the property. It has the format {domain}/{scope}/{code}."}},"x-nullable":true},{"name":"limit","in":"query","description":"When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.","schema":{"type":"integer","format":"int32"},"x-nullable":true},{"name":"page","in":"query","description":"The pagination token to use to continue listing transactions from a previous call to BuildTransactions.","schema":{"maxLength":500,"minLength":1,"pattern":"^[a-zA-Z0-9\\+/]*={0,3}$","type":"string"}},{"name":"dataModelScope","in":"query","description":"The optional scope of a Custom Data Model to use","schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"dataModelCode","in":"query","description":"The optional code of a Custom Data Model to use","schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"membershipType","in":"query","description":"The membership types of the specified Custom Data Model to return. Default value: Member. Available values: All, Member, Candidate.","schema":{"type":"string"}}],"requestBody":{"description":"The query queryParameters which control how the output transactions are built.","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/TransactionQueryParameters"},"example":{"startDate":"2018-03-05T00:00:00.0000000+00:00","endDate":"2018-03-19T00:00:00.0000000+00:00","queryMode":"TradeDate","showCancelledTransactions":false,"timelineScope":"MyAccountingTimelineScope","timelineCode":"MyAccountingTimelineCode","includeEconomics":false,"includeSettlementStatus":false}},"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/TransactionQueryParameters"},"example":{"startDate":"2018-03-05T00:00:00.0000000+00:00","endDate":"2018-03-19T00:00:00.0000000+00:00","queryMode":"TradeDate","showCancelledTransactions":false,"timelineScope":"MyAccountingTimelineScope","timelineCode":"MyAccountingTimelineCode","includeEconomics":false,"includeSettlementStatus":false}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/TransactionQueryParameters"},"example":{"startDate":"2018-03-05T00:00:00.0000000+00:00","endDate":"2018-03-19T00:00:00.0000000+00:00","queryMode":"TradeDate","showCancelledTransactions":false,"timelineScope":"MyAccountingTimelineScope","timelineCode":"MyAccountingTimelineCode","includeEconomics":false,"includeSettlementStatus":false}},"application/*+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/TransactionQueryParameters"},"example":{"startDate":"2018-03-05T00:00:00.0000000+00:00","endDate":"2018-03-19T00:00:00.0000000+00:00","queryMode":"TradeDate","showCancelledTransactions":false,"timelineScope":"MyAccountingTimelineScope","timelineCode":"MyAccountingTimelineCode","includeEconomics":false,"includeSettlementStatus":false}}},"required":true},"responses":{"200":{"description":"The requested transactions from the specified transaction portfolio","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/VersionedResourceListOfOutputTransaction"},"example":{"version":{"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"},"values":[{"transactionId":"TXN-00001","type":"Buy","description":"Purchase","instrumentIdentifiers":{"Instrument/default/RIC":"RIC.L"},"instrumentScope":"default","instrumentUid":"LUID_JLH24106","transactionDate":"2018-08-04T00:00:00.0000000+00:00","settlementDate":"2018-08-06T00:00:00.0000000+00:00","units":1000,"transactionAmount":88800,"transactionPrice":{"price":88.8,"type":"Price"},"totalConsideration":{"amount":88800,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":0.7648,"transactionCurrency":"USD","properties":{"Transaction/default/TradeToPortfolioRate":{"key":"Transaction/default/TradeToPortfolioRate","value":{"metricValue":{"value":0.765}}},"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}}},"source":"","transactionStatus":"Cancelled","entryDateTime":"2018-08-04T12:22:06.0000000+00:00","cancelDateTime":"2018-08-04T12:25:14.0000000+00:00","holdingIds":[1],"sourceType":"InputTransaction","resolvedTransactionTypeDetails":{"scope":"scopeA","source":"sourceB","type":"Buy"},"grossTransactionAmount":80800,"accountingDate":"2018-08-04T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-04T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}},{"transactionId":"TXN-00002","type":"Sell","description":"Sale","instrumentIdentifiers":{"Instrument/default/ClientInternal":"INT:00024106"},"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","transactionDate":"2018-08-07T00:00:00.0000000+00:00","settlementDate":"2018-08-10T00:00:00.0000000+00:00","units":10000,"transactionAmount":1470100,"transactionPrice":{"price":147.01,"type":"Price"},"totalConsideration":{"amount":1470100,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":0.772,"transactionCurrency":"USD","properties":{"Transaction/default/TradeToPortfolioRate":{"key":"Transaction/default/TradeToPortfolioRate","value":{"metricValue":{"value":0.772}}},"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}},"Transaction/default/ResultantHolding":{"key":"Transaction/default/ResultantHolding","value":{"metricValue":{"value":3500}}}},"source":"","transactionStatus":"Active","entryDateTime":"2018-08-07T10:30:12.0000000+00:00","realisedGainLoss":[{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":4500,"purchaseTradeDate":"2018-08-02T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-05T00:00:00.0000000+00:00","purchasePrice":142.96,"costTradeCcy":{"amount":643320,"currency":"USD"},"costPortfolioCcy":{"amount":493619.44,"currency":"GBP"},"realisedTradeCcy":{"amount":18225,"currency":"USD"},"realisedTotal":{"amount":17093.3,"currency":"GBP"},"realisedMarket":{"amount":14069.7,"currency":"GBP"},"realisedCurrency":{"amount":3023.6,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}},{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":4500,"purchaseTradeDate":"2018-08-03T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-06T00:00:00.0000000+00:00","purchasePrice":147.7,"costTradeCcy":{"amount":664650,"currency":"USD"},"costPortfolioCcy":{"amount":510517.67,"currency":"GBP"},"realisedTradeCcy":{"amount":-3105,"currency":"USD"},"realisedTotal":{"amount":195.07,"currency":"GBP"},"realisedMarket":{"amount":-2397.06,"currency":"GBP"},"realisedCurrency":{"amount":2592.13,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}},{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":1000,"purchaseTradeDate":"2018-08-06T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-08T00:00:00.0000000+00:00","purchasePrice":146.03,"costTradeCcy":{"amount":146030,"currency":"USD"},"costPortfolioCcy":{"amount":112851.98,"currency":"GBP"},"realisedTradeCcy":{"amount":980,"currency":"USD"},"realisedTotal":{"amount":639.74,"currency":"GBP"},"realisedMarket":{"amount":756.56,"currency":"GBP"},"realisedCurrency":{"amount":-116.82,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}}],"holdingIds":[1],"sourceType":"InputTransaction","resolvedTransactionTypeDetails":{"scope":"default","source":"default","type":"Sell"},"grossTransactionAmount":1070100,"accountingDate":"2018-08-07T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-07T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}},{"transactionId":"LUID_00003D4V_BondCouponEvent_20240906-1","type":"BondCoupon","description":"Type for bond coupon event","instrumentIdentifiers":{"Instrument/default/Name":"Bond"},"instrumentScope":"default","instrumentUid":"LUID_JLH24106","transactionDate":"2018-08-04T00:00:00.0000000+00:00","settlementDate":"2018-08-06T00:00:00.0000000+00:00","units":1000,"transactionAmount":800,"transactionPrice":{"price":0,"type":"Price"},"totalConsideration":{"amount":88800,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":1,"transactionCurrency":"USD","properties":{"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}}},"source":"","transactionStatus":"Active","entryDateTime":"2018-08-04T12:22:06.0000000+00:00","holdingIds":[1],"sourceType":"InstrumentEvent","sourceInstrumentEventId":"LUID_00003D4V_BondCouponEvent_20240906","resolvedTransactionTypeDetails":{"scope":"default","source":"default","type":"BondCoupon"},"grossTransactionAmount":650,"accountingDate":"2018-08-04T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-04T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}}],"href":"http://example.com","links":[]}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/VersionedResourceListOfOutputTransaction"},"example":{"version":{"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"},"values":[{"transactionId":"TXN-00001","type":"Buy","description":"Purchase","instrumentIdentifiers":{"Instrument/default/RIC":"RIC.L"},"instrumentScope":"default","instrumentUid":"LUID_JLH24106","transactionDate":"2018-08-04T00:00:00.0000000+00:00","settlementDate":"2018-08-06T00:00:00.0000000+00:00","units":1000,"transactionAmount":88800,"transactionPrice":{"price":88.8,"type":"Price"},"totalConsideration":{"amount":88800,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":0.7648,"transactionCurrency":"USD","properties":{"Transaction/default/TradeToPortfolioRate":{"key":"Transaction/default/TradeToPortfolioRate","value":{"metricValue":{"value":0.765}}},"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}}},"source":"","transactionStatus":"Cancelled","entryDateTime":"2018-08-04T12:22:06.0000000+00:00","cancelDateTime":"2018-08-04T12:25:14.0000000+00:00","holdingIds":[1],"sourceType":"InputTransaction","resolvedTransactionTypeDetails":{"scope":"scopeA","source":"sourceB","type":"Buy"},"grossTransactionAmount":80800,"accountingDate":"2018-08-04T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-04T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}},{"transactionId":"TXN-00002","type":"Sell","description":"Sale","instrumentIdentifiers":{"Instrument/default/ClientInternal":"INT:00024106"},"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","transactionDate":"2018-08-07T00:00:00.0000000+00:00","settlementDate":"2018-08-10T00:00:00.0000000+00:00","units":10000,"transactionAmount":1470100,"transactionPrice":{"price":147.01,"type":"Price"},"totalConsideration":{"amount":1470100,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":0.772,"transactionCurrency":"USD","properties":{"Transaction/default/TradeToPortfolioRate":{"key":"Transaction/default/TradeToPortfolioRate","value":{"metricValue":{"value":0.772}}},"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}},"Transaction/default/ResultantHolding":{"key":"Transaction/default/ResultantHolding","value":{"metricValue":{"value":3500}}}},"source":"","transactionStatus":"Active","entryDateTime":"2018-08-07T10:30:12.0000000+00:00","realisedGainLoss":[{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":4500,"purchaseTradeDate":"2018-08-02T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-05T00:00:00.0000000+00:00","purchasePrice":142.96,"costTradeCcy":{"amount":643320,"currency":"USD"},"costPortfolioCcy":{"amount":493619.44,"currency":"GBP"},"realisedTradeCcy":{"amount":18225,"currency":"USD"},"realisedTotal":{"amount":17093.3,"currency":"GBP"},"realisedMarket":{"amount":14069.7,"currency":"GBP"},"realisedCurrency":{"amount":3023.6,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}},{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":4500,"purchaseTradeDate":"2018-08-03T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-06T00:00:00.0000000+00:00","purchasePrice":147.7,"costTradeCcy":{"amount":664650,"currency":"USD"},"costPortfolioCcy":{"amount":510517.67,"currency":"GBP"},"realisedTradeCcy":{"amount":-3105,"currency":"USD"},"realisedTotal":{"amount":195.07,"currency":"GBP"},"realisedMarket":{"amount":-2397.06,"currency":"GBP"},"realisedCurrency":{"amount":2592.13,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}},{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":1000,"purchaseTradeDate":"2018-08-06T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-08T00:00:00.0000000+00:00","purchasePrice":146.03,"costTradeCcy":{"amount":146030,"currency":"USD"},"costPortfolioCcy":{"amount":112851.98,"currency":"GBP"},"realisedTradeCcy":{"amount":980,"currency":"USD"},"realisedTotal":{"amount":639.74,"currency":"GBP"},"realisedMarket":{"amount":756.56,"currency":"GBP"},"realisedCurrency":{"amount":-116.82,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}}],"holdingIds":[1],"sourceType":"InputTransaction","resolvedTransactionTypeDetails":{"scope":"default","source":"default","type":"Sell"},"grossTransactionAmount":1070100,"accountingDate":"2018-08-07T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-07T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}},{"transactionId":"LUID_00003D4V_BondCouponEvent_20240906-1","type":"BondCoupon","description":"Type for bond coupon event","instrumentIdentifiers":{"Instrument/default/Name":"Bond"},"instrumentScope":"default","instrumentUid":"LUID_JLH24106","transactionDate":"2018-08-04T00:00:00.0000000+00:00","settlementDate":"2018-08-06T00:00:00.0000000+00:00","units":1000,"transactionAmount":800,"transactionPrice":{"price":0,"type":"Price"},"totalConsideration":{"amount":88800,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":1,"transactionCurrency":"USD","properties":{"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}}},"source":"","transactionStatus":"Active","entryDateTime":"2018-08-04T12:22:06.0000000+00:00","holdingIds":[1],"sourceType":"InstrumentEvent","sourceInstrumentEventId":"LUID_00003D4V_BondCouponEvent_20240906","resolvedTransactionTypeDetails":{"scope":"default","source":"default","type":"BondCoupon"},"grossTransactionAmount":650,"accountingDate":"2018-08-04T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-04T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}}],"href":"http://example.com","links":[]}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/VersionedResourceListOfOutputTransaction"},"example":{"version":{"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"},"values":[{"transactionId":"TXN-00001","type":"Buy","description":"Purchase","instrumentIdentifiers":{"Instrument/default/RIC":"RIC.L"},"instrumentScope":"default","instrumentUid":"LUID_JLH24106","transactionDate":"2018-08-04T00:00:00.0000000+00:00","settlementDate":"2018-08-06T00:00:00.0000000+00:00","units":1000,"transactionAmount":88800,"transactionPrice":{"price":88.8,"type":"Price"},"totalConsideration":{"amount":88800,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":0.7648,"transactionCurrency":"USD","properties":{"Transaction/default/TradeToPortfolioRate":{"key":"Transaction/default/TradeToPortfolioRate","value":{"metricValue":{"value":0.765}}},"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}}},"source":"","transactionStatus":"Cancelled","entryDateTime":"2018-08-04T12:22:06.0000000+00:00","cancelDateTime":"2018-08-04T12:25:14.0000000+00:00","holdingIds":[1],"sourceType":"InputTransaction","resolvedTransactionTypeDetails":{"scope":"scopeA","source":"sourceB","type":"Buy"},"grossTransactionAmount":80800,"accountingDate":"2018-08-04T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-04T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}},{"transactionId":"TXN-00002","type":"Sell","description":"Sale","instrumentIdentifiers":{"Instrument/default/ClientInternal":"INT:00024106"},"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","transactionDate":"2018-08-07T00:00:00.0000000+00:00","settlementDate":"2018-08-10T00:00:00.0000000+00:00","units":10000,"transactionAmount":1470100,"transactionPrice":{"price":147.01,"type":"Price"},"totalConsideration":{"amount":1470100,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":0.772,"transactionCurrency":"USD","properties":{"Transaction/default/TradeToPortfolioRate":{"key":"Transaction/default/TradeToPortfolioRate","value":{"metricValue":{"value":0.772}}},"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}},"Transaction/default/ResultantHolding":{"key":"Transaction/default/ResultantHolding","value":{"metricValue":{"value":3500}}}},"source":"","transactionStatus":"Active","entryDateTime":"2018-08-07T10:30:12.0000000+00:00","realisedGainLoss":[{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":4500,"purchaseTradeDate":"2018-08-02T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-05T00:00:00.0000000+00:00","purchasePrice":142.96,"costTradeCcy":{"amount":643320,"currency":"USD"},"costPortfolioCcy":{"amount":493619.44,"currency":"GBP"},"realisedTradeCcy":{"amount":18225,"currency":"USD"},"realisedTotal":{"amount":17093.3,"currency":"GBP"},"realisedMarket":{"amount":14069.7,"currency":"GBP"},"realisedCurrency":{"amount":3023.6,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}},{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":4500,"purchaseTradeDate":"2018-08-03T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-06T00:00:00.0000000+00:00","purchasePrice":147.7,"costTradeCcy":{"amount":664650,"currency":"USD"},"costPortfolioCcy":{"amount":510517.67,"currency":"GBP"},"realisedTradeCcy":{"amount":-3105,"currency":"USD"},"realisedTotal":{"amount":195.07,"currency":"GBP"},"realisedMarket":{"amount":-2397.06,"currency":"GBP"},"realisedCurrency":{"amount":2592.13,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}},{"instrumentScope":"default","instrumentUid":"LUID_OI5JX1V7","units":1000,"purchaseTradeDate":"2018-08-06T00:00:00.0000000+00:00","purchaseSettlementDate":"2018-08-08T00:00:00.0000000+00:00","purchasePrice":146.03,"costTradeCcy":{"amount":146030,"currency":"USD"},"costPortfolioCcy":{"amount":112851.98,"currency":"GBP"},"realisedTradeCcy":{"amount":980,"currency":"USD"},"realisedTotal":{"amount":639.74,"currency":"GBP"},"realisedMarket":{"amount":756.56,"currency":"GBP"},"realisedCurrency":{"amount":-116.82,"currency":"GBP"},"taxLotId":"DEMO-TAXLOTID","realisedAmortisation":{"amount":0,"currency":"GBP"},"tradeDateToSettlementDateRealisedCurrency":{"amount":0,"currency":"GBP"}}],"holdingIds":[1],"sourceType":"InputTransaction","resolvedTransactionTypeDetails":{"scope":"default","source":"default","type":"Sell"},"grossTransactionAmount":1070100,"accountingDate":"2018-08-07T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-07T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}},{"transactionId":"LUID_00003D4V_BondCouponEvent_20240906-1","type":"BondCoupon","description":"Type for bond coupon event","instrumentIdentifiers":{"Instrument/default/Name":"Bond"},"instrumentScope":"default","instrumentUid":"LUID_JLH24106","transactionDate":"2018-08-04T00:00:00.0000000+00:00","settlementDate":"2018-08-06T00:00:00.0000000+00:00","units":1000,"transactionAmount":800,"transactionPrice":{"price":0,"type":"Price"},"totalConsideration":{"amount":88800,"currency":"USD"},"exchangeRate":1,"transactionToPortfolioRate":1,"transactionCurrency":"USD","properties":{"Transaction/default/SourcePortfolioId":{"key":"Transaction/default/SourcePortfolioId","value":{"labelValue":"DEMO-PORTFOLIO-ID"}},"Transaction/default/SourcePortfolioScope":{"key":"Transaction/default/SourcePortfolioScope","value":{"labelValue":"DEMO-SCOPE"}}},"source":"","transactionStatus":"Active","entryDateTime":"2018-08-04T12:22:06.0000000+00:00","holdingIds":[1],"sourceType":"InstrumentEvent","sourceInstrumentEventId":"LUID_00003D4V_BondCouponEvent_20240906","resolvedTransactionTypeDetails":{"scope":"default","source":"default","type":"BondCoupon"},"grossTransactionAmount":650,"accountingDate":"2018-08-04T00:00:00.0000000+00:00","version":{"effectiveFrom":"2018-08-04T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"}}],"href":"http://example.com","links":[]}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidProblemDetails"}}}}},"security":[{"BearerAuth":[]}],"x-fbn-apistatus":"Stable"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}