record_interest_rate#

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

record_interest_rate(state, universe, timestamp)[source]#

Record interest rate at the time opening position.

  • Currently support only credit supply positions

  • Sets interest_rate_at_open if not set yet

Parameters: