A transaction of any kind is always done at the closing prices. If a transaction comes in before 4pm on a market day it get done at that days closing price, if a transaction comes in after 4pm the trade goes through at the next trading day's closing price. Hope this helps.