pub enum KiteEndpoint {
Show 41 variants
LoginUrl,
GenerateSession,
InvalidateSession,
RenewAccessToken,
InvalidateRefreshToken,
Profile,
Margins,
MarginsSegment,
Holdings,
Positions,
ConvertPosition,
PlaceOrder,
ModifyOrder,
CancelOrder,
Orders,
OrderHistory,
Trades,
OrderTrades,
Quote,
OHLC,
LTP,
HistoricalData,
Instruments,
MFInstruments,
TriggerRange,
MarketMargins,
PlaceMFOrder,
CancelMFOrder,
MFOrders,
MFOrderInfo,
MFHoldings,
PlaceSIP,
ModifySIP,
CancelSIP,
SIPs,
SIPInfo,
PlaceGTT,
ModifyGTT,
CancelGTT,
GTTs,
GTTInfo,
}
Expand description
Comprehensive enum of all KiteConnect API endpoints
Variants§
LoginUrl
Generate login URL
GenerateSession
Generate session from request token
InvalidateSession
Invalidate session
RenewAccessToken
Renew access token
InvalidateRefreshToken
Invalidate refresh token
Profile
Get user profile
Margins
Get user margins
MarginsSegment
Get segment-specific margins
Holdings
Get holdings
Positions
Get positions
ConvertPosition
Convert position
PlaceOrder
Place order
ModifyOrder
Modify order
CancelOrder
Cancel order
Orders
Get all orders
OrderHistory
Get order history
Trades
Get trades
OrderTrades
Get order trades
Quote
Get real-time quotes
OHLC
Get OHLC data
LTP
Get Last Traded Price
HistoricalData
Get historical data
Instruments
Get instruments list
MFInstruments
Get MF instruments
TriggerRange
Get trigger range
MarketMargins
Get market margins
PlaceMFOrder
Place MF order
CancelMFOrder
Cancel MF order
MFOrders
Get MF orders
MFOrderInfo
Get MF order info
MFHoldings
Get MF holdings
PlaceSIP
Place SIP
ModifySIP
Modify SIP
CancelSIP
Cancel SIP
SIPs
Get SIPs
SIPInfo
Get SIP info
PlaceGTT
Place GTT
ModifyGTT
Modify GTT
CancelGTT
Cancel GTT
GTTs
Get GTTs
GTTInfo
Get GTT info
Implementations§
Source§impl KiteEndpoint
impl KiteEndpoint
Sourcepub fn method(&self) -> HttpMethod
pub fn method(&self) -> HttpMethod
Get the HTTP method for this endpoint
Sourcepub fn rate_limit_category(&self) -> RateLimitCategory
pub fn rate_limit_category(&self) -> RateLimitCategory
Get the rate limit category for this endpoint
Sourcepub fn requires_auth(&self) -> bool
pub fn requires_auth(&self) -> bool
Check if this endpoint requires authentication
Sourcepub fn build_path(&self, segments: &[&str]) -> String
pub fn build_path(&self, segments: &[&str]) -> String
Build the full URL path with dynamic segments
§Arguments
segments
- Dynamic path segments to append
§Example
use kiteconnect_async_wasm::connect::endpoints::KiteEndpoint;
let endpoint = KiteEndpoint::OrderHistory;
let path = endpoint.build_path(&["order_id_123"]);
assert_eq!(path, "/orders/order_id_123");
Sourcepub fn by_rate_limit_category(category: RateLimitCategory) -> Vec<KiteEndpoint>
pub fn by_rate_limit_category(category: RateLimitCategory) -> Vec<KiteEndpoint>
Get all endpoints in a specific rate limit category
Trait Implementations§
Source§impl Clone for KiteEndpoint
impl Clone for KiteEndpoint
Source§fn clone(&self) -> KiteEndpoint
fn clone(&self) -> KiteEndpoint
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for KiteEndpoint
impl Debug for KiteEndpoint
Source§impl Hash for KiteEndpoint
impl Hash for KiteEndpoint
Source§impl PartialEq for KiteEndpoint
impl PartialEq for KiteEndpoint
impl Eq for KiteEndpoint
impl StructuralPartialEq for KiteEndpoint
Auto Trait Implementations§
impl Freeze for KiteEndpoint
impl RefUnwindSafe for KiteEndpoint
impl Send for KiteEndpoint
impl Sync for KiteEndpoint
impl Unpin for KiteEndpoint
impl UnwindSafe for KiteEndpoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.