The RAP data stream (RDS) template file defines the structure of RAP message types in Event Stream Processor.
For more information on RAP Messages and Schemas, see Customizing the RAP Messages and Schema Chapter in the RAP - The Trading Edition R4.1 Developers Guide.
<?xml version="1.0" encoding="UTF-8"?> <Template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../template.xsd"> <MessageDefnList> <MessageDefn> <MessageDesc>...</MessageDesc> <MessageType>...</MessageType> <DestTableName>...</DestTableName> <FieldDefnList> <FieldDefn> <FieldName>...</FieldName> <StringField/> <DestColumnName>...</DestColumnName> <Lookup> <LookupTableName>...T</LookupTableName> <LookupColumnName>...</LookupColumnName> <LookupColumnReturn>...</LookupColumnReturn> </Lookup> </FieldDefn> </FieldDefnList> </MessageDefn> </MessageDefnList> </Template>
Element | Description |
---|---|
Template |
Root element for the template. |
MessageDefnList |
A list of one or more message definitions. |
MessageDefn |
Information that defines a single message type. |
MessageDesc |
Description of the type of market data message, for example, Stock Quote. This element is used only for descriptive purposes, and can contain any string. |
MessageType |
Unique number representing the type of market data message. This number must uniquely identify the message type across all message definitions within all templates. The value can contain any integer from 1 – 65535. |
DestTableName |
Name of the database table into which the message should be stored. There is one database table per message type. The value can contain any string. |
FieldDefnList |
A list of one or more field definitions. |
FieldDefn |
Information that defines a single field. |
FieldName |
Name of the field. The value can contain any string. |
IntegerField |
Indicates that the field is some type of integer datatype. |
IntegerDataType |
Datatype of an integer field. Valid values: uint8, uint16, uint32, uint64, sint8, sint16, sint32, or sint64. |
DecimalField |
Indicates that the field is a decimal value. The field definition can contain only one of: IntegerField, DecimalField, StringField, DateField, TimeField, DateTimeField, DateTime2Field, or Time2Field. |
Precision |
Precision of a decimal field. Maximum precision allowed is 38 digits. |
Scale |
Scale of a decimal field (the number of digits after the decimal point). Maximum scale can be no larger than the precision (38). |
StringField |
Indicates that the field is a string datatype. |
DateField |
Indicates that the field is a date datatype. The field definition can contain only one of: IntegerField, DecimalField, StringField, DateField, TimeField, DateTimeField, DateTime2Field, or Time2Field. |
TimeField |
Indicates that the field is a time datatype. |
Time2Field |
Indicates that the field is a bigtime datatype (granularity to 6 decimal places). The field definition can contain only one of: IntegerField, DecimalField, StringField, DateField, TimeField, DateTimeField, DateTime2Field, or Time2Field. |
DateTimeField |
Indicates that the field is a datetime datatype. |
DateTime2Field |
Indicates that the field is a bigdatetime (granularity to 6 decimal places). The field definition can contain only one of: IntegerField, DecimalField, StringField, DateField, TimeField, DateTimeField, DateTime2Field, or Time2Field. |
DestColumnName |
Name of the column into which the field data should be stored. There is one column per field. The value of this element can contain any string. |
Lookup |
(Optional) Indicates that the data in the field should be used as a lookup for another table. If this element does not appear in a field definition, then no lookup is required. |
LookupTableName |
Name of the table to use to look up a value. |
LookupColumnName |
Name of the column to use to look up a value. |
LookupColumnReturn |
Name of the column from which to return data when doing a lookup. |