Documentation ¶
Index ¶
- type Client
- func (c *Client) CancelAllChildOrders(cancelAllChildOrdersRequest *model.CancelAllChildOrdersRequest) error
- func (c *Client) CancelChildOrder(cancelChildOrderRequest *model.CancelChildOrderRequest) error
- func (c *Client) Do(method string, apipath string, query map[string]string, data []byte) ([]byte, error)
- func (c *Client) DoWs(w *model.Writer)
- func (c *Client) GetBalance() ([]*model.BalanceResponse, error)
- func (c *Client) GetBalanceHistory(balanceHistoryParams *model.BalanceHistoryParams) (*model.BalanceHistoryResponse, error)
- func (c *Client) GetChat(chatParams *model.ChatParams) ([]*model.ChatResponse, error)
- func (c *Client) GetChildOrders(childOrderParams *model.ChildOrderParams) ([]*model.ChildOrderResponse, error)
- func (c *Client) GetCollateral() (*model.CollateralResponse, error)
- func (c *Client) GetExecutions(executionParams *model.ExecutionParams) (*model.ExecutionResponse, error)
- func (c *Client) GetPositions(positionParams *model.PositionParams) ([]*model.PositionResponse, error)
- func (c *Client) GetTicker(tickerParams *model.TickerParams) (*model.TickerResponse, error)
- func (c *Client) GetTradingCommission(tradingCommissionParams *model.TradingCommissionParams) (*model.TradingCommissionResponse, error)
- func (c *Client) SendChildOrder(sendChildOrderRequest *model.SendChildOrderRequest) (*model.SendChildChildOrderResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a client.
func (*Client) CancelAllChildOrders ¶
func (c *Client) CancelAllChildOrders(cancelAllChildOrdersRequest *model.CancelAllChildOrdersRequest) error
CancelAllChildOrders cancels all child orders.
func (*Client) CancelChildOrder ¶
func (c *Client) CancelChildOrder(cancelChildOrderRequest *model.CancelChildOrderRequest) error
CancelChildOrder cancels a child order.
func (*Client) Do ¶
func (c *Client) Do(method string, apipath string, query map[string]string, data []byte) ([]byte, error)
Do sends an HTTP request and returns an HTTP response.
func (*Client) GetBalance ¶
func (c *Client) GetBalance() ([]*model.BalanceResponse, error)
GetBalance gets balance.
func (*Client) GetBalanceHistory ¶
func (c *Client) GetBalanceHistory(balanceHistoryParams *model.BalanceHistoryParams) (*model.BalanceHistoryResponse, error)
GetBalanceHistory gets balancehistory.
func (*Client) GetChat ¶
func (c *Client) GetChat(chatParams *model.ChatParams) ([]*model.ChatResponse, error)
GetChat gets chat.
func (*Client) GetChildOrders ¶
func (c *Client) GetChildOrders(childOrderParams *model.ChildOrderParams) ([]*model.ChildOrderResponse, error)
GetChildOrders gets child orders.
func (*Client) GetCollateral ¶
func (c *Client) GetCollateral() (*model.CollateralResponse, error)
GetCollateral gets collateral.
func (*Client) GetExecutions ¶
func (c *Client) GetExecutions(executionParams *model.ExecutionParams) (*model.ExecutionResponse, error)
GetExecutions gets executions.
func (*Client) GetPositions ¶
func (c *Client) GetPositions(positionParams *model.PositionParams) ([]*model.PositionResponse, error)
GetPositions gets positions.
func (*Client) GetTicker ¶
func (c *Client) GetTicker(tickerParams *model.TickerParams) (*model.TickerResponse, error)
GetTicker gets ticker.
func (*Client) GetTradingCommission ¶
func (c *Client) GetTradingCommission(tradingCommissionParams *model.TradingCommissionParams) (*model.TradingCommissionResponse, error)
GetTradingCommission gets tradingcommission.
func (*Client) SendChildOrder ¶
func (c *Client) SendChildOrder(sendChildOrderRequest *model.SendChildOrderRequest) (*model.SendChildChildOrderResponse, error)
SendChildOrder sends a child order.
Click to show internal directories.
Click to hide internal directories.