generate_address_columns#

API documentation for tradingstrategy.pair.generate_address_columns Python function.

generate_address_columns(df)[source]#

Add base_token_address, quote_token_address columns.

These are not part of the dataset, as they can be derived from other colums.

Parameters:

df (DataFrame) – Dataframe from tradingstrategy.client.Client.fetch_pair_universe().

Returns:

New DataFrame with base_token_address and quote_token_address columns.

Return type:

DataFrame