Skip to main content

kiteconnect/
lib.rs

1#![doc = include_str!("../README.md")]
2#![warn(missing_docs)]
3
4mod alerts;
5mod call;
6mod client;
7mod enums;
8/// Error types and the secret-key redaction helpers.
9pub mod error;
10mod gtt;
11mod historical;
12mod http;
13mod margins;
14mod market;
15mod mf;
16mod orders;
17mod portfolio;
18mod request;
19mod secret;
20mod session;
21/// Kite Connect WebSocket ticker.
22pub mod ticker;
23mod time;
24mod user;
25
26pub use call::Call;
27pub use client::{DEFAULT_BASE_URL, KiteConnect, KiteConnectBuilder};
28pub use enums::{Exchange, OrderType, Product, TransactionType, Validity, Variety};
29pub use error::{Error, Result};
30pub use orders::{Order, OrderChild, OrderChildError, OrderParams, OrderResponse, Trade};
31pub use request::{Body, RawResponse, Request};
32pub use secret::{AccessToken, ApiSecret, RefreshToken};
33pub use ticker::{
34    CloseReason, DEFAULT_TICKER_URL, KiteTicker, Mode, Tick, TickerBuilder, TickerEvent,
35    TickerEvents, parse_binary,
36};
37
38pub use alerts::{
39    Alert, AlertBasket, AlertBasketItem, AlertHistory, AlertHistoryMeta, AlertOhlc, AlertOperator,
40    AlertParams, AlertRhsType, AlertStatus, AlertType, BasketCreate, BasketGtt, BasketItemParams,
41    BasketModify, BasketOperation, BasketOrderParams, BasketWrite,
42};
43pub use gtt::{
44    Gtt, GttCondition, GttMeta, GttOrder, GttOrderResult, GttParams, GttResponse, GttResult,
45    GttTrigger, GttTriggerParams,
46};
47pub use historical::Candle;
48pub use margins::{
49    BasketMargins, BasketParams, Charges, ChargesParams, Gst, MarginParams, MarginPnl,
50    OrderCharges, OrderChargesParam, OrderMarginParam, OrderMargins,
51};
52pub use market::{Depth, DepthItem, Instrument, Ohlc, Quote, QuoteLtp, QuoteOhlc};
53pub use mf::{
54    MfHolding, MfInstrument, MfOrder, MfOrderParams, MfOrderResponse, MfSip, MfSipModifyParams,
55    MfSipParams, MfSipResponse, MfTrade,
56};
57pub use portfolio::{
58    AuctionInstrument, ConvertPositionParams, Holding, HoldingAuthParams, HoldingAuthTransferType,
59    HoldingAuthType, HoldingCompact, HoldingSummary, HoldingsAuthInstruments, HoldingsAuthResp,
60    MtfHolding, Position, PositionType, Positions,
61};
62pub use session::{UserSession, UserSessionTokens};
63pub use user::{
64    AllMargins, AvailableMargins, Bank, FullUserMeta, FullUserProfile, Margins, UsedMargins,
65    UserMeta, UserProfile,
66};