Break market on close proposal into a separate file.

To help distinguish the behavior from the history API.