-
Notifications
You must be signed in to change notification settings - Fork 236
Expand file tree
/
Copy pathDFITCSECApiDataType.h
More file actions
813 lines (708 loc) · 34.2 KB
/
Copy pathDFITCSECApiDataType.h
File metadata and controls
813 lines (708 loc) · 34.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
/**
* 版权所有(C)2012-2016, 大连飞创信息技术有限公司
* 文件名称:DFITCStockApiDataType.h
* 文件说明:定义接口所需的数据类型的头文件
* 当前版本:1.3.2.0
* 作者:XSpeed证券项目组
* 发布日期:2015年01月
*/
#ifndef DFITCSECAPIDATATYPE_H
#define DFITCSECAPIDATATYPE_H
/////////////////////////////////////////////////////////////////////////
///DFITCSECBusinessTypeType 是一个业务类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECBusinessTypeType;
///股票
#define DFITCSEC_BT_Stock 0
///ETF期权
#define DFITCSEC_BT_SOP 1
///融资融券
#define DFITCSEC_BT_FASL 2
/////////////////////////////////////////////////////////////////////////
///DFITCSECRequestIDType 是一个请求ID类型
/////////////////////////////////////////////////////////////////////////
typedef long DFITCSECRequestIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountIDType 是一个客户号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECAccountIDType[21];
/////////////////////////////////////////////////////////////////////////
///DFITCSECPasswordType 是一个密码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECPasswordType[17];
/////////////////////////////////////////////////////////////////////////
///DFITCSECErrorIDType 是一个错误ID类型
/////////////////////////////////////////////////////////////////////////
typedef long DFITCSECErrorIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECSessionIDType 是一个会话ID类型
/////////////////////////////////////////////////////////////////////////
typedef long DFITCSECSessionIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECLocalOrderIDType 是一个本地委托号类型
/////////////////////////////////////////////////////////////////////////
typedef long DFITCSECLocalOrderIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECSpdOrderIDType 是一个柜台委托号类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECSpdOrderIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECMessageType 是一个柜台委托号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECMessageType[1024];
/////////////////////////////////////////////////////////////////////////
///DFITCSECFrontIDType 是一个前置机编号类型
/////////////////////////////////////////////////////////////////////////
typedef long DFITCSECFrontIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECTimeType 是一个时间类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECTimeType[13];
/////////////////////////////////////////////////////////////////////////
///DFITCSECDateType 是一个日期类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECDateType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECPasswordTypeType 是一个密码类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECPasswordTypeType;
///交易
#define DFITCSEC_PWT_Trade 0
///资金
#define DFITCSEC_PWT_Funds 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECPriceType 是一个价格类型
/////////////////////////////////////////////////////////////////////////
typedef double DFITCSECPriceType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECFundsType 是一个金额类型
/////////////////////////////////////////////////////////////////////////
typedef double DFITCSECFundsType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECEntrustDirectionType 是一个委托类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECEntrustDirectionType;
///买
#define DFITCSEC_ED_Buy 1
///卖
#define DFITCSEC_ED_Sell 2
///ETF申购
#define DFITCSEC_ED_Purchase 29
///ETF赎回
#define DFITCSEC_ED_Redemp 30
/////////////////////////////////////////////////////////////////////////
///DFITCSECQuantityType 是一个数量类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECQuantityType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECOrderTypeType 是一个订单类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECOrderTypeType;
///限价
#define DFITCSEC_OT_LimitPrice 0
///最优五档立即成交剩余撤单(上海)
#define DFITCSEC_OT_SHBESTFRTradeLeftWithdraw 1
///最优五档立即成交剩余转限价(上海)
#define DFITCSEC_OT_SHBESTFRTradeLeftTLimit 2
///市价转限价订单(深圳)
#define DFITCSEC_OT_SZLastTLimit 101
///最优价格订单(深圳)
#define DFITCSEC_OT_SZBestPrice 102
///立即成交否则撤销(深圳)
#define DFITCSEC_OT_SZImdeTradeOWithdraw 103
///最优五档立即成交否则撤单(深圳)
#define DFITCSEC_OT_SZBESTFRTradeOWithdraw 104
///全部成交否则撤单
#define DFITCSEC_OT_SZBESTTotalTradeOWithdraw 105
/////////////////////////////////////////////////////////////////////////
///DFITCSECOrderBatchIDType 是一个委托批次号类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECEntrustBatchIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECSeatIDType 是一个席位号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECSeatIDType[9];
/////////////////////////////////////////////////////////////////////////
///DFITCSECExchangeType 是一个交易所代码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECExchangeIDType[3];
///沪A
#define DFITCSEC_EI_SH "SH"
///深A
#define DFITCSEC_EI_SZ "SZ"
/////////////////////////////////////////////////////////////////////////
///DFITCSecurityIDType 是一个证券代码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECSecurityIDType[9];
////////////////////////////////////////////////////////////
///DFITCSECOrderQryFlagType 是一个报单查询标志类型
////////////////////////////////////////////////////////////
typedef int DFITCSECEntrustQryFlagType;
///所有委托
#define DFITCSTOCK_EQF_Total 0
///可撤单委托
#define DFITCSTOCK_EQF_AbleWithdraw 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECWithdrawFlagType 是一个撤销标志类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECWithdrawFlagType[2];
///委托
#define DFITCSEC_CF_EntrustSucc "O"
///撤单
#define DFITCSEC_CF_WithdrawSuc "W"
/*备注:柜台需设置6013=1,才能支持*/
///委托确认失败,废单
#define DFITCSEC_CF_EntrustFai "2"
///撤单确认失败,废单
#define DFITCSEC_CF_WithdrawFail "4"
/////////////////////////////////////////////////////////////////////////
///DFITCSECIncQryIndexType 是一个增量查询索引类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECIncQryIndexType[129];
////////////////////////////////////////////////////////////
///DFITCSECTradeQryFlagType 是一个成交查询标志类型
////////////////////////////////////////////////////////////
typedef int DFITCSECTradeQryFlagType;
///所有回转记录含撤单回转
#define DFITCSEC_TQF_Total 0
///返回成交记录
#define DFITCSEC_TQF_Trade 1
////////////////////////////////////////////////////////////
///DFITCSECPositionQryFlagType 是一个成交查询标志类型
////////////////////////////////////////////////////////////
typedef int DFITCSECPositionQryFlagType;
///无扩展信息
#define DFITCSEC_PQF_Normal 0
///返回扩展信息
#define DFITCSEC_PQF_Extend 1
////////////////////////////////////////////////////////////
///DFITCSECFundsQryFlagType 是一个资金查询标志类型
////////////////////////////////////////////////////////////
typedef int DFITCSECFundsQryFlagType;
//返回基本信息
#define DFITCSEC_FQF_Normal 0
//增加返回证券(期权)市值和总资产
#define DFITCSEC_FQF_Extend 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECCurrencyType 是一个币种类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECCurrencyType[4];
///人民币
#define DFITCSEC_C_RMB "RMB"
///美元
#define DFITCSEC_S_USD "USD"
///港币
#define DFITCSEC_S_HKD "HKD"
////////////////////////////////////////////////////////////
///DFITCSECFundsTransferFlagType 是一个资金调转标志类型
////////////////////////////////////////////////////////////
typedef int DFITCSECFundsTransferFlagType;
///转入
#define DFITCSEC_FTF_In 0
///转出
#define DFITCSEC_FTF_Out 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECEntrustBatchOrderDetailType 是一个批量委托明细类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECEntrustBatchOrderDetailType[4097];
/////////////////////////////////////////////////////////////////////////
///DFITCSECOrderRangeID 是一个委托号范围类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECOrderIDRangeType[60001];
/////////////////////////////////////////////////////////////////////////
///DFITCSECFundsFreezeTypeType 是一个资金冻结列别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECFundsFreezeTypeType;
///委托冻结
#define DFITCSEC_FFT_EntrustFreeze 1
///实时成交冻结
#define DFITCSEC_FFT_RealtimeTradeFreeze 2
///手工冻结
#define DFITCSEC_FFT_ManualFreeze 3
///手工解冻
#define DFITCSEC_FFT_ManualUnFreeze 4
///初始化资金
#define DFITCSEC_FFT_InitFunds 50
///盘中资金调入
#define DFITCSEC_FFT_FundsIn 51
///盘中资金调出
#define DFITCSEC_FFT_FundsOut 52
/////////////////////////////////////////////////////////////////////////
///DFITCSECSerialIDType 是一个流水号类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECSerialIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECStockFreezeTypeType 是一个证券冻结列别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECStockFreezeTypeType;
///委托冻结
#define DFITCSEC_SFT_EntrustFreeze 1
///增加可卖数量
#define DFITCSEC_SFT_IncSellQty 2
///减少可卖数量
#define DFITCSEC_SFT_DecSellQty 3
///手工长期冻结
#define DFITCSEC_SFT_ManualFreeze 4
///ETF申购冻结
#define DFITCSEC_SFT_PurchaseETFFREEZE 6
///要约收购冻结
#define DFITCSEC_SFT_OfferFreeze 7
///权证行权冻结
#define DFITCSEC_SFT_ExeFreeze 8
///债券抵押转标准券冻结
#define DFITCSEC_SFT_CollTranStandFreeze 9
///初始化股份
#define DFITCSEC_SFT_INITStock 50
///盘中证券调入
#define DFITCSEC_SFT_StockIn 53
///盘中证券调出
#define DFITCSEC_SFT_StockOut 54
/////////////////////////////////////////////////////////////////////////
///DFITCSECShareholderIDType 是一个股东号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECShareholderIDType[11];
/////////////////////////////////////////////////////////////////////////
///DFITCSECEntrustTypeType 是一个委托方式类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECEntrustTypeType;
///电话
#define DFITCSEC_ET_Phone 1
///磁卡
#define DFITCSEC_ET_MagicCard 2
///热键
#define DFITCSEC_ET_Hotkey 4
///柜台
#define DFITCSEC_ET_Spd 8
///远程
#define DFITCSEC_ET_Remote 16
///互联网
#define DFITCSEC_ET_Internet 32
///手机
#define DFITCSEC_ET_Mobile 64
/////////////////////////////////////////////////////////////////////////
///DFITCSECSecurityNameType 是一个证券名称类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECSecurityNameType[32];
/////////////////////////////////////////////////////////////////////////
///DFITCSECDeclareResultType 是一个申报结果类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECDeclareResultType;
///未申报
#define DFITCSEC_DR_UnDeclare 0
///正在申报
#define DFITCSEC_DR_Declaring 1
///已申报未成交
#define DFITCSEC_DR_UnTrade 2
///非法委托
#define DFITCSEC_DR_EntrustFail 3
///申请资金授权中
#define DFITCSEC_DR_AppFundsAuthing 4
///部分成交
#define DFITCSEC_DR_PartTrade 5
///全部成交
#define DFITCSEC_DR_TotalTrade 6
///部成部撤
#define DFITCSEC_DR_TradeAWithdraw 7
///全部撤单
#define DFITCSEC_DR_TotalWithdraw 8
///撤单未成
#define DFITCSEC_DR_WithdrawFail 9
///等待人工申报
#define DFITCSEC_DR_ManualDeclare 10
/////////////////////////////////////////////////////////////////////////
///DFITCSECDeclareOrderIDType 是申报委托号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECDeclareOrderIDType[11];
/////////////////////////////////////////////////////////////////////////
///DFITCSECIPAddressType 是一个ip地址类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECIPAddressType[32];
/////////////////////////////////////////////////////////////////////////
///DFITCSECMacAddressType 是一个mac地址类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECMacAddressType[32];
/////////////////////////////////////////////////////////////////////////
///DFITCSECTradeIDType 是一个成交编号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECTradeIDType[17];
/////////////////////////////////////////////////////////////////////////
///DFITCSECSecurityTypeType 是一个证券类别类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECSecurityTypeType[3];
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountStatusType 是一个状态标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECAccountStatusType;
//正常
#define DFITCSEC_AS_Normal 0
//冻结
#define DFITCSEC_AS_Freeze 1
//客户卡挂失
#define DFITCSEC_AS_LossReporting 2
//销户
#define DFITCSEC_AS_CloseAccount 3
//小额休眠
#define DFITCSEC_AS_MicroDormancy 6
//不合格
#define DFITCSEC_AS_UnQualified 7
//公司不合格
#define DFITCSEC_AS_CompUnQualified 9
/////////////////////////////////////////////////////////////////////////
///DFITCSECBranchIDType 是一个机构代码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECBranchIDType[5];
/////////////////////////////////////////////////////////////////////////
///DFITCSECPhoneIDType 是一个联系电话类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECPhoneIDType[21];
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountNameType 是一个客户名称类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECAccountNameType[81];
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountIdentityIDType 是一个证件编号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECAccountIdentityIDType[31];
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountIdentityTypeType 是一个证件标示类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECAccountIdentityTypeType;
/////////////////////////////////////////////////////////////////////////
///DFITCSBranchTypeType 是一个机构标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSBranchTypeType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECPasswdSyncFlagType 是一个密码同步标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECPasswdSyncFlagType;
///不同步
#define DFITCSEC_PSF_Sync 0
///同步
#define DFITCSEC_PSF_UnSync 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECShareholderSpecPropType 是一个股东限制属性类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECShareholderSpecPropType;
///当日指定
#define DFITCSEC_SSP_SpecTheDay 2
///回购指定
#define DFITCSEC_SSP_SpecRePurchase 16
///隔日指定
#define DFITCSEC_SSP_SpecOtherDay 32
/////////////////////////////////////////////////////////////////////////
///DFITCSECTradePermissionsType 是一个交易权限类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECTradePermissionsType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECShareholderStatusType 是一个股东状态类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECShareholderStatusType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECMainAccountFlagType 是一个主账户标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECMainAccountFlagType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECShareholderCtlPropType 是一个股东控制属性类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECShareholderCtlPropType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECOrderRangeID 是一个委托号范围类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECOrderRangeID[60001];
/////////////////////////////////////////////////////////////////////////
///DFITCSECBidTradeFlagType 是一个竞价交易标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECBidTradeFlagType;
///不允许集合竞价期间交易
#define DFITCSEC_BTF_UnBidTrade 0
///允许集合竞价期间交易
#define DFITCSEC_BTF_BidTrade 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECTradeUnitType 是一个交易单位类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECTradeUnitType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECBusinessLimitType 是一个买卖限制类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECBusinessLimitType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECSubAccountIDType 是子账户编码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECSubAccountIDType[4];
/////////////////////////////////////////////////////////////////////////
///DFITCSECOpenCloseFlagType 是一个开平标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECOpenCloseFlagType;
///开仓
#define DFITCSEC_OCF_Open 1
///平仓
#define DFITCSEC_OCF_Close 2
///执行
#define DFITCSEC_OCF_Execute 6
///履约
#define DFITCSEC_OCF_Perform 7
///实物意向交割
#define DFITCSEC_OCF_RealIntenDevi 8
///合约持仓调整
#define DFITCSEC_OCF_ConPosiAdj 9
///证券冻结
#define DFITCSEC_OCF_SecFreeze 10
///证券解冻
#define DFITCSEC_OCF_SecThaw 11
///强平
#define DFITCSEC_OCF_ForceClose 12
/////////////////////////////////////////////////////////////////////////
///DFITCSECCoveredFlagType 是一个备兑标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECCoveredFlagType;
///非备兑
#define DFITCSEC_CF_UnCovered 0
///备兑
#define DFITCSEC_CF_Covered 1
///备兑优先
#define DFITCSEC_CF_CoveredPrior 2
/////////////////////////////////////////////////////////////////////////
///DFITCSECOrderExpiryDateType 是一个订单时效限制类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECOrderExpiryDateType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECOrderCategoryType 是一个委托单类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECOrderCategoryType;
///普通委托
#define DFITCSEC_OC_GeneralOrder 0
///手动强平单
#define DFITCSEC_OC_ManualCloseOrder 1
///行情触发单
#define DFITCSEC_OC_QuoteTriggOrder 2
///自动强平单
#define DFITCSEC_OC_AutoCloseOrder 8
/////////////////////////////////////////////////////////////////////////
///DFITCSECTDevIDType 是一个第三方开发商代码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECTDevIDType[13];
/////////////////////////////////////////////////////////////////////////
///DFITCSECTDevDecInfoType 是一个第三方开发商申报信息类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECTDevDecInfoType[101];
/////////////////////////////////////////////////////////////////////////
///DFITCSECOptionTypeType 是一个期权类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECOptionTypeType;
///认沽期权
#define DFITCSEC_OT_CALL 1
///认购期权
#define DFITCSEC_OT_PUT 2
/////////////////////////////////////////////////////////////////////////
///DFITCSECContractObjectTypeType 是一个标的类型类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECContractObjectTypeType;
///A股
#define DFITCSEC_COT_STOCK 1
///ETF
#define DFITCSEC_COT_ETF 2
/////////////////////////////////////////////////////////////////////////
///DFITCSECContractUnitType 是一个期权合约单位类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECContractUnitType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECContractIDType 是一个期权合约编码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECContractIDType[20];
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountTypeType 是一个投资者类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECAccountTypeType;
///个人
#define DFITCSEC_AT_Personal 1
///机构
#define DFITCSEC_AT_Organization 2
///自营
#define DFITCSEC_AT_Selfoperation 3
///做市商
#define DFITCSEC_AT_Marketmaker 4
///交易会员
#define DFITCSEC_AT_member 0
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountPropType 是一个客户属性类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECAccountPropType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECAccountNodeIDType 是一个客户节点编号类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECAccountNodeIDType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECCheckUpLimitFlagType 是一个检查委托上限标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECCheckUpLimitFlagType;
///检查
#define DFITCSEC_CULF_Check 0
///不检查
#define DFITCSEC_CULF_UnChec 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECContractNameType 是一个合约名称类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECContractNameType[32];
/////////////////////////////////////////////////////////////////////////
///DFITCSECExecuteTypeType 是一个行权方式类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECExecuteTypeType;
///美式
#define DFITCSEC_ET_US 0
///欧式
#define DFITCSEC_ET_Europe 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECDeliveryTypeType 是一个交割方式类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECDeliveryTypeType;
//实物交割
#define DFITCSEC_DT_Real 1
//现金交割
#define DFITCSEC_DT_Cash 2
/////////////////////////////////////////////////////////////////////////
///DFITCSECOpenLimitsType 是一个开仓限制类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECOpenLimitsType;
///允许开仓
#define DFITCSEC_OL_Permit 0
///限制开仓
#define DFITCSEC_OL_UnPermit 1
/////////////////////////////////////////////////////////////////////////
///DFITCSECStockTradeFlagType 是一个股票交易标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECStockTradeFlagType;
///正常
#define DFITCSEC_STF_Normal 0
///停牌
#define DFITCSEC_STF_Stop 1
///发行
#define DFITCSEC_STF_Issue 2
///首日上市
#define DFITCSEC_STF_FirstList 3
///退市
#define DFITCSEC_STF_UnList 4
////////////////////////////////////////////////////////////////////////
///DFITCSECApproachExpireFlagType 是一个临近到期日标志类型
////////////////////////////////////////////////////////////////////////
typedef int DFITCSECApproachExpireFlagType;
////////////////////////////////////////////////////////////////////////
///DFITCSECTempAdjuestFlagType 是一个调整标志类型
////////////////////////////////////////////////////////////////////////
typedef int DFITCSECTempAdjuestFlagType;
////////////////////////////////////////////////////////////////////////
///DFITCSECStockListFlagType 是一个挂牌标志类型
////////////////////////////////////////////////////////////////////////
typedef char DFITCSECStockListFlagType[2];
///当日新挂牌合约
#define DFITCSEC_SLF_A 'A'
///存续的合约
#define DFITCSEC_SLF_E 'E'
///当日摘牌的合约
#define DFITCSEC_SLF_D 'D'
////////////////////////////////////////////////////////////////////////
// DFITCSECContractObjectStatusType 是一个标的证券状态类型
////////////////////////////////////////////////////////////////////////
typedef int DFITCSECContractObjectStatusType;
///正常
#define DFITCSEC_COS_Normal 0
///暂停
#define DFITCSEC_COS_Suspend 1
///作废
#define DFITCSEC_COS_Cancel 2
/////////////////////////////////////////////////////////////////////////
///DFITCSECExchangeNameType 是一个交易所代码类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECExchangeNameType[11];
/////////////////////////////////////////////////////////////////////////
///DFITCSECNightTradingFlagType 是一个夜市交易标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECNightTradingFlagType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECTradingDayFlagType 是一个交易日标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECTradingDayFlagType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECLvelCategoryType 是一个级别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECLvelType;
///交易所
#define DFITCSEC_L_EXCHANGE 1
///公司
#define DFITCSEC_L_COMPANY 2
///单户
#define DFITCSEC_L_CUSTOMER 3
/////////////////////////////////////////////////////////////////////////
///DFITCSECReferenceTypeType 是一个费率参数类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECReferenceTypeType;
///按标的类型
#define DFITCSEC_RT_ObjectType 1
///按标的代码
#define DFITCSEC_RT_ObjectID 2
///按期权代码
#define DFITCSEC_RT_OptionID 3
/////////////////////////////////////////////////////////////////////////
///DFITCSECCalcTypeType 是一个计算方式类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECCalcTypeType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECContractNOType 是一个指定合约编号类型
/////////////////////////////////////////////////////////////////////////
typedef char DFITCSECContractNOType[33];
/////////////////////////////////////////////////////////////////////////
///DFITCSECCrdtContractQryFlagType 是一个合约状态类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECCrdtContractQryFlagType;
///未了结
#define DFITCSEC_CCQF_UnSettle 0
///已了结未清算
#define DFITCSEC_CCQF_UnClear 1
///已了结
#define DFITCSEC_CCQF_Settle 2
/////////////////////////////////////////////////////////////////////////
///DFITCSECPositionNOType 是一个头寸编号类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECPositionNOType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECClearFlagType 是一个清算标志类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECClearFlagType;
///成交引起
#define DFITCSEC_CF_TradeCause <=1
///清算引起
#define DFITCSEC_CF_ClearCause 2
///权益补偿引起
#define DFITCSEC_CF_ComCause 3
/////////////////////////////////////////////////////////////////////////
///DFITCSECShareholderTypeType 是一个股东类别类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECShareholderTypeType;
/////////////////////////////////////////////////////////////////////////
///DFITCSECHKEntrustLimitType 是一个港股交易限制类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECHKEntrustLimitType;
///普通股票
#define DFITCSEC_HKEL_NormalStolk 0
///竞价
#define DFITCSEC_HKEL_Bid 1
///开市竞价
#define DFITCSEC_HKEL_OpeningBid 2
///零股
#define DFITCSEC_HKEL_OddStock 3
/////////////////////////////////////////////////////////////////////////
///DFITCSECHKOrderTypeType 是一个港股订单属性类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECHKOrderTypeType;
///当日有效
#define DFITCSEC_HKOT_GFT 0
///全额即时
#define DFITCSEC_HKOT_FOK 4
/////////////////////////////////////////////////////////////////////////
///DFITCSECOrderConfirmFlagType 是一个委托确认类型
/////////////////////////////////////////////////////////////////////////
typedef int DFITCSECOrderConfirmFlagType;
///委托成功
#define DFITCSEC_ORDER_SUCCESS 0
///委托失败
#define DFITCSEC_ORDER_FAIL 1
#endif//DFITCStockAPIDATATYPE_H