# Connection Settings Source: https://documentation-external.onezero.com:4434/Hub_help_9_0/Content/HubReferences/Settings/PTRs/FIX_PTR_ConnectionStatus.htm Connection Settings Use these settings to connect the database from which trade information is pulled and configure the SQL queries used to pull data. Setting Description Setting Description DB Connection Name Name of the database that the adapter should obtain trades from. Guideline: This field autofills with database connections configured in Post Trade Reporter > Database Connections. DB Connection Name Name of the database that the adapter should obtain trades from. Guideline: This field autofills with database connections configured in Post Trade Reporter > Database Connections. Row-Level Settings For each DB Connection Name row, you can enter a SQL query, comment, and Maker Stream ID and Taker Connection ID overrides. Click the arrow on a row to open the row-level settings. Setting Description Setting Description Enable Direct Database Query If enabled, allows you to define a SQL Query in the "Query to Select New Trades" section. Query to Select New Trades The SQL query used by the PTR to select trades to report. To edit this field, click Edit. The PostTradeReporterProcessorThread automatically replaces the following text: {{view_name}} — default view name for the ViewTypeForReporting setting configured for the adapter {{adapter_module_name}} — correct module name on startup (e.g. "FIXPostTradeReporterAdapter") {{view_type}} — DB value for the ViewTypeForReporting setting configured for the adapter Note: The PTR automatically restricts reported trades to those that meet all the following requirements: trade.is_trade_finalized = true order.is_order_finalized = true maker_filled_volume > 0 (if ReportZeroVolumeTrades is disabled) There is no need to include the above conditions in the SQL query. Query to Select New Trades The SQL query used by the PTR to select trades to report. To edit this field, click Edit. The PostTradeReporterProcessorThread automatically replaces the following text: {{view_name}} — default view name for the ViewTypeForReporting setting configured for the adapter {{adapter_module_name}} — correct module name on startup (e.g. "FIXPostTradeReporterAdapter") {{view_type}} — DB value for the ViewTypeForReporting setting configured for the adapter Note: The PTR automatically restricts reported trades to those that meet all the following requirements: trade.is_trade_finalized = true order.is_order_finalized = true maker_filled_volume > 0 (if ReportZeroVolumeTrades is disabled) There is no need to include the above conditions in the SQL query. Query Comment A field for adding comments. To edit this field, click Edit. Note: The contents of this field have no impact on the Hub's behavior. Query Comment A field for adding comments. To edit this field, click Edit. Note: The contents of this field have no impact on the Hub's behavior. Maker Stream Overrides For Party ID (tag 448) on Maker-side reports, use this setting to override certain Maker Stream IDs in outgoing FIX messages. Specify a Maker Stream ID that trades are received from, and replace it with a different Maker Stream ID. Setting Description Setting Description From Stream Maker identifier in the original trade data. From Stream Maker identifier in the original trade data. To Stream Maker identifier to replace the tag with. To Stream Maker identifier to replace the tag with. Taker Connection Overrides For Party ID (tag 448) on Taker-side reports, use this setting to override the certain Taker Connection IDs in outgoing FIX messages. Specify a Taker Connection ID that trades are received from, and replace it with a different Taker Connection ID. Setting Description Setting Description From Connection Taker identifier in the original trade data. From Connection Taker identifier in the original trade data. To Connection Taker identifier to replace the tag with. To Connection Taker identifier to replace the tag with.