agent0.chainsync.dashboard.build_ticker

Builds the ticker for the dashboard.

Functions

build_ticker_for_pool_page(→ pandas.DataFrame)

Builds the ticker dataframe for the pool page.

build_ticker_for_wallet_page(→ pandas.DataFrame)

Builds the ticker dataframe for the wallet page.

Module Contents

agent0.chainsync.dashboard.build_ticker.build_ticker_for_pool_page(trade_events: pandas.DataFrame, user_map: pandas.DataFrame, block_to_timestamp: pandas.DataFrame) pandas.DataFrame

Builds the ticker dataframe for the pool page.

Parameters:
  • trade_events (pd.DataFrame) – The dataframe resulting from get_trade_events.

  • user_map (pd.DataFrame) – A dataframe containing the mapping of wallet addresses to usernames.

  • block_to_timestamp (pd.DataFrame) – A dataframe containing the mapping of block number to timestamp.

Returns:

The filtered transaction data based on what we want to view in the ticker for a specific pool.

Return type:

pd.DataFrame

agent0.chainsync.dashboard.build_ticker.build_ticker_for_wallet_page(trade_events: pandas.DataFrame, user_map: pandas.DataFrame, hyperdrive_addr_map: pandas.DataFrame, block_to_timestamp: pandas.DataFrame) pandas.DataFrame

Builds the ticker dataframe for the wallet page.

Parameters:
  • trade_events (pd.DataFrame) – The dataframe resulting from get_trade_events.

  • user_map (pd.DataFrame) – A dataframe containing the mapping of wallet addresses to usernames.

  • hyperdrive_addr_map (pd.DataFrame) – A dataframe containing the mapping of hyperdrive addresses to hyperdrive names.

  • block_to_timestamp (pd.DataFrame) – A dataframe containing the mapping of block number to timestamp.

Returns:

The filtered transaction data based on what we want to view in the ticker for a specific wallet.

Return type:

pd.DataFrame