Documentation
¶
Overview ¶
Order-mode trading endpoints (/swapx/order)
Index ¶
- type Client
- func (c *Client) OrderCheckOrdersFee(ctx context.Context, request *bgw.OrderCheckOrdersFeeRequest, ...) (*bgw.OrderCheckOrdersFeeResponse, error)
- func (c *Client) OrderGetSwapOrder(ctx context.Context, request *bgw.OrderGetSwapOrderRequest, ...) (*bgw.OrderGetSwapOrderResponse, error)
- func (c *Client) OrderGetSwapPrice(ctx context.Context, request *bgw.OrderGetSwapPriceRequest, ...) (*bgw.OrderGetSwapPriceResponse, error)
- func (c *Client) OrderMakeSwapOrder(ctx context.Context, request *bgw.OrderMakeSwapOrderRequest, ...) (*bgw.OrderMakeSwapOrderResponse, error)
- func (c *Client) OrderSubmitSwapOrder(ctx context.Context, request *bgw.OrderSubmitSwapOrderRequest, ...) (*bgw.OrderSubmitSwapOrderResponse, error)
- type RawClient
- func (r *RawClient) OrderCheckOrdersFee(ctx context.Context, request *bgw.OrderCheckOrdersFeeRequest, ...) (*core.Response[*bgw.OrderCheckOrdersFeeResponse], error)
- func (r *RawClient) OrderGetSwapOrder(ctx context.Context, request *bgw.OrderGetSwapOrderRequest, ...) (*core.Response[*bgw.OrderGetSwapOrderResponse], error)
- func (r *RawClient) OrderGetSwapPrice(ctx context.Context, request *bgw.OrderGetSwapPriceRequest, ...) (*core.Response[*bgw.OrderGetSwapPriceResponse], error)
- func (r *RawClient) OrderMakeSwapOrder(ctx context.Context, request *bgw.OrderMakeSwapOrderRequest, ...) (*core.Response[*bgw.OrderMakeSwapOrderResponse], error)
- func (r *RawClient) OrderSubmitSwapOrder(ctx context.Context, request *bgw.OrderSubmitSwapOrderRequest, ...) (*core.Response[*bgw.OrderSubmitSwapOrderResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) OrderCheckOrdersFee ¶
func (c *Client) OrderCheckOrdersFee( ctx context.Context, request *bgw.OrderCheckOrdersFeeRequest, opts ...option.RequestOption, ) (*bgw.OrderCheckOrdersFeeResponse, error)
Batch query of reconciled (actual) fees. Order Mode (ToB) only; excludes PayFi.
func (*Client) OrderGetSwapOrder ¶
func (c *Client) OrderGetSwapOrder( ctx context.Context, request *bgw.OrderGetSwapOrderRequest, opts ...option.RequestOption, ) (*bgw.OrderGetSwapOrderResponse, error)
func (*Client) OrderGetSwapPrice ¶
func (c *Client) OrderGetSwapPrice( ctx context.Context, request *bgw.OrderGetSwapPriceRequest, opts ...option.RequestOption, ) (*bgw.OrderGetSwapPriceResponse, error)
func (*Client) OrderMakeSwapOrder ¶
func (c *Client) OrderMakeSwapOrder( ctx context.Context, request *bgw.OrderMakeSwapOrderRequest, opts ...option.RequestOption, ) (*bgw.OrderMakeSwapOrderResponse, error)
func (*Client) OrderSubmitSwapOrder ¶
func (c *Client) OrderSubmitSwapOrder( ctx context.Context, request *bgw.OrderSubmitSwapOrderRequest, opts ...option.RequestOption, ) (*bgw.OrderSubmitSwapOrderResponse, error)
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) OrderCheckOrdersFee ¶
func (r *RawClient) OrderCheckOrdersFee( ctx context.Context, request *bgw.OrderCheckOrdersFeeRequest, opts ...option.RequestOption, ) (*core.Response[*bgw.OrderCheckOrdersFeeResponse], error)
func (*RawClient) OrderGetSwapOrder ¶
func (r *RawClient) OrderGetSwapOrder( ctx context.Context, request *bgw.OrderGetSwapOrderRequest, opts ...option.RequestOption, ) (*core.Response[*bgw.OrderGetSwapOrderResponse], error)
func (*RawClient) OrderGetSwapPrice ¶
func (r *RawClient) OrderGetSwapPrice( ctx context.Context, request *bgw.OrderGetSwapPriceRequest, opts ...option.RequestOption, ) (*core.Response[*bgw.OrderGetSwapPriceResponse], error)
func (*RawClient) OrderMakeSwapOrder ¶
func (r *RawClient) OrderMakeSwapOrder( ctx context.Context, request *bgw.OrderMakeSwapOrderRequest, opts ...option.RequestOption, ) (*core.Response[*bgw.OrderMakeSwapOrderResponse], error)
func (*RawClient) OrderSubmitSwapOrder ¶
func (r *RawClient) OrderSubmitSwapOrder( ctx context.Context, request *bgw.OrderSubmitSwapOrderRequest, opts ...option.RequestOption, ) (*core.Response[*bgw.OrderSubmitSwapOrderResponse], error)
Click to show internal directories.
Click to hide internal directories.