fetch_lending_data#

API documentation for tradeexecutor.strategy.pandas_trader.decision_trigger.fetch_lending_data Python function.

fetch_lending_data(client, bucket, timestamp, lending_reserve_universe, required_history_period)[source]#

Download the new lending candles.

Parameters:
  • client (Client) –

  • bucket (TimeBucket) –

  • timestamp (datetime) –

  • pairs

  • required_history_period (timedelta) –

  • lending_reserve_universe (LendingReserveUniverse) –

Returns:

DataFrame containing updated lending reserves.

Return type:

Dict[LendingCandleType, DataFrame]