sync_reserves#

API documentation for tradeexecutor.ethereum.wallet.sync_reserves Python function.

sync_reserves(web3, clock, wallet_address, current_reserves, supported_reserve_currencies, block_identifier=None)[source]#

Check the address for any incoming stablecoin transfers to see how much cash we have.

Parameters:
  • web3 (Web3) –

  • clock (datetime) –

  • wallet_address (HexAddress) –

  • current_reserves (List[ReservePosition]) –

  • supported_reserve_currencies (List[AssetIdentifier]) –

  • block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], ~eth_typing.evm.BlockNumber, ~eth_typing.evm.Hash32, ~eth_typing.encoding.HexStr, ~hexbytes.main.HexBytes, int]) –

Return type:

List[ReserveUpdateEvent]