Skip to main content

SubscribeBit

#[repr(i32)]
pub enum SubscribeBit {
Show 41 variants SbitPrice = 0, SbitStockState = 1, SbitStockTypeSpecific = 2, SbitOrderBook = 3, SbitOrderBookSimple = 4, SbitDealStatistics = 5, SbitHistoryHighlowPrice = 6, SbitHistoryClosePrice = 7, SbitFinancialIndicator = 8, SbitHkBrokerQueue = 9, SbitAuction = 10, SbitHkVcm = 11, SbitUsPremarketAfterhours = 12, SbitUsPremarketAfterhoursDetail = 13, SbitCnOrderBookDetail = 14, SbitMarginInfo = 15, SbitDepositoryReceipt = 16, SbitUsLv2Order = 17, SbitStaticFinancialIndicator = 18, SbitUsoptLv2Order = 19, SbitTimeSharingPlans = 20, SbitKline1minute = 21, SbitKline3minute = 22, SbitKline5minute = 23, SbitKline15minute = 24, SbitKline30minute = 25, SbitKline60minute = 26, SbitKlineDay = 27, SbitKlineWeek = 28, SbitKlineMonth = 29, SbitKlineQuarter = 30, SbitKlineYear = 31, SbitPreAfterTimeSharingPlans = 32, SbitTick = 35, SbitKline120minute = 36, SbitKline240minute = 37, SbitBondAnalysis = 38, SbitMegerLv2Order = 39, SbitKline10minute = 40, SbitKline180minute = 41, SbitNoii = 42,
}
Expand description

订阅位 备注:如果一些订阅位使用的数据类型需要单独添加字段,在本协议文件中定义一个新类型来组合已有类型,然后再添加字段。

Variants§

§

SbitPrice = 0

覆盖型行情数据相关订阅位。除非特殊说明,对应的数据类型都在FTCmdStockQuoteCoverageData.proto文件中定义。

股票按盘价 Price

§

SbitStockState = 1

股票状态 StockState

§

SbitStockTypeSpecific = 2

各种类型股票特有的数据 StockTypeSpecific

§

SbitOrderBook = 3

委托摆盘(买卖档) OrderBook

§

SbitOrderBookSimple = 4

委托摆盘简要信息 OrderBookSimple

§

SbitDealStatistics = 5

成交统计 DealStatistics

§

SbitHistoryHighlowPrice = 6

历史高低价 FTCmdSubData.BitDataHistoryHighLowPrice

§

SbitHistoryClosePrice = 7

历史收盘价 HistoryClosePrice

§

SbitFinancialIndicator = 8

财务指标 FinacialIndicator

§

SbitHkBrokerQueue = 9

港股经纪队列 HKBrokerQueue

§

SbitAuction = 10

港股盘后竞价 & 通用竞价协议 AuctionInfo

§

SbitHkVcm = 11

港股冷静期机制 HKVCMInfo

§

SbitUsPremarketAfterhours = 12

美股盘前或盘后简要信息 USPreMarketAfterHours

§

SbitUsPremarketAfterhoursDetail = 13

美股盘前与盘后详情信息 USPreMarketAfterHoursDetail

§

SbitCnOrderBookDetail = 14

A股委托摆盘明细 CNOrderBookDetail

§

SbitMarginInfo = 15

融资融券信息 MarginInfo **** 订阅位废弃

§

SbitDepositoryReceipt = 16

存托凭证信息(ADR/CDR换算价) DepositoryReceipt

§

SbitUsLv2Order = 17

美股LV2订阅位 USLV2OrderList

§

SbitStaticFinancialIndicator = 18

静态财务指标 StaticFinancialIndicator。

§

SbitUsoptLv2Order = 19

美股期权lv2订阅位 USLV2OrderList

§

SbitTimeSharingPlans = 20

累积型行情类型 - 分时K线订阅位。对应的数据类型在FTCmdStockQuoteAccumulateData.proto文件中定义。

分时 TimeSharingPlans

§

SbitKline1minute = 21

1分K SBIT_KLINE_* 对应的类型为 Kline

§

SbitKline3minute = 22

3分K

§

SbitKline5minute = 23

5分K

§

SbitKline15minute = 24

15分K

§

SbitKline30minute = 25

30分K

§

SbitKline60minute = 26

60分K

§

SbitKlineDay = 27

日K

§

SbitKlineWeek = 28

周K

§

SbitKlineMonth = 29

月K

§

SbitKlineQuarter = 30

季K

§

SbitKlineYear = 31

年K

§

SbitPreAfterTimeSharingPlans = 32

(美股)盘前盘后分时 TimeSharingPlans

§

SbitTick = 35

累积型行情类型 - 逐笔订阅位。对应的数据类型在FTCmdStockQuoteAccumulateData.proto文件中定义。

逐笔 Tick

§

SbitKline120minute = 36

120分K

§

SbitKline240minute = 37

240分K

§

SbitBondAnalysis = 38

债券指标数据

§

SbitMegerLv2Order = 39

合单lv2摆盘,除订阅,请求、回报与SBIT_US_LV2_ORDER相同。

§

SbitKline10minute = 40

10分K

§

SbitKline180minute = 41

180分K

§

SbitNoii = 42

竞价分析订阅位 (需指定prob2,参考SBIT_US_LV2_ORDER) NoiiInfo

Implementations§

Source§

impl SubscribeBit

Source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of SubscribeBit.

Source

pub fn from_i32(value: i32) -> Option<SubscribeBit>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a SubscribeBit, or None if value is not a valid variant.

Source§

impl SubscribeBit

Source

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

Source

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations§

Source§

impl Clone for SubscribeBit

Source§

fn clone(&self) -> SubscribeBit

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SubscribeBit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SubscribeBit

Source§

fn default() -> SubscribeBit

Returns the “default value” for a type. Read more
Source§

impl From<SubscribeBit> for i32

Source§

fn from(value: SubscribeBit) -> i32

Converts to this type from the input type.
Source§

impl Hash for SubscribeBit

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for SubscribeBit

Source§

fn cmp(&self, other: &SubscribeBit) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for SubscribeBit

Source§

fn eq(&self, other: &SubscribeBit) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for SubscribeBit

Source§

fn partial_cmp(&self, other: &SubscribeBit) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<i32> for SubscribeBit

Source§

type Error = UnknownEnumValue

The type returned in the event of a conversion error.
Source§

fn try_from(value: i32) -> Result<SubscribeBit, UnknownEnumValue>

Performs the conversion.
Source§

impl Copy for SubscribeBit

Source§

impl Eq for SubscribeBit

Source§

impl StructuralPartialEq for SubscribeBit

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more