Scala implementation of DTC protocol (Data and Trading Communications)