API行情配置类 用户需要在调用XLTQuoteApi::initialize方法前,创建此类实例,并设置相应的配置参数,然后将此实例传递给XLTQuoteApi::initialize方法。
更多...
#include <xlt_quote_config.h>
API行情配置类 用户需要在调用XLTQuoteApi::initialize方法前,创建此类实例,并设置相应的配置参数,然后将此实例传递给XLTQuoteApi::initialize方法。
◆ XLTQuoteConfig()
| x1::XLTQuoteConfig::XLTQuoteConfig |
( |
| ) |
|
|
default |
◆ add_agw_addr()
| bool x1::XLTQuoteConfig::add_agw_addr |
( |
const char * | ip_addr, |
|
|
uint16_t | port ) |
添加网关地址
- 参数
-
| ip_addr | agw IP地址 |
| port | agw端口 |
- 返回
- 设置是否成功
◆ agw_addrs()
| sockaddr * x1::XLTQuoteConfig::agw_addrs |
( |
| ) |
|
|
inline |
◆ agw_count()
| uint64_t x1::XLTQuoteConfig::agw_count |
( |
| ) |
const |
|
inline |
◆ get_local_addr()
| sockaddr x1::XLTQuoteConfig::get_local_addr |
( |
uint64_t | index | ) |
const |
◆ set_local_addr()
| bool x1::XLTQuoteConfig::set_local_addr |
( |
const char * | agw, |
|
|
const char * | quote ) |
设置本地网卡IP地址
- 参数
-
| agw | 连接agw的本地网卡IP,生产环境需为AGW接入网段IP |
| quote | 接收行情数据的本地网卡IP,生产环境需为行情接收网段IP |
- 返回
- 设置是否成功
◆ set_trading_day()
| void x1::XLTQuoteConfig::set_trading_day |
( |
uint64_t | trading_day | ) |
|
|
inline |
设置交易日,格式YYYYMMDD,如20230901
- 参数
-
◆ set_use_level2()
| void x1::XLTQuoteConfig::set_use_level2 |
( |
bool | use_level2 | ) |
|
|
inline |
◆ trading_day()
| uint64_t x1::XLTQuoteConfig::trading_day |
( |
| ) |
const |
|
inline |
获取交易日,格式YYYYMMDD,如20230901
- 返回
- 交易日
◆ use_level2()
| bool x1::XLTQuoteConfig::use_level2 |
( |
| ) |
const |
|
inline |
获取是否使用level2行情
- 返回
- 是否使用level2行情
该类的文档由以下文件生成: