Struct rustdx::tcp::SecurityList
source · pub struct SecurityList {
pub send: Box<[u8]>,
pub market: u16,
pub start: u16,
pub count: usize,
pub response: Vec<u8>,
pub data: Box<[SecurityListData]>,
}
Expand description
查询证券列表。对应于 pytdx 中的 GetSecurityList。
§注意:
- 获取的数据可能同一类别内是有序的,不同类别间是顺序未知 (比如 A 股股票之后不是创业板/科创板股票);
- 每次返回 1000 条结果。
Fields§
§send: Box<[u8]>
§market: u16
§start: u16
§count: usize
响应信息中的列表长度。
response: Vec<u8>
§data: Box<[SecurityListData]>
Implementations§
source§impl SecurityList
impl SecurityList
sourcepub fn new(market: u16, start: u16) -> Self
pub fn new(market: u16, start: u16) -> Self
参数说明:
- market = 0 或 1,表示深市或沪市;
- start 在 [0, n] 的范围内,其中 n 是
SecurityCount
得到的结果。 目前 market = 0 时,有 13471 条; market = 1 时,有 18065 条。
Trait Implementations§
source§impl Clone for SecurityList
impl Clone for SecurityList
source§fn clone(&self) -> SecurityList
fn clone(&self) -> SecurityList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SecurityList
impl Debug for SecurityList
source§impl Default for SecurityList
impl Default for SecurityList
source§impl Tdx for SecurityList
impl Tdx for SecurityList
type Item = [SecurityListData]
Auto Trait Implementations§
impl Freeze for SecurityList
impl RefUnwindSafe for SecurityList
impl Send for SecurityList
impl Sync for SecurityList
impl Unpin for SecurityList
impl UnwindSafe for SecurityList
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