In the case of stocks and futures, those prices come from the exchange where they are traded. Forex is a little different as there is no central exchange.
When considering securities such as stocks and futures, their prices are derived from the marketplace where they are exchanged. Conversely, foreign currencies like Forex do not have a single, central location for trading.