Documentation
¶
Index ¶
- type GetBoardBook
- type GetBoardRequest
- type GetBoardResponse
- type GetBoardStateData
- type GetBoardStateRequest
- type GetBoardStateResponse
- type GetChatsChat
- type GetChatsRequest
- type GetChatsResponse
- type GetExecutionsExecution
- type GetExecutionsRequest
- type GetExecutionsResponse
- type GetHealthRequest
- type GetHealthResponse
- type GetMarketsMarket
- type GetMarketsRequest
- type GetMarketsResponse
- type GetTickerRequest
- type GetTickerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBoardBook ¶
type GetBoardRequest ¶
type GetBoardRequest struct {
Path string `url:"-"`
ProductCode types.ProductCode `url:"product_code,omitempty"`
}
func NewGetBoardRequest ¶
func NewGetBoardRequest(productCode types.ProductCode) *GetBoardRequest
func (*GetBoardRequest) CreateHTTPRequest ¶
func (b *GetBoardRequest) CreateHTTPRequest(endpoint string) (*client.HTTPRequest, error)
type GetBoardResponse ¶
type GetBoardResponse struct {
MidPrice float64 `json:"mid_price"`
Bids []*GetBoardBook `json:"bids"`
Asks []*GetBoardBook `json:"asks"`
}
func (*GetBoardResponse) Clone ¶
func (r *GetBoardResponse) Clone() *GetBoardResponse
type GetBoardStateData ¶
type GetBoardStateData struct {
SpecialQuotation int64 `json:"special_quotation"`
}
type GetBoardStateRequest ¶
type GetBoardStateRequest struct {
Path string `url:"-"`
ProductCode types.ProductCode `url:"product_code,omitempty"`
}
func NewGetBoardStateRequest ¶
func NewGetBoardStateRequest(productCode types.ProductCode) *GetBoardStateRequest
func (*GetBoardStateRequest) CreateHTTPRequest ¶
func (b *GetBoardStateRequest) CreateHTTPRequest(endpoint string) (*client.HTTPRequest, error)
type GetBoardStateResponse ¶
type GetBoardStateResponse struct {
Health string `json:"health"`
State string `json:"state"`
Data *GetBoardStateData `json:"data"`
}
type GetChatsChat ¶
type GetChatsRequest ¶
func NewGetChatsRequest ¶
func NewGetChatsRequest(fromDate int64) *GetChatsRequest
func (*GetChatsRequest) CreateHTTPRequest ¶
func (r *GetChatsRequest) CreateHTTPRequest(endpoint string) (*client.HTTPRequest, error)
type GetChatsResponse ¶
type GetChatsResponse []*GetChatsChat
type GetExecutionsExecution ¶
type GetExecutionsExecution struct {
Id int64 `json:"id"`
Side string `json:"side"`
Price float64 `json:"price"`
Size float64 `json:"size"`
ExecDate string `json:"exec_date"`
BuyChildOrderAcceptanceId string `json:"buy_child_order_acceptance_id"`
SellChildOrderAcceptanceId string `json:"sell_child_order_acceptance_id"`
}
type GetExecutionsRequest ¶
type GetExecutionsRequest struct {
Path string `url:"-"`
ProductCode types.ProductCode `url:"product_code,omitempty"`
types.Pagination
}
func NewGetExecutionsRequest ¶
func NewGetExecutionsRequest(productCode types.ProductCode, count int64, before int64, after int64) *GetExecutionsRequest
func (*GetExecutionsRequest) CreateHTTPRequest ¶
func (b *GetExecutionsRequest) CreateHTTPRequest(endpoint string) (*client.HTTPRequest, error)
type GetExecutionsResponse ¶
type GetExecutionsResponse []*GetExecutionsExecution
type GetHealthRequest ¶
type GetHealthRequest struct {
Path string `url:"-"`
ProductCode types.ProductCode `url:"product_code,omitempty"`
}
func NewGetHealthRequest ¶
func NewGetHealthRequest(productCode types.ProductCode) *GetHealthRequest
func (*GetHealthRequest) CreateHTTPRequest ¶
func (b *GetHealthRequest) CreateHTTPRequest(endpoint string) (*client.HTTPRequest, error)
type GetHealthResponse ¶
type GetHealthResponse struct {
Status string `json:"status"`
}
type GetMarketsMarket ¶
type GetMarketsMarket struct {
ProductCode types.ProductCode `json:"product_code"`
Alias types.ProductCode `json:"alias"`
}
type GetMarketsRequest ¶
type GetMarketsRequest struct {
Path string `url:"-"`
}
func NewGetMarketsRequest ¶
func NewGetMarketsRequest() *GetMarketsRequest
func (*GetMarketsRequest) CreateHTTPRequest ¶
func (m *GetMarketsRequest) CreateHTTPRequest(endpoint string) (*client.HTTPRequest, error)
type GetMarketsResponse ¶
type GetMarketsResponse []*GetMarketsMarket
type GetTickerRequest ¶
type GetTickerRequest struct {
Path string `url:"-"`
ProductCode types.ProductCode `url:"product_code,omitempty"`
}
func NewGetTickerRequest ¶
func NewGetTickerRequest(productCode types.ProductCode) *GetTickerRequest
func (*GetTickerRequest) CreateHTTPRequest ¶
func (b *GetTickerRequest) CreateHTTPRequest(endpoint string) (*client.HTTPRequest, error)
type GetTickerResponse ¶
type GetTickerResponse struct {
ProductCode types.ProductCode `json:"product_code"`
Timestamp string `json:"timestamp"`
TickId int64 `json:"tick_id"`
BestBid float64 `json:"best_bid"`
BestAsk float64 `json:"best_ask"`
BestBidSize float64 `json:"best_bid_size"`
BestAskSize float64 `json:"best_ask_size"`
TotalBidDepth float64 `json:"total_bid_depth"`
TotalAskDepth float64 `json:"total_ask_depth"`
LTP float64 `json:"ltp"`
Volume float64 `json:"volume"`
VolumeByProduct float64 `json:"volume_by_product"`
}
Click to show internal directories.
Click to hide internal directories.