Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountEvent ¶
type AccountEvent map[string]interface{}
type Bargain ¶
func (*Bargain) MarshalJSON ¶
type Candle ¶
type Depth ¶
type Depth struct { Timestamp time.Time `json:"timestamp,omitempty"` Asks []*Bargain `json:"asks,omitempty"` Bids []*Bargain `json:"bids,omitempty"` }
get depth of a specified market, sorted from highest price to lowest
type OrderBookEvent ¶
type OrderBookEvent struct { Action string `json:"action,omitempty"` Market string `json:"market,omitempty"` ID int `json:"id,omitempty"` Side types.OrderSide `json:"side,omitempty"` Volume types.Volume `json:"volume,omitempty"` Price types.Price `json:"price,omitempty"` OrderType types.OrderType `json:"ord_type,omitempty"` }
type OrderRequest ¶
type OrderRequest struct { Side types.OrderSide `json:"side,omitempty"` Volume types.Volume `json:"volume,omitempty"` Price types.Price `json:"price,omitempty"` StopPrice types.Price `json:"stop_price,omitempty"` OrderType types.OrderType `json:"ord_type,omitempty"` }
func (*OrderRequest) MarshalJSON ¶
func (o *OrderRequest) MarshalJSON() ([]byte, error)
type PaymentAddress ¶
type PaymentAddress = api.PaymentAddress
type Ticker ¶
type Ticker struct { // timestamp in seconds since Unix epoch At time.Time `json:"at,omitempty"` Buy types.Price `json:"buy,omitempty"` Sell types.Price `json:"sell,omitempty"` Open types.Price `json:"open,omitempty"` Last types.Price `json:"last,omitempty"` High types.Price `json:"high,omitempty"` Low types.Price `json:"low,omitempty"` Volume types.Volume `json:"vol,omitempty"` }
type TickerEvent ¶
type TradeEvent ¶
type Withdrawal ¶
type Withdrawal = api.Withdrawal
Click to show internal directories.
Click to hide internal directories.