some stuff to simulate forex market.