bitflyer

package
v0.0.0-...-3de6311 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Logger *logger.Logger
	// contains filtered or unexported fields
}

Client is a client.

func NewClient

func NewClient(apikey string, apisecret string, logger *logger.Logger) *Client

NewClient creates a new 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) DoWs

func (c *Client) DoWs(w *model.Writer)

DoWs sends an websocket request and returns an websocket 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL