Versions in this module Expand all Collapse all v0 v0.0.1 Feb 15, 2022 Changes in this version + const APIEndpoint + const Buy + const BuyToClose + const BuyToCover + const BuyToOpen + const Call + const Canceled + const Combo + const Credit + const Day + const Debit + const Equity + const ErrBodyBufferOverflow + const Even + const Expired + const Filled + const GTC + const LimitOrder + const MarketOrder + const Multileg + const OneCancelsOther + const OneTriggersOneCancelsOther + const OneTriggersOther + const Open + const Option + const PartiallyFilled + const Pending + const PostMarket + const PreMarket + const Put + const Rejected + const SandboxEndpoint + const Sell + const SellShort + const SellToClose + const SellToOpen + const StatusOK + const StopLimitOrder + const StopOrder + const StreamEndpoint + const Submitted + var ErrNoAccountSelected = errors.New("no account selected") + var OldestDailyDate = time.Date(1980, time.January, 1, 0, 0, 0, 0, time.UTC) + func ParseTimeMs(tsMs string) (time.Time, error) + func UnmarshalStreamEvent(buf []byte, se *StreamEvent) error + type AccountBalances struct + AccountNumber string + AccountType string + Cash Cash + ClosePL float64 + CurrentRequirement float64 + Equity float64 + LongMarketValue float64 + Margin Margin + MarketValue float64 + OpenPL float64 + OptionLongValue float64 + OptionRequirement float64 + OptionShortValue float64 + PDT PDT + PendingOrdersCount int + ShortMarketValue float64 + StockLongValue float64 + TotalCash float64 + TotalEquity float64 + UnclearedFunds float64 + type Adjustment struct + Description string + Quantity float64 + type AlphaBeta struct + Alpha *float64 + AsOfDate *string + Beta *float64 + NonDivAlpha *float64 + NonDivBeta *float64 + Period *string + ShareClassID *string + type AssetClassification struct + CANNAICS *int64 + CompanyID *string + FinancialHealthGrade *string + FinancialHealthGradeAsOfDate *string + GrowthGrade *string + GrowthGradeAsOfDate *string + GrowthScore *float64 + MorningstarEconomySphereCode *int64 + MorningstarIndustryCode *int64 + MorningstarIndustryGroupCode *int64 + MorningstarSectorCode *int64 + NACE *float64 + NAICS NAICS + ProfitabilityGrade *string + ProfitabilityGradeAsOfDate *string + SIC SIC + SizeScore *float64 + StockType *int64 + StockTypeAsOfDate *string + StyleBox *int64 + StyleBoxAsOfDate *string + StyleScore *float64 + ValueScore *float64 + type BalanceSheet struct + AccountsPayable *float64 + AccountsReceivable *float64 + AccumulatedDepreciation *float64 + CapitalStock *float64 + CashAndCashEquivalents *float64 + CashCashEquivalentsAndMarketableSecurities *float64 + CommercialPaper *float64 + CommonStock *float64 + CommonStockEquity *float64 + CurrencyID *string + CurrentAccruedExpenses *float64 + CurrentAssets *float64 + CurrentDebt *float64 + CurrentDebtAndCapitalLeaseObligation *float64 + CurrentDeferredLiabilities *float64 + CurrentDeferredRevenue *float64 + CurrentLiabilities *float64 + FileDate *string + FiscalYearEnd *string + GainsLossesNotAffectingRetainedEarnings *float64 + Goodwill *float64 + GoodwillAndOtherIntangibleAssets *float64 + GrossPPE *float64 + Inventory *float64 + InvestedCapital *float64 + InvestmentsAndAdvances *float64 + LandAndImprovements *float64 + Leases *float64 + LongTermDebt *float64 + LongTermDebtAndCapitalLeaseObligation *float64 + MachineryFurnitureEquipment *float64 + NetDebt *float64 + NetPPE *float64 + NetTangibleAssets *float64 + NonCurrentDeferredLiabilities *float64 + NonCurrentDeferredRevenue *float64 + NonCurrentDeferredTaxesLiabilities *float64 + NumberOfShareHolders *int64 + OrdinarySharesNumber *float64 + OtherCurrentAssets *float64 + OtherCurrentBorrowings *float64 + OtherIntangibleAssets *float64 + OtherNonCurrentAssets *float64 + OtherNonCurrentLiabilities *float64 + OtherReceivables *float64 + OtherShortTermInvestments *float64 + Payables *float64 + PayablesAndAccruedExpenses *float64 + Period *string + PeriodEndingDate *string + Receivables *float64 + ReportType *string + RetainedEarnings *float64 + ShareIssued *float64 + StockholdersEquity *float64 + TangibleBookValue *float64 + TotalAssets *float64 + TotalCapitalization *float64 + TotalDebt *float64 + TotalEquity *float64 + TotalEquityGrossMinorityInterest *float64 + TotalLiabilities *float64 + TotalLiabilitiesNetMinorityInterest *float64 + TotalNonCurrentAssets *float64 + TotalNonCurrentLiabilities *float64 + TotalNonCurrentLiabilitiesNetMinorityInterest *float64 + WorkingCapital *float64 + type BalanceSheetResults []map[string]BalanceSheet + func (bsr *BalanceSheetResults) UnmarshalJSON(data []byte) error + type Cash struct + CashAvailable float64 + Sweep int + UnsettledFunds float64 + type CashDividend struct + CashAmount *float64 + CurrencyID *string + DeclarationDate *string + DividendType *string + ExDate *string + Frequency *int64 + PayDate *string + RecordDate *string + ShareClassID *string + type CashDividends []CashDividend + func (cds *CashDividends) UnmarshalJSON(data []byte) error + type CashFlowStatement struct + BeginningCashPosition *float64 + CapitalExpenditure *float64 + CashDividendsPaid *float64 + ChangeInAccountPayable *float64 + ChangeInInventory *float64 + ChangeInOtherWorkingCapital *float64 + ChangeInPayable *float64 + ChangeInPayablesAndAccruedExpense *float64 + ChangeInReceivables *float64 + ChangeInWorkingCapital *float64 + ChangesInAccountReceivables *float64 + ChangesInCash *float64 + CommonStockIssuance *float64 + CommonStockPayments *float64 + CurrencyID *string + DeferredIncomeTax *float64 + DeferredTax *float64 + DepreciationAmortizationDepletion *float64 + DepreciationAndAmortization *float64 + DomesticSales *float64 + EndCashPosition *float64 + FileDate *string + FinancingCashFlow *float64 + FiscalYearEnd *string + ForeignSales *float64 + FreeCashFlow *float64 + IncomeTaxPaidSupplementalData *float64 + InterestPaidSupplementalData *float64 + InvestingCashFlow *float64 + IssuanceOfCapitalStock *float64 + NetBusinessPurchaseAndSale *float64 + NetCommonStockIssuance *float64 + NetIncome *float64 + NetIncomeFromContinuingOperations *float64 + NetIntangiblesPurchaseAndSale *float64 + NetInvestmentPurchaseAndSale *float64 + NetIssuancePaymentsOfDebt *float64 + NetOtherFinancingCharges *float64 + NetOtherInvestingChanges *float64 + NetPPEPurchaseAndSale *float64 + NetShortTermDebtIssuance *float64 + NumberOfShareHolders *int64 + OperatingCashFlow *float64 + OtherNonCashItems *float64 + Period *string + PeriodEndingDate *string + PurchaseOfBusiness *float64 + PurchaseOfIntangibles *float64 + PurchaseOfInvestment *float64 + PurchaseOfPPE *float64 + ReportType *string + RepurchaseOfCapitalStock *float64 + SaleOfInvestment *float64 + StockBasedCompensation *float64 + type CashFlowStatements []map[string]CashFlowStatement + func (cfs *CashFlowStatements) UnmarshalJSON(data []byte) error + type Client struct + func NewClient(params ClientParams) *Client + func (tc *Client) CancelOrder(orderId int) error + func (tc *Client) ChangeOrder(orderId int, order Order) error + func (tc *Client) GetAccountBalances() (*AccountBalances, error) + func (tc *Client) GetAccountCostBasis() ([]*ClosedPosition, error) + func (tc *Client) GetAccountHistory(limit int) ([]*Event, error) + func (tc *Client) GetAccountPositions() ([]*Position, error) + func (tc *Client) GetCompanyInfo(symbols []string) (GetCompanyInfoResponse, error) + func (tc *Client) GetCorporateActions(symbols []string) (GetCorporateActionsResponse, error) + func (tc *Client) GetCorporateCalendars(symbols []string) (GetCorporateCalendarsResponse, error) + func (tc *Client) GetDividends(symbols []string) (GetDividendsResponse, error) + func (tc *Client) GetEasyToBorrow() ([]Security, error) + func (tc *Client) GetFinancials(symbols []string) (GetFinancialsResponse, error) + func (tc *Client) GetMarketCalendar(year int, month time.Month) ([]MarketCalendar, error) + func (tc *Client) GetMarketState() (MarketStatus, error) + func (tc *Client) GetOpenOrders() ([]*Order, error) + func (tc *Client) GetOptionChain(symbol string, expiration time.Time) ([]*Quote, error) + func (tc *Client) GetOptionExpirationDates(symbol string) ([]time.Time, error) + func (tc *Client) GetOptionStrikes(symbol string, expiration time.Time) ([]float64, error) + func (tc *Client) GetOrderStatus(orderId int) (*Order, error) + func (tc *Client) GetPriceStatistics(symbols []string) (GetPriceStatisticsResponse, error) + func (tc *Client) GetQuotes(symbols []string) ([]*Quote, error) + func (tc *Client) GetRatios(symbols []string) (GetRatiosResponse, error) + func (tc *Client) GetTimeSales(symbol string, interval Interval, start, end time.Time) ([]TimeSale, error) + func (tc *Client) LookupSecurities(types []SecurityType, exchanges []string, query string) ([]Security, error) + func (tc *Client) PlaceOrder(order Order) (int, error) + func (tc *Client) PreviewOrder(order Order) (*OrderPreview, error) + func (tc *Client) SelectAccount(account string) + func (tc *Client) StreamMarketEvents(symbols []string, filter []Filter) (io.ReadCloser, error) + type ClientParams struct + Account string + AuthToken string + Backoff backoff.BackOff + Client *http.Client + Endpoint string + RetryLimit int + func DefaultParams(authToken string) ClientParams + type ClosedPosition struct + CloseDate DateTime + Cost float64 + GainLoss float64 + GainLossPercent float64 + OpenDate DateTime + Proceeds float64 + Quantity float64 + Symbol string + Term int + type CompanyHeadquarter struct + AddressLine1 *string + City *string + Country *string + Fax *string + Homepage *string + Phone *string + PostalCode *string + Province *string + type CompanyInfoResult struct + ID string + Tables struct{ ... } + Type string + type CompanyProfile struct + CompanyID *string + ContactEmail *string + Headquarter *CompanyHeadquarter + ShortDescription *string + TotalEmployeeNumber *int64 + TotalEmployeeNumberAsOfDate *string + type CorporateCalendar []CorporateEvent + func (cc *CorporateCalendar) UnmarshalJSON(data []byte) error + type CorporateEvent struct + BeginDateTime *string + CompanyID *string + EndDateTime *string + Event *string + EventType *int64 + TimeZone *string + type DateTime struct + func (d *DateTime) Set(s string) error + func (d *DateTime) UnmarshalJSON(b []byte) error + type EarningReport struct + AccessionNumber *string + AsOfDate *string + BasicAverageShares *float64 + BasicContinuousOperations *float64 + BasicEPS *float64 + ContinuingAndDiscontinuedBasicEPS *float64 + ContinuingAndDiscontinuedDilutedEPS *float64 + CurrencyID *string + DilutedAverageShares *float64 + DilutedContinuousOperations *float64 + DilutedEPS *float64 + DividendPerShare *float64 + FileDate *string + FiscalYearEnd *string + FormType *string + NormalizedBasicEPS *float64 + NormalizedDilutedEPS *float64 + Period *string + PeriodEndingDate *string + ReportType *string + ShareClassID *string + type EarningReports []map[string]EarningReport + func (ers *EarningReports) UnmarshalJSON(data []byte) error + type EarningsRatiosRestate struct + AsOfDate *string + DPSGrowth *float64 + DilutedContEPSGrowth *float64 + DilutedEPSGrowth *float64 + FiscalYearEnd *string + Period *string + ReportType *string + ShareClassID *string + type Event struct + Adjustment Adjustment + Amount float64 + Date DateTime + Trade Trade + Type string + type Filter string + const FilterQuote + const FilterSummary + const FilterTimeSale + const FilterTrade + type FinancialStatementsRestate struct + AsOfDate *string + BalanceSheet BalanceSheetResults + CashFlowStatement CashFlowStatements + CompanyID *string + IncomeStatement IncomeStatements + type FloatOrNaN float64 + func (f *FloatOrNaN) UnmarshalJSON(data []byte) error + func (f FloatOrNaN) Value() (driver.Value, error) + type GetCompanyInfoResponse []struct + type GetCorporateActionsResponse []struct + type GetCorporateCalendarsResponse []struct + type GetDividendsResponse []struct + type GetFinancialsResponse []struct + type GetPriceStatisticsResponse []struct + type GetRatiosResponse []struct + type Greeks struct + AskIV float64 + BidIV float64 + Delta float64 + Gamma float64 + MidIV float64 + Rho float64 + SmvVol float64 + Theta float64 + Vega float64 + type HistoricalAssetClassification struct + AsOfDate *string + CompanyID *string + FinancialHealthGrade *string + GrowthScore *float64 + MorningstarEconomySphereCode *int64 + MorningstarIndustryCode *int64 + MorningstarIndustryGroupCode *int64 + MorningstarSectorCode *int64 + ProfitabilityGrade *string + SizeScore *float64 + StockType *int64 + StyleBox *int64 + StyleScore *float64 + ValueScore *float64 + type HistoricalReturns struct + AsOfDate *string + Period *string + ShareClassID *string + TotalReturn *float64 + type IncomeStatement struct + AccessionNumber *string + CostOfRevenue *float64 + CurrencyID *string + EBIT *float64 + EBITDA *float64 + FileDate *string + FiscalYearEnd *string + FormType *string + GrossProfit *float64 + InterestAndSimilarIncome *float64 + InterestExpense *float64 + InterestExpenseNonOperating *float64 + InterestIncome *float64 + InterestIncomeNonOperating *float64 + NetIncome *float64 + NetIncomeCommonStockholders *float64 + NetIncomeContinuousOperations *float64 + NetIncomeFromContinuingAndDiscontinuedOperation *float64 + NetIncomeFromContinuingOperationNetMinorityInterest *float64 + NetIncomeIncludingNoncontrollingInterests *float64 + NetInterestIncome *float64 + NetNonOperatingInterestIncomeExpense *float64 + NonOperatingExpenses *float64 + NonOperatingIncome *float64 + NormalizedEBITDA *float64 + NormalizedIncome *float64 + NumberOfShareHolders *int64 + OperatingExpense *float64 + OperatingIncome *float64 + OperatingRevenue *float64 + OtherIncomeExpense *float64 + Period *string + PeriodEndingDate *string + PretaxIncome *float64 + ReconciledCostOfRevenue *float64 + ReconciledDepreciation *float64 + ReportType *string + ResearchAndDevelopment *float64 + SellingGeneralAndAdministration *float64 + TaxEffectOfUnusualItems *float64 + TaxProvision *float64 + TaxRateForCalcs *float64 + TotalExpenses *float64 + TotalRevenue *float64 + type IncomeStatements []map[string]IncomeStatement + func (is *IncomeStatements) UnmarshalJSON(data []byte) error + type Interval string + const Interval15Min + const Interval5Min + const IntervalDaily + const IntervalMinute + const IntervalMonthly + const IntervalTick + const IntervalWeekly + type Margin struct + FedCall int + MaintenanceCall int + OptionBuyingPower float64 + StockBuyingPower float64 + StockShortValue float64 + Sweep int + type MarketCalendar struct + Date DateTime + Description string + Open struct{ ... } + Postmarket struct{ ... } + Premarket struct{ ... } + Status string + type MarketEventStream struct + func NewMarketEventStream(input io.ReadCloser, output chan *StreamEvent) *MarketEventStream + func (mes *MarketEventStream) Stop() + type MarketState string + const MarketClosed + const MarketOpen + const MarketPostmarket + const MarketPremarket + type MarketStatus struct + Description string + NextChange DateTime + NextState string + State string + Time DateTime + type MergerAndAcquisition struct + AcquiredCompanyID *string + CashAmount *float64 + CurrencyID *string + EffectiveDate *string + Notes *string + ParentCompanyID *string + type MergersAndAcquisitions []MergerAndAcquisition + func (maq *MergersAndAcquisitions) UnmarshalJSON(data []byte) error + type NAICS []int64 + func (n *NAICS) UnmarshalJSON(data []byte) error + type OpenOrders []*Order + func (oo *OpenOrders) UnmarshalJSON(data []byte) error + type OperationRatio struct + AsOfDate *string + AssetsTurnover *float64 + CapExSalesRatio *float64 + CashConversionCycle *float64 + CommonEquityToAssets *float64 + CompanyID *string + CurrentRatio *float64 + DaysInInventory *float64 + DaysInPayment *float64 + DaysInSales *float64 + DebtToAssets *float64 + EBITDAMargin *float64 + EBITMargin *float64 + FCFNetIncomeRatio *float64 + FCFSalesRatio *float64 + FinancialLeverage *float64 + FiscalYearEnd *string + FixAssetsTurnover *float64 + GrossMargin *float64 + InterestCoverage *float64 + InventoryTurnover *float64 + LongTermDebtEquityRatio *float64 + LongTermDebtTotalCapitalRatio *float64 + NetIncomeContOpsGrowth *float64 + NetIncomeGrowth *float64 + NetMargin *float64 + NormalizedNetProfitMargin *float64 + NormalizedROIC *float64 + OperationIncomeGrowth *float64 + OperationMargin *float64 + PaymentTurnover *float64 + Period *string + PretaxMargin *float64 + QuickRatio *float64 + ROA *float64 + ROE *float64 + ROIC *float64 + ReceivableTurnover *float64 + ReportType *string + SalesPerEmployee *float64 + TaxRate *float64 + TotalDebtEquityRatio *float64 + type OperationRatios []map[string]OperationRatio + func (ors *OperationRatios) UnmarshalJSON(data []byte) error + type Order struct + AverageFillPrice float64 + Class string + CreateDate DateTime + Duration string + Exchange string + ExecutedQuantity float64 + ExecutionExchange string + ExpirationDate DateTime + Id int + LastFillPrice float64 + LastFillQuantity float64 + Legs []Order + NumLegs int + OptionSymbol string + OptionType string + Price float64 + Quantity float64 + RemainingQuantity float64 + Side string + Status string + StopPrice float64 + Strategy string + Symbol string + TransactionDate DateTime + Type string + type OrderPreview struct + Commission float64 + Cost float64 + ExtendedHours bool + Fees float64 + MarginChange float64 + Quantity float64 + Status string + type OwnershipDetail struct + AsOfDate *string + CurrencyOfMarketValue *string + MarketValue *int64 + NumberOfShares *float64 + OwnerCIK *int64 + OwnerID *string + OwnerName *string + OwnerType *int64 + PercentageInPortfolio *float64 + PercentageOwnership *float64 + ShareChange *int64 + ShareClassID *string + type OwnershipDetails []OwnershipDetail + func (ods *OwnershipDetails) UnmarshalJSON(data []byte) error + type OwnershipSummary struct + AsOfDate *string + DaysToCoverShort map[string]float64 + Float *int64 + InsiderPercentOwned *float64 + InsiderSharesBought *int64 + InsiderSharesOwned *int64 + InsiderSharesSold *int64 + InstitutionHolderNumber *int64 + InstitutionSharesBought *int64 + InstitutionSharesHeld *int64 + InstitutionSharesSold *int64 + NumberOfInsiderBuys *int64 + NumberOfInsiderSellers *int64 + ShareClassID *string + ShareClassLevelSharesOutstanding *int64 + ShareClassLevelSharesOutstandingBalanceSheet *int64 + ShareClassLevelSharesOutstandingInterim *int64 + ShareClassLevelTreasuryShareOutstanding *int64 + SharesOutstanding *int64 + SharesOutstandingWithBalanceSheetEndingDate *string + ShortInterest *int64 + ShortInterestsPercentageChange map[string]float64 + ShortPercentageOfFloat *float64 + ShortPercentageOfSharesOutstanding *float64 + type PDT struct + DayTradeBuyingPower float64 + FedCall int + MaintenanceCall int + OptionBuyingPower float64 + StockBuyingPower float64 + StockShortValue float64 + type Position struct + CostBasis float64 + DateAcquired DateTime + Id int + Quantity float64 + Symbol string + type PriceStatistics struct + ArithmeticMean *float64 + AsOfDate *string + AverageVolume *float64 + Best3MonthTotalReturn *float64 + ClosePriceToMovingAverage *float64 + HighPrice *float64 + LowPrice *float64 + MovingAveragePrice *float64 + PercentageBelowHighPrice *float64 + Period *string + ShareClassID *string + StandardDeviation *float64 + TotalVolume *float64 + Worst3MonthTotalReturn *float64 + type Quote struct + Ask float64 + AskDate DateTime + AskExchange string + AskSize int + AverageVolume int + Bid float64 + BidDate DateTime + BidExchange string + BidSize int + Change float64 + ChangePercentage float64 + Close float64 + ContractSize int + Description string + Exchange string + ExpirationDate DateTime + ExpirationType string + Greeks Greeks + High float64 + Last float64 + LastVolume int + Low float64 + Open float64 + OpenInterest float64 + OptionType string + PreviousClose float64 + RootSymbol string + Strike float64 + Symbol string + TradeDate DateTime + Type string + Underlying string + Volume int + Week52High float64 + Week52Low float64 + type QuoteEvent struct + Ask float64 + AskDateMs int64 + AskExchange string + AskSize int64 + Bid float64 + BidDateMs int64 + BidExchange string + BidSize int64 + Symbol string + func DecodeQuote(e *StreamEvent) (*QuoteEvent, error) + type SIC []int64 + func (n *SIC) UnmarshalJSON(data []byte) error + type Security struct + Description string + Exchange string + Symbol string + Type string + type SecurityType string + const SecurityTypeETF + const SecurityTypeIndex + const SecurityTypeMutualFund + const SecurityTypeStock + type Segmentation struct + AsOfDate *string + CompanyID *string + DepreciationAndAmortization *float64 + OperatingIncome *float64 + OperatingRevenue *float64 + Period *string + TotalAssets *float64 + type ShareClass struct + CUSIP *string + CompanyID *string + CurrencyID *string + DelistingDate *string + ExchangeID *string + IPODate *string + ISIN *string + InvestmentID *string + IsDepositaryReceipt *bool + IsDirectInvest *bool + IsDividendReinvest *bool + IsPrimaryShare *bool + MIC *string + SEDOL *string + SecurityType *string + ShareClassID *string + ShareClassStatus *string + Symbol *string + TradingStatus *bool + Valoren *string + type ShareClassProfile struct + EnterpriseValue *int64 + EnterpriseValueAsOfDate *string + MarketCap *int64 + MarketCapAsOfDate *string + ShareClassID *string + ShareClassLevelSharesOutstanding *int64 + SharesOutstanding *int64 + SharesOutstandingAsOfDate *string + SharesOutstandingWithBalanceSheetEndingDate *string + type StdLogger interface + Print func(v ...interface{}) + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + var Logger StdLogger = log.New(ioutil.Discard, "[go-tradier] ", log.LstdFlags) + type StockSplit struct + AdjustmentFactor *float64 + ExDate *string + ShareClassID *string + SplitFrom *float64 + SplitTo *float64 + SplitType *string + type StockSplits map[string]StockSplit + type StreamDemuxer struct + Errors func(err error) + Quotes func(quote *QuoteEvent) + Summaries func(summary *SummaryEvent) + TimeSales func(timeSale *TimeSaleEvent) + Trades func(trade *TradeEvent) + func (sd *StreamDemuxer) Handle(event *StreamEvent) + func (sd *StreamDemuxer) HandleChan(events <-chan *StreamEvent) + type StreamEvent struct + Error error + Message json.RawMessage + Symbol string + Type string + type SummaryEvent struct + High float64 + Low float64 + Open float64 + PreviousClose float64 + Symbol string + func DecodeSummary(e *StreamEvent) (*SummaryEvent, error) + type TimeSale struct + Close FloatOrNaN + Date DateTime + High FloatOrNaN + Low FloatOrNaN + Open FloatOrNaN + Price FloatOrNaN + Time DateTime + Timestamp int64 + Volume int64 + Vwap FloatOrNaN + type TimeSaleEvent struct + Ask float64 + Bid float64 + Cancel bool + Correction bool + DateMs int64 + Exchange string + Flag string + Last float64 + Seq int64 + Session string + Size int64 + Symbol string + func DecodeTimeSale(e *StreamEvent) (*TimeSaleEvent, error) + type Trade struct + Commission float64 + Description string + Price float64 + Quantity float64 + Symbol string + TradeType string + type TradeEvent struct + CumulativeVolume int64 + DateMs int64 + Exchange string + Last float64 + Price float64 + Size int64 + Symbol string + func DecodeTrade(e *StreamEvent) (*TradeEvent, error) + type TradierError struct + Fault struct{ ... } + HttpStatusCode int + Message string + func (te TradierError) Error() string + type TrailingReturns struct + AsOfDate *string + Period *string + ShareClassID *string + TotalReturn *float64 + type ValuationRatios struct + AsOfDate *string + BookValuePerShare *float64 + BookValueYield *float64 + BuyBackYield *float64 + CFOPerShare *float64 + CFYield *float64 + CashReturn *float64 + DividendRate *float64 + DividendYield *float64 + EVToEBITDA *float64 + EarningYield *float64 + FCFPerShare *float64 + FCFRatio *float64 + FCFYield *float64 + ForwardDividendYield *float64 + ForwardEarningYield *float64 + ForwardPERatio *float64 + NormalizedPERatio *float64 + PBRatio *float64 + PCFRatio *float64 + PEGPayback *float64 + PEGRatio *float64 + PERatio *float64 + PSRatio *float64 + PayoutRatio *float64 + PriceChange1M *float64 + PriceToEBITDA *float64 + RatioPE5YearAverage *float64 + SalesPerShare *float64 + SalesYield *float64 + ShareClassID *string + SustainableGrowthRate *float64 + TangibleBVPerShare3YearAvg *float64 + TangibleBVPerShare5YearAvg *float64 + TangibleBookValuePerShare *float64 + TotalYield *float64 + WorkingCapitalPerShare *float64 + WorkingCapitalPerShare3YearAvg *float64 + WorkingCapitalPerShare5YearAvg *float64