Versions in this module Expand all Collapse all v0 v0.0.1 Dec 29, 2021 Changes in this version + var APIEndpoint = "https://app.cidirectinvesting.com/api" + var UserAgent = "cidirectinvesting/go-v0" + type Account struct + AccountName string + AccountNumber string + AccountType string + AccountTypeFriendly string + AnnualizedXirr float64 + Archived bool + Balance float64 + BeginningBalance float64 + BeginningBalanceDate string + CashValue float64 + CashValueBeginningBalance float64 + CashValueEndingBalance float64 + ClientName string + CreatedAt time.Time + Currency string + Custodian string + CustodianAlias string + CustodianId int + CustodianName string + DefaultName string + Deposits float64 + EndingBalance float64 + EndingBalanceDate string + Fees float64 + Gains float64 + Id int + InceptionDate string + InitialValue float64 + JoinedAccounts interface{} + MarketValue float64 + MarketValueBeginningBalance float64 + MarketValueEndingBalance float64 + MaskedAccountNumber string + Name string + NetContributions float64 + PortfolioModelName string + RateOfReturn float64 + StartingBalance float64 + Status int + SupportsDeposits bool + SupportsWithdrawals bool + TotalContributions float64 + TotalValue float64 + TotalWithdrawals float64 + TradingBalance float64 + UpdatedAt time.Time + UserId int + Withdrawals float64 + WithdrawalsValue float64 + type AccountDetailRequest struct + AccountID int + type AccountDetailResponse struct + AccountName string + AccountNumber string + AccountType string + AccountTypeFriendly string + Archived bool + AssetClassAllocation []AssetClassAllocation + Balance float64 + BeginningBalance float64 + BeginningBalanceDate string + CashValue float64 + CashValueBeginningBalance float64 + CashValueEndingBalance float64 + ClientName string + CreatedAt time.Time + Currency string + Custodian string + CustodianAlias string + CustodianId int + CustodianName string + DefaultName string + Deposits float64 + EndingBalance float64 + EndingBalanceDate string + Fees float64 + FundedStatus string + Gains float64 + Id int + InceptionDate string + InitialValue float64 + JoinedAccounts interface{} + MarketValue float64 + MarketValueBeginningBalance float64 + MarketValueEndingBalance float64 + MaskedAccountNumber string + Mer float64 + Name string + NetContributions float64 + PortfolioModelName string + Positions []Position + RateOfReturn float64 + StartingBalance float64 + Status int + SupportsDeposits bool + SupportsWithdrawals bool + TotalContributions float64 + TotalValue float64 + TotalWithdrawals float64 + TradingBalance float64 + UpdatedAt time.Time + User User + UserId int + Withdrawals float64 + WithdrawalsValue float64 + type AssetClassAllocation struct + Allocation float64 + Amount float64 + Description string + Name string + type Client struct + APIEndpoint string + func New(opts ...Options) (*Client, error) + func (c *Client) AccountDetails(request AccountDetailRequest) (*AccountDetailResponse, error) + func (c *Client) Dashboard(request DashboardRequest) (*DashboardResponse, error) + func (c *Client) History(request HistoryRequest) (*HistoryResponse, error) + func (c *Client) Login() (*SessionResponse, error) + func (c *Client) Transactions(request TransactionRequest) (*TransactionResponse, error) + type Currency string + var CurrencyCAD Currency = "cad" + type DashboardRequest struct + Currencies map[Currency]struct{} + EndDate time.Time + StartDate time.Time + type DashboardResponse struct + Accounts []Account + Balance float64 + BeginningBalance float64 + CanCreateHisa struct{ ... } + Deposits float64 + EndingBalance float64 + EndingBalanceDate string + Fees float64 + Gains float64 + InceptionDate string + NetContributions float64 + RateOfReturn float64 + TaskReminders []interface{} + User User + Withdrawals float64 + type Filter struct + Description *string + Price *Range + Quantity *Range + Symbol *string + Transactions []string + Value *Range + type HistoryEntry struct + Accounts map[int]float64 + Date string + Total float64 + func (e *HistoryEntry) UnmarshalJSON(data []byte) error + type HistoryRequest struct + AccountID *int + EndDate time.Time + StartDate time.Time + type HistoryResponse []HistoryEntry + type Options func(c *Client) error + func WithAPIEndpoint(endpoint string) Options + func WithThirdPartyKey(key, secret string) Options + type Position struct + Allocation float64 + AssetClass string + CurrencyCode string + Cusip *string + Description string + ExchangeRate float64 + FundsUrl string + InsertDate string + InvestmentAccountId int + Mer float64 + PriceCad float64 + Quantity float64 + SecurityType string + Symbol string + Value float64 + ValueCad float64 + type Range struct + From int + To int + type SessionResponse struct + AdvisoryFee float64 + Archived bool + Email string + EmailConfirmed bool + FirstName string + HasAccounts struct{ ... } + HasActiveAccounts bool + HasActiveTransfers bool + HasApplication bool + HasExternalAdvisor bool + HasPlans bool + HasTransfers bool + HideBeneficiaryDesignation bool + Id int + IntercomUserHash string + IntercomUserHashAndroid string + IntercomUserHashIos string + IsArchivable bool + Language string + LastName string + Name string + Preferences struct{ ... } + PromptTwoFactorSignup bool + Roles []string + TwoFactorEnabled bool + type Transaction struct + AccountIdentifier string + Commission string + CreatedAt string + CurrencyCode string + Cusip *string + EffectiveDate string + ExchangeRate string + FullCount int + FundsUrl string + HasMatchedTransfer bool + HoldingListed bool + HumanTransactionType string + Id int + Price string + PriceCad string + ProcessDate string + Quantity string + SecurityType string + SubTransactionId string + Symbol *string + TransactionDesc string + TransactionId string + TransactionType string + TransferId interface{} + UpdatedAt string + Value string + ValueCad string + type TransactionRequest struct + AccountID int + EndDate time.Time + Filter *Filter + Limit int + OrderBy *string + Page int + Reverse bool + StartDate time.Time + type TransactionResponse struct + Data []Transaction + Limit int + Metadata struct{ ... } + Page int + Pagination struct{ ... } + TotalCount int + TotalPages int + type User struct + Email string + FirstName string + Id int + LastName string + Name string + Roles []string