Documentation
¶
Index ¶
- Constants
- type Candlestick
- type CandlestickAskBid
- type Depth
- type GetAllSymbolsLast24hCandlesticksAskBidResponse
- type GetCandlestickOptionalRequest
- type GetCandlestickResponse
- type GetDepthOptionalRequest
- type GetDepthResponse
- type GetHistoricalTradeOptionalRequest
- type GetHistoricalTradeResponse
- type GetLast24hCandlestick
- type GetLast24hCandlestickAskBidResponse
- type GetLatestTradeResponse
- type MarketByPrice
- type SubscribeBestBidOfferResponse
- type SubscribeCandlestickResponse
- type SubscribeDepthResponse
- type SubscribeLast24hCandlestickResponse
- type SubscribeMarketByPriceResponse
- type SubscribeTradeResponse
- type SymbolCandlestick
- type Tick
- type Trade
- type TradeTick
Constants ¶
View Source
const ( MIN1 = "1min" MIN5 = "5min" MIN15 = "15min" MIN30 = "30min" MIN60 = "60min" HOUR4 = "4hour" DAY1 = "1day" MON1 = "1mon" WEEK1 = "1week" YEAR1 = "1year" )
View Source
const ( DEPTH_SIZE_FIVE = 5 DEPTH_SIZE_TEN = 10 DEPTH_SIZE_TWENTY = 20 )
View Source
const ( STEP0 = "step0" STEP1 = "step1" STEP2 = "step2" STEP3 = "step3" STEP4 = "step4" STEP5 = "step5" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Candlestick ¶
type CandlestickAskBid ¶
type CandlestickAskBid struct {
Amount decimal.Decimal `json:"amount"`
Open decimal.Decimal `json:"open"`
Close decimal.Decimal `json:"close"`
High decimal.Decimal `json:"high"`
Id int64 `json:"id"`
Count int64 `json:"count"`
Low decimal.Decimal `json:"low"`
Vol decimal.Decimal `json:"vol"`
Version int64 `json:"version"`
Bid []decimal.Decimal `json:"bid"`
Ask []decimal.Decimal `json:"ask"`
}
type GetAllSymbolsLast24hCandlesticksAskBidResponse ¶
type GetAllSymbolsLast24hCandlesticksAskBidResponse struct {
Status string `json:"status"`
Ts int64 `json:"ts"`
Data []SymbolCandlestick `json:"data"`
}
type GetCandlestickResponse ¶
type GetCandlestickResponse struct {
Status string `json:"status"`
Ch string `json:"ch"`
Ts int64 `json:"ts"`
Data []Candlestick `json:"data"`
}
type GetDepthOptionalRequest ¶
type GetDepthOptionalRequest struct {
Size int
}
type GetDepthResponse ¶
type GetHistoricalTradeOptionalRequest ¶
type GetHistoricalTradeOptionalRequest struct {
Size int
}
type GetLast24hCandlestick ¶
type GetLast24hCandlestick struct {
Status string `json:"status"`
Ch string `json:"ch"`
Ts int64 `json:"ts"`
Tick *Candlestick `json:"tick"`
}
type GetLast24hCandlestickAskBidResponse ¶
type GetLast24hCandlestickAskBidResponse struct {
Status string `json:"status"`
Ch string `json:"ch"`
Ts int64 `json:"ts"`
Tick *CandlestickAskBid `json:"tick"`
}
type GetLatestTradeResponse ¶
type MarketByPrice ¶
type SubscribeBestBidOfferResponse ¶
type SubscribeBestBidOfferResponse struct {
base.WebSocketResponseBase
Tick *struct {
QuoteTime int64 `json:"quoteTime"`
Symbol string `json:"symbol"`
Bid decimal.Decimal `json:"bid"`
BidSize decimal.Decimal `json:"bidSize"`
Ask decimal.Decimal `json:"ask"`
AskSize decimal.Decimal `json:"askSize"`
}
}
type SubscribeCandlestickResponse ¶
type SubscribeCandlestickResponse struct {
base.WebSocketResponseBase
Tick *Tick
Data []Tick
}
type SubscribeDepthResponse ¶
type SubscribeDepthResponse struct {
base.WebSocketResponseBase
Data *Depth
Tick *Depth
}
type SubscribeLast24hCandlestickResponse ¶
type SubscribeLast24hCandlestickResponse struct {
base.WebSocketResponseBase
Data *Candlestick
Tick *Candlestick
}
type SubscribeMarketByPriceResponse ¶
type SubscribeMarketByPriceResponse struct {
base.WebSocketResponseBase
Tick *MarketByPrice
Data *MarketByPrice
}
type SubscribeTradeResponse ¶
type SymbolCandlestick ¶
type SymbolCandlestick struct {
Amount decimal.Decimal `json:"amount"`
Open decimal.Decimal `json:"open"`
Close decimal.Decimal `json:"close"`
High decimal.Decimal `json:"high"`
Symbol string `json:"symbol"`
Count int64 `json:"count"`
Low decimal.Decimal `json:"low"`
Vol decimal.Decimal `json:"vol"`
Bid decimal.Decimal `json:"bid"`
BidSize decimal.Decimal `json:"bidSize"`
Ask decimal.Decimal `json:"ask"`
AskSize decimal.Decimal `json:"askSize"`
}
Source Files
¶
- getcandlestickoptionalrequest.go
- getcandlestickresponse.go
- getdepthoptionalrequest.go
- getdepthresponse.go
- gethistoricaltradeoptionalrequest.go
- gethistoricaltraderesponse.go
- getlast24hcandlestick.go
- getlast24hcandlestickaskbidresponse.go
- getlast24hcandlesticksresponse.go
- getlatesttraderesponse.go
- subscribebestbidofferresponse.go
- subscribecandlestickresponse.go
- subscribedepthresponse.go
- subscribelast24hcandlestickresponse.go
- subscribemarketbypriceresponse.go
- subscribetraderesponse.go
Click to show internal directories.
Click to hide internal directories.