trade29.sc.SCBridge.get_symbol_info#

SCBridge.get_symbol_info(key: str) SymbolInfoResponse#

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

Gets the name, tick size, and currency value per tick of the symbol of the chart on which the SC-dX study with the matching key is applied to.

Parameters:
keystr

The key of the SC-dX study applied to the target chart.

Returns:
SymbolInfoResponse

Examples

>>> from trade29.sc import SCBridge
>>> bridge = SCBridge()
running bridge v0.17.0--------2024/08/13 16:28:35
connecting to sc
starting receiver
starting sender
sc version: 2666, scdx version 208, connection: t29scdx2, keys: xx
>>> info = bridge.get_symbol_info(key = "xx")
>>> print(info)
XAUUSD
>>> info.tick_size
0.05000000074505806
>>> info.currency_value_per_tick
0.05000000074505806