Attempt at writing a trade graph