reduce input data for gdax
[c11concurrency-benchmarks.git] / gdax-orderbook-hpp / gdax-orderbook.hpp
index 35410a5..c3e59eb 100644 (file)
@@ -16,6 +16,7 @@
 #include <websocketpp/client.hpp>
 #include <websocketpp/concurrency/none.hpp>
 #include <websocketpp/config/asio_client.hpp>
+#define FILENAME "example90.txt"
 
 /**
  * A copy of the GDAX order book for the currency pair product given during
@@ -175,7 +176,7 @@ private:
                 {
 
                /*if(!myfile.is_open())
-                       myfile.open("example.txt");
+                       myfile.open(FILENAME);
                if(myfile.is_open())
                  {
                    myfile <<msg->get_payload().c_str()<<std::endl;
@@ -198,7 +199,7 @@ private:
 
 
            if(!myfile.is_open())
-               myfile.open("example.txt");
+               myfile.open(FILENAME);
            std::string line;
            while ( std::getline(myfile,line) )
            {
@@ -215,7 +216,7 @@ private:
            }
 
          /*   auto connection =
-                m_client.get_connection("ws://fsdf.sdfj", errorCode);
+                m_client.get_connection("wss://ws-feed.gdax.com", errorCode);
             if (errorCode) {
                 std::cerr << "failed websocketclient_t::get_connection(): " <<
                     errorCode.message() << std::endl;