News for hackers. Stuff that matters.

yiweileng

You're absolutely right. Crypto markets don't have a market open.

Here, beforeTrading is simply the name of a daily callback in the backtesting framework. It runs once at the start of each UTC trading day to prepare the day's funding rate data, rather than before an actual market open.