Table of Contents


StateGetLastTrade

Returns the current Memory State of a Symbol's Open, High, Low, Last, Volume Data.

Can only be called from inside your NxCoreCallback function.


    #define cszNxCoreStateGetLastTrade "sNxCoreStateGetLastTrade"
    typedef int (__stdcall *NxCoreStateGetLastTrade)(NxCoreStateTrade* pStateTrade, NxString* pnxsSymOrCtc/*=0*/);

    int StateGetLastTrade(
        NxCoreStateTrade*               pStateTrade,
        NxString*                       pnxsSymOrDateStrike=0
        );

Parameters

pStateTrade

Pointer to a NxCoreStateTrade structure to be filled with the current state information.

pnxsSymOrContract

Pass the value zero to choose the current symbol for the callback message.
Pointer to an NxString obtained in a previous callback in the same instance from one of the following data members

Return Value

Returns 0 if successful, non-zero if failed

Comments

The value of the fields in pStateTrade is undefined if the function fails.

Example

For example of this function see here