Documentation
¶
Index ¶
- Constants
- type ChildOrder
- type Client
- func (p *Client) Close() error
- func (p *Client) Connect(conf *auth.Client, channels, symbols []string, send chan Response)
- func (p *Client) Copy() *websocket.Conn
- func (p *Client) Subscribe(conf *auth.Client, symbols, channels []string) []*Request
- func (p *Client) Unsubscribe(requests []*Request) error
- type ParentOrder
- type Request
- type Response
- type Types
Constants ¶
View Source
const ( JSONRPCV = "2.0" AUTH = "auth" SUBSCRIBE = "subscribe" UNSUBSCRIBE = "unsubscribe" CHANNEL = "channel" )
View Source
const ( ALL = "ALL" Ticker = "lightning_ticker_" Executions = "lightning_executions_" Board = "lightning_board_" BoardSnap = "lightning_board_snapshot_" ChildOrders = "child_order_events" ParentOrders = "parent_order_events" Error = "error" Undefined = "undefined" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildOrder ¶
type ChildOrder struct { ProductCode string `json:"product_code"` ChildOrderID string `json:"child_order_id"` ChildOrderAcceptanceID string `json:"child_order_acceptance_id"` EventDate string `json:"event_date"` EventType string `json:"event_type"` ExecID int `json:"exec_id,omitempty"` ChildOrderType string `json:"child_order_type,omitempty"` Side string `json:"side,omitempty"` Price int `json:"price"` Size float64 `json:"size"` ExpireDate string `json:"expire_date,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Unsubscribe ¶
type ParentOrder ¶
type ParentOrder struct { ProductCode string `json:"product_code"` ParentOrderID string `json:"parent_order_id"` ParentOrderAcceptanceID string `json:"parent_order_acceptance_id"` EventDate string `json:"event_date"` EventType string `json:"event_type"` ParameterIndex int `json:"parameter_index"` ChildOrderType string `json:"child_order_type,omitempty"` Side string `json:"side,omitempty"` Price int `json:"price"` Size float64 `json:"size,omitempty"` ExpireDate string `json:"expire_date,omitempty"` ChildOrderAcceptanceID string `json:"child_order_acceptance_id"` }
type Response ¶
type Response struct { Types Types ProductCode string Board public.ResponseForBoard Ticker public.ResponseForTicker Executions []public.Execution ChildOrders []ChildOrder ParentOrders []ParentOrder Results error }
Click to show internal directories.
Click to hide internal directories.