from sumtyme import EIPClient
# Initialise the EIPClient with the provided API key
client = EIPClient(apikey='your-api-key-here')
current_timeframe_df = 1min_outputs # Example: DataFrame for the 1 minute api outputs
next_timeframe_df = 2min_outputs # Example: DataFrame for the 2 minute api outputs
result = client.check_chain_propagation(
current_tf=current_timeframe_df,
next_tf=next_timeframe_df
)
# Returns a tuple: (propagation confirmed [bool], propagation timestamp [datetime or None], chain value [int or None])
has_propagated, propagation_datetime, chain_value = result
if has_propagated:
print(f"Chain value {chain_value} successfully propagated at {propagation_datetime}.")
else:
print("No propagation detected between the timeframes.")