pub struct Symbol {
pub symbol: String,
pub description: String,
pub market_type: String,
pub exchange: String,
pub currency_code: String,
pub data_provider: String,
pub country_code: String,
pub type_specs: Vec<String>,
pub exchange_source: ExchangeSource,
}Expand description
A tradable instrument on TradingView.
The canonical identifier is "EXCHANGE:SYMBOL" (e.g. "NASDAQ:AAPL",
"BINANCE:BTCUSDT"). Use Symbol::id() to obtain this string.
Construct via the builder:
use tradingview::Symbol;
let sym = Symbol::builder()
.symbol("BTCUSDT")
.exchange("BINANCE")
.build();Fields§
§symbol: String§description: String§market_type: String§exchange: String§currency_code: String§data_provider: String§country_code: String§type_specs: Vec<String>§exchange_source: ExchangeSourceImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Symbol
impl<'de> Deserialize<'de> for Symbol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MarketSymbol for Symbol
impl MarketSymbol for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin for Symbol
impl UnwindSafe for Symbol
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