Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllBBO ¶
type AllBBO struct {
Topic string `json:"topic"`
Ts int64 `json:"ts"`
Data []BestBidOffer `json:"data"`
}
type AnyMessage ¶
type AnyMessage struct {
Response *Response
SubscribedMessage *SubscribedMessage
}
AnyMessage represents either a JSON Response or SubscribedMessage.
func (AnyMessage) MarshalJSON ¶
func (m AnyMessage) MarshalJSON() ([]byte, error)
func (*AnyMessage) UnmarshalJSON ¶
func (m *AnyMessage) UnmarshalJSON(data []byte) error
type BBO ¶
type BBO struct {
Topic string `json:"topic"`
Ts int64 `json:"ts"`
Data BestBidOffer `json:"data"`
}
type BestBidOffer ¶
type EstFundingRate ¶
type IndexPrice ¶
type IndexPrice struct {
Topic string `json:"topic"`
Ts int64 `json:"ts"`
Data SymbolPrice `json:"data"`
}
type Kline ¶
type Kline struct {
Topic string `json:"topic"`
Ts int64 `json:"ts"`
Data struct {
Symbol string `json:"symbol"`
Type string `json:"type"`
Open float64 `json:"open"`
Close float64 `json:"close"`
High float64 `json:"high"`
Low float64 `json:"low"`
Volume float64 `json:"volume"`
Amount float64 `json:"amount"`
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
} `json:"data"`
}
type MarkPrice ¶
type MarkPrice struct {
Topic string `json:"topic"`
Ts int64 `json:"ts"`
Data SymbolPrice `json:"data"`
}
type MarkPrices ¶
type MarkPrices struct {
Topic string `json:"topic"`
Ts int64 `json:"ts"`
Data []SymbolPrice `json:"data"`
}
type OpenInterest ¶
type SubscribedMessage ¶
type SubscribedMessage struct {
OriginData []byte
Topic string `json:"topic"`
Data json.RawMessage `json:"data"`
Timestamp int64 `json:"ts"`
}
type SymbolPrice ¶
Click to show internal directories.
Click to hide internal directories.