-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cymbal_investments.trade_capture_report`
(
  SendingTime TIMESTAMP OPTIONS(description="Time the message was sent"),
  TargetCompID STRING OPTIONS(description="Assigned value used to identify firm receiving message."),
  SenderCompID STRING OPTIONS(description="Assigned value used to identify firm sending message."),
  Symbol STRING OPTIONS(description="Trading symbol of the asset"),
  Quantity INT64 OPTIONS(description="Overall/total quantity (e.g. number of shares)"),
  OrderID STRING OPTIONS(description="Order identifier"),
  TransactTime TIMESTAMP OPTIONS(description="Time the transaction occured"),
  StrikePrice FLOAT64 OPTIONS(description="Price at which the CFD closed"),
  LastPx FLOAT64 OPTIONS(description="Price at which the CFD was entered"),
  MaturityDate TIMESTAMP OPTIONS(description="Date of contract expiry"),
  TradeReportID STRING OPTIONS(description="ID of this trade report"),
  TradeDate DATE OPTIONS(description="Date trade was executed"),
  CFICode STRING OPTIONS(description="Financial instrument classification code"),
  Sides ARRAY<STRUCT<Side STRING OPTIONS(description="Direction of the trade (long or short)"), OrderID STRING OPTIONS(description=""), PartyIDs ARRAY<STRUCT<PartyID STRING OPTIONS(description="Counterparty identifier"), PartyIDSource STRING, PartyRole STRING OPTIONS(description="Counterparty irole")>> OPTIONS(description="")>>
);

INSERT INTO `bigquery-public-data.cymbal_investments.trade_capture_report` (SendingTime, TargetCompID, SenderCompID, Symbol, Quantity, OrderID, TransactTime, StrikePrice, LastPx, MaturityDate, TradeReportID, TradeDate, CFICode, Sides) VALUES ('2020-05-18 17:23:26+00:00', 'MOMOES-COMPID', 'MDOC', 'ESM0', 1, 'd8eefa63-6f10-4566-8f15-81460448f2ac', '2020-05-18 17:23:26.393000+00:00', 2953.125, 2953.125, '2020-05-18 17:24:26.393000+00:00', 'd8eefa63-6f10-4566-8f15-81460448f2ac-0', '2020-05-18', 'MMMXXX', '[{''Side'': ''LONG'', ''OrderID'': ''d8eefa63-6f10-4566-8f15-81460448f2ac'', ''PartyIDs'': array([{''PartyID'': ''MOMOES'', ''PartyIDSource'': ''PROP CODE'', ''PartyRole'': ''INITIATING TRADER''}],
       dtype=object)}                                                                                                                                                          ]'), ('2020-05-18 17:25:59+00:00', 'MOMOES-COMPID', 'MDOC', 'ESM0', 1, '7fa78bef-912c-41cb-b381-4c03b5a7c508', '2020-05-18 17:25:59.485000+00:00', 2952.375, 2952.375, '2020-05-18 17:26:59.485000+00:00', '7fa78bef-912c-41cb-b381-4c03b5a7c508-0', '2020-05-18', 'MMMXXX', '[{''Side'': ''LONG'', ''OrderID'': ''7fa78bef-912c-41cb-b381-4c03b5a7c508'', ''PartyIDs'': array([{''PartyID'': ''MOMOES'', ''PartyIDSource'': ''PROP CODE'', ''PartyRole'': ''INITIATING TRADER''}],
       dtype=object)}                                                                                                                                                          ]'), ('2020-05-18 17:33:10+00:00', 'MOMOES-COMPID', 'MDOC', 'ESM0', 1, '5a4c4d8b-b9b8-4307-a0c3-8c753ed93520', '2020-05-18 17:33:10.485000+00:00', 2952.625, 2953.375, '2020-05-18 17:34:10.485000+00:00', '5a4c4d8b-b9b8-4307-a0c3-8c753ed93520-0', '2020-05-18', 'MMMXXX', '[{''Side'': ''LONG'', ''OrderID'': ''5a4c4d8b-b9b8-4307-a0c3-8c753ed93520'', ''PartyIDs'': array([{''PartyID'': ''MOMOES'', ''PartyIDSource'': ''PROP CODE'', ''PartyRole'': ''INITIATING TRADER''}],
       dtype=object)}                                                                                                                                                          ]'), ('2020-05-18 17:39:39+00:00', 'MOMOES-COMPID', 'MDOC', 'ESM0', 1, 'a204ef77-1071-48ee-a5f5-21579311cd91', '2020-05-18 17:39:40.341000+00:00', 2953.125, 2952.625, '2020-05-18 17:40:40.341000+00:00', 'a204ef77-1071-48ee-a5f5-21579311cd91-0', '2020-05-18', 'MMMXXX', '[{''Side'': ''LONG'', ''OrderID'': ''a204ef77-1071-48ee-a5f5-21579311cd91'', ''PartyIDs'': array([{''PartyID'': ''MOMOES'', ''PartyIDSource'': ''PROP CODE'', ''PartyRole'': ''INITIATING TRADER''}],
       dtype=object)}                                                                                                                                                          ]'), ('2020-05-18 17:48:45+00:00', 'MOMOES-COMPID', 'MDOC', 'ESM0', 1, 'b7a40778-7293-407b-8636-91a7ffe9817a', '2020-05-18 17:48:45.471000+00:00', 2952.375, 2953.625, '2020-05-18 17:49:45.471000+00:00', 'b7a40778-7293-407b-8636-91a7ffe9817a-0', '2020-05-18', 'MMMXXX', '[{''Side'': ''LONG'', ''OrderID'': ''b7a40778-7293-407b-8636-91a7ffe9817a'', ''PartyIDs'': array([{''PartyID'': ''MOMOES'', ''PartyIDSource'': ''PROP CODE'', ''PartyRole'': ''INITIATING TRADER''}],
       dtype=object)}                                                                                                                                                          ]');