coinbase

package
v0.0.0-...-bc49051 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auction

type Auction struct {
	Type         string    `json:"type"`
	ProductID    string    `json:"product_id"`
	Sequence     int64     `json:"sequence"`
	AuctionState string    `json:"auction_state"`
	BestBidPrice string    `json:"best_bid_price"`
	BestBidSize  string    `json:"best_bid_size"`
	BestAskPrice string    `json:"best_ask_price"`
	BestAskSize  string    `json:"best_ask_size"`
	OpenPrice    string    `json:"open_price"`
	OpenSize     string    `json:"open_size"`
	CanOpen      string    `json:"can_open"`
	Timestamp    time.Time `json:"timestamp"`
}

type BasicMessage

type BasicMessage struct {
	Type      string `json:"type"`
	ProductID string `json:"product_id"`
}

type Heartbeat

type Heartbeat struct {
	Type        string    `json:"type"`
	Sequence    uint64    `json:"sequence"`
	LastTradeID uint64    `json:"last_trade_id"`
	ProductID   string    `json:"product_id"`
	Time        time.Time `json:"time"`
}

type Match

type Match struct {
	Type         string    `json:"type"`
	TradeID      uint64    `json:"trade_id"`
	Sequence     uint64    `json:"sequence"`
	MakerOrderID string    `json:"maker_order_id"`
	TakerOrderID string    `json:"taker_order_id"`
	Time         time.Time `json:"time"`
	Size         string    `json:"size"`
	Price        string    `json:"price"`
	Side         string    `json:"side"`
}

type Ticker

type Ticker struct {
	Type        string    `json:"type"`
	Sequence    uint64    `json:"sequence"`
	ProductID   string    `json:"product_id"`
	Price       string    `json:"price"`
	Open24h     string    `json:"open_24h"`
	Volume24h   string    `json:"volume_24h"`
	Low24h      string    `json:"low_24h"`
	High24h     string    `json:"high_24h"`
	BestBid     string    `json:"best_bid"`
	BestBidSize string    `json:"best_bid_size"`
	BestAsk     string    `json:"best_ask"`
	BestAskSize string    `json:"best_ask_size"`
	Side        string    `json:"side"`
	Time        time.Time `json:"time"`
	TradeID     string    `json:"trade_id"`
	LastSize    string    `json:"last_size"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL