SCBridge#

Constructor#

SCBridge([connection])

Bridge between python API and SierraChart.

Market Data#

SCBridge.get_chart_data(key[, sg_data, ...])

Gets base or subgraph data from a chart

SCBridge.get_tpo_profile(key, study_id[, ...])

Gets historical TPO profiles from the TPO Profile Chart study.

SCBridge.subscribe_to_chart_data(key[, ...])

Subscribes to constant updates on base or subgraph data from a chart

SCBridge.subscribe_to_market_depth(key[, ...])

Subscribes to constant snapshots of market depth data from chart with study with given key.

SCBridge.subscribe_to_time_and_sales(key)

Subscribes to time and sales for chart with given key.

SCBridge.subscribe_to_level1_quotes(key[, ...])

Subscribes to constant updates on quote data.

Order Management#

SCBridge.submit_order(key, is_buy, quantity)

Submits an order.

SCBridge.flatten_and_cancel(key)

Flattens position and cancels all active orders for chart with given key.

SCBridge.cancel_order(key, order_id)

Cancels an order by its ID

SCBridge.modify_order(key, order_id, quantity)

Modifies the quantity or price settings of an order.

SCBridge.get_order_status(key, order_id)

Gets the status of an order.

SCBridge.subscribe_to_order_updates(key, ...)

Subscribes to updates on an order's status.

Poisition#

SCBridge.get_position_status(key)

Gets the status of the account position; including quantity, average price, and open profit/loss.

SCBridge.subscribe_to_position_updates(key)

Subscribes to updates on the account position; including quantity, average price, and open profit/loss.

Reporting#

SCBridge.get_filled_orders(key)

Gets data on filled orders from Sierra Chart.

SCBridge.get_flat_to_flat_trade_list(key)

Gets a list of flat to flat trades.

Miscellaneous#

SCBridge.get_connection_info()

Gets info regarding the connection between SC-Py and the SC-dX Sierra Chart DLL.

SCBridge.get_symbol_info(key)

Gets info of the current symbol; including name, tick size, and currency value per tick.

SCBridge.post_data_to_subgraph(key, ...)

Sends data to a subgraph of an SC-dX study with a key.

Chart Drawings#

SCBridge.add_chart_drawing(key, chart_drawing)

Adds a drawing to the chart.

SCBridge.remove_chart_drawing(key, line_number)

Removes the chart drawing with the given line number.

SCBridge.modify_chart_drawing(key, ...)

Modifies a drawing on the chart.

SCBridge.get_chart_drawings(key[, ...])

Gets chart drawings from the chart.

Accounts#

SCBridge.get_account_info(key)

Gets the status of the account position; including name, balance, currency, and alot more.

SCBridge.subscribe_to_account_updates(key[, ...])

Subscribes to constant updates on the account position; including name, balance, currency, and alot more.

Data Types#

SubgraphQuery(study_id, subgraphs)

Represents a selection of subgraphs from a study.

AttachedOrder(quantity[, target_offset, ...])

Represents a child OCO order.

OrderGroup(parent_id[, stop_id, target_id])

A group of orders.

ChartDrawing(drawing_type, region, ...)

Represents a chart drawing.

RetracementLevel(level, line_color, width, style)

Represents a retracement level.