Documentation ¶
Index ¶
- Constants
- func Connect(ctx context.Context, ch chan Response, channels, symbols []string, ...) error
- func ConnectForPrivate(ctx context.Context, ch chan Response, key, secret string, channels []string, ...) error
- type ChildOrderEvent
- type Client
- type ParentEvent
- type Request
- type Response
- type Types
Constants ¶
View Source
const ( ENDPOINT = "wss://ws.lightstream.bitflyer.com/json-rpc" READDEADLINE time.Duration = 300 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChildOrderEvent ¶
type ChildOrderEvent struct { ProductCode string `json:"product_code"` ChildOrderID string `json:"child_order_id"` ChildOrderAcceptanceID string `json:"child_order_acceptance_id"` ChildOrderType string `json:"child_order_type"` EventType string `json:"event_type"` Side string `json:"side"` Price float64 `json:"price"` Size float64 `json:"size"` ExpireDate string `json:"expire_date"` // 新設分追記 Reason string `json:"reason"` Commission float64 `json:"commission"` SFD float64 `json:"sfd"` EventDate types.ExchangeTime `json:"event_date"` ExecID int `json:"exec_id"` }
type ParentEvent ¶
type ParentEvent struct { ProductCode string `json:"product_code"` ParentOrderID string `json:"parent_order_id"` ParentOrderAcceptanceID string `json:"parent_order_acceptance_id"` ChildOrderAcceptanceID string `json:"child_order_acceptance_id"` EventType string `json:"event_type"` ParentOrderType string `json:"parent_order_type"` ChildOrderType string `json:"child_order_type"` Reason string `json:"reason"` Side string `json:"side"` Price float64 `json:"price"` Size float64 `json:"size"` EventDate types.ExchangeTime `json:"event_date"` ExpireDate types.ExchangeTime `json:"expire_date"` ParameterIndex int `json:"parameter_index"` }
type Response ¶
type Response struct { Types Types ProductCode types.ProductCode Board board.Response Ticker ticker.Response Executions []execution.Execution ChildOrderEvents []ChildOrderEvent ParentOrderEvents []ParentEvent Results error }
Click to show internal directories.
Click to hide internal directories.