add_info_columns_to_ohlc#

API documentation for tradingstrategy.binance.utils.add_info_columns_to_ohlc Python function.

add_info_columns_to_ohlc(df, pairs)[source]#

Add single pair informational columns to an OHLC dataframe.

Parameters:
  • *args

    Each argument is a dict with the format {symbol: pair} E.g. {‘ETHUSDT’: TradingPairIdentifier(…)}

  • df (DataFrame) –

  • pairs (dict[str, tradingstrategy.pair.DEXPair]) –

Returns:

The same dataframe with added columns