Versions in this module Expand all Collapse all v0 v0.0.3 Aug 4, 2023 Changes in this version + type ChannelMap struct + func NewChannelMap() *ChannelMap[K, V] + func (cm *ChannelMap[K, V]) Add(key K, values ...V) + func (cm *ChannelMap[K, V]) GetKeysForValue(value V) []K + func (cm *ChannelMap[K, V]) GetValuesForKey(key K) []V + func (cm *ChannelMap[K, V]) Remove(key K, values ...V) (isEmpty bool) v0.0.2 Aug 3, 2023 Changes in this version + var CoinbaseAdvancesValidGranularity = map[string]bool + var Granularity = map[string]time.Duration + func Dispatcher(ws *WebSocketConnection) + type Account struct + Active bool + AvailableBalance struct{ ... } + CreatedAt time.Time + Currency string + Default bool + DeletedAt time.Time + Hold struct{ ... } + Name string + Ready bool + Type string + UUID string + UpdatedAt time.Time + type AccountsList struct + Accounts []Account + Cursor string + HasNext bool + Size int + type Balance struct + Available float64 + Currency string + Reserved float64 + type CandleList struct + Candles []Candles + type Candles struct + Close string + High string + Low string + Open string + Start string + Volume string + type Channel struct + ChannelName string + Outputs map[chan<- string]chan<- string + type ChannelParams struct + ChannelName string + Output chan<- string + type CoinbaseAdvanced struct + Description string + Name string + func NewCoinbaseAdvanced(key, secret string) *CoinbaseAdvanced + func (c *CoinbaseAdvanced) CancelOrders(ctx context.Context, order_ids []string) (interface{}, error) + func (c *CoinbaseAdvanced) CreateOrder(ctx context.Context, params *CreateOrderParams) (interface{}, error) + func (c *CoinbaseAdvanced) GetAccount(ctx context.Context, params *GetAccountParams) (Account, error) + func (c *CoinbaseAdvanced) GetMarketTrades(ctx context.Context, params *GetMarketTradesParams) (MarketTradeList, error) + func (c *CoinbaseAdvanced) GetOrder(ctx context.Context, order_id string) (Order, error) + func (c *CoinbaseAdvanced) GetProduct(ctx context.Context, product_id string) (interface{}, error) + func (c *CoinbaseAdvanced) GetProductCandles(ctx context.Context, params *GetProductCandlesParams) (CandleList, error) + func (c *CoinbaseAdvanced) GetTransactionsSummary(ctx context.Context, params *GetTransactionsSummaryParams) (TransactionsSummary, error) + func (c *CoinbaseAdvanced) ListAccounts(ctx context.Context) (AccountsList, error) + func (c *CoinbaseAdvanced) ListFills(ctx context.Context, params *ListFillsParams) (FillList, error) + func (c *CoinbaseAdvanced) ListOrders(ctx context.Context, params *ListOrdersParams) (OrderList, error) + func (c *CoinbaseAdvanced) ListProducts(ctx context.Context, params *ListProductsParams) (ProductList, error) + func (c *CoinbaseAdvanced) Subscribe(ctx context.Context, sub *ChannelParams, productIDs ...string) (webSocket *WebSocketConnection, err error) + func (c *CoinbaseAdvanced) Unsubscribe(ctx context.Context, wsConnection *WebSocketConnection, sub *ChannelParams) (err error) + type CreateOrderParams struct + ClientOrderId string + OrderConfiguration OrderConfiguration + ProductId string + Side string + type FeeTier struct + Maker_fee_rate string + Pricing_tier string + Taker_fee_rate string + Usd_from string + Usd_to string + type Fill struct + Commission string + Entry_id string + Liquidity_indicator string + Order_id string + Price string + Product_id string + Sequence_timestamp time.Time + Side string + Size string + Size_in_quote bool + Trade_id string + Trade_time time.Time + Trade_type string + User_id string + type FillList struct + Cursor string + Fills []Fill + type FillLister interface + GetCursor func() string + GetFills func() []Fill + type GetAccountParams struct + AccountID string + type GetAccountResponse struct + Account Account + type GetMarketTradesParams struct + Limit int + Product_id string + type GetOrderResponse struct + Order Order + type GetProductCandlesParams struct + End string + Granularity string + Product_id string + Start string + type GetTransactionsSummaryParams struct + EndDate time.Time + ProductType string + StartDate time.Time + UserNativeCurrency string + type GoodsAndServicesTax struct + Rate string + Type string + type LimitLimitGTC struct + BaseSize string + LimitPrice string + PostOnly bool + type LimitLimitGTD struct + BaseSize string + EndTime time.Time + LimitPrice string + PostOnly bool + type Limit_limit_gtc struct + BaseSize string + LimitPrice string + PostOnly bool + type Limit_limit_gtd struct + BaseSize string + EndTime time.Time + LimitPrice string + PostOnly bool + type ListAccountParams struct + Cursor string + Limit int32 + type ListFillsParams struct + Cursor string + EndSequenceTimestamp time.Time + Limit int64 + OrderID string + ProductID string + StartSequenceTimestamp time.Time + type ListOrdersParams struct + Cursor string + EndDate time.Time + Limit int + OrderPlacementSource string + OrderSide string + OrderStatus string + OrderType string + ProductID string + ProductType string + StartDate time.Time + UserNativeCurrency string + type ListProductsParams struct + Limit int32 + Offset int32 + ProductType string + type MarginRate struct + Value string + type MarketMarketIOC struct + BaseSize string + QuoteSize string + type MarketTrade struct + Ask string + Bid string + Price string + Product_id string + Side string + Size string + Time time.Time + Trade_id string + type MarketTradeList struct + Best_ask string + Best_bid string + Trades []MarketTrade + type Market_market_ioc struct + BaseSize string + QuoteSize string + type Order struct + AverageFilledPrice string + CancelMessage string + ClientOrderID string + CompletionPercentage string + CreatedTime time.Time + Fee string + FilledSize string + FilledValue string + NumberOfFills string + OrderConfiguration OrderConfiguration + OrderID string + OrderPlacementSource string + OrderType string + PendingCancel bool + ProductID string + ProductType string + RejectMessage string + RejectReason string + Settled bool + Side string + SizeInQuote bool + SizeInclusiveOfFees bool + Status string + TimeInForce string + TotalFees string + TotalValueAfterFees string + TriggerStatus string + UserID string + type OrderBook struct + Asks [][]float64 + Bids [][]float64 + type OrderConfiguration struct + LimitLimitGTC LimitLimitGTC + LimitLimitGTD LimitLimitGTD + MarketMarketIOC MarketMarketIOC + StopLimitStopLimitGTC StopLimitStopLimitGTC + StopLimitStopLimitGTD StopLimitStopLimitGTD + type OrderList struct + Cursor string + HasNext bool + Orders []Order + type OrdersResponse struct + Cursor string + HasNext bool + Orders Order + Sequence string + type Product struct + Auction_mode bool + Base_currency_id string + Base_display_symbol string + Base_increment string + Base_max_size string + Base_min_size string + Base_name string + Cancel_only bool + Is_disabled bool + Limit_only bool + Mid_market_price string + New bool + Post_only bool + Price string + Price_percentage_change_24h string + Product_id string + Product_type string + Quote_currency_id string + Quote_display_symbol string + Quote_increment string + Quote_max_size string + Quote_min_size string + Quote_name string + Status string + Trading_disabled bool + Volume_24h string + Volume_percentage_change_24h string + Watched bool + type ProductList struct + Num_products int + Products []Product + type StopLimitStopLimitGTC struct + BaseSize string + LimitPrice string + StopDirection string + StopPrice string + type StopLimitStopLimitGTD struct + BaseSize string + EndTime time.Time + LimitPrice string + StopDirection string + StopPrice string + type Stop_limit_stop_limit_gtc struct + BaseSize string + LimitPrice string + StopDirection string + StopPrice string + type Stop_limit_stop_limit_gtd struct + BaseSize string + EndTime time.Time + LimitPrice string + StopDirection string + StopPrice string + type Ticker struct + Ask float64 + Bid float64 + Price float64 + Size float64 + Timestamp time.Time + TradeID int64 + Volume float64 + type Trade struct + Price float64 + Side string + Size float64 + Time time.Time + TradeID int64 + type TransactionsSummary struct + Advanced_trade_only_fees float64 + Advanced_trade_only_volume float64 + Coinbase_pro_fees float64 + Coinbase_pro_volume float64 + Fee_tier FeeTier + Goods_and_services_tax GoodsAndServicesTax + Margin_rate MarginRate + Total_fees float64 + Total_volume float64 + type UserEvent struct + Orders []UserOrders + Type string + type UserMessage struct + Channel string + ClientID string + Events []UserEvent + SequenceNum int + Timestamp time.Time + type UserOrders struct + AverageFilledPrice string + ClientOrderIO string + CreationTime time.Time + CumulativeQuantity string + LeavesQuantity string + OrderID string + OrderSide string + OrderType string + ProductID string + Status string + TotalFees string + type WebSocketConnection struct