From 441abf1e6a15a39f1ef7bf5e4ee2a4a43bff327b Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Thu, 20 Jan 2022 05:18:00 +0000
Subject: [PATCH] Added names and ready notice

---
 click.cpp |   54 +++++++++++++++++++++++++++---------------------------
 1 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/click.cpp b/click.cpp
index 0ee5fdc..ba85093 100644
--- a/click.cpp
+++ b/click.cpp
@@ -32,7 +32,7 @@
 			  << "\t-p price" << std::endl
 			  << "\t-v volume" << std::endl
 			  << "\t-i id" << std::endl
-              << "\t-l loop count (default to 1)" << std::endl
+			  << "\t-l loop count (default to 1)" << std::endl
 			  << "Always need product, need side, price and volume for "
 				 "adding/flash, need id for deleting"
 			  << std::endl;
@@ -76,8 +76,9 @@
 		std::cout << static_cast<json::RejectMessage*>(d)->as_string()
 				  << std::endl;
 	} else if (d->type == json::ERROR) {
-        std::cout << static_cast<json::ErrorMessage*>(d)->as_string() << std::endl;
-    }
+		std::cout << static_cast<json::ErrorMessage*>(d)->as_string()
+				  << std::endl;
+	}
 	delete b;
 	delete d;
 }
@@ -105,7 +106,7 @@
 	double price;
 	clickType click, side;
 	uint64_t volume;
-    uint64_t times = 1;
+	uint64_t times = 1;
 	initialise();
 	if (argc == 1) {
 		usage(), exit(0);
@@ -130,9 +131,9 @@
 		case 'i':
 			id = std::string(optarg);
 			break;
-        case 'l':
-            times = std::stoll(optarg);
-            break;
+		case 'l':
+			times = std::stoll(optarg);
+			break;
 		case '?':
 			std::cout << "*1" << std::endl;
 		default:
@@ -141,24 +142,23 @@
 			exit(0);
 		}
 	}
-    for (std::uint64_t i = 0; i < times; i++)
-    {
-        switch (click) {
-        case Buy:
-            buy(product, price, volume);
-            break;
-        case Sell:
-            sell(product, price, volume);
-            break;
-        case Flash:
-            if (side == clickType::Buy)
-                flash(product, price, volume, book::Buy);
-            else
-                flash(product, price, volume, book::Sell);
-            break;
-        case Delete:
-            deleteOrder(product, id);
-            break;
-        }
-    }
+	for (std::uint64_t i = 0; i < times; i++) {
+		switch (click) {
+		case Buy:
+			buy(product, price, volume);
+			break;
+		case Sell:
+			sell(product, price, volume);
+			break;
+		case Flash:
+			if (side == clickType::Buy)
+				flash(product, price, volume, book::Buy);
+			else
+				flash(product, price, volume, book::Sell);
+			break;
+		case Delete:
+			deleteOrder(product, id);
+			break;
+		}
+	}
 }

--
Gitblit v1.9.3