Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
marketdata.h
Go to the documentation of this file.
1
/* $Id$
2
*
3
* OpenMAMA: The open middleware agnostic messaging API
4
* Copyright (C) 2011 NYSE Technologies, Inc.
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
* 02110-1301 USA
20
*/
21
22
#ifndef MamaMartketDataH__
23
#define MamaMartketDataH__
24
25
/*
26
* This file provides type definitions and function declarations for
27
* MAMA types related to market data applications.
28
*/
29
30
#include "
mama/config.h
"
31
#include "
mama/types.h
"
32
#include "
mama/msgtype.h
"
33
34
#if defined(__cplusplus)
35
extern
"C"
{
36
#endif
37
38
39
typedef
enum
mamaMdDataType
40
{
41
MAMA_MD_DATA_TYPE_STANDARD
= 0,
42
MAMA_MD_DATA_TYPE_ORDER_BOOK
= 1,
43
MAMA_MD_DATA_TYPE_NEWS_STORY
= 2,
44
MAMA_MD_DATA_TYPE_WORLDVIEW
= 3,
45
MAMA_MD_DATA_TYPE_PROPERTY
= 4,
46
MAMA_MD_DATA_TYPE_USAGE_LOG
= 5,
47
MAMA_MD_DATA_TYPE_NEWS_QUERY
= 6,
48
MAMA_MD_DATA_TYPE_TEMPLATE
= 7
49
}
mamaDataType
;
50
51
52
typedef
enum
mamaMdMsgType
53
{
55
MAMA_MD_MSG_TYPE_GENERAL
= 0,
56
58
MAMA_MD_MSG_TYPE_CANCEL
= 2,
59
61
MAMA_MD_MSG_TYPE_ERROR
= 3,
62
64
MAMA_MD_MSG_TYPE_CORRECTION
= 4,
65
67
MAMA_MD_MSG_TYPE_CLOSING
= 5,
68
70
MAMA_MD_MSG_TYPE_SYMBOL_DELETE
= 7,
71
74
MAMA_MD_MSG_TYPE_SYMBOL_ACTION
= 8,
75
77
MAMA_MD_MSG_TYPE_PREOPENING
= 12,
78
80
MAMA_MD_MSG_TYPE_QUOTE
= 13,
81
83
MAMA_MD_MSG_TYPE_TRADE
= 14,
84
86
MAMA_MD_MSG_TYPE_BOOK_UPDATE
= 15,
87
91
MAMA_MD_MSG_TYPE_BOOK_INITIAL
= 16,
92
94
MAMA_MD_MSG_TYPE_BOOK_CLEAR
= 18,
95
97
MAMA_MD_MSG_TYPE_IMBALANCE
= 22,
98
100
MAMA_MD_MSG_TYPE_SECURITY_STATUS
= 23,
101
103
MAMA_MD_MSG_TYPE_NEWS_HEADLINE
= 24,
104
106
MAMA_MD_MSG_TYPE_NEWS_STORY
= 25,
107
109
MAMA_MD_MSG_TYPE_NEWS_QUERY
= 26,
110
112
MAMA_MD_MSG_TYPE_MISC
= 100
113
114
}
mamaMdMsgType
;
115
116
122
MAMAExpDLL
123
extern
mamaMdMsgType
124
mamaMdMsgType_typeForMsg
(
const
mamaMsg
msg
);
125
131
MAMAExpDLL
132
extern
const
char
*
133
mamaMdMsgType_stringForMsg
(
const
mamaMsg
msg
);
134
140
MAMAExpDLL
141
extern
const
char
*
142
mamaMdMsgType_stringForType
(
mamaMdMsgType
type);
143
149
MAMAExpDLL
150
extern
mamaMsgType
151
mamaMdMsgType_compatMsgType
(
mamaMdMsgType
type);
152
153
#if defined(__cplusplus)
154
}
155
#endif
156
157
#endif
/* MamaMartketDataH__ */
© 2012 Linux Foundation