libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
batsboe_us_simulators.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "../exchanges/BATSBOE/US/v1/batsboe.hpp"
#include "../exchanges/BATSBOE/US/v1/batsboe_sim.hpp"
#include "../exchanges/BATSBOE/US/v2/batsboe.hpp"
#include "../exchanges/BATSBOE/US/v2/batsboe_sim.hpp"
Include dependency graph for batsboe_us_simulators.cpp:

Go to the source code of this file.

Classes

struct  conn_args< exchg_t >
 
struct  conn_args_n_sim< exchg_t >
 
struct  conn_args_sim_n_link< exchg_t >
 
struct  conn_args_sim_n_link_logon_logoff< exchg_t >
 

Macros

#define BOOST_TEST_MODULE   isimud_tests
 

Typedefs

using api_thread_traits = ppd::thread_params< ppd::platform_api >
 
typedef boost::mpl::list< std::pair< exchanges::BATSBOE::US::v1::connection_t, exchanges::BATSBOE::US::v1::simulator_t >> exchg_t_types
 

Functions

const boost::asio::ip::address primary_gw (boost::asio::ip::address_v4::loopback())
 
const exchanges::BATSBOE::common::Price_t price (1)
 
const exchanges::BATSBOE::common::SeqNum_t sequenceNumber (1)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (primary_gateway_available, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (re_connnect, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (logon, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (client_heartbeat, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (server_heartbeat, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (logout, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (logon_logout, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (reject, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (cancel_reject, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (cancel_accept, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (modify_reject, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (modify_accept, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (new_order, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (partial_fill, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (partial_fill_cancel, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (partial_fill_replace, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (open_cancelled, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (open_replace, exchg_t, exchg_t_types)
 

Variables

const unsigned short unused_primary_port =12347u
 
const exchanges::BATSBOE::common::ClientOrderID_t clientOrderId1 {"12345678901234test1"}
 
const exchanges::BATSBOE::common::SecurityID_t instID {"abcdefghijklmno"}
 
const exchanges::BATSBOE::common::SessionSubID_t sessionSubID {"ABC"}
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   isimud_tests

Definition at line 21 of file batsboe_us_simulators.cpp.

Typedef Documentation

◆ api_thread_traits

using api_thread_traits = ppd::thread_params<ppd::platform_api>

Definition at line 34 of file batsboe_us_simulators.cpp.

◆ exchg_t_types

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cancel_accept  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 41. \xrefitem test 191. \xrefitem test 214. \xrefitem test 251. \xrefitem test 267. \xrefitem test 285.

Definition at line 452 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cancel_reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 40. \xrefitem test 190. \xrefitem test 213. \xrefitem test 250. \xrefitem test 266. \xrefitem test 284.

Definition at line 428 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( client_heartbeat  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 34. \xrefitem test 184. \xrefitem test 207. \xrefitem test 260. \xrefitem test 291.

Definition at line 230 of file batsboe_us_simulators.cpp.

References sequenceNumber().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logon  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 33. \xrefitem test 183. \xrefitem test 206. \xrefitem test 259.

Definition at line 203 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logon_logout  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 37. \xrefitem test 187. \xrefitem test 210. \xrefitem test 263.

Definition at line 294 of file batsboe_us_simulators.cpp.

References sequenceNumber().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logout  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 36. \xrefitem test 186. \xrefitem test 209. \xrefitem test 262.

Definition at line 273 of file batsboe_us_simulators.cpp.

References sequenceNumber().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( modify_accept  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 43. \xrefitem test 193. \xrefitem test 216. \xrefitem test 269.

Definition at line 516 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( modify_reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 42. \xrefitem test 192. \xrefitem test 215. \xrefitem test 252. \xrefitem test 268. \xrefitem test 286.

Definition at line 488 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( new_order  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 44. \xrefitem test 48. \xrefitem test 194. \xrefitem test 198. \xrefitem test 76. \xrefitem test 134. \xrefitem test 217. \xrefitem test 221. \xrefitem test 270. \xrefitem test 274.

Definition at line 565 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( open_cancelled  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 49. \xrefitem test 199. \xrefitem test 222. \xrefitem test 275.

Definition at line 759 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [11/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( open_replace  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 50. \xrefitem test 200. \xrefitem test 223.

Definition at line 799 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [12/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 45. \xrefitem test 195. \xrefitem test 218. \xrefitem test 271.

Definition at line 600 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [13/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill_cancel  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 46. \xrefitem test 196. \xrefitem test 219. \xrefitem test 272.

Definition at line 635 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [14/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill_replace  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 47. \xrefitem test 197. \xrefitem test 220. \xrefitem test 273.

Definition at line 677 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [15/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( primary_gateway_available  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 31. \xrefitem test 181. \xrefitem test 204. \xrefitem test 256.

Definition at line 148 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [16/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( re_connnect  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 32. \xrefitem test 182. \xrefitem test 205. \xrefitem test 257.

Definition at line 170 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [17/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 38. \xrefitem test 39. \xrefitem test 188. \xrefitem test 189.

Definition at line 397 of file batsboe_us_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [18/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( server_heartbeat  ,
exchg_t  ,
exchg_t_types   
)
Test:
"Heartbeats" Test: Server Heartbeat. ====================================. [1] "BATS Chi-X Europe Binary Order Entry Specification", Version 1.44, 27 November, 2014
Test:
"Heartbeats" Test: Server Heartbeat. ====================================. [1] "BATS Chi-X Europe Binary Order Entry Specification", Version 1.44, 27 November, 2014
Test:
"Heartbeats" Test: Server Heartbeat. ====================================. [1] "BATS Chi-X Europe Binary Order Entry Specification", Version 1.44, 27 November, 2014

\xrefitem test 261.

Definition at line 244 of file batsboe_us_simulators.cpp.

References isimud::ISIMUD_VER_NAMESPACE::exchanges::common::thread_traits::client_to_exchange_thread, and sequenceNumber().

◆ price()

◆ primary_gw()

const boost::asio::ip::address primary_gw ( boost::asio::ip::address_v4::loopback()  )

◆ sequenceNumber()

Variable Documentation

◆ clientOrderId1

const exchanges::BATSBOE::common::ClientOrderID_t clientOrderId1 {"12345678901234test1"}

Definition at line 38 of file batsboe_us_simulators.cpp.

◆ instID

const exchanges::BATSBOE::common::SecurityID_t instID {"abcdefghijklmno"}

Definition at line 39 of file batsboe_us_simulators.cpp.

◆ sessionSubID

const exchanges::BATSBOE::common::SessionSubID_t sessionSubID {"ABC"}

Definition at line 41 of file batsboe_us_simulators.cpp.

◆ unused_primary_port

const unsigned short unused_primary_port =12347u

Definition at line 37 of file batsboe_us_simulators.cpp.