6. // API 初始化, 返回授权成功的交易账号数量 |
|
7. // 返回值 < 1 时, 无需调用 Deinit 接口, 也不能调用其它接口, 否则会出错! |
|
8. typedef int (*InitFn)(); |
|
9. // API 反初始化 |
|
10. typedef void (*DeinitFn)(); |
|
11. // 登录交易账户 |
|
12. typedef int (*LogonFn)(const char* Ip, short Port, const char* Version, |
|
13. short Yybid, const char* Account, |
|
14. const char* TradeAccount, const char* JyPassword, |
|
15. const char* TxPassword, char* ErrorInfo); |
|
16. // 登出交易账户 |
|
17. typedef void (*LogoffFn)(int ClientId); |
|
18. // 查询各类交易数据 |
|
19. typedef void (*QueryDataFn)(int ClientId, int Category, char* Result, |
|
20. char* ErrorInfo); |
|
21. // 单账户批量查询各类交易数据 |
|
22. typedef void (*QueryDatasFn)(int ClientId, int Category[], int Count, |
|
23. char* Result[], char* ErrorInfo[]); |
|
24. // 多账户批量查询各类交易数据 |
|
25. typedef void (*QueryMultiAccountsDatasFn)(int ClientId[], int Category[], |
|
26. int Count, char* Result[], |
|
27. char* ErrorInfo[]); |
|
28. // 查询各类历史数据 |
|
29. typedef void (*QueryHistoryDataFn)(int ClientId, int Category, |
|
30. const char* StartDate, const char* EndDate, |
|
31. char* Result, char* ErrorInfo); |
|
32. // 委托下单 |
|
33. typedef void (*SendOrderFn)(int ClientId, int Category, int EntrustType, |
|
34. const char* Gddm, const char* Zqdm, float Price, |
|
35. int Quantity, char* Result, char* ErrorInfo); |
|
36. // 单账户批量下单 |
|
37. typedef void (*SendOrdersFn)(int ClientId, int Category[], int EntrustType[], |
|
38. const char* Gddm[], const char* Zqdm[], |
|
39. float Price[], int Quantity[], int Count, |
|
40. char* Result[], char* ErrorInfo[]); |
|
41. // 多账户批量下单 |
|
42. typedef void (*SendMultiAccountsOrdersFn)(int ClientId[], int Category[], |
|
43. int EntrustType[], const char* Gddm[], |
|
44. const char* Zqdm[], float Price[], |
|
45. int Quantity[], int Count, |
|