Documentation
¶
Index ¶
- type AccountResponse
- type AccountVo
- type Depth1Message
- type Depth1Response
- type DepthSnapshotMessage
- type DepthSnapshotResponse
- type DepthUpdateMessage
- type DepthUpdateResponse
- type GetWsAuthTokenResponse
- type IndexMessage
- type IndexPriceResponse
- type KlineMessage
- type KlineResponse
- type MarkPriceMessage
- type MarkPriceResponse
- type MarketTradeResponse
- type OrderBookMessage
- type OrderBookResponse
- type OrderResponse
- type OrderVo
- type PingMessage
- type PositionResponse
- type PositionVo
- type SubscriptionFailMessage
- type SubscriptionFailResponse
- type SubscriptionSuccessMessage
- type SubscriptionSuccessResponse
- type TickerMessage
- type TickerResponse
- type TradeMessage
- type TradeResponse
- type TradeVo
- type UpdateCtrlMessage
- type UserTradeResponse
- type WsToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResponse ¶
type AccountResponse struct {
base.WsBaseResponse
Data AccountVo `json:"data"`
}
type Depth1Message ¶
type Depth1Response ¶
type Depth1Response struct {
base.WsBaseResponse
Data Depth1Message `json:"data"`
}
type DepthSnapshotMessage ¶
type DepthSnapshotResponse ¶
type DepthSnapshotResponse struct {
base.WsBaseResponse
Data DepthSnapshotMessage `json:"data"`
}
type DepthUpdateMessage ¶
type DepthUpdateResponse ¶
type DepthUpdateResponse struct {
base.WsBaseResponse
Data DepthUpdateMessage `json:"data"`
}
type GetWsAuthTokenResponse ¶
type GetWsAuthTokenResponse struct {
base.RestBaseResponse
Data WsToken `json:"data"`
}
type IndexMessage ¶
type IndexPriceResponse ¶
type IndexPriceResponse struct {
base.WsBaseResponse
Data IndexMessage `json:"data"`
}
type KlineMessage ¶
type KlineResponse ¶
type KlineResponse struct {
base.WsBaseResponse
Data KlineMessage `json:"data"`
}
type MarkPriceMessage ¶
type MarkPriceResponse ¶
type MarkPriceResponse struct {
base.WsBaseResponse
Data MarkPriceMessage `json:"data"`
}
type MarketTradeResponse ¶
type MarketTradeResponse struct {
base.WsBaseResponse
Data []TradeMessage `json:"data"`
}
type OrderBookMessage ¶
type OrderBookResponse ¶
type OrderBookResponse struct {
base.WsBaseResponse
Data OrderBookMessage `json:"data"`
}
type OrderResponse ¶
type OrderResponse struct {
base.WsBaseResponse
Data []OrderVo `json:"data"`
}
type OrderVo ¶
type OrderVo order.OrderActionVo
type PingMessage ¶
type PingMessage struct {
Ping int64 `json:"ping"`
}
type PositionResponse ¶
type PositionResponse struct {
base.WsBaseResponse
Data []PositionVo `json:"data"`
}
type PositionVo ¶
type PositionVo account.PositionVo
type SubscriptionFailMessage ¶
type SubscriptionFailResponse ¶
type SubscriptionFailResponse struct {
base.WsBaseResponse
Data SubscriptionFailMessage `json:"data"`
}
type SubscriptionSuccessResponse ¶
type SubscriptionSuccessResponse struct {
base.WsBaseResponse
Data SubscriptionSuccessMessage `json:"data"`
}
type TickerMessage ¶
type TickerResponse ¶
type TickerResponse struct {
base.WsBaseResponse
Data TickerMessage `json:"data"`
}
type TradeMessage ¶
type TradeMessage struct {
InstrumentId string `json:"instrument_id"`
TradeId string `json:"trade_id"`
Price string `json:"price"`
Qty string `json:"qty"`
Side string `json:"side"`
Sigma string `json:"sigma"`
OptionType string `json:"option_type"`
IsBlockTrade bool `json:"is_block_trade"`
CreatedAt int64 `json:"created_at"`
}
type TradeResponse ¶
type TradeResponse struct {
base.WsBaseResponse
Data []TradeMessage `json:"data"`
}
type UpdateCtrlMessage ¶
type UpdateCtrlMessage struct {
Type string
Data interface{}
}
type UserTradeResponse ¶
type UserTradeResponse struct {
base.WsBaseResponse
Data []TradeVo `json:"data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.