| Xlight API用户手册 v1.6.0.23 Xlight极速柜台接口文档

载入中...
搜索中...
未找到
xlt_trade_list.h
浏览该文件的文档.
1
7#pragma once
8#include <cstddef>
9#include "xlt_trade_struct.h"
10
11 namespace x1 {
15 class XLTOrderList {
16 public:
17 virtual size_t data_count() const = 0;
18 virtual const xlt_order_info_t* get(int i) const = 0;
19 protected:
20 virtual ~XLTOrderList() = default;
21 };
22
26 class XLTInitAssetList {
27 public:
28 virtual size_t data_count() const = 0;
29 virtual const xlt_init_asset_info_t* get(int i) const = 0;
30 protected:
31 virtual ~XLTInitAssetList() = default;
32 };
33
37 class XLTInitPositionList {
38 public:
39 virtual size_t data_count() const = 0;
40 virtual const xlt_init_position_info_t* get(int i) const = 0;
41 protected:
42 virtual ~XLTInitPositionList() = default;
43 };
44
48 class XLTAssetList {
49 public:
50 virtual size_t data_count() const = 0;
51 virtual const xlt_asset_info_t* get(int i) const = 0;
52 protected:
53 virtual ~XLTAssetList() = default;
54 };
55
59 class XLTPositionList {
60 public:
61 virtual size_t data_count() const = 0;
62 virtual const xlt_position_info_t* get(int i) const = 0;
63 protected:
64 virtual ~XLTPositionList() = default;
65 };
66
70 class XLTTradeReportList {
71 public:
72 virtual size_t data_count() const = 0;
73 virtual const xlt_trade_report_t* get(int i) const = 0;
74 protected:
75 virtual ~XLTTradeReportList() = default;
76 };
77
81 class XLTTradeAccountInfoList {
82 public:
83 virtual size_t data_count() const = 0;
84 virtual const xlt_trade_account_info_t* get(int i) const = 0;
85 protected:
86 virtual ~XLTTradeAccountInfoList() = default;
87 };
88}
x1::XLTAssetList
只读资金信息列表
定义 xlt_trade_list.h:48
x1::XLTAssetList::~XLTAssetList
virtual ~XLTAssetList()=default
x1::XLTAssetList::data_count
virtual size_t data_count() const =0
x1::XLTAssetList::get
virtual const xlt_asset_info_t * get(int i) const =0
x1::XLTInitAssetList
只读初始资金信息列表
定义 xlt_trade_list.h:26
x1::XLTInitAssetList::~XLTInitAssetList
virtual ~XLTInitAssetList()=default
x1::XLTInitAssetList::data_count
virtual size_t data_count() const =0
x1::XLTInitAssetList::get
virtual const xlt_init_asset_info_t * get(int i) const =0
x1::XLTInitPositionList
只读初始持仓信息列表
定义 xlt_trade_list.h:37
x1::XLTInitPositionList::get
virtual const xlt_init_position_info_t * get(int i) const =0
x1::XLTInitPositionList::~XLTInitPositionList
virtual ~XLTInitPositionList()=default
x1::XLTInitPositionList::data_count
virtual size_t data_count() const =0
x1::XLTOrderList
只读订单信息列表
定义 xlt_trade_list.h:15
x1::XLTOrderList::data_count
virtual size_t data_count() const =0
x1::XLTOrderList::~XLTOrderList
virtual ~XLTOrderList()=default
x1::XLTOrderList::get
virtual const xlt_order_info_t * get(int i) const =0
x1::XLTPositionList
只读持仓信息列表
定义 xlt_trade_list.h:59
x1::XLTPositionList::get
virtual const xlt_position_info_t * get(int i) const =0
x1::XLTPositionList::data_count
virtual size_t data_count() const =0
x1::XLTPositionList::~XLTPositionList
virtual ~XLTPositionList()=default
x1::XLTTradeAccountInfoList
只读交易账号信息列表
定义 xlt_trade_list.h:81
x1::XLTTradeAccountInfoList::~XLTTradeAccountInfoList
virtual ~XLTTradeAccountInfoList()=default
x1::XLTTradeAccountInfoList::data_count
virtual size_t data_count() const =0
x1::XLTTradeAccountInfoList::get
virtual const xlt_trade_account_info_t * get(int i) const =0
x1::XLTTradeReportList
只读成交回报信息列表
定义 xlt_trade_list.h:70
x1::XLTTradeReportList::data_count
virtual size_t data_count() const =0
x1::XLTTradeReportList::get
virtual const xlt_trade_report_t * get(int i) const =0
x1::XLTTradeReportList::~XLTTradeReportList
virtual ~XLTTradeReportList()=default
x1
定义 xlt_data_type.h:13
x1::xlt_asset_info_t
账户资金信息
定义 xlt_trade_struct.h:280
x1::xlt_init_asset_info_t
日初资金信息结构体
定义 xlt_trade_struct.h:42
x1::xlt_init_position_info_t
日初持仓结构体
定义 xlt_trade_struct.h:51
x1::xlt_order_info_t
订单信息结构体
定义 xlt_trade_struct.h:150
x1::xlt_position_info_t
持仓结构体
定义 xlt_trade_struct.h:268
x1::xlt_trade_account_info_t
交易账户信息
定义 xlt_trade_struct.h:369
x1::xlt_trade_report_t
成交回报
定义 xlt_trade_struct.h:108
xlt_trade_struct.h
本文件定义XLT交易数据结构体