Category Description
Opening and closing time of each trading session. Note that you have to check the sessionId field to see which session the times belong to. (iSIN example)
Category Identification
pNxCoreMessage->coreData.Category.pnxStringCategory->Atom | 42 |
pNxCoreMessage->coreData.Category.pnxStringCategory->String | TradingSessionHours |
Update Time and Frequency
Approximate Time | Info |
---|---|
00:00 AM | Information from previous session |
05:15 AM | Current session information |
Category Fields | 2
Index | FieldName | FieldType | C Code | Info |
---|---|---|---|---|
0 | OpenTime | NxCFT_TIME | pnxFields[0].data.nxTime | Session Open Time of specific sessionId |
1 | CloseTime | NxCFT_TIME | pnxFields[1].data.nxTime | Session Close Time of specific sessionId |
Code Sample from CategoryDumper project:
void onNxCoreCategory_42(const NxCoreMessage *pNxCoreMsg) { NxCategoryField *pField; // Print the category num and the Symbol PrintSymbol(pNxCoreMsg); pField=&pNxCoreMsg->coreData.Category.pnxFields[0]; if (pField->Set) printf("Open 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("Close Time: %02d:%02d:%02d \n", pField->data.nxTime.Hour, pField->data.nxTime.Minute, pField->data.nxTime.Second); }