Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Market ¶
type Market struct { Name string `json:"symbol"` BaseCurrency string `json:"base_currency"` QuoteCurrency string `json:"quote_currency"` }
There are far more fields to gemini market object but for now we only handle those that we actually need, ok!
type MarketName ¶
type MarketName string
type MarketNames ¶
type MarketNames []MarketName
type MarketType ¶
type MarketType string
const ( MarketTypeFuture MarketType = "future" MarketTypeSpot MarketType = "spot" )
func (*MarketType) UnmarshalJSON ¶
func (mt *MarketType) UnmarshalJSON(raw []byte) error
type MarketsMap ¶
type MarketsMap map[MarketName]Market
type OrderBookEntry ¶
type OrderBookEntry struct { Symbol string Time time.Time Bid *PriceLevel Ask *PriceLevel }
type PriceLevel ¶
Click to show internal directories.
Click to hide internal directories.