Documentation ¶
Index ¶
- type Histories
- type OpenOrder
- type OpenTriggerOrder
- type Order
- type RequestForCancelAll
- type RequestForCancelByID
- type RequestForHistories
- type RequestForModifyOrder
- type RequestForModifyTriggerOrder
- type RequestForOpenOrder
- type RequestForOpenTriggerOrders
- type RequestForOrderStatus
- type RequestForOrderTriggerHistories
- type RequestForOrderTriggers
- type RequestForPlaceOrder
- type RequestForPlaceTriggerOrder
- type ResponseForCancelAll
- type ResponseForCancelByID
- type ResponseForHistories
- type ResponseForModifyOrder
- type ResponseForModifyTriggerOrder
- type ResponseForOpenOrder
- type ResponseForOpenTriggerOrders
- type ResponseForOrderStatus
- type ResponseForOrderTriggerHistories
- type ResponseForOrderTriggers
- type ResponseForPlaceOrder
- type ResponseForPlaceTriggerOrder
- type Trigger
- type TriggerHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histories ¶
type Histories struct { Type string `json:"type"` ClientID string `json:"clientId"` Future string `json:"future"` Market string `json:"market"` Status string `json:"status"` Side string `json:"side"` Price float64 `json:"price"` AvgFillPrice float64 `json:"avgFillPrice"` FilledSize float64 `json:"filledSize"` Size float64 `json:"size"` RemainingSize float64 `json:"remainingSize"` ID int `json:"id"` Ioc bool `json:"ioc"` PostOnly bool `json:"postOnly"` ReduceOnly bool `json:"reduceOnly"` CreatedAt time.Time `json:"createdAt"` }
type OpenOrder ¶
type OpenOrder struct { Type string `json:"type"` Market string `json:"market"` Future string `json:"future"` ClientID string `json:"clientId"` Status string `json:"status"` Side string `json:"side"` Price float64 `json:"price"` AvgFillPrice float64 `json:"avgFillPrice"` Size float64 `json:"size"` FilledSize float64 `json:"filledSize"` RemainingSize float64 `json:"remainingSize"` ID int64 `json:"id"` ReduceOnly bool `json:"reduceOnly"` Ioc bool `json:"ioc"` PostOnly bool `json:"postOnly"` CreatedAt time.Time `json:"createdAt"` }
type OpenTriggerOrder ¶
type OpenTriggerOrder struct { Type string `json:"type"` OrderType string `json:"orderType"` OrderID string `json:"orderId"` Status string `json:"status"` Error string `json:"error"` Market string `json:"market"` Future string `json:"future"` Side string `json:"side"` OrderPrice float64 `json:"orderPrice"` Size float64 `json:"size"` TrailStart float64 `json:"trailStart"` TrailValue float64 `json:"trailValue"` TriggerPrice float64 `json:"triggerPrice"` AvgFillPrice float64 `json:"avgFillPrice"` TriggeredAt time.Time `json:"triggeredAt"` CreatedAt time.Time `json:"createdAt"` ReduceOnly bool `json:"reduceOnly"` RetryUntilFilled bool `json:"retryUntilFilled"` FilledSize float64 `json:"filledSize"` ID int `json:"id"` }
type Order ¶
type Order struct { ID int64 `json:"id"` ClientID string `json:"clientId"` Market string `json:"market"` Type string `json:"type"` Side string `json:"side"` Size float64 `json:"size"` Price float64 `json:"price"` ReduceOnly bool `json:"reduceOnly"` Ioc bool `json:"ioc"` PostOnly bool `json:"postOnly"` Status string `json:"status"` FilledSize float64 `json:"filledSize"` RemainingSize float64 `json:"remainingSize"` AvgFillPrice float64 `json:"avgFillPrice"` CreatedAt time.Time `json:"createdAt"` }
type RequestForCancelAll ¶
type RequestForCancelAll struct { ProductCode string `json:"market,omitempty"` ConditionalOrdersOnly bool `json:"conditionalOrdersOnly,omitempty"` LimitOrdersOnly bool `json:"limitOrdersOnly,omitempty"` }
func (*RequestForCancelAll) Method ¶
func (req *RequestForCancelAll) Method() string
func (*RequestForCancelAll) Path ¶
func (req *RequestForCancelAll) Path() string
func (*RequestForCancelAll) Payload ¶
func (req *RequestForCancelAll) Payload() []byte
func (*RequestForCancelAll) Query ¶
func (req *RequestForCancelAll) Query() string
type RequestForCancelByID ¶
func (*RequestForCancelByID) Method ¶
func (req *RequestForCancelByID) Method() string
func (*RequestForCancelByID) Path ¶
func (req *RequestForCancelByID) Path() string
func (*RequestForCancelByID) Payload ¶
func (req *RequestForCancelByID) Payload() []byte
func (*RequestForCancelByID) Query ¶
func (req *RequestForCancelByID) Query() string
type RequestForHistories ¶
type RequestForHistories struct { ProductCode string `url:"market,omitempty"` Limit int `url:"limit,omitempty"` Start int64 `url:"start_time,omitempty"` End int64 `url:"end_time,omitempty"` }
func (*RequestForHistories) Method ¶
func (req *RequestForHistories) Method() string
func (*RequestForHistories) Path ¶
func (req *RequestForHistories) Path() string
func (*RequestForHistories) Payload ¶
func (req *RequestForHistories) Payload() []byte
func (*RequestForHistories) Query ¶
func (req *RequestForHistories) Query() string
type RequestForModifyOrder ¶
type RequestForModifyOrder struct { OrderID string `json:"-"` ClientID string `json:"-"` Price float64 `json:"price,omitempty"` Size float64 `json:"size,omitempty"` }
func (*RequestForModifyOrder) Method ¶
func (req *RequestForModifyOrder) Method() string
func (*RequestForModifyOrder) Path ¶
func (req *RequestForModifyOrder) Path() string
func (*RequestForModifyOrder) Payload ¶
func (req *RequestForModifyOrder) Payload() []byte
func (*RequestForModifyOrder) Query ¶
func (req *RequestForModifyOrder) Query() string
type RequestForModifyTriggerOrder ¶
type RequestForModifyTriggerOrder struct { OrderID string `json:"-"` TrailValue float64 `json:"trailValue,omitempty"` TriggerPrice float64 `json:"triggerPrice,omitempty"` // OrderPrice only for stop limit orders OrderPrice float64 `json:"triggerPrice,omitempty"` // necessary Size float64 `json:"size"` }
func (*RequestForModifyTriggerOrder) Method ¶
func (req *RequestForModifyTriggerOrder) Method() string
func (*RequestForModifyTriggerOrder) Path ¶
func (req *RequestForModifyTriggerOrder) Path() string
func (*RequestForModifyTriggerOrder) Payload ¶
func (req *RequestForModifyTriggerOrder) Payload() []byte
func (*RequestForModifyTriggerOrder) Query ¶
func (req *RequestForModifyTriggerOrder) Query() string
type RequestForOpenOrder ¶
type RequestForOpenOrder struct {
ProductCode string `url:"market,omitempty"`
}
func (*RequestForOpenOrder) Method ¶
func (req *RequestForOpenOrder) Method() string
func (*RequestForOpenOrder) Path ¶
func (req *RequestForOpenOrder) Path() string
func (*RequestForOpenOrder) Payload ¶
func (req *RequestForOpenOrder) Payload() []byte
func (*RequestForOpenOrder) Query ¶
func (req *RequestForOpenOrder) Query() string
type RequestForOpenTriggerOrders ¶
type RequestForOpenTriggerOrders struct { ProductCode string `url:"market,omitempty"` Type string `url:"type,omitempty"` }
func (*RequestForOpenTriggerOrders) Method ¶
func (req *RequestForOpenTriggerOrders) Method() string
func (*RequestForOpenTriggerOrders) Path ¶
func (req *RequestForOpenTriggerOrders) Path() string
func (*RequestForOpenTriggerOrders) Payload ¶
func (req *RequestForOpenTriggerOrders) Payload() []byte
func (*RequestForOpenTriggerOrders) Query ¶
func (req *RequestForOpenTriggerOrders) Query() string
type RequestForOrderStatus ¶
func (*RequestForOrderStatus) Method ¶
func (req *RequestForOrderStatus) Method() string
func (*RequestForOrderStatus) Path ¶
func (req *RequestForOrderStatus) Path() string
func (*RequestForOrderStatus) Payload ¶
func (req *RequestForOrderStatus) Payload() []byte
func (*RequestForOrderStatus) Query ¶
func (req *RequestForOrderStatus) Query() string
type RequestForOrderTriggerHistories ¶
type RequestForOrderTriggerHistories struct { ProductCode string `url:"market,omitempty"` Type string `url:"type,omitempty"` Side string `url:"side,omitempty"` OrderType string `url:"orderType,omitempty"` Limit int `url:"limit,omitempty"` Start int64 `url:"start_time,omitempty"` End int64 `url:"end_time,omitempty"` }
func (*RequestForOrderTriggerHistories) Method ¶
func (req *RequestForOrderTriggerHistories) Method() string
func (*RequestForOrderTriggerHistories) Path ¶
func (req *RequestForOrderTriggerHistories) Path() string
func (*RequestForOrderTriggerHistories) Payload ¶
func (req *RequestForOrderTriggerHistories) Payload() []byte
func (*RequestForOrderTriggerHistories) Query ¶
func (req *RequestForOrderTriggerHistories) Query() string
type RequestForOrderTriggers ¶
type RequestForOrderTriggers struct {
CID string `url:"-"`
}
func (*RequestForOrderTriggers) Method ¶
func (req *RequestForOrderTriggers) Method() string
func (*RequestForOrderTriggers) Path ¶
func (req *RequestForOrderTriggers) Path() string
func (*RequestForOrderTriggers) Payload ¶
func (req *RequestForOrderTriggers) Payload() []byte
func (*RequestForOrderTriggers) Query ¶
func (req *RequestForOrderTriggers) Query() string
type RequestForPlaceOrder ¶
type RequestForPlaceOrder struct { ClientID string `json:"clientId,omitempty"` Type string `json:"type"` Market string `json:"market"` Side string `json:"side"` Price float64 `json:"price"` Size float64 `json:"size"` ReduceOnly bool `json:"reduceOnly,omitempty"` Ioc bool `json:"ioc,omitempty"` PostOnly bool `json:"postOnly,omitempty"` }
func (*RequestForPlaceOrder) Method ¶
func (req *RequestForPlaceOrder) Method() string
func (*RequestForPlaceOrder) Path ¶
func (req *RequestForPlaceOrder) Path() string
func (*RequestForPlaceOrder) Payload ¶
func (req *RequestForPlaceOrder) Payload() []byte
func (*RequestForPlaceOrder) Query ¶
func (req *RequestForPlaceOrder) Query() string
type RequestForPlaceTriggerOrder ¶
type RequestForPlaceTriggerOrder struct { Market string `json:"market"` // Type stop, trailingStop, takeProfit. default is stop Type string `json:"type"` Side string `json:"side"` TriggerPrice float64 `json:"triggerPrice"` Size float64 `json:"size"` ReduceOnly bool `json:"reduceOnly,omitempty"` RetryUntilFilled bool `json:"retryUntilFilled,omitempty"` }
func (*RequestForPlaceTriggerOrder) Method ¶
func (req *RequestForPlaceTriggerOrder) Method() string
func (*RequestForPlaceTriggerOrder) Path ¶
func (req *RequestForPlaceTriggerOrder) Path() string
func (*RequestForPlaceTriggerOrder) Payload ¶
func (req *RequestForPlaceTriggerOrder) Payload() []byte
func (*RequestForPlaceTriggerOrder) Query ¶
func (req *RequestForPlaceTriggerOrder) Query() string
type ResponseForCancelAll ¶
type ResponseForCancelAll string
type ResponseForCancelByID ¶
type ResponseForCancelByID string
type ResponseForHistories ¶
type ResponseForHistories []Histories
type ResponseForModifyOrder ¶
type ResponseForModifyOrder struct { ClientID string `json:"clientId"` Future string `json:"future"` Market string `json:"market"` Status string `json:"status"` Type string `json:"type"` Side string `json:"side"` Price float64 `json:"price"` Size float64 `json:"size"` FilledSize float64 `json:"filledSize"` RemainingSize float64 `json:"remainingSize"` ID int `json:"id"` ReduceOnly bool `json:"reduceOnly"` Ioc bool `json:"ioc"` PostOnly bool `json:"postOnly"` CreatedAt time.Time `json:"createdAt"` }
type ResponseForModifyTriggerOrder ¶
type ResponseForModifyTriggerOrder struct { OrderID string `json:"orderId"` Type string `json:"type"` OrderType string `json:"orderType"` Future string `json:"future"` Market string `json:"market"` Status string `json:"status"` Error string `json:"error"` Side string `json:"side"` OrderPrice float64 `json:"orderPrice"` AvgFillPrice float64 `json:"avgFillPrice"` TriggerPrice float64 `json:"triggerPrice"` Size float64 `json:"size"` FilledSize float64 `json:"filledSize"` ID int `json:"id"` RetryUntilFilled bool `json:"retryUntilFilled"` ReduceOnly bool `json:"reduceOnly"` TriggeredAt time.Time `json:"triggeredAt"` CreatedAt time.Time `json:"createdAt"` }
type ResponseForOpenOrder ¶
type ResponseForOpenOrder []OpenOrder
type ResponseForOpenTriggerOrders ¶
type ResponseForOpenTriggerOrders []OpenTriggerOrder
type ResponseForOrderStatus ¶
type ResponseForOrderStatus struct { ClientID string `json:"clientId"` Future string `json:"future"` Market string `json:"market"` Status string `json:"status"` Type string `json:"type"` Side string `json:"side"` Price float64 `json:"price"` AvgFillPrice float64 `json:"avgFillPrice"` FilledSize float64 `json:"filledSize"` Size float64 `json:"size"` RemainingSize float64 `json:"remainingSize"` ID int `json:"id"` Ioc bool `json:"ioc"` ReduceOnly bool `json:"reduceOnly"` PostOnly bool `json:"postOnly"` CreatedAt time.Time `json:"createdAt"` }
type ResponseForOrderTriggerHistories ¶
type ResponseForOrderTriggerHistories []TriggerHistory
type ResponseForOrderTriggers ¶
type ResponseForOrderTriggers []Trigger
type ResponseForPlaceOrder ¶
type ResponseForPlaceOrder struct { ClientID string `json:"clientId"` Status string `json:"status"` Type string `json:"type"` Future string `json:"future"` Market string `json:"market"` Side string `json:"side"` Price float64 `json:"price"` Size float64 `json:"size"` RemainingSize float64 `json:"remainingSize"` FilledSize float64 `json:"filledSize"` ID int `json:"id"` Ioc bool `json:"ioc"` PostOnly bool `json:"postOnly"` ReduceOnly bool `json:"reduceOnly"` CreatedAt time.Time `json:"createdAt"` }
type ResponseForPlaceTriggerOrder ¶
type ResponseForPlaceTriggerOrder struct { Type string `json:"type"` Future string `json:"future"` Market string `json:"market"` OrderID string `json:"orderId"` Status string `json:"status"` Error string `json:"error"` OrderType string `json:"orderType"` Side string `json:"side"` TriggerPrice float64 `json:"triggerPrice"` Size float64 `json:"size"` OrderPrice float64 `json:"orderPrice"` ID int `json:"id"` ReduceOnly bool `json:"reduceOnly"` RetryUntilFilled bool `json:"retryUntilFilled"` TriggeredAt time.Time `json:"triggeredAt"` CreatedAt time.Time `json:"createdAt"` }
type TriggerHistory ¶
type TriggerHistory struct { Status string `json:"status"` Error string `json:"error"` Future string `json:"future"` Market string `json:"market"` Type string `json:"type"` OrderType string `json:"orderType"` OrderStatus string `json:"orderStatus"` Side string `json:"side"` OrderPrice float64 `json:"orderPrice"` TriggerPrice float64 `json:"triggerPrice"` AvgFillPrice float64 `json:"avgFillPrice"` TrailStart float64 `json:"trailStart"` TrailValue float64 `json:"trailValue"` ID int `json:"id"` OrderID int `json:"orderId"` Size int `json:"size"` FilledSize int `json:"filledSize"` RetryUntilFilled bool `json:"retryUntilFilled"` ReduceOnly bool `json:"reduceOnly"` TriggeredAt time.Time `json:"triggeredAt"` CreatedAt time.Time `json:"createdAt"` }
Click to show internal directories.
Click to hide internal directories.