get_latest_block_timestamp#

API documentation for tradeexecutor.utils.blockchain.get_latest_block_timestamp Python function.

get_latest_block_timestamp(web3)[source]#

Get the latest block timestamp.

Warning

Do not use

See eth_defi.provider.broken_provider.get_almost_latest_block_number()

Returns:

Timezone naive UTC datetime

Parameters:

web3 (Web3) –

Return type:

datetime