Interests Calculation while Holding Open Orders

Hello,

Is there a way to implement Interests Calculation while Holding Open Orders on DEX’s ?

This has not been ever seen in the traditional markets nor in crypto assets world.

Given smart contracts functions, that should be technically possible ? Keep up the great work.