Skip to main content

Ticker

Struct Ticker 

Source
pub struct Ticker {
Show 36 fields pub date: Option<String>, pub data_type: Option<String>, pub exchange: Option<String>, pub market: Option<String>, pub symbol: String, pub name: Option<String>, pub name_en: Option<String>, pub industry: Option<String>, pub security_type: Option<String>, pub reference_price: Option<f64>, pub limit_up_price: Option<f64>, pub limit_down_price: Option<f64>, pub previous_close: Option<f64>, pub can_day_trade: bool, pub can_buy_day_trade: bool, pub can_below_flat_margin_short_sell: bool, pub can_below_flat_sbl_short_sell: bool, pub is_attention: bool, pub is_disposition: bool, pub is_unusually_recommended: bool, pub is_specific_abnormally: bool, pub is_newly_compiled: bool, pub matching_interval: Option<i32>, pub security_status: Option<String>, pub board_lot: Option<i32>, pub trading_currency: Option<String>, pub exercise_price: Option<f64>, pub exercised_volume: Option<i64>, pub cancelled_volume: Option<i64>, pub remaining_volume: Option<i64>, pub exercise_ratio: Option<f64>, pub cap_price: Option<f64>, pub floor_price: Option<f64>, pub maturity_date: Option<String>, pub open_time: Option<String>, pub close_time: Option<String>,
}
Expand description

Stock ticker information from Fugle API (intraday/ticker/{symbol})

This matches the official SDK’s RestStockIntradayTickerResponse

Fields§

§date: Option<String>

Trading date (YYYY-MM-DD). Optional: the intraday/tickers list returns lightweight items (symbol/industry/name only) with no date; the single ticker/quote endpoints do include it.

§data_type: Option<String>

Security type (e.g., “EQUITY”, “ODDLOT”)

§exchange: Option<String>

Exchange code (e.g., “TWSE”, “TPEx”)

§market: Option<String>

Market (e.g., “TSE”, “OTC”)

§symbol: String

Stock symbol (e.g., “2330”)

§name: Option<String>

Stock name (Chinese)

§name_en: Option<String>

Stock name (English)

§industry: Option<String>

Industry category

§security_type: Option<String>

Security type classification

§reference_price: Option<f64>

Reference price (previous close)

§limit_up_price: Option<f64>

Limit up price

§limit_down_price: Option<f64>

Limit down price

§previous_close: Option<f64>

Previous close price

§can_day_trade: bool

Can day trade

§can_buy_day_trade: bool

Can buy day trade

§can_below_flat_margin_short_sell: bool

Can below flat margin short sell

§can_below_flat_sbl_short_sell: bool

Can below flat SBL short sell

§is_attention: bool

Is attention stock

§is_disposition: bool

Is disposition stock

§is_unusually_recommended: bool

Is unusually recommended

§is_specific_abnormally: bool

Is specific abnormally

§is_newly_compiled: bool

Is newly compiled

§matching_interval: Option<i32>

Matching interval (seconds)

§security_status: Option<String>

Security status

§board_lot: Option<i32>

Board lot size

§trading_currency: Option<String>

Trading currency

§exercise_price: Option<f64>

Exercise price (for warrants)

§exercised_volume: Option<i64>

Exercised volume

§cancelled_volume: Option<i64>

Cancelled volume

§remaining_volume: Option<i64>

Remaining volume

§exercise_ratio: Option<f64>

Exercise ratio

§cap_price: Option<f64>

Cap price

§floor_price: Option<f64>

Floor price

§maturity_date: Option<String>

Maturity date

§open_time: Option<String>

Open time

§close_time: Option<String>

Close time

Implementations§

Source§

impl Ticker

Source

pub fn price_range(&self) -> Option<(f64, f64)>

Get the price limit range

Source

pub fn is_tradeable(&self) -> bool

Check if stock is tradeable (not halted or restricted)

Trait Implementations§

Source§

impl Clone for Ticker

Source§

fn clone(&self) -> Ticker

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Ticker

Source§

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

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

impl Default for Ticker

Source§

fn default() -> Ticker

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

impl<'de> Deserialize<'de> for Ticker

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Ticker, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Ticker

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Serialize for Ticker

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Ticker

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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.

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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,