Versions in this module Expand all Collapse all v1 v1.0.2 Aug 20, 2019 Changes in this version + var FundingTypeNames = map[FundingType]string + var OrderSideNames = map[OrderSide]string + var OrderTypeNames = map[OrderType]string + var PeriodNames = map[Period]string + type Balance struct + Amount string + Currency string + type Balances map[FundingType][]Balance + type CancelOrderOpt struct + MarketID MarketID + OrderID string + type FundingType int32 + const FuturesFunding + const MarginFunding + const SpotFunding + type Interval struct + CloseTime time.Time + OHLC OHLC + Period Period + VolumeBase string + VolumeQuote string + type IntervalsUpdate struct + Intervals []Interval + type Market struct + CurrencyPairID string + ExchangeID string + ID MarketID + type MarketID string + func (id MarketID) Int64() (int64, error) + type MarketUpdate struct + IntervalsUpdate *IntervalsUpdate + OrderBookDelta *OrderBookDelta + OrderBookSnapshot *OrderBookSnapshot + OrderBookSpreadUpdate *OrderBookSpreadUpdate + SparklineUpdate *SparklineUpdate + SummaryUpdate *SummaryUpdate + TradesUpdate *TradesUpdate + func (v MarketUpdate) String() string + type OHLC struct + Close string + High string + Low string + Open string + type OrderBookDelta struct + Asks OrderDeltas + Bids OrderDeltas + SeqNum SeqNum + func (delta OrderBookDelta) Empty() bool + type OrderBookSnapshot struct + Asks []PublicOrder + Bids []PublicOrder + SeqNum SeqNum + func (s *OrderBookSnapshot) Empty() bool + func (s *OrderBookSnapshot) GetDeltasAgainst(oldSnapshot OrderBookSnapshot) OrderBookDelta + func (s *OrderBookSnapshot) IsValid() bool + type OrderBookSpreadUpdate struct + Ask PublicOrder + Bid PublicOrder + Timestamp time.Time + type OrderDeltas struct + Remove []string + Set []PublicOrder + func GetDeltasAgainst(oldOrders, newOrders []PublicOrder) OrderDeltas + func (d OrderDeltas) Empty() bool + type OrderSide int32 + const BuyOrder + const SellOrder + type OrderType int32 + const FillOrKillOrder + const LimitOrder + const MarketOrder + const SettlePositionOrder + const StopLossAndLimitOrder + const StopLossLimitOrder + const StopLossOrder + const StopLossTakeProfitLimitOrder + const StopLossTakeProfitOrder + const TakeProfitLimitOrder + const TakeProfitOrder + const TrailingStopLossLimitOrder + const TrailingStopLossOrder + type Pair struct + ID PairID + type PairID string + type PairUpdate struct + PerformanceUpdate *PerformanceUpdate + TrendlineUpdate *TrendlineUpdate + VWAPUpdate *VWAPUpdate + func (v PairUpdate) String() string + type PerformanceUpdate struct + Performance string + Window PerformanceWindow + type PerformanceWindow string + const PerfWindow1m + const PerfWindow1w + const PerfWindow1y + const PerfWindow24h + const PerfWindow2y + const PerfWindow3m + const PerfWindow3y + const PerfWindow4y + const PerfWindow5y + const PerfWindow6m + const PerfWindowYTD + type Period int32 + const Period12H + const Period15M + const Period1D + const Period1H + const Period1M + const Period1W + const Period2H + const Period30M + const Period3D + const Period3M + const Period4H + const Period5M + const Period6H + type PlaceOrderOpt struct + Amount string + ExpireTime time.Time + FundingType FundingType + Leverage string + MarketID MarketID + OrderSide OrderSide + OrderType OrderType + PriceParams PriceParams + type PriceParam struct + Type PriceParamType + Value string + type PriceParamType int32 + const AbsoluteValuePrice + const RelativePercentValuePrice + const RelativeValuePrice + type PriceParams []*PriceParam + type PrivateOrder struct + Amount string + AmountFilled string + CurrentStop string + Error int32 + ExpireTime time.Time + FundingType FundingType + ID string + InitialStop string + Leverage string + OrderSide OrderSide + OrderType OrderType + PriceParams PriceParams + Timestamp time.Time + func (o PrivateOrder) CacheKey(mID MarketID) string + func (o PrivateOrder) String() string + type PrivatePosition struct + AmountClosed string + AmountOpen string + AvgPrice string + ExternalID string + OrderIDs []string + OrderSide OrderSide + Timestamp time.Time + TradeIDs []string + type PrivateTrade struct + Amount string + ExternalID string + OrderID string + OrderSide OrderSide + Price string + Timestamp time.Time + type PublicOrder struct + Amount string + Price string + type PublicOrdersByPrice []PublicOrder + func (pos PublicOrdersByPrice) Len() int + func (pos PublicOrdersByPrice) Less(i, j int) bool + func (pos PublicOrdersByPrice) Swap(i, j int) + type PublicTrade struct + Amount string + ExternalID string + Price string + Timestamp time.Time + type SeqNum uint32 + type SparklineUpdate struct + Price string + Timestamp time.Time + type SummaryUpdate struct + ChangeAbsolute string + ChangePercent string + High string + Last string + Low string + NumTrades int32 + VolumeBase string + VolumeQuote string + type TradesUpdate struct + Trades []PublicTrade + type TrendlineUpdate struct + Price string + Timestamp time.Time + Volume string + Window PerformanceWindow + type VWAPUpdate struct + Timestamp time.Time + VWAP string