Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthStore ¶
func NewFileAuthStore ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ClientOpts) *Client
func (*Client) GetGlobalIdentity ¶
func (c *Client) GetGlobalIdentity() (*GlobalIdentityResponse, error)
func (*Client) GetPortfolioSummary ¶
func (c *Client) GetPortfolioSummary() (*PortfolioSummaryResponse, error)
func (*Client) GetShareBalances ¶
func (c *Client) GetShareBalances(portfolioType PortfolioType) (*ShareBalanceResponse, error)
type ClientOpts ¶
type GlobalIdentity ¶
type GlobalIdentity struct { LoginID string `json:"idLogin"` Username string `json:"username"` Email string `json:"email"` Phone string `json:"phone"` FullName string `json:"fullName"` InvestorID string `json:"investorId"` InvestorName string `json:"sidName"` CitizenID string `json:"nikId"` PassportID string `json:"passportId"` TaxID string `json:"npwp"` // Indonesian Tax number (NPWP) CardID string `json:"cardId"` // KSEI card ID }
type GlobalIdentityResponse ¶
type GlobalIdentityResponse struct { Code string Status string Identities []GlobalIdentity }
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Validation string `json:"validation"`
}
type PortfolioSummaryDetails ¶
type PortfolioSummaryResponse ¶
type PortfolioSummaryResponse struct { Total float64 `json:"summaryValue"` Details []PortfolioSummaryDetails `json:"summaryResponse"` }
type PortfolioType ¶
type PortfolioType string
var ( EquityType PortfolioType = "EKUITAS" MutualFundType PortfolioType = "REKSADANA" CashType PortfolioType = "KAS" BondType PortfolioType = "OBLIGASI" OtherType PortfolioType = "LAINNYA" )
func (PortfolioType) Name ¶
func (t PortfolioType) Name() string
type ShareBalance ¶
type ShareBalance struct { // contains filtered or unexported fields }
func (*ShareBalance) CurrentValue ¶
func (c *ShareBalance) CurrentValue() float64
func (*ShareBalance) Symbol ¶
func (c *ShareBalance) Symbol() string
func (*ShareBalance) Valid ¶
func (c *ShareBalance) Valid() bool
type ShareBalanceResponse ¶
type ShareBalanceResponse struct {}
func (*ShareBalanceResponse) RemoveInvalidData ¶
func (r *ShareBalanceResponse) RemoveInvalidData()
Click to show internal directories.
Click to hide internal directories.