pub struct IndexApi<'a> { /* private fields */ }
Expand description
주가지수(Index) 관련 API 엔드포인트를 제공합니다.
§예시
// 주가지수 API 접근
let index_api = client.index();
// KRX 지수 일별 시세 조회
let krx_index = index_api.krx_daily().date("20240105").fetch().await?;
println!("KRX Index: {}", krx_index);
// KOSPI 지수 최신 정보 조회
let kospi_index = index_api.kospi_daily().latest().fetch().await?;
println!("KOSPI Index: {}", kospi_index);
Implementations§
Source§impl<'a> IndexApi<'a>
impl<'a> IndexApi<'a>
Sourcepub fn krx_daily(&self) -> KrxIndexDailyBuilder<'a>
pub fn krx_daily(&self) -> KrxIndexDailyBuilder<'a>
KRX 지수 전종목 일별 시세.
Sourcepub fn kospi_daily(&self) -> KospiIndexDailyBuilder<'a>
pub fn kospi_daily(&self) -> KospiIndexDailyBuilder<'a>
코스피 지수 전종목 일별 시세.
Sourcepub fn kosdaq_daily(&self) -> KosdaqIndexDailyBuilder<'a>
pub fn kosdaq_daily(&self) -> KosdaqIndexDailyBuilder<'a>
코스닥 지수 전종목 일별 시세.
Sourcepub fn bond_daily(&self) -> BondIndexDailyBuilder<'a>
pub fn bond_daily(&self) -> BondIndexDailyBuilder<'a>
채권 지수 전종목 일별 시세.
Sourcepub fn derivative_daily(&self) -> DerivativeIndexDailyBuilder<'a>
pub fn derivative_daily(&self) -> DerivativeIndexDailyBuilder<'a>
파생상품 지수 전종목 일별 시세.
Auto Trait Implementations§
impl<'a> Freeze for IndexApi<'a>
impl<'a> !RefUnwindSafe for IndexApi<'a>
impl<'a> Send for IndexApi<'a>
impl<'a> Sync for IndexApi<'a>
impl<'a> Unpin for IndexApi<'a>
impl<'a> !UnwindSafe for IndexApi<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more