Files
externals/linux/include/celoxica/gmac-c_template.h
T
2017-10-04 14:16:02 -04:00

85 lines
2.0 KiB
C

/****************************************************************
* *
* Copyright (C) 1991-2008 Celoxica Ltd. All rights reserved. *
* *
****************************************************************/
#ifndef GCFC_TEMPLATE_H_
#define GCFC_TEMPLATE_H_
#include <stdint.h>
#include "gmac_template.h"
/**
* \addtogroup dataformat
* @{
*/
#ifdef __cplusplus
extern "C"
{
#endif
/**
* \brief Undefined Price Value
*/
#define GMAC_PRICE_UNDEFINED ~((uint64_t)0)
/**
* \brief Undefined Size Value
*/
#define GMAC_SIZE_UNDEFINED ~((uint32_t)0)
/**
* The maximum number of venues
*/
#define GMAC_MAX_VENUES 32
/**
* The maximim number of best indicators
*/
#define GMAC_MAX_BESTS 8
/**
* \brief Description of a consolidated feed participant
*/
typedef char GMACParticipantDescription[100];
/**
* \brief TBD
*/
typedef struct {
uint8_t ExpirationMonth; /**< \brief Expiration month */
uint8_t ExpirationDay; /**< \brief Expiration day */
uint16_t ExpirationYear; /**< \brief Expiration year */
uint64_t StrikePrice; /**< \brief Strike Price */
uint8_t StrikePriceCode; /**< \brief Striek price Code */
} GMACOpraBackgroundInfo;
/**
* \brief Data about single order
*
* Structure contains data about a order presented on the feed.
*/
typedef struct {
GMACVenueID VenueID; /**< \brief Source venue(exchange) */
uint8_t BestMask; /**< \brief Bit mask specifying by which indicators was this order marked as the best */
GMACSide Side; /**< \brief Side of the order, \ref GMACSide */
uint32_t Size; /**< \brief Size of the order (Quantity) */
uint64_t Price; /**< \brief Order Price, price is coded in fixed point precision (see \ref GMAC_DECIMAL_PLACES) */
} GMACCOrderData;
#ifdef __cplusplus
}
#endif
/**
* @}
*/
#endif /* GCFC_TEMPLATE_H_ */