dashboard.plots.plots
copy
datetime
timedelta
Decimal
pd
px
go
pytz
st
make_subplots
format_amount_str
to_base10
PriceModel
get_historical_prices
DataFormat
convert_time_window
VolatilityModel
plot_gas_spent
def plot_gas_spent(df: pd.DataFrame)
plot_gas_spent_cumulative
def plot_gas_spent_cumulative(df: pd.DataFrame)
plot_swap_cost_cumulative
def plot_swap_cost_cumulative(df: pd.DataFrame, token0_symbol: str,
token1_symbol: str)
plot_fees
def plot_fees(df: pd.DataFrame)
plot_fees_cumulative
def plot_fees_cumulative(df: pd.DataFrame, token0_symbol: str,
token1_symbol: str)
plot_close_position
def plot_close_position(df: pd.DataFrame)
plot_wallet_snapshots
def plot_wallet_snapshots(df: pd.DataFrame)
plot_strategy_token_balances
def plot_strategy_token_balances(df: pd.DataFrame)
plot_strategy_native_balances
def plot_strategy_native_balances(df: pd.DataFrame)
plot_networth_over_time
def plot_networth_over_time(df: pd.DataFrame,
currency: str = "USD",
start_at_open: bool = True,
normalized: bool = False)
plot_pnl
def plot_pnl(df: pd.DataFrame,
initial_amount: Decimal,
start_at_open: bool = True,
normalized: bool = False)
plot_pnl_colored
def plot_pnl_colored(df: pd.DataFrame,
initial_amount: Decimal,
normalized: bool = False)
plot_liquidity_distribution
def plot_liquidity_distribution(all_processed_ticks,
pool,
position_info=None,
simple=False)
plot_positions_over_time
def plot_positions_over_time(positions,
data_source,
pool,
data_format="close",
granularity="1h",
start_time=None,
end_time=None,
price_model: PriceModel = None,
volatility_model: VolatilityModel = None)
plot_il_over_time
def plot_il_over_time(df: pd.DataFrame)
plot_fees_vs_il_over_time
def plot_fees_vs_il_over_time(df)
plot_candlestick_chart
def plot_candlestick_chart(df, base_token, base_symbol, quote_token,
quote_symbol)