Single_Line_Transactions

Introduction

Following customer feedback we have added a table that has the entire transaction in a single row (unlike Flash Blotter which split the transaction into two rows for speed of calculations purposes). For the avoidance of doubt, this table is derived from the flash_blotter table (and any changes to this table have zero effect on flash_blotter)

The fields in this table are as follows

Field NameData TypeDescription
blotter_idinteger

Blotter ID

(unique for each transaction)

ticketreftext

Ticket Reference

(Unique for each transaction. Either blotter_id or ticketref can be used as unique transactions identifiers)

traded_ondate

Trade Date

Same as from flash_blotter, except data type is date (instead of timestamp)

settled_ondate

Settlement Date

ccy_account_codetext

Currency Account e.g. canopy_demo-cssg01-usd-01

contract_currencytextTransaction Currency e.g. USD
tickertext

Ticker

for trade types Transfer In/Transfer Out/Buy/Sell it will be the Canopy Ticker e.g 'IBM_US'

for transactions not moving a security e.g. Dividends, Misc Expenses etc. it will be 'Cash'

isintext

ISIN

for trade types Transfer In/Transfer Out/Buy/Sell it will be the ISIN of the security (only if available and blank otherwise)

It will be blank for all other Trade Types (e.g. for Dividends / Misc Expense etc.). Also please look at field Related_Security_ISIN

it is arranged like this so that calculating holdings as of a certain date is a single SQL query

security_nametext
contract_typetext

EquityContract, BondContract, FundContract etc.

This is just an indication of the internal table in which security details are stored. This is NOT the user defined asset class.

trade_typetext23 trade types in Canopy at the moment
nominal_amountnumeric
trade_pricenumeric
effective_pricenumericThis is settlement_amount_ccy / nominal_amount (i.e. translates brokerage, accrued interest and other costs etc into an all-in price)
gross_amount_ccynumericnominal_amount x trade_price
accrued_interestnumeric
withholding_taxnumeric
brokeragenumeric
other_expensesnumeric
settlement_amount_ccynumeric
quantitynumericHere for backward compatability. please use nominal_amount
number_of_contractsnumeric
effective_amount_ccynumericFor dividend in kind transactions captures the equivalent amount in currency for reference purposes
custodian_reftext
ticket_created_attimestamp
ticket_updated_attimestamp
price_updated_attimestamp
custodian_codetext
custodian_nametext
parent_usernametext
child_usernametext
parent_display_nametext
child_display_nametext
base_ccytext
contract_idinteger
contract_currency_idinteger
counterparty_idinteger
parent_user_idinteger
user_idinteger
user_account_idinteger
bank_narrationtext
strategy_tag_idinteger
transaction_idinteger
transaction_type_idinteger
security_idinteger
related_security_idinteger
related_security_tickertextFor distribution transactions contains the ticker of security on which this distribution has been paid
related_security_nametextFor distribution transactions contains the name of security on which this distribution has been paid
related_security_isintextFor distribution transactions contains the isin of security on which this distribution has been paid
user_asset_classtext
user_geographytext
user_industrytext
canopy_asset_classtext
bb_composite_ratingtext
em_dmtext
canopy_geographytext
partner_asset_classtext
partner_geographytext
day_1_notional_trade_ccynumeric
day_1_mtm_trade_ccynumeric
day_1_price_closenumeric
day_1_price_cleannumeric
day_1_fxrate_trade_ccynumeric
day_1_mtm_usdnumeric
day_1_notional_usdnumeric
single_line_transactions_created_attimestamp