ActiveTick Feed C++ API SDK  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ATServerAPIDefines.h
Go to the documentation of this file.
1 #pragma once
2 #include <stdint.h>
3 
4 #pragma pack(push)
5 #pragma pack(1)
6 
7 #ifdef _WIN32
8  #ifdef ACTIVETICKSERVERAPI_EXPORTS
9  #define ACTIVETICKSERVERAPI_API __declspec(dllexport)
10  #else
11  #define ACTIVETICKSERVERAPI_API __declspec(dllimport)
12  #endif
13 
14  #define wchar16_t wchar_t
15 
16 #else
17  #ifdef __GNUC__
18  #define ACTIVETICKSERVERAPI_API __attribute__ ((visibility("default")))
19  #else
20  #define ACTIVETICKSERVERAPI_API
21  #endif
22 
23  #define wchar16_t uint16_t
24 #endif
25 
26 static const int32_t ATFundamentalNameMaxLength = 100;
27 static const int32_t ATSymbolMaxLength = 30;
28 static const int32_t ATMarketMoversMaxRecords = 15;
29 static const int32_t ATSectorNameMaxLength = 100;
30 static const int32_t ATIndustryNameMaxLength = 100;
31 static const int32_t ATTradeConditionsCount = 4;
32 
33 //ActiveTick enums
35 {
39 };
40 
42 {
49 };
50 
52 {
71 
72 };
73 
75 {
79 };
80 
82 {
87 };
88 
90 {
95 };
96 
98 {
103 };
104 
106 {
107  //Intraday fields
140 
141  //Profile fields
147 
148  //Option fields
151 
152  //Financials - Income statement fields
253 
254  //Financials - Balance sheets fields
359 
360  //Financials - Cash flow fields
426 };
427 
429 {
430  DataByte = 1,
441 };
442 
444 {
445  SymbolStock = 'S',
446  SymbolIndex = 'I',
448  SymbolBond = 'B',
452 };
453 
455 {
458 };
459 
461 {
466  ExchangeCQS = 'E',
475  ExchangeCTS = 'S',
492 };
493 
495 {
499 };
500 
502 {
505 
510 
516 };
517 
519 {
557 };
558 
560 {
596 };
597 
599 {
606 };
607 
609 {
613 };
614 
616 {
621 };
622 
624 {
628 };
629 
631 {
636 };
637 
639 {
642 };
643 
645 {
650 };
651 
653 {
656 };
657 
659 {
663 };
664 
666 {
670 };
671 
672 //ActiveTick structures
673 //
674 
675 typedef struct _ATTIME
676 {
677  uint16_t year;
678  uint16_t month;
679  uint16_t dayOfWeek;
680  uint16_t day;
681  uint16_t hour;
682  uint16_t minute;
683  uint16_t second;
684  uint16_t milliseconds;
685 } ATTIME, *LPATTIME;
686 
687 typedef struct _ATGUID
688 {
689  uint32_t Data1;
690  uint16_t Data2;
691  uint16_t Data3;
692  uint8_t Data4[8];
693 } ATGUID, *LPATGUID;
694 
695 typedef struct _ATOPTION_SYMBOL
696 {
705 
706 typedef struct _ATSYMBOL
707 {
709  uint8_t symbolType;
710  uint8_t exchangeType;
711  uint8_t countryType;
712 } ATSYMBOL, *LPATSYMBOL;
713 
714 typedef struct _ATPRICE
715 {
716  double price;
717  uint8_t precision;
718 } ATPRICE, *LPATPRICE;
719 
720 typedef struct _ATLOGIN_RESPONSE
721 {
723  uint8_t permissions[255];
726 
728 {
729  uint32_t records;
731 
732 typedef struct _ATSECTORLIST_RECORD
733 {
737 
739 {
740  uint32_t symbols;
742 
743 //HistoryDb structures
745 {
748  uint32_t recordCount;
750 
751 typedef struct _ATBARHISTORY_RECORD
752 {
757  uint64_t volume;
760 
762 {
765  uint32_t recordCount;
766  uint64_t nextOffset;
769 
771 {
776  uint32_t lastSize;
779 
781 {
788  uint32_t bidSize;
789  uint32_t askSize;
792 
793 typedef struct _ATTICKHISTORY_RECORD
794 {
795  union
796  {
800  };
802 
803 //Market holidays structures
805 {
812 
813 //MarketMovers structures
814 typedef struct _ATMARKET_MOVERS_ITEM
815 {
820  uint64_t volume;
823 
825 {
830 
832 {
836 
838 {
841 
843 {
847 
848 //QuoteDb structures
849 typedef struct _ATQUOTEDB_RESPONSE
850 {
853  uint16_t dataItemCount;
855 
856 typedef struct _ATQUOTEDB_DATA_ITEM
857 {
862 
863 //QuoteStream structures
865 {
867  uint16_t dataItemCount;
869 
871 {
875 
877 {
883  uint32_t lastSize;
886 
888 {
895  uint32_t bidSize;
896  uint32_t askSize;
899 
901 {
917  uint32_t bidSize;
918  uint32_t askSize;
919  uint32_t lastSize;
920  uint64_t volume;
922 
923 typedef struct _ATSTREAM_UPDATE
924 {
926 
927  union
928  {
933  };
935 
936 
937 #pragma pack(pop)