OnixS C++ SGX Titan OUCH Trading Handler
1.2.0
API documentation
Home
Contents
Namespaces
Classes
Files
File List
File Members
src
Enumerations.cpp
Go to the documentation of this file.
1
/*
2
* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3
*
4
* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5
* and international copyright treaties.
6
*
7
* Access to and use of the software is governed by the terms of the applicable ONIXS Software
8
* Services Agreement (the Agreement) and Customer end user license agreements granting
9
* a non-assignable, non-transferable and non-exclusive license to use the software
10
* for it's own data processing purposes under the terms defined in the Agreement.
11
*
12
* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13
* of this source code or associated reference material to any other location for further reproduction
14
* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15
*
16
* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17
* the terms of the Agreement is a violation of copyright law.
18
*/
19
#include <sstream>
20
21
#include <
OnixS/SgxTitan/Trading/OUCH/Enumerations.h
>
22
23
#include <util/Converter.h>
24
#include <util/String.h>
25
#include "
SerializationUtils.h
"
26
27
ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
28
29
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
OutboundMessageTypes
)
30
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
EnterOrder
)
31
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
ReplaceOrder
)
32
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
CancelOrder
)
33
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
CancelByOrderId
)
34
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
OutboundMessageTypes
);
35
36
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
InboundMessageTypes
)
37
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
OrderAccepted
)
38
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
OrderRejected
)
39
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
OrderReplaced
)
40
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
OrderCancelled
)
41
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(
OrderExecuted
)
42
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
InboundMessageTypes
);
43
44
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
Side
)
45
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Buy)
46
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Sell)
47
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(ShortSell)
48
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
Side
);
49
50
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
EnterOrderOpenClose
)
51
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Default)
52
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Open)
53
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Close)
54
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(MandatoryClose)
55
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
EnterOrderOpenClose
);
56
57
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
ReplaceOrderOpenClose
)
58
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(NoChange)
59
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Open)
60
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Close)
61
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(MandatoryClose)
62
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Default)
63
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
ReplaceOrderOpenClose
);
64
65
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
TimeInForce
)
66
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Day)
67
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(ImmediateOrCancel)
68
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(FillOrKill)
69
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
TimeInForce
);
70
71
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
OrderState
)
72
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(OnBbook)
73
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(NotOnBook)
74
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Inactive)
75
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Lost)
76
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
OrderState
);
77
78
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
CancellationReason
)
79
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(ByUser)
80
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Inactivated)
81
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(BySystem)
82
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(ByProxy)
83
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(PriceLimit)
84
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(DateFlagRemoval)
85
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(IssChange)
86
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(Auction)
87
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(SelfTrade)
88
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
CancellationReason
);
89
90
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
(
OrderType
)
91
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(HalfTickOrder)
92
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
(LimitOrder)
93
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
(
OrderType
);
94
95
ONIXS_SGXTITAN_OUCH_NAMESPACE_END
OnixS::SgxTitan::Trading::Ouch::OrderReplaced
Definition:
OrderReplaced.h:29
OnixS::SgxTitan::Trading::Ouch::OrderExecuted
Definition:
OrderExecuted.h:29
OnixS::SgxTitan::Trading::Ouch::OrderCancelled
Definition:
OrderCancelled.h:29
OnixS::SgxTitan::Trading::Ouch::CancelByOrderId
Definition:
CancelByOrderId.h:30
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN
#define ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_BEGIN(Enumeration)
Definition:
SerializationUtils.h:126
OnixS::SgxTitan::Trading::Ouch::Side
Side.
Definition:
Enumerations.h:101
OnixS::SgxTitan::Trading::Ouch::TimeInForce
TimeInForce.
Definition:
Enumerations.h:203
OnixS::SgxTitan::Trading::Ouch::OrderState
OrderState.
Definition:
Enumerations.h:234
OnixS::SgxTitan::Trading::Ouch::OrderRejected
Definition:
OrderRejected.h:30
Enumerations.h
OnixS::SgxTitan::Trading::Ouch::OrderType
OrderType.
Definition:
Enumerations.h:319
OnixS::SgxTitan::Trading::Ouch::CancellationReason
CancellationReason.
Definition:
Enumerations.h:268
OnixS::SgxTitan::Trading::Ouch::EnterOrderOpenClose
EnterOrderOpenClose.
Definition:
Enumerations.h:132
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY
#define ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_ENTRY(Value)
Definition:
SerializationUtils.h:140
OnixS::SgxTitan::Trading::Ouch::OutboundMessageTypes
OutboundMessageTypes.
Definition:
Enumerations.h:30
ONIXS_SGXTITAN_OUCH_NAMESPACE_END
#define ONIXS_SGXTITAN_OUCH_NAMESPACE_END
Definition:
Bootstrap.h:31
ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
#define ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
Definition:
Bootstrap.h:27
OnixS::SgxTitan::Trading::Ouch::EnterOrder
Used to enter a new order into the system.
Definition:
EnterOrder.h:28
SerializationUtils.h
OnixS::SgxTitan::Trading::Ouch::CancelOrder
Cancel Order message.
Definition:
CancelOrder.h:28
OnixS::SgxTitan::Trading::Ouch::ReplaceOrderOpenClose
ReplaceOrderOpenClose.
Definition:
Enumerations.h:166
ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END
#define ONIXS_SGXTITAN_OUCH_ENUM_TO_STR_END(Enumeration)
Definition:
SerializationUtils.h:152
OnixS::SgxTitan::Trading::Ouch::OrderAccepted
Definition:
OrderAccepted.h:29
OnixS::SgxTitan::Trading::Ouch::InboundMessageTypes
InboundMessageTypes.
Definition:
Enumerations.h:64
OnixS::SgxTitan::Trading::Ouch::ReplaceOrder
Used to modify an existing order entered via OUCH.
Definition:
ReplaceOrder.h:28