Versions in this module Expand all Collapse all v0 v0.1.0 Jun 18, 2026 Changes in this version + const StakeURL + var ASX = ASXEndpoints + var ErrInvalidLogin = errors.New("stake: invalid login") + var ErrMissingSessionToken = errors.New("stake: missing session token") + var ErrNotFound = errors.New("stake: not found") + var ErrTradeFailed = errors.New("stake: trade failed") + var ErrUnsupportedExchange = errors.New("stake: unsupported exchange") + var NYSE = NYSEEndpoints + func FormatEndpoint(template string, values map[string]string) (string, error) + type APIError struct + Body []byte + Method string + StatusCode int + URL string + func (e *APIError) Error() string + type ASXBuyRequest interface + type ASXCashAvailable struct + BuyingPower *FlexibleFloat64 + CashAvailableForTransfer *FlexibleFloat64 + CashAvailableForWithdrawal *FlexibleFloat64 + CashAvailableForWithdrawalHold *FlexibleFloat64 + ClearingCash *FlexibleFloat64 + PendingBuys *FlexibleInt + PendingWithdrawals *FlexibleInt + SettledCash *FlexibleFloat64 + SettlementHold *FlexibleInt + TradeSettlement *FlexibleInt + type ASXCourseOfSale struct + BuyOrderNumber string + CancelledTimeMillis *int64 + ExchangeMarket string + ID string + InstrumentCodeID string + Price *FlexibleFloat64 + SellOrderNumber string + TradeTimeMillis *int64 + Value *FlexibleFloat64 + Volume *FlexibleInt + type ASXDepthLevel struct + ID string + NumberOfOrders *FlexibleInt + Orders []ASXDepthOrder + Price *FlexibleFloat64 + Value *FlexibleFloat64 + Volume *FlexibleInt + type ASXDepthOrder struct + Exchange string + ID string + Undisclosed *bool + Value *FlexibleFloat64 + Volume *FlexibleInt + type ASXEndpoints struct + AggregatedDepth string + Brokerage string + CancelOrder string + CashAvailable string + CourseOfSales string + CreateWatchlist string + EquityPositions string + InstrumentFromSymbol string + MarketStatus string + Orders string + ProductsSuggestions string + ReadWatchlist string + StakeURL string + Symbol string + TradeActivity string + Transactions string + UpdateWatchlist string + Users string + Watchlists string + type ASXEquitiesService struct + func (s *ASXEquitiesService) List(ctx context.Context) (*ASXEquityPositions, error) + type ASXEquityPosition struct + AvailableForTradingQty *int + AveragePrice string + InstrumentID string + MarketPrice string + MarketValue string + Name string + OpenQty *int + PriorClose string + RecentAnnouncement *bool + Sensitive *bool + Symbol string + UnrealizedDayPL *float64 + UnrealizedDayPLPercent *float64 + UnrealizedPL *float64 + UnrealizedPLPercent *float64 + type ASXEquityPositions struct + EquityPositions []ASXEquityPosition + HasNext *bool + PageNum *int + type ASXExpiryDate string + const ASXExpiryOneDay + const ASXExpiryThirtyDays + type ASXFundingAction string + const ASXFundingActionAdjustment + const ASXFundingActionDeposit + const ASXFundingActionDividendDeposit + const ASXFundingActionSettlement + const ASXFundingActionTransfer + const ASXFundingActionWithdrawal + type ASXFundingCurrency string + const ASXFundingCurrencyAUD + type ASXFundingRecord struct + Action ASXFundingAction + Amount *FlexibleFloat64 + ApprovedBy string + Currency ASXFundingCurrency + CustomerFee *FlexibleFloat64 + ID string + InsertedAt *FlexibleTime + Reference string + Side ASXFundingSide + Status ASXFundingStatus + UpdatedAt *FlexibleTime + UserID string + type ASXFundingRequest struct + Actions []ASXFundingAction + Limit int + Offset int + Sort []ASXSort + Statuses []ASXFundingStatus + type ASXFundingSide string + const ASXFundingSideCredit + const ASXFundingSideDebit + type ASXFundingStatus string + const ASXFundingStatusAwaitingApproval + const ASXFundingStatusPending + const ASXFundingStatusReconciled + type ASXFundings struct + Fundings []ASXFundingRecord + HasNext *bool + Page *FlexibleInt + TotalItems *FlexibleInt + type ASXFundingsService struct + func (s *ASXFundingsService) CashAvailable(ctx context.Context) (*ASXCashAvailable, error) + func (s *ASXFundingsService) InFlight(ctx context.Context) (*ASXFundings, error) + func (s *ASXFundingsService) List(ctx context.Context, request ASXFundingRequest) (*ASXFundings, error) + type ASXInstrument struct + InstrumentID string + Name string + RecentAnnouncement *bool + Sensitive *bool + Symbol string + Type string + type ASXLimitBuyRequest struct + InstrumentCode string + Price float64 + Symbol string + Units int + Validity ASXExpiryDate + ValidityDate *time.Time + type ASXLimitSellRequest struct + InstrumentCode string + Price float64 + Symbol string + Units int + Validity ASXExpiryDate + ValidityDate *time.Time + type ASXMarketBuyRequest struct + InstrumentCode string + Price *float64 + Symbol string + Units int + Validity ASXExpiryDate + ValidityDate *time.Time + type ASXMarketSellRequest struct + InstrumentCode string + Price *float64 + Symbol string + Units int + Validity ASXExpiryDate + ValidityDate *time.Time + type ASXMarketService struct + func (s *ASXMarketService) Get(ctx context.Context) (*ASXMarketStatus, error) + func (s *ASXMarketService) IsOpen(ctx context.Context) (bool, error) + type ASXMarketStatus struct + LastTradingDate *FlexibleTime + Status ASXMarketStatusValue + type ASXMarketStatusValue struct + Current string + type ASXOrder struct + AveragePrice *FlexibleFloat64 + Broker string + CompletedTimestamp *FlexibleTime + EstimatedBrokerage *FlexibleFloat64 + EstimatedExchangeFees *FlexibleFloat64 + ExpiresAt *FlexibleTime + FilledUnits *FlexibleFloat64 + InstrumentCode string + InstrumentID string + LimitPrice *FlexibleFloat64 + OrderCompletionType string + OrderID string + OrderStatus string + PlacedTimestamp FlexibleTime + Side ASXSide + Type ASXTradeType + UnitsRemaining *FlexibleInt + Validity string + ValidityDate string + type ASXOrdersService struct + func (s *ASXOrdersService) Brokerage(ctx context.Context, orderAmount float64) (*Brokerage, error) + func (s *ASXOrdersService) Cancel(ctx context.Context, request CancelOrderRequest) error + func (s *ASXOrdersService) List(ctx context.Context) ([]ASXOrder, error) + type ASXProduct struct + Ask *FlexibleFloat64 + Bid *FlexibleFloat64 + High *FlexibleFloat64 + LastTrade string + LastTradedExchange string + LastTradedTimestamp *int64 + Low *FlexibleFloat64 + MarketStatus string + Open *FlexibleFloat64 + OutOfMarketPrice *FlexibleFloat64 + OutOfMarketQuantity *FlexibleInt + OutOfMarketSurplus *FlexibleInt + PercentageChange *FlexibleFloat64 + PointsChange *FlexibleFloat64 + PriorClose *FlexibleFloat64 + Symbol string + type ASXProductAggregatedDepth struct + BuyOrders []ASXDepthLevel + ID string + SellOrders []ASXDepthLevel + Ticker string + TotalBuyCount *FlexibleInt + TotalBuyVolume *FlexibleInt + TotalSellCount *FlexibleInt + TotalSellVolume *FlexibleInt + type ASXProductCourseOfSales struct + CourseOfSales []ASXCourseOfSale + Ticker string + TotalTrades *FlexibleInt + TotalValue *FlexibleFloat64 + TotalVolume *FlexibleInt + type ASXProductsService struct + func (s *ASXProductsService) CourseOfSales(ctx context.Context, symbol string) (*ASXProductCourseOfSales, error) + func (s *ASXProductsService) Depth(ctx context.Context, symbol string) (*ASXProductAggregatedDepth, error) + func (s *ASXProductsService) Get(ctx context.Context, symbol string) (*ASXProduct, error) + func (s *ASXProductsService) ProductFromInstrument(ctx context.Context, instrument ASXInstrument) (*ASXProduct, error) + func (s *ASXProductsService) Search(ctx context.Context, request ProductSearchByName) ([]ASXInstrument, error) + type ASXSellRequest interface + type ASXServices struct + Equities *ASXEquitiesService + Fundings *ASXFundingsService + Market *ASXMarketService + Orders *ASXOrdersService + Products *ASXProductsService + Trades *ASXTradesService + Transactions *ASXTransactionsService + Watchlists *WatchlistService + type ASXSide string + const ASXSideBuy + const ASXSideSell + type ASXSort struct + Attribute string + Direction ASXSortDirection + type ASXSortDirection string + const ASXSortAscending + const ASXSortDescending + type ASXTradeType string + const ASXTradeTypeLimit + const ASXTradeTypeMarket + const ASXTradeTypeStop + type ASXTradesService struct + func (s *ASXTradesService) Buy(ctx context.Context, request ASXBuyRequest) (*ASXOrder, error) + func (s *ASXTradesService) Sell(ctx context.Context, request ASXSellRequest) (*ASXOrder, error) + type ASXTransaction struct + AveragePrice *FlexibleFloat64 + BrokerOrderID *FlexibleInt + CompletedTimestamp *FlexibleTime + Consideration *FlexibleFloat64 + ContractNoteNumber *FlexibleInt + ContractNoteNumbers []int + ContractNoteReceived *bool + EffectivePrice *FlexibleFloat64 + ExecutionDate *FlexibleTime + InstrumentID string + LimitPrice *FlexibleFloat64 + OrderCompletionType string + OrderStatus string + PlacedTimestamp *FlexibleTime + Side ASXSide + Type string + Units *FlexibleFloat64 + UserBrokerageFees *FlexibleFloat64 + type ASXTransactionRecordRequest struct + Limit int + Offset int + Sort []ASXSort + type ASXTransactions struct + HasNext *bool + Page *FlexibleInt + TotalItems *FlexibleInt + Transactions []ASXTransaction + type ASXTransactionsService struct + func (s *ASXTransactionsService) List(ctx context.Context, request ASXTransactionRecordRequest) (*ASXTransactions, error) + type Brokerage struct + BrokerageDiscount *FlexibleFloat64 + BrokerageFee *FlexibleFloat64 + FixedFee *FlexibleFloat64 + VariableFeePercentage *FlexibleFloat64 + VariableLimit *FlexibleInt + type CancelOrderRequest struct + OrderID string + type Client struct + ASX *ASXServices + NYSE *NYSEServices + User *User + func NewClient(options ...Option) (*Client, error) + func (c *Client) Delete(ctx context.Context, endpoint string, in any, out any) error + func (c *Client) Exchange() Exchange + func (c *Client) Get(ctx context.Context, endpoint string, out any) error + func (c *Client) Login(ctx context.Context) (*User, error) + func (c *Client) Post(ctx context.Context, endpoint string, in any, out any) error + func (c *Client) SessionToken() string + func (c *Client) SetExchange(exchange Exchange) error + type CreateWatchlistRequest struct + Name string + Tickers []string + type CredentialsLoginRequest struct + OTP *string + Password string + PlatformType string + RememberMeDays int + Username string + type Currency string + const CurrencyAUD + const CurrencyUSD + type DeleteWatchlistRequest struct + ID string + type EquityCategory string + const EquityCategoryETF + const EquityCategoryStock + type Exchange string + const ExchangeASX + const ExchangeNYSE + type FXConversion struct + FromAmount float64 + FromCurrency Currency + Quote string + Rate float64 + ToAmount float64 + ToCurrency Currency + type FXConversionRequest struct + FromAmount float64 + FromCurrency Currency + ToCurrency Currency + type FXService struct + func (s *FXService) Convert(ctx context.Context, request FXConversionRequest) (*FXConversion, error) + type FlexibleFloat64 float64 + func (f *FlexibleFloat64) UnmarshalJSON(data []byte) error + func (f FlexibleFloat64) Float64() float64 + func (f FlexibleFloat64) MarshalJSON() ([]byte, error) + type FlexibleInt int + func (i *FlexibleInt) UnmarshalJSON(data []byte) error + func (i FlexibleInt) Int() int + func (i FlexibleInt) MarshalJSON() ([]byte, error) + type FlexibleString string + func (s *FlexibleString) UnmarshalJSON(data []byte) error + func (s FlexibleString) String() string + type FlexibleTime struct + func (t *FlexibleTime) UnmarshalJSON(data []byte) error + func (t FlexibleTime) MarshalJSON() ([]byte, error) + type GetWatchlistRequest struct + ID string + type NYSEBuyRequest interface + type NYSECashAvailable struct + CardHoldAmount float64 + CashAvailableForTrade float64 + CashAvailableForWithdrawal float64 + CashBalance float64 + CashSettlement []NYSECashSettlement + DWCashAvailableForWithdrawal float64 + PendingOrdersAmount float64 + PendingPOLIAmount float64 + PendingWithdrawals float64 + ReservedCash float64 + type NYSECashSettlement struct + Cash float64 + UTCTime FlexibleTime + type NYSEEndpoints struct + AccountBalance string + AccountTransactions string + Brokerage string + CancelOrder string + CashAvailable string + CreateSession string + CreateWatchlist string + EquityPositions string + FundDetails string + MarketDataQuote string + MarketStatus string + Orders string + ProductsSuggestions string + QuickBuy string + Quotes string + Rate string + Ratings string + ReadWatchlist string + SellOrders string + StakeURL string + Statement string + Symbol string + TransactionDetails string + TransactionHistory string + Transactions string + UpdateWatchlist string + Users string + Watchlists string + type NYSEEquitiesService struct + func (s *NYSEEquitiesService) List(ctx context.Context) (*NYSEEquityPositions, error) + type NYSEEquityPosition struct + AskPrice *float64 + AvailableForTradingQty float64 + AveragePrice float64 + BidPrice *float64 + Category EquityCategory + CostBasis float64 + DailyReturnValue float64 + EncodedName string + InstrumentID string + LastTrade float64 + MarketPrice float64 + MarketValue float64 + Name string + OpenQty float64 + Period string + PriorClose float64 + ReturnOnStock *float64 + Side Side + Symbol string + URLImage string + UnrealizedDayPL float64 + UnrealizedDayPLPercent float64 + UnrealizedPL float64 + YearlyReturnPercentage *float64 + YearlyReturnValue *float64 + func (p *NYSEEquityPosition) UnmarshalJSON(data []byte) error + type NYSEEquityPositions struct + EquityPositions []NYSEEquityPosition + EquityValue float64 + PricesOnly bool + func (p *NYSEEquityPositions) UnmarshalJSON(data []byte) error + type NYSEFunding struct + AccountNumber string + AmountFrom *FlexibleFloat64 + AmountTo *FlexibleFloat64 + BSB string + Channel string + CurrencyFrom string + CurrencyTo string + ExpressFee *FlexibleInt + FXFee *FlexibleFloat64 + IOF string + InsertDate *FlexibleTime + Reference string + Speed string + SpotRate *FlexibleFloat64 + Status string + TotalFee *FlexibleFloat64 + VET string + W8Fee *FlexibleInt + type NYSEFundingsService struct + func (s *NYSEFundingsService) CashAvailable(ctx context.Context) (*NYSECashAvailable, error) + func (s *NYSEFundingsService) InFlight(ctx context.Context) ([]NYSEFundsInFlight, error) + func (s *NYSEFundingsService) List(ctx context.Context, request NYSETransactionRecordRequest) ([]NYSEFunding, error) + type NYSEFundsInFlight struct + EstimatedArrivalTime string + EstimatedArrivalTimeUS string + FromAmount float64 + InsertDateTime string + ToAmount float64 + TransactionType string + Type string + type NYSEInstrument struct + EncodedName string + ImageURL string + InstrumentID string + Name string + Symbol string + type NYSELimitBuyRequest struct + Comments string + LimitPrice float64 + Quantity int + Symbol string + type NYSELimitSellRequest struct + Comments string + LimitPrice float64 + Quantity int + Symbol string + type NYSEMarketBuyRequest struct + AmountCash float64 + Comments string + Symbol string + type NYSEMarketDataQuote struct + Ask *FlexibleFloat64 + Bid *FlexibleFloat64 + Close *FlexibleFloat64 + CloseAsk *FlexibleFloat64 + CloseBid *FlexibleFloat64 + DailyReturnPercentageQuote *FlexibleFloat64 + DailyReturnQuote *FlexibleFloat64 + High *FlexibleFloat64 + LastTrade *FlexibleFloat64 + Low *FlexibleFloat64 + MarketStatus string + Open *FlexibleFloat64 + PrePostMarketDailyReturn *FlexibleFloat64 + PrePostMarketDailyReturnPercentage *FlexibleFloat64 + PrePostMarketLastTrade *FlexibleFloat64 + PriorClose *FlexibleFloat64 + StakeInstrumentID string + Symbol string + TradeTimestamp *FlexibleTime + TradingStatus string + Volume *FlexibleInt + type NYSEMarketSellRequest struct + Comments string + Quantity float64 + Symbol string + type NYSEMarketService struct + func (s *NYSEMarketService) Get(ctx context.Context) (*NYSEMarketStatus, error) + func (s *NYSEMarketService) IsOpen(ctx context.Context) (bool, error) + type NYSEMarketStatus struct + Status NYSEMarketStatusValue + type NYSEMarketStatusValue struct + ChangeAt string + Current string + Next string + type NYSEOrder struct + CreatedWhen FlexibleTime + CumulativeQty string + Description string + EncodedName string + ImageURL string + InstrumentID string + InstrumentName string + InstrumentSymbol string + LimitPrice float64 + OrderCashAmount int + OrderID string + OrderNumber string + OrderQty float64 + OrderStatus int + OrderType OrderType + Side Side + StopPrice float64 + Symbol string + type NYSEOrdersService struct + func (s *NYSEOrdersService) Brokerage(ctx context.Context, orderAmount float64) (*Brokerage, error) + func (s *NYSEOrdersService) Cancel(ctx context.Context, request CancelOrderRequest) error + func (s *NYSEOrdersService) List(ctx context.Context) ([]NYSEOrder, error) + type NYSEProduct struct + Bought FlexibleInt + Category string + ChildInstruments []NYSEInstrument + CurrencyID string + DailyReturn float64 + DailyReturnPercentage float64 + Description string + EncodedName string + ID string + InceptionDate FlexibleString + InstrumentTags []any + InstrumentTypeID string + LastTraded float64 + MonthlyReturn float64 + Name string + News FlexibleInt + ParentID string + Period string + Popularity FlexibleInt + ProductType string + Sector string + Symbol string + TradeStatus *FlexibleInt + URLImage string + Viewed FlexibleInt + Watched FlexibleInt + YearlyReturnPercentage *FlexibleFloat64 + YearlyReturnValue *FlexibleFloat64 + type NYSEProductWithQuote struct + MarketDataQuote NYSEMarketDataQuote + type NYSEProductsService struct + func (s *NYSEProductsService) Get(ctx context.Context, symbol string) (*NYSEProduct, error) + func (s *NYSEProductsService) GetMarketDataQuote(ctx context.Context, symbol string) (*NYSEMarketDataQuote, error) + func (s *NYSEProductsService) GetWithQuote(ctx context.Context, symbol string) (*NYSEProductWithQuote, error) + func (s *NYSEProductsService) ProductFromInstrument(ctx context.Context, instrument NYSEInstrument) (*NYSEProduct, error) + func (s *NYSEProductsService) Search(ctx context.Context, request ProductSearchByName) ([]NYSEInstrument, error) + type NYSESellRequest interface + type NYSEServices struct + Equities *NYSEEquitiesService + FX *FXService + Fundings *NYSEFundingsService + Market *NYSEMarketService + Orders *NYSEOrdersService + Products *NYSEProductsService + Ratings *RatingsService + Statements *StatementService + Trades *NYSETradesService + Transactions *NYSETransactionsService + Watchlists *WatchlistService + type NYSEStopBuyRequest struct + AmountCash float64 + Comments string + Price float64 + Symbol string + type NYSEStopSellRequest struct + Comments string + Quantity float64 + StopPrice float64 + Symbol string + type NYSETradeResponse struct + AmountCash *FlexibleFloat64 + Category string + Commission *FlexibleFloat64 + DWOrderID string + Description string + EffectivePrice *FlexibleFloat64 + EncodedName string + ID string + ImageURL string + InsertedDate FlexibleTime + ItemID string + LimitPrice *FlexibleFloat64 + Name string + OrderRejectReason string + Quantity *FlexibleFloat64 + Side string + Status *FlexibleInt + StopPrice *FlexibleFloat64 + Symbol string + UpdatedDate FlexibleTime + type NYSETradeType string + const NYSETradeTypeLimit + const NYSETradeTypeMarket + const NYSETradeTypeStop + type NYSETradesService struct + func (s *NYSETradesService) Buy(ctx context.Context, request NYSEBuyRequest) (*NYSETradeResponse, error) + func (s *NYSETradesService) Sell(ctx context.Context, request NYSESellRequest) (*NYSETradeResponse, error) + type NYSETransaction struct + AccountAmount float64 + AccountBalance float64 + AccountType string + Comment string + DNB bool + Dividend map[string]any + DividendTax map[string]any + FeeBase int + FeeExchange int + FeeSEC float64 + FeeTAF float64 + FeeXtraShares int + FillPrice float64 + FillQuantity float64 + FinancialTransactionID string + FinancialTransactionTypeID string + Instrument *NYSETransactionInstrument + MergerAcquisition map[string]any + OrderID string + OrderNumber string + PositionDelta *FlexibleFloat64 + SendCommissionToInteliclear bool + Symbol string + SystemAmount int + TransactionAmount float64 + TransactionSource string + TransactionWhen FlexibleTime + UpdatedReason string + WLPAmount int + WLPFinancialTransactionTypeID string + type NYSETransactionHistoryType string + const NYSETransactionHistoryBuy + const NYSETransactionHistoryCorporateAction + const NYSETransactionHistoryDividend + const NYSETransactionHistoryDividendTax + const NYSETransactionHistoryFunding + const NYSETransactionHistorySell + type NYSETransactionInstrument struct + ID string + Name string + Symbol string + type NYSETransactionRecordRequest struct + Direction TransactionDirection + From time.Time + Limit int + Offset *time.Time + To time.Time + func NewNYSETransactionRecordRequest() NYSETransactionRecordRequest + type NYSETransactionsService struct + func (s *NYSETransactionsService) List(ctx context.Context, request NYSETransactionRecordRequest) ([]NYSETransaction, error) + type Option func(*Client) error + func WithBaseURL(baseURL string) Option + func WithCredentials(username, password string) Option + func WithCredentialsRequest(request CredentialsLoginRequest) Option + func WithExchange(exchange Exchange) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithSessionToken(token string) Option + func WithSessionTokenFromEnv(name string) Option + type OrderType int + const OrderTypeLimit + const OrderTypeMarket + const OrderTypeStop + type ProductSearchByName struct + Keyword string + type Rating struct + ActionCompany string + ActionPT string + Analyst string + AnalystName string + Currency string + Exchange string + ID string + Importance *int + Name string + Notes string + PTCurrent *float64 + PTPrior *float64 + RatingCurrent *string + RatingPrior *string + Symbol string + URL string + URLCalendar string + URLNews string + Updated *time.Time + func (r *Rating) UnmarshalJSON(data []byte) error + type RatingsRequest struct + Limit int + Symbols []string + type RatingsService struct + func (s *RatingsService) List(ctx context.Context, request RatingsRequest) ([]Rating, error) + type SessionTokenLoginRequest struct + Token string + type Side string + const SideBuy + const SideSell + type Statement struct + Date string + Quarter int + StatementData StatementData + Year int + type StatementData struct + BalanceSheet []StatementValue + CashFlow []StatementValue + IncomeStatement []StatementValue + Overview []StatementValue + type StatementRequest struct + StartDate time.Time + Symbol string + type StatementService struct + func (s *StatementService) List(ctx context.Context, request StatementRequest) ([]Statement, error) + type StatementValue struct + DataCode string + Value float64 + type TransactionDirection string + const TransactionDirectionNext + const TransactionDirectionPrevious + type UpdateWatchlistRequest struct + ID string + Tickers []string + type User struct + AccountType string + CanTradeOnUnsettledFunds *bool + DWAccountNumber string + EmailAddress string + FirstName string + ID string + LastName string + MACStatus string + RegionIdentifier string + Username string + type Watchlist struct + Count *FlexibleInt + Instruments []WatchlistInstrument + Name string + TimeCreated *FlexibleTime + WatchlistID string + type WatchlistInstrument struct + EncodedName string + ImageURL string + InstrumentID string + Name string + RecentAnnouncement *bool + Sensitive *bool + Symbol string + Type string + type WatchlistService struct + func (s *WatchlistService) Add(ctx context.Context, request UpdateWatchlistRequest) (*Watchlist, error) + func (s *WatchlistService) Create(ctx context.Context, request CreateWatchlistRequest) (*Watchlist, error) + func (s *WatchlistService) Delete(ctx context.Context, request DeleteWatchlistRequest) (bool, error) + func (s *WatchlistService) Get(ctx context.Context, request GetWatchlistRequest) (*Watchlist, error) + func (s *WatchlistService) List(ctx context.Context) ([]Watchlist, error) + func (s *WatchlistService) Remove(ctx context.Context, request UpdateWatchlistRequest) (*Watchlist, error)