Improve the efficiency of order_at in rde.py

I have improved the efficiency order_at in rde.py