Documentation ¶
Index ¶
- func CustodianBankNameByID(id string) (name string, ok bool)
- type AuthStore
- type CashBalance
- type CashBalanceResponse
- type Client
- func (c *Client) Get(path string, dst interface{}) error
- func (c *Client) GetCashBalances() (*CashBalanceResponse, error)
- func (c *Client) GetGlobalIdentity() (*GlobalIdentityResponse, error)
- func (c *Client) GetPortfolioSummary() (*PortfolioSummaryResponse, error)
- func (c *Client) GetShareBalances(portfolioType PortfolioType) (*ShareBalanceResponse, error)
- func (c *Client) SetAuth(username, password string)
- type ClientOpts
- type GlobalIdentity
- type GlobalIdentityResponse
- type LoginRequest
- type LoginResponse
- type MutualFund
- type PortfolioSummaryDetails
- type PortfolioSummaryResponse
- type PortfolioType
- type ShareBalance
- type ShareBalanceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustodianBankNameByID ¶ added in v0.6.0
Types ¶
type AuthStore ¶
func NewFileAuthStore ¶
type CashBalance ¶ added in v0.5.0
type CashBalance struct { ID int `json:"id"` AccountNumber string `json:"rekening"` BankID string `json:"bank"` Currency string `json:"currCode"` Balance float64 `json:"saldo"` BalanceIDR float64 `json:"saldoIdr"` Status int `json:"status"` }
func (*CashBalance) CurrentBalance ¶ added in v0.5.0
func (c *CashBalance) CurrentBalance() float64
type CashBalanceResponse ¶ added in v0.5.0
type CashBalanceResponse struct {
Data []CashBalance `json:"data"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ClientOpts) *Client
func (*Client) GetCashBalances ¶ added in v0.5.0
func (c *Client) GetCashBalances() (*CashBalanceResponse, error)
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 MutualFund ¶ added in v0.4.0
func MutualFundByCode ¶ added in v0.4.0
func MutualFundByCode(code string) (mutualFund *MutualFund, ok bool)
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) Name ¶ added in v0.3.1
func (c *ShareBalance) Name() string
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.