Hey all,
Pretty new around here.
Wrote a simple algorithm which backtesting of buying and selling according to different avarages of data of BTCUSD values.
On some live trading services there's a limit for the amount of tradig you can do in a certain amount of time.
I would like to simulate that.
Saw the schedule options but all the examples talked about using the schedule options from the Initialize method, which makes since but, how can I write a function which will be called due to this schedule on and will act according to data like what happens in the ondata function?

* I'm using python.

Thanks ahead,