Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ZerodhaApi ¶
type ZerodhaApi struct { // authentication settings (zerodha user) UserId string Password string ApiKey string ApiSecret string TotpKey string // ticker settings TickerSubscribeTokens []uint32 TickerCh chan kitemodels.Tick TickDebug bool // to print every tick // kite instance data Ticker *kiteticker.Ticker KiteConn *kiteconnect.Client TicksPerSec int64 // number of ticks received per seconds IsTickerConnected bool IsKiteAuth bool KiteReqId string KiteReqToken string AccessToken string }
struct has 3 categories of variables 1. User information to be used for authentication 2. Tikcer config varaibles 3. Instance variables, there are updated by this package. For read only by the application
func (ZerodhaApi) CashBalance ¶
func (z ZerodhaApi) CashBalance() (float64, error)
Returns the Equity part of margins data
func (*ZerodhaApi) CloseTicker ¶ added in v0.2.0
func (z *ZerodhaApi) CloseTicker()
Closes the ticker and channel
func (*ZerodhaApi) StartTicker ¶ added in v0.2.0
func (z *ZerodhaApi) StartTicker()
Registers instruments with zerodha for tick data Setups call backs
Click to show internal directories.
Click to hide internal directories.