pub struct TdConfig {
pub addr: String,
pub user: String,
pub password: String,
pub broker: String,
pub auth_code: String,
pub app_id: String,
pub product_classes: ProductClasses,
}Expand description
TD 会话配置(原稿 CtpTdApi.connect 749-777 入参)。
Debug 手工掩码(0.10.0,BD-CFG-18):password 永远 ****。
Fields§
§addr: String交易前置地址
user: String用户代码
password: String密码
broker: String经纪公司代码
auth_code: String授权编码(空则跳过认证直连登录,原稿 448-451)
app_id: String产品名称(AppID,认证用)
product_classes: ProductClasses收录的产品类白名单(D-PC-FILTER;空 = 回落默认「期货」)。 查询侧不过滤,收录侧按它严格丢弃(不进表、不上抛)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TdConfig
impl RefUnwindSafe for TdConfig
impl Send for TdConfig
impl Sync for TdConfig
impl Unpin for TdConfig
impl UnsafeUnpin for TdConfig
impl UnwindSafe for TdConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more