Documentation ¶
Overview ¶
Package account provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewGetApiV5AccountAccountPositionRiskRequest(server string, params *GetApiV5AccountAccountPositionRiskParams) (*http.Request, error)
- func NewGetApiV5AccountBalanceRequest(server string, params *GetApiV5AccountBalanceParams) (*http.Request, error)
- func NewGetApiV5AccountBillsArchiveRequest(server string, params *GetApiV5AccountBillsArchiveParams) (*http.Request, error)
- func NewGetApiV5AccountBillsRequest(server string, params *GetApiV5AccountBillsParams) (*http.Request, error)
- func NewGetApiV5AccountConfigRequest(server string) (*http.Request, error)
- func NewGetApiV5AccountInterestAccruedRequest(server string, params *GetApiV5AccountInterestAccruedParams) (*http.Request, error)
- func NewGetApiV5AccountInterestRateRequest(server string, params *GetApiV5AccountInterestRateParams) (*http.Request, error)
- func NewGetApiV5AccountLeverageInfoRequest(server string, params *GetApiV5AccountLeverageInfoParams) (*http.Request, error)
- func NewGetApiV5AccountMaxAvailSizeRequest(server string, params *GetApiV5AccountMaxAvailSizeParams) (*http.Request, error)
- func NewGetApiV5AccountMaxLoanRequest(server string, params *GetApiV5AccountMaxLoanParams) (*http.Request, error)
- func NewGetApiV5AccountMaxSizeRequest(server string, params *GetApiV5AccountMaxSizeParams) (*http.Request, error)
- func NewGetApiV5AccountMaxWithdrawalRequest(server string, params *GetApiV5AccountMaxWithdrawalParams) (*http.Request, error)
- func NewGetApiV5AccountPositionsRequest(server string, params *GetApiV5AccountPositionsParams) (*http.Request, error)
- func NewGetApiV5AccountTradeFeeRequest(server string, params *GetApiV5AccountTradeFeeParams) (*http.Request, error)
- func NewPostApiV5AccountPositionMarginBalanceRequest(server string, body PostApiV5AccountPositionMarginBalanceJSONRequestBody) (*http.Request, error)
- func NewPostApiV5AccountPositionMarginBalanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiV5AccountSetGreeksRequest(server string, body PostApiV5AccountSetGreeksJSONRequestBody) (*http.Request, error)
- func NewPostApiV5AccountSetGreeksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiV5AccountSetLeverageRequest(server string, body PostApiV5AccountSetLeverageJSONRequestBody) (*http.Request, error)
- func NewPostApiV5AccountSetLeverageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiV5AccountSetPositionModeRequest(server string, body PostApiV5AccountSetPositionModeJSONRequestBody) (*http.Request, error)
- func NewPostApiV5AccountSetPositionModeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Client
- func (c *Client) GetApiV5AccountAccountPositionRisk(ctx context.Context, params *GetApiV5AccountAccountPositionRiskParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountBalance(ctx context.Context, params *GetApiV5AccountBalanceParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountBills(ctx context.Context, params *GetApiV5AccountBillsParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountBillsArchive(ctx context.Context, params *GetApiV5AccountBillsArchiveParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiV5AccountInterestAccrued(ctx context.Context, params *GetApiV5AccountInterestAccruedParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountInterestRate(ctx context.Context, params *GetApiV5AccountInterestRateParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountLeverageInfo(ctx context.Context, params *GetApiV5AccountLeverageInfoParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountMaxAvailSize(ctx context.Context, params *GetApiV5AccountMaxAvailSizeParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountMaxLoan(ctx context.Context, params *GetApiV5AccountMaxLoanParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountMaxSize(ctx context.Context, params *GetApiV5AccountMaxSizeParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountMaxWithdrawal(ctx context.Context, params *GetApiV5AccountMaxWithdrawalParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountPositions(ctx context.Context, params *GetApiV5AccountPositionsParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5AccountTradeFee(ctx context.Context, params *GetApiV5AccountTradeFeeParams, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountPositionMarginBalance(ctx context.Context, body PostApiV5AccountPositionMarginBalanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountPositionMarginBalanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountSetGreeks(ctx context.Context, body PostApiV5AccountSetGreeksJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountSetGreeksWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountSetLeverage(ctx context.Context, body PostApiV5AccountSetLeverageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountSetLeverageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountSetPositionMode(ctx context.Context, body PostApiV5AccountSetPositionModeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiV5AccountSetPositionModeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetApiV5AccountAccountPositionRiskWithResponse(ctx context.Context, params *GetApiV5AccountAccountPositionRiskParams, ...) (*GetApiV5AccountAccountPositionRiskResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountBalanceWithResponse(ctx context.Context, params *GetApiV5AccountBalanceParams, ...) (*GetApiV5AccountBalanceResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountBillsArchiveWithResponse(ctx context.Context, params *GetApiV5AccountBillsArchiveParams, ...) (*GetApiV5AccountBillsArchiveResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountBillsWithResponse(ctx context.Context, params *GetApiV5AccountBillsParams, ...) (*GetApiV5AccountBillsResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5AccountConfigResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountInterestAccruedWithResponse(ctx context.Context, params *GetApiV5AccountInterestAccruedParams, ...) (*GetApiV5AccountInterestAccruedResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountInterestRateWithResponse(ctx context.Context, params *GetApiV5AccountInterestRateParams, ...) (*GetApiV5AccountInterestRateResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountLeverageInfoWithResponse(ctx context.Context, params *GetApiV5AccountLeverageInfoParams, ...) (*GetApiV5AccountLeverageInfoResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountMaxAvailSizeWithResponse(ctx context.Context, params *GetApiV5AccountMaxAvailSizeParams, ...) (*GetApiV5AccountMaxAvailSizeResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountMaxLoanWithResponse(ctx context.Context, params *GetApiV5AccountMaxLoanParams, ...) (*GetApiV5AccountMaxLoanResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountMaxSizeWithResponse(ctx context.Context, params *GetApiV5AccountMaxSizeParams, ...) (*GetApiV5AccountMaxSizeResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountMaxWithdrawalWithResponse(ctx context.Context, params *GetApiV5AccountMaxWithdrawalParams, ...) (*GetApiV5AccountMaxWithdrawalResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountPositionsWithResponse(ctx context.Context, params *GetApiV5AccountPositionsParams, ...) (*GetApiV5AccountPositionsResponse, error)
- func (c *ClientWithResponses) GetApiV5AccountTradeFeeWithResponse(ctx context.Context, params *GetApiV5AccountTradeFeeParams, ...) (*GetApiV5AccountTradeFeeResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountPositionMarginBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiV5AccountPositionMarginBalanceResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountPositionMarginBalanceWithResponse(ctx context.Context, body PostApiV5AccountPositionMarginBalanceJSONRequestBody, ...) (*PostApiV5AccountPositionMarginBalanceResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountSetGreeksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiV5AccountSetGreeksResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountSetGreeksWithResponse(ctx context.Context, body PostApiV5AccountSetGreeksJSONRequestBody, ...) (*PostApiV5AccountSetGreeksResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountSetLeverageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiV5AccountSetLeverageResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountSetLeverageWithResponse(ctx context.Context, body PostApiV5AccountSetLeverageJSONRequestBody, ...) (*PostApiV5AccountSetLeverageResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountSetPositionModeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiV5AccountSetPositionModeResponse, error)
- func (c *ClientWithResponses) PostApiV5AccountSetPositionModeWithResponse(ctx context.Context, body PostApiV5AccountSetPositionModeJSONRequestBody, ...) (*PostApiV5AccountSetPositionModeResponse, error)
- type ClientWithResponsesInterface
- type GetApiV5AccountAccountPositionRiskParams
- type GetApiV5AccountAccountPositionRiskResponse
- type GetApiV5AccountBalanceParams
- type GetApiV5AccountBalanceResponse
- type GetApiV5AccountBillsArchiveParams
- type GetApiV5AccountBillsArchiveResponse
- type GetApiV5AccountBillsParams
- type GetApiV5AccountBillsResponse
- type GetApiV5AccountConfigResponse
- type GetApiV5AccountInterestAccruedParams
- type GetApiV5AccountInterestAccruedResponse
- type GetApiV5AccountInterestRateParams
- type GetApiV5AccountInterestRateResponse
- type GetApiV5AccountLeverageInfoParams
- type GetApiV5AccountLeverageInfoResponse
- type GetApiV5AccountMaxAvailSizeParams
- type GetApiV5AccountMaxAvailSizeResponse
- type GetApiV5AccountMaxLoanParams
- type GetApiV5AccountMaxLoanResponse
- type GetApiV5AccountMaxSizeParams
- type GetApiV5AccountMaxSizeResponse
- type GetApiV5AccountMaxWithdrawalParams
- type GetApiV5AccountMaxWithdrawalResponse
- type GetApiV5AccountPositionsParams
- type GetApiV5AccountPositionsResponse
- type GetApiV5AccountTradeFeeParams
- type GetApiV5AccountTradeFeeResponse
- type HttpRequestDoer
- type PostApiV5AccountPositionMarginBalanceJSONBody
- type PostApiV5AccountPositionMarginBalanceJSONRequestBody
- type PostApiV5AccountPositionMarginBalanceResponse
- type PostApiV5AccountSetGreeksJSONBody
- type PostApiV5AccountSetGreeksJSONRequestBody
- type PostApiV5AccountSetGreeksResponse
- type PostApiV5AccountSetLeverageJSONBody
- type PostApiV5AccountSetLeverageJSONRequestBody
- type PostApiV5AccountSetLeverageResponse
- type PostApiV5AccountSetPositionModeJSONBody
- type PostApiV5AccountSetPositionModeJSONRequestBody
- type PostApiV5AccountSetPositionModeResponse
- type RequestEditorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewGetApiV5AccountAccountPositionRiskRequest ¶
func NewGetApiV5AccountAccountPositionRiskRequest(server string, params *GetApiV5AccountAccountPositionRiskParams) (*http.Request, error)
NewGetApiV5AccountAccountPositionRiskRequest generates requests for GetApiV5AccountAccountPositionRisk
func NewGetApiV5AccountBalanceRequest ¶
func NewGetApiV5AccountBalanceRequest(server string, params *GetApiV5AccountBalanceParams) (*http.Request, error)
NewGetApiV5AccountBalanceRequest generates requests for GetApiV5AccountBalance
func NewGetApiV5AccountBillsArchiveRequest ¶
func NewGetApiV5AccountBillsArchiveRequest(server string, params *GetApiV5AccountBillsArchiveParams) (*http.Request, error)
NewGetApiV5AccountBillsArchiveRequest generates requests for GetApiV5AccountBillsArchive
func NewGetApiV5AccountBillsRequest ¶
func NewGetApiV5AccountBillsRequest(server string, params *GetApiV5AccountBillsParams) (*http.Request, error)
NewGetApiV5AccountBillsRequest generates requests for GetApiV5AccountBills
func NewGetApiV5AccountConfigRequest ¶
NewGetApiV5AccountConfigRequest generates requests for GetApiV5AccountConfig
func NewGetApiV5AccountInterestAccruedRequest ¶
func NewGetApiV5AccountInterestAccruedRequest(server string, params *GetApiV5AccountInterestAccruedParams) (*http.Request, error)
NewGetApiV5AccountInterestAccruedRequest generates requests for GetApiV5AccountInterestAccrued
func NewGetApiV5AccountInterestRateRequest ¶
func NewGetApiV5AccountInterestRateRequest(server string, params *GetApiV5AccountInterestRateParams) (*http.Request, error)
NewGetApiV5AccountInterestRateRequest generates requests for GetApiV5AccountInterestRate
func NewGetApiV5AccountLeverageInfoRequest ¶
func NewGetApiV5AccountLeverageInfoRequest(server string, params *GetApiV5AccountLeverageInfoParams) (*http.Request, error)
NewGetApiV5AccountLeverageInfoRequest generates requests for GetApiV5AccountLeverageInfo
func NewGetApiV5AccountMaxAvailSizeRequest ¶
func NewGetApiV5AccountMaxAvailSizeRequest(server string, params *GetApiV5AccountMaxAvailSizeParams) (*http.Request, error)
NewGetApiV5AccountMaxAvailSizeRequest generates requests for GetApiV5AccountMaxAvailSize
func NewGetApiV5AccountMaxLoanRequest ¶
func NewGetApiV5AccountMaxLoanRequest(server string, params *GetApiV5AccountMaxLoanParams) (*http.Request, error)
NewGetApiV5AccountMaxLoanRequest generates requests for GetApiV5AccountMaxLoan
func NewGetApiV5AccountMaxSizeRequest ¶
func NewGetApiV5AccountMaxSizeRequest(server string, params *GetApiV5AccountMaxSizeParams) (*http.Request, error)
NewGetApiV5AccountMaxSizeRequest generates requests for GetApiV5AccountMaxSize
func NewGetApiV5AccountMaxWithdrawalRequest ¶
func NewGetApiV5AccountMaxWithdrawalRequest(server string, params *GetApiV5AccountMaxWithdrawalParams) (*http.Request, error)
NewGetApiV5AccountMaxWithdrawalRequest generates requests for GetApiV5AccountMaxWithdrawal
func NewGetApiV5AccountPositionsRequest ¶
func NewGetApiV5AccountPositionsRequest(server string, params *GetApiV5AccountPositionsParams) (*http.Request, error)
NewGetApiV5AccountPositionsRequest generates requests for GetApiV5AccountPositions
func NewGetApiV5AccountTradeFeeRequest ¶
func NewGetApiV5AccountTradeFeeRequest(server string, params *GetApiV5AccountTradeFeeParams) (*http.Request, error)
NewGetApiV5AccountTradeFeeRequest generates requests for GetApiV5AccountTradeFee
func NewPostApiV5AccountPositionMarginBalanceRequest ¶
func NewPostApiV5AccountPositionMarginBalanceRequest(server string, body PostApiV5AccountPositionMarginBalanceJSONRequestBody) (*http.Request, error)
NewPostApiV5AccountPositionMarginBalanceRequest calls the generic PostApiV5AccountPositionMarginBalance builder with application/json body
func NewPostApiV5AccountPositionMarginBalanceRequestWithBody ¶
func NewPostApiV5AccountPositionMarginBalanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV5AccountPositionMarginBalanceRequestWithBody generates requests for PostApiV5AccountPositionMarginBalance with any type of body
func NewPostApiV5AccountSetGreeksRequest ¶
func NewPostApiV5AccountSetGreeksRequest(server string, body PostApiV5AccountSetGreeksJSONRequestBody) (*http.Request, error)
NewPostApiV5AccountSetGreeksRequest calls the generic PostApiV5AccountSetGreeks builder with application/json body
func NewPostApiV5AccountSetGreeksRequestWithBody ¶
func NewPostApiV5AccountSetGreeksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV5AccountSetGreeksRequestWithBody generates requests for PostApiV5AccountSetGreeks with any type of body
func NewPostApiV5AccountSetLeverageRequest ¶
func NewPostApiV5AccountSetLeverageRequest(server string, body PostApiV5AccountSetLeverageJSONRequestBody) (*http.Request, error)
NewPostApiV5AccountSetLeverageRequest calls the generic PostApiV5AccountSetLeverage builder with application/json body
func NewPostApiV5AccountSetLeverageRequestWithBody ¶
func NewPostApiV5AccountSetLeverageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV5AccountSetLeverageRequestWithBody generates requests for PostApiV5AccountSetLeverage with any type of body
func NewPostApiV5AccountSetPositionModeRequest ¶
func NewPostApiV5AccountSetPositionModeRequest(server string, body PostApiV5AccountSetPositionModeJSONRequestBody) (*http.Request, error)
NewPostApiV5AccountSetPositionModeRequest calls the generic PostApiV5AccountSetPositionMode builder with application/json body
func NewPostApiV5AccountSetPositionModeRequestWithBody ¶
func NewPostApiV5AccountSetPositionModeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV5AccountSetPositionModeRequestWithBody generates requests for PostApiV5AccountSetPositionMode with any type of body
Types ¶
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetApiV5AccountAccountPositionRisk ¶
func (c *Client) GetApiV5AccountAccountPositionRisk(ctx context.Context, params *GetApiV5AccountAccountPositionRiskParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountBalance ¶
func (c *Client) GetApiV5AccountBalance(ctx context.Context, params *GetApiV5AccountBalanceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountBills ¶
func (c *Client) GetApiV5AccountBills(ctx context.Context, params *GetApiV5AccountBillsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountBillsArchive ¶
func (c *Client) GetApiV5AccountBillsArchive(ctx context.Context, params *GetApiV5AccountBillsArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountConfig ¶
func (*Client) GetApiV5AccountInterestAccrued ¶
func (c *Client) GetApiV5AccountInterestAccrued(ctx context.Context, params *GetApiV5AccountInterestAccruedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountInterestRate ¶
func (c *Client) GetApiV5AccountInterestRate(ctx context.Context, params *GetApiV5AccountInterestRateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountLeverageInfo ¶
func (c *Client) GetApiV5AccountLeverageInfo(ctx context.Context, params *GetApiV5AccountLeverageInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountMaxAvailSize ¶
func (c *Client) GetApiV5AccountMaxAvailSize(ctx context.Context, params *GetApiV5AccountMaxAvailSizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountMaxLoan ¶
func (c *Client) GetApiV5AccountMaxLoan(ctx context.Context, params *GetApiV5AccountMaxLoanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountMaxSize ¶
func (c *Client) GetApiV5AccountMaxSize(ctx context.Context, params *GetApiV5AccountMaxSizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountMaxWithdrawal ¶
func (c *Client) GetApiV5AccountMaxWithdrawal(ctx context.Context, params *GetApiV5AccountMaxWithdrawalParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountPositions ¶
func (c *Client) GetApiV5AccountPositions(ctx context.Context, params *GetApiV5AccountPositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5AccountTradeFee ¶
func (c *Client) GetApiV5AccountTradeFee(ctx context.Context, params *GetApiV5AccountTradeFeeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV5AccountPositionMarginBalance ¶
func (c *Client) PostApiV5AccountPositionMarginBalance(ctx context.Context, body PostApiV5AccountPositionMarginBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV5AccountPositionMarginBalanceWithBody ¶
func (*Client) PostApiV5AccountSetGreeks ¶
func (c *Client) PostApiV5AccountSetGreeks(ctx context.Context, body PostApiV5AccountSetGreeksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV5AccountSetGreeksWithBody ¶
func (*Client) PostApiV5AccountSetLeverage ¶
func (c *Client) PostApiV5AccountSetLeverage(ctx context.Context, body PostApiV5AccountSetLeverageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV5AccountSetLeverageWithBody ¶
func (*Client) PostApiV5AccountSetPositionMode ¶
func (c *Client) PostApiV5AccountSetPositionMode(ctx context.Context, body PostApiV5AccountSetPositionModeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetApiV5AccountAccountPositionRisk request GetApiV5AccountAccountPositionRisk(ctx context.Context, params *GetApiV5AccountAccountPositionRiskParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountBalance request GetApiV5AccountBalance(ctx context.Context, params *GetApiV5AccountBalanceParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountBills request GetApiV5AccountBills(ctx context.Context, params *GetApiV5AccountBillsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountBillsArchive request GetApiV5AccountBillsArchive(ctx context.Context, params *GetApiV5AccountBillsArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountConfig request GetApiV5AccountConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountInterestAccrued request GetApiV5AccountInterestAccrued(ctx context.Context, params *GetApiV5AccountInterestAccruedParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountInterestRate request GetApiV5AccountInterestRate(ctx context.Context, params *GetApiV5AccountInterestRateParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountLeverageInfo request GetApiV5AccountLeverageInfo(ctx context.Context, params *GetApiV5AccountLeverageInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountMaxAvailSize request GetApiV5AccountMaxAvailSize(ctx context.Context, params *GetApiV5AccountMaxAvailSizeParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountMaxLoan request GetApiV5AccountMaxLoan(ctx context.Context, params *GetApiV5AccountMaxLoanParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountMaxSize request GetApiV5AccountMaxSize(ctx context.Context, params *GetApiV5AccountMaxSizeParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountMaxWithdrawal request GetApiV5AccountMaxWithdrawal(ctx context.Context, params *GetApiV5AccountMaxWithdrawalParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV5AccountPositionMarginBalance request with any body PostApiV5AccountPositionMarginBalanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV5AccountPositionMarginBalance(ctx context.Context, body PostApiV5AccountPositionMarginBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountPositions request GetApiV5AccountPositions(ctx context.Context, params *GetApiV5AccountPositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV5AccountSetGreeks request with any body PostApiV5AccountSetGreeksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV5AccountSetGreeks(ctx context.Context, body PostApiV5AccountSetGreeksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV5AccountSetLeverage request with any body PostApiV5AccountSetLeverageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV5AccountSetLeverage(ctx context.Context, body PostApiV5AccountSetLeverageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV5AccountSetPositionMode request with any body PostApiV5AccountSetPositionModeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV5AccountSetPositionMode(ctx context.Context, body PostApiV5AccountSetPositionModeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5AccountTradeFee request GetApiV5AccountTradeFee(ctx context.Context, params *GetApiV5AccountTradeFeeParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetApiV5AccountAccountPositionRiskWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountAccountPositionRiskWithResponse(ctx context.Context, params *GetApiV5AccountAccountPositionRiskParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountAccountPositionRiskResponse, error)
GetApiV5AccountAccountPositionRiskWithResponse request returning *GetApiV5AccountAccountPositionRiskResponse
func (*ClientWithResponses) GetApiV5AccountBalanceWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountBalanceWithResponse(ctx context.Context, params *GetApiV5AccountBalanceParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountBalanceResponse, error)
GetApiV5AccountBalanceWithResponse request returning *GetApiV5AccountBalanceResponse
func (*ClientWithResponses) GetApiV5AccountBillsArchiveWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountBillsArchiveWithResponse(ctx context.Context, params *GetApiV5AccountBillsArchiveParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountBillsArchiveResponse, error)
GetApiV5AccountBillsArchiveWithResponse request returning *GetApiV5AccountBillsArchiveResponse
func (*ClientWithResponses) GetApiV5AccountBillsWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountBillsWithResponse(ctx context.Context, params *GetApiV5AccountBillsParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountBillsResponse, error)
GetApiV5AccountBillsWithResponse request returning *GetApiV5AccountBillsResponse
func (*ClientWithResponses) GetApiV5AccountConfigWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5AccountConfigResponse, error)
GetApiV5AccountConfigWithResponse request returning *GetApiV5AccountConfigResponse
func (*ClientWithResponses) GetApiV5AccountInterestAccruedWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountInterestAccruedWithResponse(ctx context.Context, params *GetApiV5AccountInterestAccruedParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountInterestAccruedResponse, error)
GetApiV5AccountInterestAccruedWithResponse request returning *GetApiV5AccountInterestAccruedResponse
func (*ClientWithResponses) GetApiV5AccountInterestRateWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountInterestRateWithResponse(ctx context.Context, params *GetApiV5AccountInterestRateParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountInterestRateResponse, error)
GetApiV5AccountInterestRateWithResponse request returning *GetApiV5AccountInterestRateResponse
func (*ClientWithResponses) GetApiV5AccountLeverageInfoWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountLeverageInfoWithResponse(ctx context.Context, params *GetApiV5AccountLeverageInfoParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountLeverageInfoResponse, error)
GetApiV5AccountLeverageInfoWithResponse request returning *GetApiV5AccountLeverageInfoResponse
func (*ClientWithResponses) GetApiV5AccountMaxAvailSizeWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountMaxAvailSizeWithResponse(ctx context.Context, params *GetApiV5AccountMaxAvailSizeParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxAvailSizeResponse, error)
GetApiV5AccountMaxAvailSizeWithResponse request returning *GetApiV5AccountMaxAvailSizeResponse
func (*ClientWithResponses) GetApiV5AccountMaxLoanWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountMaxLoanWithResponse(ctx context.Context, params *GetApiV5AccountMaxLoanParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxLoanResponse, error)
GetApiV5AccountMaxLoanWithResponse request returning *GetApiV5AccountMaxLoanResponse
func (*ClientWithResponses) GetApiV5AccountMaxSizeWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountMaxSizeWithResponse(ctx context.Context, params *GetApiV5AccountMaxSizeParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxSizeResponse, error)
GetApiV5AccountMaxSizeWithResponse request returning *GetApiV5AccountMaxSizeResponse
func (*ClientWithResponses) GetApiV5AccountMaxWithdrawalWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountMaxWithdrawalWithResponse(ctx context.Context, params *GetApiV5AccountMaxWithdrawalParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxWithdrawalResponse, error)
GetApiV5AccountMaxWithdrawalWithResponse request returning *GetApiV5AccountMaxWithdrawalResponse
func (*ClientWithResponses) GetApiV5AccountPositionsWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountPositionsWithResponse(ctx context.Context, params *GetApiV5AccountPositionsParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountPositionsResponse, error)
GetApiV5AccountPositionsWithResponse request returning *GetApiV5AccountPositionsResponse
func (*ClientWithResponses) GetApiV5AccountTradeFeeWithResponse ¶
func (c *ClientWithResponses) GetApiV5AccountTradeFeeWithResponse(ctx context.Context, params *GetApiV5AccountTradeFeeParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountTradeFeeResponse, error)
GetApiV5AccountTradeFeeWithResponse request returning *GetApiV5AccountTradeFeeResponse
func (*ClientWithResponses) PostApiV5AccountPositionMarginBalanceWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountPositionMarginBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountPositionMarginBalanceResponse, error)
PostApiV5AccountPositionMarginBalanceWithBodyWithResponse request with arbitrary body returning *PostApiV5AccountPositionMarginBalanceResponse
func (*ClientWithResponses) PostApiV5AccountPositionMarginBalanceWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountPositionMarginBalanceWithResponse(ctx context.Context, body PostApiV5AccountPositionMarginBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountPositionMarginBalanceResponse, error)
func (*ClientWithResponses) PostApiV5AccountSetGreeksWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountSetGreeksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetGreeksResponse, error)
PostApiV5AccountSetGreeksWithBodyWithResponse request with arbitrary body returning *PostApiV5AccountSetGreeksResponse
func (*ClientWithResponses) PostApiV5AccountSetGreeksWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountSetGreeksWithResponse(ctx context.Context, body PostApiV5AccountSetGreeksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetGreeksResponse, error)
func (*ClientWithResponses) PostApiV5AccountSetLeverageWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountSetLeverageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetLeverageResponse, error)
PostApiV5AccountSetLeverageWithBodyWithResponse request with arbitrary body returning *PostApiV5AccountSetLeverageResponse
func (*ClientWithResponses) PostApiV5AccountSetLeverageWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountSetLeverageWithResponse(ctx context.Context, body PostApiV5AccountSetLeverageJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetLeverageResponse, error)
func (*ClientWithResponses) PostApiV5AccountSetPositionModeWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountSetPositionModeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetPositionModeResponse, error)
PostApiV5AccountSetPositionModeWithBodyWithResponse request with arbitrary body returning *PostApiV5AccountSetPositionModeResponse
func (*ClientWithResponses) PostApiV5AccountSetPositionModeWithResponse ¶
func (c *ClientWithResponses) PostApiV5AccountSetPositionModeWithResponse(ctx context.Context, body PostApiV5AccountSetPositionModeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetPositionModeResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetApiV5AccountAccountPositionRisk request GetApiV5AccountAccountPositionRiskWithResponse(ctx context.Context, params *GetApiV5AccountAccountPositionRiskParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountAccountPositionRiskResponse, error) // GetApiV5AccountBalance request GetApiV5AccountBalanceWithResponse(ctx context.Context, params *GetApiV5AccountBalanceParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountBalanceResponse, error) // GetApiV5AccountBills request GetApiV5AccountBillsWithResponse(ctx context.Context, params *GetApiV5AccountBillsParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountBillsResponse, error) // GetApiV5AccountBillsArchive request GetApiV5AccountBillsArchiveWithResponse(ctx context.Context, params *GetApiV5AccountBillsArchiveParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountBillsArchiveResponse, error) // GetApiV5AccountConfig request GetApiV5AccountConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5AccountConfigResponse, error) // GetApiV5AccountInterestAccrued request GetApiV5AccountInterestAccruedWithResponse(ctx context.Context, params *GetApiV5AccountInterestAccruedParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountInterestAccruedResponse, error) // GetApiV5AccountInterestRate request GetApiV5AccountInterestRateWithResponse(ctx context.Context, params *GetApiV5AccountInterestRateParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountInterestRateResponse, error) // GetApiV5AccountLeverageInfo request GetApiV5AccountLeverageInfoWithResponse(ctx context.Context, params *GetApiV5AccountLeverageInfoParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountLeverageInfoResponse, error) // GetApiV5AccountMaxAvailSize request GetApiV5AccountMaxAvailSizeWithResponse(ctx context.Context, params *GetApiV5AccountMaxAvailSizeParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxAvailSizeResponse, error) // GetApiV5AccountMaxLoan request GetApiV5AccountMaxLoanWithResponse(ctx context.Context, params *GetApiV5AccountMaxLoanParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxLoanResponse, error) // GetApiV5AccountMaxSize request GetApiV5AccountMaxSizeWithResponse(ctx context.Context, params *GetApiV5AccountMaxSizeParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxSizeResponse, error) // GetApiV5AccountMaxWithdrawal request GetApiV5AccountMaxWithdrawalWithResponse(ctx context.Context, params *GetApiV5AccountMaxWithdrawalParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountMaxWithdrawalResponse, error) // PostApiV5AccountPositionMarginBalance request with any body PostApiV5AccountPositionMarginBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountPositionMarginBalanceResponse, error) PostApiV5AccountPositionMarginBalanceWithResponse(ctx context.Context, body PostApiV5AccountPositionMarginBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountPositionMarginBalanceResponse, error) // GetApiV5AccountPositions request GetApiV5AccountPositionsWithResponse(ctx context.Context, params *GetApiV5AccountPositionsParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountPositionsResponse, error) // PostApiV5AccountSetGreeks request with any body PostApiV5AccountSetGreeksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetGreeksResponse, error) PostApiV5AccountSetGreeksWithResponse(ctx context.Context, body PostApiV5AccountSetGreeksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetGreeksResponse, error) // PostApiV5AccountSetLeverage request with any body PostApiV5AccountSetLeverageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetLeverageResponse, error) PostApiV5AccountSetLeverageWithResponse(ctx context.Context, body PostApiV5AccountSetLeverageJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetLeverageResponse, error) // PostApiV5AccountSetPositionMode request with any body PostApiV5AccountSetPositionModeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetPositionModeResponse, error) PostApiV5AccountSetPositionModeWithResponse(ctx context.Context, body PostApiV5AccountSetPositionModeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV5AccountSetPositionModeResponse, error) // GetApiV5AccountTradeFee request GetApiV5AccountTradeFeeWithResponse(ctx context.Context, params *GetApiV5AccountTradeFeeParams, reqEditors ...RequestEditorFn) (*GetApiV5AccountTradeFeeResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type GetApiV5AccountAccountPositionRiskParams ¶
type GetApiV5AccountAccountPositionRiskParams struct { // 产品类型<br>`SPOT`:币币<br>`MARGIN`:币币杠杆<br>`SWAP`:永续合约<br>`FUTURES`:交割合约<br>`OPTION`:期权 InstType *string `json:"instType,omitempty"` }
GetApiV5AccountAccountPositionRiskParams defines parameters for GetApiV5AccountAccountPositionRisk.
type GetApiV5AccountAccountPositionRiskResponse ¶
type GetApiV5AccountAccountPositionRiskResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountAccountPositionRiskResponse ¶
func ParseGetApiV5AccountAccountPositionRiskResponse(rsp *http.Response) (*GetApiV5AccountAccountPositionRiskResponse, error)
ParseGetApiV5AccountAccountPositionRiskResponse parses an HTTP response from a GetApiV5AccountAccountPositionRiskWithResponse call
func (GetApiV5AccountAccountPositionRiskResponse) Status ¶
func (r GetApiV5AccountAccountPositionRiskResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountAccountPositionRiskResponse) StatusCode ¶
func (r GetApiV5AccountAccountPositionRiskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountBalanceParams ¶
type GetApiV5AccountBalanceParams struct { // 币种,如:`BTC` Ccy *string `json:"ccy,omitempty"` }
GetApiV5AccountBalanceParams defines parameters for GetApiV5AccountBalance.
type GetApiV5AccountBalanceResponse ¶
type GetApiV5AccountBalanceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountBalanceResponse ¶
func ParseGetApiV5AccountBalanceResponse(rsp *http.Response) (*GetApiV5AccountBalanceResponse, error)
ParseGetApiV5AccountBalanceResponse parses an HTTP response from a GetApiV5AccountBalanceWithResponse call
func (GetApiV5AccountBalanceResponse) Status ¶
func (r GetApiV5AccountBalanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountBalanceResponse) StatusCode ¶
func (r GetApiV5AccountBalanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountBillsArchiveParams ¶
type GetApiV5AccountBillsArchiveParams struct { // 产品类型<br>`SPOT`:币币<br>`MARGIN`:币币杠杆<br>`SWAP`:永续合约<br>`FUTURES`:交割合约<br>`OPTION`:期权 InstType *string `json:"instType,omitempty"` // 币种,如:`BTC` Ccy *string `json:"ccy,omitempty"` // 仓位类型<br>`isolated`:逐仓 `cross`:全仓 MgnMode *string `json:"mgnMode,omitempty"` // 合约类型<br>`linear`:正向合约 `inverse`:反向合约<br>仅交割/永续有效 CtType *string `json:"ctType,omitempty"` // 账单类型<br>1:划转 2:交易 3:交割 4:自动换币 5:强平 6:保证金划转 7:扣息 8:资金费 9:自动减仓 10:穿仓补偿 11:系统换币 12:策略划拨 Type *string `json:"type,omitempty"` // 子账单类型<br>1:买入 2:卖出 3:开多 4:开空 5:平多 6:平空 9:扣息 11:转入 12:转出 160:手动追加保证金 161:手动减少保证金 162:自动追加保证金 114:自动换币买入 115:自动换币卖出 118:系统换币转入 119:系统换币转出 100:强减平多 101:强减平空 102:强减买入 103:强减卖出 104:强平平多 105:强平平空 106:强平买入 107:强平卖出 110:强平换币转入 111:强平换币转出 125:自动减仓平多 126:自动减仓平空 127:自动减仓买入 128:自动减仓卖出 170:到期行权 171:到期被行权 172:到期作废 112:交割平多 113:交割平空 117:交割/期权穿仓补偿 173:资金费支出 174:资金费收入 200:系统转入 201:手动转入 202:系统转出 203:手动转出 SubType *string `json:"subType,omitempty"` // 请求此ID之前(更旧的数据)的分页内容,传的值为对应接口的`billId` After *string `json:"after,omitempty"` // 请求此ID之后(更新的数据)的分页内容,传的值为对应接口的`billId` Before *string `json:"before,omitempty"` // 返回结果的数量,默认100条 Limit *string `json:"limit,omitempty"` }
GetApiV5AccountBillsArchiveParams defines parameters for GetApiV5AccountBillsArchive.
type GetApiV5AccountBillsArchiveResponse ¶
type GetApiV5AccountBillsArchiveResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountBillsArchiveResponse ¶
func ParseGetApiV5AccountBillsArchiveResponse(rsp *http.Response) (*GetApiV5AccountBillsArchiveResponse, error)
ParseGetApiV5AccountBillsArchiveResponse parses an HTTP response from a GetApiV5AccountBillsArchiveWithResponse call
func (GetApiV5AccountBillsArchiveResponse) Status ¶
func (r GetApiV5AccountBillsArchiveResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountBillsArchiveResponse) StatusCode ¶
func (r GetApiV5AccountBillsArchiveResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountBillsParams ¶
type GetApiV5AccountBillsParams struct { // 产品类型<br>`SPOT`:币币<br>`MARGIN`:币币杠杆<br>`SWAP`:永续合约<br>`FUTURES`:交割合约<br>`OPTION`:期权 InstType *string `json:"instType,omitempty"` // 币种,如:`BTC` Ccy *string `json:"ccy,omitempty"` // 仓位类型<br>`isolated`:逐仓 `cross`:全仓 MgnMode *string `json:"mgnMode,omitempty"` // 合约类型<br>`linear`:正向合约 `inverse`:反向合约<br>仅交割/永续有效 CtType *string `json:"ctType,omitempty"` // 账单类型<br>1:划转 2:交易 3:交割 4:自动换币 5:强平 6:保证金划转 7:扣息 8:资金费 9:自动减仓 10:穿仓补偿 11:系统换币 12:策略划拨 Type *string `json:"type,omitempty"` // 子账单类型<br>1:买入 2:卖出 3:开多 4:开空 5:平多 6:平空 9:扣息 11:转入 12:转出 160:手动追加保证金 161:手动减少保证金 162:自动追加保证金 114:自动换币买入 115:自动换币卖出 118:系统换币转入 119:系统换币转出 100:强减平多 101:强减平空 102:强减买入 103:强减卖出 104:强平平多 105:强平平空 106:强平买入 107:强平卖出 110:强平换币转入 111:强平换币转出 125:自动减仓平多 126:自动减仓平空 127:自动减仓买入 128:自动减仓卖出 170:到期行权 171:到期被行权 172:到期作废 112:交割平多 113:交割平空 117:交割/期权穿仓补偿 173:资金费支出 174:资金费收入 200:系统转入 201:手动转入 202:系统转出 203:手动转出 SubType *string `json:"subType,omitempty"` // 请求此ID之前(更旧的数据)的分页内容,传的值为对应接口的`billId` After *string `json:"after,omitempty"` // 请求此ID之后(更新的数据)的分页内容,传的值为对应接口的`billId` Before *string `json:"before,omitempty"` // 返回结果的数量,默认100条 Limit *string `json:"limit,omitempty"` }
GetApiV5AccountBillsParams defines parameters for GetApiV5AccountBills.
type GetApiV5AccountBillsResponse ¶
type GetApiV5AccountBillsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountBillsResponse ¶
func ParseGetApiV5AccountBillsResponse(rsp *http.Response) (*GetApiV5AccountBillsResponse, error)
ParseGetApiV5AccountBillsResponse parses an HTTP response from a GetApiV5AccountBillsWithResponse call
func (GetApiV5AccountBillsResponse) Status ¶
func (r GetApiV5AccountBillsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountBillsResponse) StatusCode ¶
func (r GetApiV5AccountBillsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountConfigResponse ¶
type GetApiV5AccountConfigResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountConfigResponse ¶
func ParseGetApiV5AccountConfigResponse(rsp *http.Response) (*GetApiV5AccountConfigResponse, error)
ParseGetApiV5AccountConfigResponse parses an HTTP response from a GetApiV5AccountConfigWithResponse call
func (GetApiV5AccountConfigResponse) Status ¶
func (r GetApiV5AccountConfigResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountConfigResponse) StatusCode ¶
func (r GetApiV5AccountConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountInterestAccruedParams ¶
type GetApiV5AccountInterestAccruedParams struct { // 产品ID,如:`BTC-USDT` InstId *string `json:"instId,omitempty"` // 保证金模式<br>`isolated`:逐仓 `cross`:全仓 MgnMode *string `json:"mgnMode,omitempty"` // 币种,如:`BTC` Ccy *string `json:"ccy,omitempty"` // 查询在此之前的内容,值为时间戳,Unix时间戳为毫秒数格式 After *string `json:"after,omitempty"` // 查询在此之后的内容,值为时间戳,Unix时间戳为毫秒数格式 Before *string `json:"before,omitempty"` // 分页返回的结果集数量,最大为100,不填默认返回100条 Limit *string `json:"limit,omitempty"` }
GetApiV5AccountInterestAccruedParams defines parameters for GetApiV5AccountInterestAccrued.
type GetApiV5AccountInterestAccruedResponse ¶
type GetApiV5AccountInterestAccruedResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountInterestAccruedResponse ¶
func ParseGetApiV5AccountInterestAccruedResponse(rsp *http.Response) (*GetApiV5AccountInterestAccruedResponse, error)
ParseGetApiV5AccountInterestAccruedResponse parses an HTTP response from a GetApiV5AccountInterestAccruedWithResponse call
func (GetApiV5AccountInterestAccruedResponse) Status ¶
func (r GetApiV5AccountInterestAccruedResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountInterestAccruedResponse) StatusCode ¶
func (r GetApiV5AccountInterestAccruedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountInterestRateParams ¶
type GetApiV5AccountInterestRateParams struct { // 币种,如:`BTC` Ccy *string `json:"ccy,omitempty"` }
GetApiV5AccountInterestRateParams defines parameters for GetApiV5AccountInterestRate.
type GetApiV5AccountInterestRateResponse ¶
type GetApiV5AccountInterestRateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountInterestRateResponse ¶
func ParseGetApiV5AccountInterestRateResponse(rsp *http.Response) (*GetApiV5AccountInterestRateResponse, error)
ParseGetApiV5AccountInterestRateResponse parses an HTTP response from a GetApiV5AccountInterestRateWithResponse call
func (GetApiV5AccountInterestRateResponse) Status ¶
func (r GetApiV5AccountInterestRateResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountInterestRateResponse) StatusCode ¶
func (r GetApiV5AccountInterestRateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountLeverageInfoParams ¶
type GetApiV5AccountLeverageInfoParams struct { // 产品ID,如:`BTC-USDT-SWAP`<br>支持多产品ID查询(不超过20个),半角逗号分隔 InstId string `json:"instId"` // 保证金模式<br>`cross`:全仓 `isolated`:逐仓 MgnMode string `json:"mgnMode"` }
GetApiV5AccountLeverageInfoParams defines parameters for GetApiV5AccountLeverageInfo.
type GetApiV5AccountLeverageInfoResponse ¶
type GetApiV5AccountLeverageInfoResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountLeverageInfoResponse ¶
func ParseGetApiV5AccountLeverageInfoResponse(rsp *http.Response) (*GetApiV5AccountLeverageInfoResponse, error)
ParseGetApiV5AccountLeverageInfoResponse parses an HTTP response from a GetApiV5AccountLeverageInfoWithResponse call
func (GetApiV5AccountLeverageInfoResponse) Status ¶
func (r GetApiV5AccountLeverageInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountLeverageInfoResponse) StatusCode ¶
func (r GetApiV5AccountLeverageInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountMaxAvailSizeParams ¶
type GetApiV5AccountMaxAvailSizeParams struct { // 产品ID,如:`BTC-USDT`<br>支持多产品ID查询(不超过5个),半角逗号分隔 InstId string `json:"instId"` // 交易模式<br>`cross`:全仓 `isolated`:逐仓 `cash`:非保证金 TdMode string `json:"tdMode"` // 保证金币种,仅适用于单币种保证金模式下的全仓杠杆订单 Ccy *string `json:"ccy,omitempty"` // 是否为只减仓模式,仅适用于`币币杠杆` ReduceOnly *bool `json:"reduceOnly,omitempty"` }
GetApiV5AccountMaxAvailSizeParams defines parameters for GetApiV5AccountMaxAvailSize.
type GetApiV5AccountMaxAvailSizeResponse ¶
type GetApiV5AccountMaxAvailSizeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountMaxAvailSizeResponse ¶
func ParseGetApiV5AccountMaxAvailSizeResponse(rsp *http.Response) (*GetApiV5AccountMaxAvailSizeResponse, error)
ParseGetApiV5AccountMaxAvailSizeResponse parses an HTTP response from a GetApiV5AccountMaxAvailSizeWithResponse call
func (GetApiV5AccountMaxAvailSizeResponse) Status ¶
func (r GetApiV5AccountMaxAvailSizeResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountMaxAvailSizeResponse) StatusCode ¶
func (r GetApiV5AccountMaxAvailSizeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountMaxLoanParams ¶
type GetApiV5AccountMaxLoanParams struct { // 产品ID,如:`BTC-USDT` InstId string `json:"instId"` // 仓位类型<br>`cross`:全仓 `isolated`:逐仓 MgnMode string `json:"mgnMode"` // 保证金币种,如:`BTC`<br>币币杠杆单币种全仓情况下必须指定保证金币种 MgnCcy *string `json:"mgnCcy,omitempty"` }
GetApiV5AccountMaxLoanParams defines parameters for GetApiV5AccountMaxLoan.
type GetApiV5AccountMaxLoanResponse ¶
type GetApiV5AccountMaxLoanResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountMaxLoanResponse ¶
func ParseGetApiV5AccountMaxLoanResponse(rsp *http.Response) (*GetApiV5AccountMaxLoanResponse, error)
ParseGetApiV5AccountMaxLoanResponse parses an HTTP response from a GetApiV5AccountMaxLoanWithResponse call
func (GetApiV5AccountMaxLoanResponse) Status ¶
func (r GetApiV5AccountMaxLoanResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountMaxLoanResponse) StatusCode ¶
func (r GetApiV5AccountMaxLoanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountMaxSizeParams ¶
type GetApiV5AccountMaxSizeParams struct { // 产品ID,如:`BTC-USDT`<br>支持多产品ID查询(不超过5个),半角逗号分隔 InstId string `json:"instId"` // 交易模式<br>`cross`:全仓 `isolated`:逐仓 `cash`:非保证金 TdMode string `json:"tdMode"` // 保证金币种,仅适用于单币种保证金模式下的全仓杠杆订单 Ccy *string `json:"ccy,omitempty"` // 委托价格<br>当不填委托价时会按当前最新成交价计算<br>当指定多个`instId`查询时,忽略该参数,按当前最新成交价计算 Px *string `json:"px,omitempty"` }
GetApiV5AccountMaxSizeParams defines parameters for GetApiV5AccountMaxSize.
type GetApiV5AccountMaxSizeResponse ¶
type GetApiV5AccountMaxSizeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountMaxSizeResponse ¶
func ParseGetApiV5AccountMaxSizeResponse(rsp *http.Response) (*GetApiV5AccountMaxSizeResponse, error)
ParseGetApiV5AccountMaxSizeResponse parses an HTTP response from a GetApiV5AccountMaxSizeWithResponse call
func (GetApiV5AccountMaxSizeResponse) Status ¶
func (r GetApiV5AccountMaxSizeResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountMaxSizeResponse) StatusCode ¶
func (r GetApiV5AccountMaxSizeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountMaxWithdrawalParams ¶
type GetApiV5AccountMaxWithdrawalParams struct { // 币种,如:`BTC` Ccy *string `json:"ccy,omitempty"` }
GetApiV5AccountMaxWithdrawalParams defines parameters for GetApiV5AccountMaxWithdrawal.
type GetApiV5AccountMaxWithdrawalResponse ¶
type GetApiV5AccountMaxWithdrawalResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountMaxWithdrawalResponse ¶
func ParseGetApiV5AccountMaxWithdrawalResponse(rsp *http.Response) (*GetApiV5AccountMaxWithdrawalResponse, error)
ParseGetApiV5AccountMaxWithdrawalResponse parses an HTTP response from a GetApiV5AccountMaxWithdrawalWithResponse call
func (GetApiV5AccountMaxWithdrawalResponse) Status ¶
func (r GetApiV5AccountMaxWithdrawalResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountMaxWithdrawalResponse) StatusCode ¶
func (r GetApiV5AccountMaxWithdrawalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountPositionsParams ¶
type GetApiV5AccountPositionsParams struct { // 产品类型<br>`SPOT`:币币<br>`MARGIN`:币币杠杆<br>`SWAP`:永续合约<br>`FUTURES`:交割合约<br>`OPTION`:期权 InstType *string `json:"instType,omitempty"` // 产品ID,如:`BTC-USDT`<br>支持多个instId查询(不超过10个),半角逗号分隔 InstId *string `json:"instId,omitempty"` // 持仓ID,支持多个posId查询(不超过20个),半角逗号分割 PosId *string `json:"posId,omitempty"` }
GetApiV5AccountPositionsParams defines parameters for GetApiV5AccountPositions.
type GetApiV5AccountPositionsResponse ¶
type GetApiV5AccountPositionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountPositionsResponse ¶
func ParseGetApiV5AccountPositionsResponse(rsp *http.Response) (*GetApiV5AccountPositionsResponse, error)
ParseGetApiV5AccountPositionsResponse parses an HTTP response from a GetApiV5AccountPositionsWithResponse call
func (GetApiV5AccountPositionsResponse) Status ¶
func (r GetApiV5AccountPositionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountPositionsResponse) StatusCode ¶
func (r GetApiV5AccountPositionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5AccountTradeFeeParams ¶
type GetApiV5AccountTradeFeeParams struct { // 产品类型<br>`SPOT`:币币<br>`MARGIN`:币币杠杆<br>`SWAP`:永续合约<br>`FUTURES`:交割合约<br>`OPTION`:期权 InstType string `json:"instType"` // 产品ID,如:`BTC-USDT`<br>仅适用于instType为币币/币币杠杆 InstId *string `json:"instId,omitempty"` // 合约标的指数,如:`BTC-USD`<br>仅适用于`instType`为`交割`/`永续`/`期权` Uly *string `json:"uly,omitempty"` // 币种手续费类别<br>1:第一类币种费率 2:第二类币种费率 3:第三类币种费率 4:第四类币种费率 Category *string `json:"category,omitempty"` }
GetApiV5AccountTradeFeeParams defines parameters for GetApiV5AccountTradeFee.
type GetApiV5AccountTradeFeeResponse ¶
type GetApiV5AccountTradeFeeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5AccountTradeFeeResponse ¶
func ParseGetApiV5AccountTradeFeeResponse(rsp *http.Response) (*GetApiV5AccountTradeFeeResponse, error)
ParseGetApiV5AccountTradeFeeResponse parses an HTTP response from a GetApiV5AccountTradeFeeWithResponse call
func (GetApiV5AccountTradeFeeResponse) Status ¶
func (r GetApiV5AccountTradeFeeResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5AccountTradeFeeResponse) StatusCode ¶
func (r GetApiV5AccountTradeFeeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type PostApiV5AccountPositionMarginBalanceJSONBody ¶
type PostApiV5AccountPositionMarginBalanceJSONBody struct { // 必填<br>增加或减少的保证金数量 Amt *string `json:"amt,omitempty"` // 必填<br>产品ID,如:`BTC-USDT-SWAP` InstId string `json:"instId"` // 必填<br>持仓方向,默认值是`net`<br>`long`:双向持仓多头<br>`short`:双向持仓空头<br>`net`:单向持仓 PosSide string `json:"posSide"` // 必填<br>增加/减少保证金<br>`add`:增加 `reduce`:减少 Type string `json:"type"` }
PostApiV5AccountPositionMarginBalanceJSONBody defines parameters for PostApiV5AccountPositionMarginBalance.
type PostApiV5AccountPositionMarginBalanceJSONRequestBody ¶
type PostApiV5AccountPositionMarginBalanceJSONRequestBody = PostApiV5AccountPositionMarginBalanceJSONBody
PostApiV5AccountPositionMarginBalanceJSONRequestBody defines body for PostApiV5AccountPositionMarginBalance for application/json ContentType.
type PostApiV5AccountPositionMarginBalanceResponse ¶
type PostApiV5AccountPositionMarginBalanceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { AdditionalProperties map[string]map[string]interface{} `json:"-"` } }
func ParsePostApiV5AccountPositionMarginBalanceResponse ¶
func ParsePostApiV5AccountPositionMarginBalanceResponse(rsp *http.Response) (*PostApiV5AccountPositionMarginBalanceResponse, error)
ParsePostApiV5AccountPositionMarginBalanceResponse parses an HTTP response from a PostApiV5AccountPositionMarginBalanceWithResponse call
func (PostApiV5AccountPositionMarginBalanceResponse) Status ¶
func (r PostApiV5AccountPositionMarginBalanceResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV5AccountPositionMarginBalanceResponse) StatusCode ¶
func (r PostApiV5AccountPositionMarginBalanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiV5AccountSetGreeksJSONBody ¶
type PostApiV5AccountSetGreeksJSONBody struct { // 希腊字母展示方式<br>`PA`:币本位,`BS`:美元本位 GreeksType string `json:"greeksType"` }
PostApiV5AccountSetGreeksJSONBody defines parameters for PostApiV5AccountSetGreeks.
type PostApiV5AccountSetGreeksJSONRequestBody ¶
type PostApiV5AccountSetGreeksJSONRequestBody = PostApiV5AccountSetGreeksJSONBody
PostApiV5AccountSetGreeksJSONRequestBody defines body for PostApiV5AccountSetGreeks for application/json ContentType.
type PostApiV5AccountSetGreeksResponse ¶
type PostApiV5AccountSetGreeksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { AdditionalProperties map[string]map[string]interface{} `json:"-"` } }
func ParsePostApiV5AccountSetGreeksResponse ¶
func ParsePostApiV5AccountSetGreeksResponse(rsp *http.Response) (*PostApiV5AccountSetGreeksResponse, error)
ParsePostApiV5AccountSetGreeksResponse parses an HTTP response from a PostApiV5AccountSetGreeksWithResponse call
func (PostApiV5AccountSetGreeksResponse) Status ¶
func (r PostApiV5AccountSetGreeksResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV5AccountSetGreeksResponse) StatusCode ¶
func (r PostApiV5AccountSetGreeksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiV5AccountSetLeverageJSONBody ¶
type PostApiV5AccountSetLeverageJSONBody struct { // 可选<br>保证金币种,仅适用于跨币种保证金模式的全仓`币币杠杆`。 Ccy *string `json:"ccy,omitempty"` // 可选<br>产品ID:币对、合约<br>`instId`和`ccy`至少要传一个;如果两个都传,默认使用instId InstId *string `json:"instId,omitempty"` // 必填<br>杠杆倍数 Lever string `json:"lever"` // 保证金模式<br>`isolated`:逐仓,`cross`:全仓<br>如果`ccy`有效传值,该参数值只能为`cross`。 MgnMode string `json:"mgnMode"` // 可选<br>持仓方向<br>`long`:双向持仓多头<br>`short`:双向持仓空头<br>`net`:单向持仓<br>在双向持仓且保证金模式为逐仓条件下必填,且仅可选择`long`或`short`,其他情况下非必填,默认`net`;仅适用于`交割/永续` PosSide *string `json:"posSide,omitempty"` }
PostApiV5AccountSetLeverageJSONBody defines parameters for PostApiV5AccountSetLeverage.
type PostApiV5AccountSetLeverageJSONRequestBody ¶
type PostApiV5AccountSetLeverageJSONRequestBody = PostApiV5AccountSetLeverageJSONBody
PostApiV5AccountSetLeverageJSONRequestBody defines body for PostApiV5AccountSetLeverage for application/json ContentType.
type PostApiV5AccountSetLeverageResponse ¶
type PostApiV5AccountSetLeverageResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { AdditionalProperties map[string]map[string]interface{} `json:"-"` } }
func ParsePostApiV5AccountSetLeverageResponse ¶
func ParsePostApiV5AccountSetLeverageResponse(rsp *http.Response) (*PostApiV5AccountSetLeverageResponse, error)
ParsePostApiV5AccountSetLeverageResponse parses an HTTP response from a PostApiV5AccountSetLeverageWithResponse call
func (PostApiV5AccountSetLeverageResponse) Status ¶
func (r PostApiV5AccountSetLeverageResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV5AccountSetLeverageResponse) StatusCode ¶
func (r PostApiV5AccountSetLeverageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiV5AccountSetPositionModeJSONBody ¶
type PostApiV5AccountSetPositionModeJSONBody struct { // 持仓方式<br>`long_short_mode`:双向持仓<br>`net_mode`:单向持仓 PosMode string `json:"posMode"` }
PostApiV5AccountSetPositionModeJSONBody defines parameters for PostApiV5AccountSetPositionMode.
type PostApiV5AccountSetPositionModeJSONRequestBody ¶
type PostApiV5AccountSetPositionModeJSONRequestBody = PostApiV5AccountSetPositionModeJSONBody
PostApiV5AccountSetPositionModeJSONRequestBody defines body for PostApiV5AccountSetPositionMode for application/json ContentType.
type PostApiV5AccountSetPositionModeResponse ¶
type PostApiV5AccountSetPositionModeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { AdditionalProperties map[string]map[string]interface{} `json:"-"` } }
func ParsePostApiV5AccountSetPositionModeResponse ¶
func ParsePostApiV5AccountSetPositionModeResponse(rsp *http.Response) (*PostApiV5AccountSetPositionModeResponse, error)
ParsePostApiV5AccountSetPositionModeResponse parses an HTTP response from a PostApiV5AccountSetPositionModeWithResponse call
func (PostApiV5AccountSetPositionModeResponse) Status ¶
func (r PostApiV5AccountSetPositionModeResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV5AccountSetPositionModeResponse) StatusCode ¶
func (r PostApiV5AccountSetPositionModeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode