From c04bc9db6ad20014618bfd4078703f21fbcd2ec4 Mon Sep 17 00:00:00 2001 From: Taha Afzal Date: Tue, 14 Nov 2017 10:04:41 -0500 Subject: [PATCH] adding test skeletons --- .../orderman/tests/spreader_order_tests.cpp | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/server/sparkd/orderman/tests/spreader_order_tests.cpp b/src/server/sparkd/orderman/tests/spreader_order_tests.cpp index c93c2f5fb..0e4cca40b 100644 --- a/src/server/sparkd/orderman/tests/spreader_order_tests.cpp +++ b/src/server/sparkd/orderman/tests/spreader_order_tests.cpp @@ -193,6 +193,36 @@ void _fill_book(Book& book, double inside_market, double tick_size, uint16_t* si } } +// QuoteLegPriceQuantityState is used by the quoter +// to keep the state of the order state, ie +// target price, qty +// filled qty +// reduced quantity due to other legs +// output price, qty +void test_QuoteLegPriceQuantityState () +{ +} +// tests spread_qty -> leg_qty and leg_2_qty -> leg_1_qty +void test_leg_quantity_normalization () +{ +} +// given a qty, traverses the book to find the level +// where the accumulated qty >= given qty +void test_book_traversal () +{ +} +// this is how the spreader organizes the data +void test_SpreaderBookkeepingData () +{ +} +// quote price and quantity for a 2 legged spread +void test_quote_price_quantity_2_legged() +{ +} +// hedge price and quantity for a 2 legged spread +void test_hedge_price_quantity_2_legged() +{ +} void _test_quoter_price_quantity (const QuoteLegPriceQuantityState& qp_state, Price target_spread_price, Quantity target_leg_quantity,