API documentation for tradeexecutor.strategy.interest.sync_interests Python function.

sync_interests(*, web3, wallet_address, timestamp, state, universe, pricing_model)[source]#

Update position’s interests on all tokens that receive interests

  • Credit supply positions: aToken

  • Short positions: aToken, vToken

  • web3 – Web3 connection to the active blockchain

  • wallet_address (str) – Hot wallet or vault address

  • timestamp (datetime) – Wall clock time

  • state (State) – Current strategy state

  • universe (TradingStrategyUniverse) – Trading universe that must include lending data

  • pricing_model (PricingModel) – Used to update asset price in loan

Return type: