Nanex Logo
NxCore API Language Wrappers and Sample Apps
The NxCore API Language Wrappers and Language Samples consist of the following:
  1. Required header files (Wrappers) for each supported language, in both 32 and 64 bit versions (where needed).

  2. Ten sample applications for each of the supported languages. Each sample applications looks as close to the same sample in another language as is possible to do so. Each sample application is very small and intended to demonstrate one or two key NxCore concepts.
All samples in the NxCore Language Samples are intended to follow the conventions of the NxCore C/C++ API as closely as possible, as are all NxCore language wrappers. Moving from one language to another becomes intuitive, as does following one language in the API documentation.
Languages:

The current languages supported include:
  • C
    All samples written in a straight "C" fashion: bare bones NxCore functionality at it's finest.

  • C++
    Very similar to the C language samples with the exception of the NxCore functions are wrapped into a class and called as such. The examples are nearly identical to those in the C language samples.

  • C#
    A Language wrapper(s) file for 32 and 64 bit C-Sharp development. All samples written in C#.


  • The Console Window:

    Each Sample runs as a Windows Console application. By sticking with the console applications the various complexities of the specific GUI implementation are removed allowing the developer to stick with learning the concepts of NxCore as quickly as possible. Output on the console applications can be dizzyingly fast, if you wish to examine data in detail simply grab the console's vertical scroll bar button with the mouse and hold it. The thread will pause from processing allowing you to examine the data output in detail. To continue processing simply release the scroll bar button.
    What the Samples Demonstrate:

    Each example will take you through one or two specific concepts in NxCore. The entire NxCore API library is utilized within all ten examples. The specific concept explored in each sample are as follows:

    1. SampleApp1
      Starting NxCore ProcessTape.
      Defining/using NxCore Callback function.
      Handling the NxCore Status message.

    2. SampleApp2
      Handling the NxCore Symbol Spin Message.
      Using NxOptionHdr.
      Constructing Option Symbols in OSI or old OPRA format.

    3. SampleApp3
      Handling the NxCore Category Message.

    4. SampleApp4
      Handling NxCore Trade messages.
      Handling Exg Quote messages.
      Handling MMQuote messages.

    5. SampleApp5
      Starting ProcessTape from a thread.

    6. SampleApp6
      Retrieving StateTrades.
      Retrieving StateExgQuotes.
      Retrieving StateMMQuotes.

    7. SampleApp7
      User defined symbol spin function.
      Available NxCore Data file listings.
      Available NxCore DLL file listings.
      Retrieving strings from NxCore Tables.
      Get Date from N days.
      Get N days from date.

    8. SampleApp8
      User defined symbol spin function.
      Setting UserData1 and UserData2 values.
      Retrieving UserData1 and UserData2 values.
      Constructing Option Symbols in OSI or old OPRA format.

    9. SampleApp9
      Sending User Defined Data through the ProcessTape function, retrieving it in the NxCore Callback.

    10. SampleApp10
      Saving to a NxCore State Tape
      Running from an NxCore State Tape.