visualise_weights#
API documentation for tradeexecutor.analysis.weights.visualise_weights Python function.
- visualise_weights(weights_series, normalised=True, color_palette=['#FD3216', '#00FE35', '#6A76FC', '#FED4C4', '#FE00CE', '#0DF9FF', '#F6F926', '#FF9616', '#479B55', '#EEA6FB', '#DC587D', '#D626FF', '#6E899C', '#00B5F7', '#B68E00', '#C9FBE5', '#FF0092', '#22FFA7', '#E3EE9E', '#86CE00', '#BC7196', '#7E7DCD', '#FC6955', '#E48F72'], template='plotly_dark', include_reserves=True, legend_mode=LegendMode.side, aave_colour='#ccc', reserve_asset_colour='#aaa', clean=False)[source]#
- Draw a chart of weights. - Parameters:
- normalised – Do 100% stacked chart over time 
- include_reserves – - Include reserve positions like USDC in the output. - Setting False will remove cash, Aave, vaults. 
- clean – - Remove title texts. - Good for screenshots. 
- weights_series (Series) – 
- legend_mode (LegendMode) – 
 
- Returns:
- Plotly chart 
- Return type:
- Figure