Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyPayload json.RawMessage = []byte("{}")
Functions ¶
This section is empty.
Types ¶
type GetTickerRequest ¶
type GetTickerResponse ¶
type GetTickerResponse struct { TickerLife int `json:"ticker_life"` VolumeResolution int `json:"volume_resolution"` PriceChange string `json:"price_change"` PriceHigh string `json:"price_high"` PriceLow string `json:"price_low"` Buys []Trade `json:"buys"` Sells []Trade `json:"sells"` Lasts []Trade `json:"lasts"` Volume []Volume `json:"volume"` }
func GetTicker ¶
func GetTicker( ctx context.Context, req *GetTickerRequest, ) (*GetTickerResponse, error)
type MarketData ¶
type MarketData struct { Currency Currency `json:"currency"` Exchange Exchange `json:"exchange_name"` Trade MarketTrade `json:"trade"` }
type MarketPayload ¶
type MarketPayload struct {
Data MarketData `json:"data"`
}
type MarketTrade ¶
type Message ¶
type Message struct { Event Event `json:"event"` Topic Topic `json:"topic"` Ref *MessageId `json:"ref"` Payload json.RawMessage `json:"payload"` }
type Trade ¶
func (*Trade) UnmarshalJSON ¶
type Volume ¶
func (*Volume) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.