Category Description
Settlement
Futures and Options on Futures settlement information
Category Identification
| pNxCoreMessage->coreData.Category.pnxStringCategory->Atom | 84 |
| pNxCoreMessage->coreData.Category.pnxStringCategory->String | Settlement |
Update Time and Frequency
| Approximate Time | Info |
|---|---|
| 00:00 AM | Information from previous session |
Category Fields | 4
| Index | FieldName | FieldType | C Code | Info |
|---|---|---|---|---|
| 0 | ReportTime | NxCFT_TIME | pnxFields[0].data.nxTime | Exchange time of the settlement |
| 1 | ReportExgSeq | NxCFT_32BIT | pnxFields[1].data.i32Bit | Exchange sequence number |
| 2 | Settlement | NxCFT_PRICE | pnxFields[2].data.nxPrice | Exchange settlement price |
| 3 | Flags | NxCFT_STRING_MAP | pnxFields[3].data.stringTableItem | Settlement flags, such as SettleOnly, etc, from table table_NxST_SETTLEFLAGMAP.html |
Code Sample from CategoryDumper project:
void onNxCoreCategory_84(const NxCoreMessage *pNxCoreMsg)
{
NxCategoryField *pField;
// Print the category num and the Symbol
PrintSymbol(pNxCoreMsg);
pField=&pNxCoreMsg->coreData.Category.pnxFields[0];
if (pField->Set)
printf("Report Time: %02d:%02d:%02d \n",
pField->data.nxTime.Hour,
pField->data.nxTime.Minute,
pField->data.nxTime.Second);
pField=&pNxCoreMsg->coreData.Category.pnxFields[1];
if (pField->Set)
printf("Report Exg Seq: %d \n",pField->data.i32Bit);
pField=&pNxCoreMsg->coreData.Category.pnxFields[2];
if (pField->Set)
printf("Settlement: %0.4f \n",
pfNxCorePriceToDouble(pField->data.nxPrice.Price,
pField->data.nxPrice.PriceType));
pField=&pNxCoreMsg->coreData.Category.pnxFields[3];
if (pField->Set)
{
printf("Flags: Table - %d Reason - ",
pField->data.stringTableItem.ixTable);
// See table_NxST_SETTLEFLAGMAP.html
if(pField->data.stringTableItem.idString & 0x00000001)
printf("One Session \n");
if (pField->data.stringTableItem.idString & 0x00000002)
printf("All Sessions \n");
if (pField->data.stringTableItem.idString & 0x00000004)
printf("Corrected \n");
if (pField->data.stringTableItem.idString & 0x00000008)
printf("Settle Only \n");
}
}