Documentation
¶
Index ¶
- type Client
- func (a *Client) GetPrivateBuy(params *GetPrivateBuyParams) (*GetPrivateBuyOK, error)
- func (a *Client) GetPrivateCancelTransferByID(params *GetPrivateCancelTransferByIDParams) (*GetPrivateCancelTransferByIDOK, error)
- func (a *Client) GetPrivateChangeSubaccountName(params *GetPrivateChangeSubaccountNameParams) (*GetPrivateChangeSubaccountNameOK, error)
- func (a *Client) GetPrivateClosePosition(params *GetPrivateClosePositionParams) (*GetPrivateClosePositionOK, error)
- func (a *Client) GetPrivateCreateSubaccount(params *GetPrivateCreateSubaccountParams) (*GetPrivateCreateSubaccountOK, error)
- func (a *Client) GetPrivateDisableTfaForSubaccount(params *GetPrivateDisableTfaForSubaccountParams) (*GetPrivateDisableTfaForSubaccountOK, error)
- func (a *Client) GetPrivateGetOrderState(params *GetPrivateGetOrderStateParams) (*GetPrivateGetOrderStateOK, error)
- func (a *Client) GetPrivateGetPosition(params *GetPrivateGetPositionParams) (*GetPrivateGetPositionOK, error)
- func (a *Client) GetPrivateGetPositions(params *GetPrivateGetPositionsParams) (*GetPrivateGetPositionsOK, error)
- func (a *Client) GetPrivateGetSubaccounts(params *GetPrivateGetSubaccountsParams) (*GetPrivateGetSubaccountsOK, error)
- func (a *Client) GetPrivateSell(params *GetPrivateSellParams) (*GetPrivateSellOK, error)
- func (a *Client) GetPrivateSetEmailForSubaccount(params *GetPrivateSetEmailForSubaccountParams) (*GetPrivateSetEmailForSubaccountOK, error)
- func (a *Client) GetPrivateSetPasswordForSubaccount(params *GetPrivateSetPasswordForSubaccountParams) (*GetPrivateSetPasswordForSubaccountOK, error)
- func (a *Client) GetPrivateSubmitTransferToSubaccount(params *GetPrivateSubmitTransferToSubaccountParams) (*GetPrivateSubmitTransferToSubaccountOK, error)
- func (a *Client) GetPrivateSubmitTransferToUser(params *GetPrivateSubmitTransferToUserParams) (*GetPrivateSubmitTransferToUserOK, error)
- func (a *Client) GetPrivateSubscribe(params *GetPrivateSubscribeParams) (*GetPrivateSubscribeOK, error)
- func (a *Client) GetPrivateToggleNotificationsFromSubaccount(params *GetPrivateToggleNotificationsFromSubaccountParams) (*GetPrivateToggleNotificationsFromSubaccountOK, error)
- func (a *Client) GetPrivateToggleSubaccountLogin(params *GetPrivateToggleSubaccountLoginParams) (*GetPrivateToggleSubaccountLoginOK, error)
- func (a *Client) GetPrivateUnsubscribe(params *GetPrivateUnsubscribeParams) (*GetPrivateUnsubscribeOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetPrivateBuyOK
- type GetPrivateBuyParams
- func (o *GetPrivateBuyParams) SetAdvanced(advanced *string)
- func (o *GetPrivateBuyParams) SetAmount(amount float64)
- func (o *GetPrivateBuyParams) SetContext(ctx context.Context)
- func (o *GetPrivateBuyParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateBuyParams) SetInstrumentName(instrumentName string)
- func (o *GetPrivateBuyParams) SetLabel(label *string)
- func (o *GetPrivateBuyParams) SetMaxShow(maxShow *float64)
- func (o *GetPrivateBuyParams) SetPostOnly(postOnly *bool)
- func (o *GetPrivateBuyParams) SetPrice(price *float64)
- func (o *GetPrivateBuyParams) SetReduceOnly(reduceOnly *bool)
- func (o *GetPrivateBuyParams) SetStopPrice(stopPrice *float64)
- func (o *GetPrivateBuyParams) SetTimeInForce(timeInForce *string)
- func (o *GetPrivateBuyParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateBuyParams) SetTrigger(trigger *string)
- func (o *GetPrivateBuyParams) SetType(typeVar *string)
- func (o *GetPrivateBuyParams) WithAdvanced(advanced *string) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithAmount(amount float64) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithContext(ctx context.Context) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithHTTPClient(client *http.Client) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithInstrumentName(instrumentName string) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithLabel(label *string) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithMaxShow(maxShow *float64) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithPostOnly(postOnly *bool) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithPrice(price *float64) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithReduceOnly(reduceOnly *bool) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithStopPrice(stopPrice *float64) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithTimeInForce(timeInForce *string) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithTimeout(timeout time.Duration) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithTrigger(trigger *string) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WithType(typeVar *string) *GetPrivateBuyParams
- func (o *GetPrivateBuyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateBuyReader
- type GetPrivateCancelTransferByIDOK
- type GetPrivateCancelTransferByIDParams
- func NewGetPrivateCancelTransferByIDParams() *GetPrivateCancelTransferByIDParams
- func NewGetPrivateCancelTransferByIDParamsWithContext(ctx context.Context) *GetPrivateCancelTransferByIDParams
- func NewGetPrivateCancelTransferByIDParamsWithHTTPClient(client *http.Client) *GetPrivateCancelTransferByIDParams
- func NewGetPrivateCancelTransferByIDParamsWithTimeout(timeout time.Duration) *GetPrivateCancelTransferByIDParams
- func (o *GetPrivateCancelTransferByIDParams) SetContext(ctx context.Context)
- func (o *GetPrivateCancelTransferByIDParams) SetCurrency(currency string)
- func (o *GetPrivateCancelTransferByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateCancelTransferByIDParams) SetID(id int64)
- func (o *GetPrivateCancelTransferByIDParams) SetTfa(tfa *string)
- func (o *GetPrivateCancelTransferByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateCancelTransferByIDParams) WithContext(ctx context.Context) *GetPrivateCancelTransferByIDParams
- func (o *GetPrivateCancelTransferByIDParams) WithCurrency(currency string) *GetPrivateCancelTransferByIDParams
- func (o *GetPrivateCancelTransferByIDParams) WithHTTPClient(client *http.Client) *GetPrivateCancelTransferByIDParams
- func (o *GetPrivateCancelTransferByIDParams) WithID(id int64) *GetPrivateCancelTransferByIDParams
- func (o *GetPrivateCancelTransferByIDParams) WithTfa(tfa *string) *GetPrivateCancelTransferByIDParams
- func (o *GetPrivateCancelTransferByIDParams) WithTimeout(timeout time.Duration) *GetPrivateCancelTransferByIDParams
- func (o *GetPrivateCancelTransferByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateCancelTransferByIDReader
- type GetPrivateChangeSubaccountNameOK
- type GetPrivateChangeSubaccountNameParams
- func NewGetPrivateChangeSubaccountNameParams() *GetPrivateChangeSubaccountNameParams
- func NewGetPrivateChangeSubaccountNameParamsWithContext(ctx context.Context) *GetPrivateChangeSubaccountNameParams
- func NewGetPrivateChangeSubaccountNameParamsWithHTTPClient(client *http.Client) *GetPrivateChangeSubaccountNameParams
- func NewGetPrivateChangeSubaccountNameParamsWithTimeout(timeout time.Duration) *GetPrivateChangeSubaccountNameParams
- func (o *GetPrivateChangeSubaccountNameParams) SetContext(ctx context.Context)
- func (o *GetPrivateChangeSubaccountNameParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateChangeSubaccountNameParams) SetName(name string)
- func (o *GetPrivateChangeSubaccountNameParams) SetSid(sid int64)
- func (o *GetPrivateChangeSubaccountNameParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateChangeSubaccountNameParams) WithContext(ctx context.Context) *GetPrivateChangeSubaccountNameParams
- func (o *GetPrivateChangeSubaccountNameParams) WithHTTPClient(client *http.Client) *GetPrivateChangeSubaccountNameParams
- func (o *GetPrivateChangeSubaccountNameParams) WithName(name string) *GetPrivateChangeSubaccountNameParams
- func (o *GetPrivateChangeSubaccountNameParams) WithSid(sid int64) *GetPrivateChangeSubaccountNameParams
- func (o *GetPrivateChangeSubaccountNameParams) WithTimeout(timeout time.Duration) *GetPrivateChangeSubaccountNameParams
- func (o *GetPrivateChangeSubaccountNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateChangeSubaccountNameReader
- type GetPrivateClosePositionOK
- type GetPrivateClosePositionParams
- func NewGetPrivateClosePositionParams() *GetPrivateClosePositionParams
- func NewGetPrivateClosePositionParamsWithContext(ctx context.Context) *GetPrivateClosePositionParams
- func NewGetPrivateClosePositionParamsWithHTTPClient(client *http.Client) *GetPrivateClosePositionParams
- func NewGetPrivateClosePositionParamsWithTimeout(timeout time.Duration) *GetPrivateClosePositionParams
- func (o *GetPrivateClosePositionParams) SetContext(ctx context.Context)
- func (o *GetPrivateClosePositionParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateClosePositionParams) SetInstrumentName(instrumentName string)
- func (o *GetPrivateClosePositionParams) SetPrice(price *float64)
- func (o *GetPrivateClosePositionParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateClosePositionParams) SetType(typeVar string)
- func (o *GetPrivateClosePositionParams) WithContext(ctx context.Context) *GetPrivateClosePositionParams
- func (o *GetPrivateClosePositionParams) WithHTTPClient(client *http.Client) *GetPrivateClosePositionParams
- func (o *GetPrivateClosePositionParams) WithInstrumentName(instrumentName string) *GetPrivateClosePositionParams
- func (o *GetPrivateClosePositionParams) WithPrice(price *float64) *GetPrivateClosePositionParams
- func (o *GetPrivateClosePositionParams) WithTimeout(timeout time.Duration) *GetPrivateClosePositionParams
- func (o *GetPrivateClosePositionParams) WithType(typeVar string) *GetPrivateClosePositionParams
- func (o *GetPrivateClosePositionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateClosePositionReader
- type GetPrivateCreateSubaccountOK
- type GetPrivateCreateSubaccountParams
- func NewGetPrivateCreateSubaccountParams() *GetPrivateCreateSubaccountParams
- func NewGetPrivateCreateSubaccountParamsWithContext(ctx context.Context) *GetPrivateCreateSubaccountParams
- func NewGetPrivateCreateSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateCreateSubaccountParams
- func NewGetPrivateCreateSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateCreateSubaccountParams
- func (o *GetPrivateCreateSubaccountParams) SetContext(ctx context.Context)
- func (o *GetPrivateCreateSubaccountParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateCreateSubaccountParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateCreateSubaccountParams) WithContext(ctx context.Context) *GetPrivateCreateSubaccountParams
- func (o *GetPrivateCreateSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateCreateSubaccountParams
- func (o *GetPrivateCreateSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateCreateSubaccountParams
- func (o *GetPrivateCreateSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateCreateSubaccountReader
- type GetPrivateDisableTfaForSubaccountOK
- type GetPrivateDisableTfaForSubaccountParams
- func NewGetPrivateDisableTfaForSubaccountParams() *GetPrivateDisableTfaForSubaccountParams
- func NewGetPrivateDisableTfaForSubaccountParamsWithContext(ctx context.Context) *GetPrivateDisableTfaForSubaccountParams
- func NewGetPrivateDisableTfaForSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateDisableTfaForSubaccountParams
- func NewGetPrivateDisableTfaForSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateDisableTfaForSubaccountParams
- func (o *GetPrivateDisableTfaForSubaccountParams) SetContext(ctx context.Context)
- func (o *GetPrivateDisableTfaForSubaccountParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateDisableTfaForSubaccountParams) SetSid(sid int64)
- func (o *GetPrivateDisableTfaForSubaccountParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateDisableTfaForSubaccountParams) WithContext(ctx context.Context) *GetPrivateDisableTfaForSubaccountParams
- func (o *GetPrivateDisableTfaForSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateDisableTfaForSubaccountParams
- func (o *GetPrivateDisableTfaForSubaccountParams) WithSid(sid int64) *GetPrivateDisableTfaForSubaccountParams
- func (o *GetPrivateDisableTfaForSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateDisableTfaForSubaccountParams
- func (o *GetPrivateDisableTfaForSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateDisableTfaForSubaccountReader
- type GetPrivateGetOrderStateBadRequest
- type GetPrivateGetOrderStateOK
- type GetPrivateGetOrderStateParams
- func NewGetPrivateGetOrderStateParams() *GetPrivateGetOrderStateParams
- func NewGetPrivateGetOrderStateParamsWithContext(ctx context.Context) *GetPrivateGetOrderStateParams
- func NewGetPrivateGetOrderStateParamsWithHTTPClient(client *http.Client) *GetPrivateGetOrderStateParams
- func NewGetPrivateGetOrderStateParamsWithTimeout(timeout time.Duration) *GetPrivateGetOrderStateParams
- func (o *GetPrivateGetOrderStateParams) SetContext(ctx context.Context)
- func (o *GetPrivateGetOrderStateParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateGetOrderStateParams) SetOrderID(orderID string)
- func (o *GetPrivateGetOrderStateParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateGetOrderStateParams) WithContext(ctx context.Context) *GetPrivateGetOrderStateParams
- func (o *GetPrivateGetOrderStateParams) WithHTTPClient(client *http.Client) *GetPrivateGetOrderStateParams
- func (o *GetPrivateGetOrderStateParams) WithOrderID(orderID string) *GetPrivateGetOrderStateParams
- func (o *GetPrivateGetOrderStateParams) WithTimeout(timeout time.Duration) *GetPrivateGetOrderStateParams
- func (o *GetPrivateGetOrderStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateGetOrderStateReader
- type GetPrivateGetPositionBadRequest
- type GetPrivateGetPositionOK
- type GetPrivateGetPositionParams
- func NewGetPrivateGetPositionParams() *GetPrivateGetPositionParams
- func NewGetPrivateGetPositionParamsWithContext(ctx context.Context) *GetPrivateGetPositionParams
- func NewGetPrivateGetPositionParamsWithHTTPClient(client *http.Client) *GetPrivateGetPositionParams
- func NewGetPrivateGetPositionParamsWithTimeout(timeout time.Duration) *GetPrivateGetPositionParams
- func (o *GetPrivateGetPositionParams) SetContext(ctx context.Context)
- func (o *GetPrivateGetPositionParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateGetPositionParams) SetInstrumentName(instrumentName string)
- func (o *GetPrivateGetPositionParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateGetPositionParams) WithContext(ctx context.Context) *GetPrivateGetPositionParams
- func (o *GetPrivateGetPositionParams) WithHTTPClient(client *http.Client) *GetPrivateGetPositionParams
- func (o *GetPrivateGetPositionParams) WithInstrumentName(instrumentName string) *GetPrivateGetPositionParams
- func (o *GetPrivateGetPositionParams) WithTimeout(timeout time.Duration) *GetPrivateGetPositionParams
- func (o *GetPrivateGetPositionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateGetPositionReader
- type GetPrivateGetPositionsBadRequest
- type GetPrivateGetPositionsOK
- type GetPrivateGetPositionsParams
- func NewGetPrivateGetPositionsParams() *GetPrivateGetPositionsParams
- func NewGetPrivateGetPositionsParamsWithContext(ctx context.Context) *GetPrivateGetPositionsParams
- func NewGetPrivateGetPositionsParamsWithHTTPClient(client *http.Client) *GetPrivateGetPositionsParams
- func NewGetPrivateGetPositionsParamsWithTimeout(timeout time.Duration) *GetPrivateGetPositionsParams
- func (o *GetPrivateGetPositionsParams) SetContext(ctx context.Context)
- func (o *GetPrivateGetPositionsParams) SetCurrency(currency string)
- func (o *GetPrivateGetPositionsParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateGetPositionsParams) SetKind(kind *string)
- func (o *GetPrivateGetPositionsParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateGetPositionsParams) WithContext(ctx context.Context) *GetPrivateGetPositionsParams
- func (o *GetPrivateGetPositionsParams) WithCurrency(currency string) *GetPrivateGetPositionsParams
- func (o *GetPrivateGetPositionsParams) WithHTTPClient(client *http.Client) *GetPrivateGetPositionsParams
- func (o *GetPrivateGetPositionsParams) WithKind(kind *string) *GetPrivateGetPositionsParams
- func (o *GetPrivateGetPositionsParams) WithTimeout(timeout time.Duration) *GetPrivateGetPositionsParams
- func (o *GetPrivateGetPositionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateGetPositionsReader
- type GetPrivateGetSubaccountsOK
- type GetPrivateGetSubaccountsParams
- func NewGetPrivateGetSubaccountsParams() *GetPrivateGetSubaccountsParams
- func NewGetPrivateGetSubaccountsParamsWithContext(ctx context.Context) *GetPrivateGetSubaccountsParams
- func NewGetPrivateGetSubaccountsParamsWithHTTPClient(client *http.Client) *GetPrivateGetSubaccountsParams
- func NewGetPrivateGetSubaccountsParamsWithTimeout(timeout time.Duration) *GetPrivateGetSubaccountsParams
- func (o *GetPrivateGetSubaccountsParams) SetContext(ctx context.Context)
- func (o *GetPrivateGetSubaccountsParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateGetSubaccountsParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateGetSubaccountsParams) SetWithPortfolio(withPortfolio *bool)
- func (o *GetPrivateGetSubaccountsParams) WithContext(ctx context.Context) *GetPrivateGetSubaccountsParams
- func (o *GetPrivateGetSubaccountsParams) WithHTTPClient(client *http.Client) *GetPrivateGetSubaccountsParams
- func (o *GetPrivateGetSubaccountsParams) WithTimeout(timeout time.Duration) *GetPrivateGetSubaccountsParams
- func (o *GetPrivateGetSubaccountsParams) WithWithPortfolio(withPortfolio *bool) *GetPrivateGetSubaccountsParams
- func (o *GetPrivateGetSubaccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateGetSubaccountsReader
- type GetPrivateGetSubaccountsUnauthorized
- type GetPrivateSellOK
- type GetPrivateSellParams
- func NewGetPrivateSellParams() *GetPrivateSellParams
- func NewGetPrivateSellParamsWithContext(ctx context.Context) *GetPrivateSellParams
- func NewGetPrivateSellParamsWithHTTPClient(client *http.Client) *GetPrivateSellParams
- func NewGetPrivateSellParamsWithTimeout(timeout time.Duration) *GetPrivateSellParams
- func (o *GetPrivateSellParams) SetAdvanced(advanced *string)
- func (o *GetPrivateSellParams) SetAmount(amount float64)
- func (o *GetPrivateSellParams) SetContext(ctx context.Context)
- func (o *GetPrivateSellParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateSellParams) SetInstrumentName(instrumentName string)
- func (o *GetPrivateSellParams) SetLabel(label *string)
- func (o *GetPrivateSellParams) SetMaxShow(maxShow *float64)
- func (o *GetPrivateSellParams) SetPostOnly(postOnly *bool)
- func (o *GetPrivateSellParams) SetPrice(price *float64)
- func (o *GetPrivateSellParams) SetReduceOnly(reduceOnly *bool)
- func (o *GetPrivateSellParams) SetStopPrice(stopPrice *float64)
- func (o *GetPrivateSellParams) SetTimeInForce(timeInForce *string)
- func (o *GetPrivateSellParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateSellParams) SetTrigger(trigger *string)
- func (o *GetPrivateSellParams) SetType(typeVar *string)
- func (o *GetPrivateSellParams) WithAdvanced(advanced *string) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithAmount(amount float64) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithContext(ctx context.Context) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithHTTPClient(client *http.Client) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithInstrumentName(instrumentName string) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithLabel(label *string) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithMaxShow(maxShow *float64) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithPostOnly(postOnly *bool) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithPrice(price *float64) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithReduceOnly(reduceOnly *bool) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithStopPrice(stopPrice *float64) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithTimeInForce(timeInForce *string) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithTimeout(timeout time.Duration) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithTrigger(trigger *string) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WithType(typeVar *string) *GetPrivateSellParams
- func (o *GetPrivateSellParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateSellReader
- type GetPrivateSetEmailForSubaccountOK
- type GetPrivateSetEmailForSubaccountParams
- func NewGetPrivateSetEmailForSubaccountParams() *GetPrivateSetEmailForSubaccountParams
- func NewGetPrivateSetEmailForSubaccountParamsWithContext(ctx context.Context) *GetPrivateSetEmailForSubaccountParams
- func NewGetPrivateSetEmailForSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateSetEmailForSubaccountParams
- func NewGetPrivateSetEmailForSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateSetEmailForSubaccountParams
- func (o *GetPrivateSetEmailForSubaccountParams) SetContext(ctx context.Context)
- func (o *GetPrivateSetEmailForSubaccountParams) SetEmail(email string)
- func (o *GetPrivateSetEmailForSubaccountParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateSetEmailForSubaccountParams) SetSid(sid int64)
- func (o *GetPrivateSetEmailForSubaccountParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateSetEmailForSubaccountParams) WithContext(ctx context.Context) *GetPrivateSetEmailForSubaccountParams
- func (o *GetPrivateSetEmailForSubaccountParams) WithEmail(email string) *GetPrivateSetEmailForSubaccountParams
- func (o *GetPrivateSetEmailForSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateSetEmailForSubaccountParams
- func (o *GetPrivateSetEmailForSubaccountParams) WithSid(sid int64) *GetPrivateSetEmailForSubaccountParams
- func (o *GetPrivateSetEmailForSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateSetEmailForSubaccountParams
- func (o *GetPrivateSetEmailForSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateSetEmailForSubaccountReader
- type GetPrivateSetPasswordForSubaccountOK
- type GetPrivateSetPasswordForSubaccountParams
- func NewGetPrivateSetPasswordForSubaccountParams() *GetPrivateSetPasswordForSubaccountParams
- func NewGetPrivateSetPasswordForSubaccountParamsWithContext(ctx context.Context) *GetPrivateSetPasswordForSubaccountParams
- func NewGetPrivateSetPasswordForSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateSetPasswordForSubaccountParams
- func NewGetPrivateSetPasswordForSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateSetPasswordForSubaccountParams
- func (o *GetPrivateSetPasswordForSubaccountParams) SetContext(ctx context.Context)
- func (o *GetPrivateSetPasswordForSubaccountParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateSetPasswordForSubaccountParams) SetPassword(password string)
- func (o *GetPrivateSetPasswordForSubaccountParams) SetSid(sid int64)
- func (o *GetPrivateSetPasswordForSubaccountParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateSetPasswordForSubaccountParams) WithContext(ctx context.Context) *GetPrivateSetPasswordForSubaccountParams
- func (o *GetPrivateSetPasswordForSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateSetPasswordForSubaccountParams
- func (o *GetPrivateSetPasswordForSubaccountParams) WithPassword(password string) *GetPrivateSetPasswordForSubaccountParams
- func (o *GetPrivateSetPasswordForSubaccountParams) WithSid(sid int64) *GetPrivateSetPasswordForSubaccountParams
- func (o *GetPrivateSetPasswordForSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateSetPasswordForSubaccountParams
- func (o *GetPrivateSetPasswordForSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateSetPasswordForSubaccountReader
- type GetPrivateSubmitTransferToSubaccountOK
- type GetPrivateSubmitTransferToSubaccountParams
- func NewGetPrivateSubmitTransferToSubaccountParams() *GetPrivateSubmitTransferToSubaccountParams
- func NewGetPrivateSubmitTransferToSubaccountParamsWithContext(ctx context.Context) *GetPrivateSubmitTransferToSubaccountParams
- func NewGetPrivateSubmitTransferToSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToSubaccountParams
- func NewGetPrivateSubmitTransferToSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToSubaccountParams
- func (o *GetPrivateSubmitTransferToSubaccountParams) SetAmount(amount float64)
- func (o *GetPrivateSubmitTransferToSubaccountParams) SetContext(ctx context.Context)
- func (o *GetPrivateSubmitTransferToSubaccountParams) SetCurrency(currency string)
- func (o *GetPrivateSubmitTransferToSubaccountParams) SetDestination(destination int64)
- func (o *GetPrivateSubmitTransferToSubaccountParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateSubmitTransferToSubaccountParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateSubmitTransferToSubaccountParams) WithAmount(amount float64) *GetPrivateSubmitTransferToSubaccountParams
- func (o *GetPrivateSubmitTransferToSubaccountParams) WithContext(ctx context.Context) *GetPrivateSubmitTransferToSubaccountParams
- func (o *GetPrivateSubmitTransferToSubaccountParams) WithCurrency(currency string) *GetPrivateSubmitTransferToSubaccountParams
- func (o *GetPrivateSubmitTransferToSubaccountParams) WithDestination(destination int64) *GetPrivateSubmitTransferToSubaccountParams
- func (o *GetPrivateSubmitTransferToSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToSubaccountParams
- func (o *GetPrivateSubmitTransferToSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToSubaccountParams
- func (o *GetPrivateSubmitTransferToSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateSubmitTransferToSubaccountReader
- type GetPrivateSubmitTransferToUserOK
- type GetPrivateSubmitTransferToUserParams
- func NewGetPrivateSubmitTransferToUserParams() *GetPrivateSubmitTransferToUserParams
- func NewGetPrivateSubmitTransferToUserParamsWithContext(ctx context.Context) *GetPrivateSubmitTransferToUserParams
- func NewGetPrivateSubmitTransferToUserParamsWithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToUserParams
- func NewGetPrivateSubmitTransferToUserParamsWithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) SetAmount(amount float64)
- func (o *GetPrivateSubmitTransferToUserParams) SetContext(ctx context.Context)
- func (o *GetPrivateSubmitTransferToUserParams) SetCurrency(currency string)
- func (o *GetPrivateSubmitTransferToUserParams) SetDestination(destination string)
- func (o *GetPrivateSubmitTransferToUserParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateSubmitTransferToUserParams) SetTfa(tfa *string)
- func (o *GetPrivateSubmitTransferToUserParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateSubmitTransferToUserParams) WithAmount(amount float64) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) WithContext(ctx context.Context) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) WithCurrency(currency string) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) WithDestination(destination string) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) WithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) WithTfa(tfa *string) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) WithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToUserParams
- func (o *GetPrivateSubmitTransferToUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateSubmitTransferToUserReader
- type GetPrivateSubscribeOK
- type GetPrivateSubscribeParams
- func NewGetPrivateSubscribeParams() *GetPrivateSubscribeParams
- func NewGetPrivateSubscribeParamsWithContext(ctx context.Context) *GetPrivateSubscribeParams
- func NewGetPrivateSubscribeParamsWithHTTPClient(client *http.Client) *GetPrivateSubscribeParams
- func NewGetPrivateSubscribeParamsWithTimeout(timeout time.Duration) *GetPrivateSubscribeParams
- func (o *GetPrivateSubscribeParams) SetChannels(channels []string)
- func (o *GetPrivateSubscribeParams) SetContext(ctx context.Context)
- func (o *GetPrivateSubscribeParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateSubscribeParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateSubscribeParams) WithChannels(channels []string) *GetPrivateSubscribeParams
- func (o *GetPrivateSubscribeParams) WithContext(ctx context.Context) *GetPrivateSubscribeParams
- func (o *GetPrivateSubscribeParams) WithHTTPClient(client *http.Client) *GetPrivateSubscribeParams
- func (o *GetPrivateSubscribeParams) WithTimeout(timeout time.Duration) *GetPrivateSubscribeParams
- func (o *GetPrivateSubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateSubscribeReader
- type GetPrivateSubscribeUnauthorized
- type GetPrivateToggleNotificationsFromSubaccountOK
- type GetPrivateToggleNotificationsFromSubaccountParams
- func NewGetPrivateToggleNotificationsFromSubaccountParams() *GetPrivateToggleNotificationsFromSubaccountParams
- func NewGetPrivateToggleNotificationsFromSubaccountParamsWithContext(ctx context.Context) *GetPrivateToggleNotificationsFromSubaccountParams
- func NewGetPrivateToggleNotificationsFromSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateToggleNotificationsFromSubaccountParams
- func NewGetPrivateToggleNotificationsFromSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateToggleNotificationsFromSubaccountParams
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetContext(ctx context.Context)
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetSid(sid int64)
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetState(state bool)
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithContext(ctx context.Context) *GetPrivateToggleNotificationsFromSubaccountParams
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateToggleNotificationsFromSubaccountParams
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithSid(sid int64) *GetPrivateToggleNotificationsFromSubaccountParams
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithState(state bool) *GetPrivateToggleNotificationsFromSubaccountParams
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateToggleNotificationsFromSubaccountParams
- func (o *GetPrivateToggleNotificationsFromSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateToggleNotificationsFromSubaccountReader
- type GetPrivateToggleSubaccountLoginOK
- type GetPrivateToggleSubaccountLoginParams
- func NewGetPrivateToggleSubaccountLoginParams() *GetPrivateToggleSubaccountLoginParams
- func NewGetPrivateToggleSubaccountLoginParamsWithContext(ctx context.Context) *GetPrivateToggleSubaccountLoginParams
- func NewGetPrivateToggleSubaccountLoginParamsWithHTTPClient(client *http.Client) *GetPrivateToggleSubaccountLoginParams
- func NewGetPrivateToggleSubaccountLoginParamsWithTimeout(timeout time.Duration) *GetPrivateToggleSubaccountLoginParams
- func (o *GetPrivateToggleSubaccountLoginParams) SetContext(ctx context.Context)
- func (o *GetPrivateToggleSubaccountLoginParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateToggleSubaccountLoginParams) SetSid(sid int64)
- func (o *GetPrivateToggleSubaccountLoginParams) SetState(state string)
- func (o *GetPrivateToggleSubaccountLoginParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateToggleSubaccountLoginParams) WithContext(ctx context.Context) *GetPrivateToggleSubaccountLoginParams
- func (o *GetPrivateToggleSubaccountLoginParams) WithHTTPClient(client *http.Client) *GetPrivateToggleSubaccountLoginParams
- func (o *GetPrivateToggleSubaccountLoginParams) WithSid(sid int64) *GetPrivateToggleSubaccountLoginParams
- func (o *GetPrivateToggleSubaccountLoginParams) WithState(state string) *GetPrivateToggleSubaccountLoginParams
- func (o *GetPrivateToggleSubaccountLoginParams) WithTimeout(timeout time.Duration) *GetPrivateToggleSubaccountLoginParams
- func (o *GetPrivateToggleSubaccountLoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateToggleSubaccountLoginReader
- type GetPrivateUnsubscribeOK
- type GetPrivateUnsubscribeParams
- func NewGetPrivateUnsubscribeParams() *GetPrivateUnsubscribeParams
- func NewGetPrivateUnsubscribeParamsWithContext(ctx context.Context) *GetPrivateUnsubscribeParams
- func NewGetPrivateUnsubscribeParamsWithHTTPClient(client *http.Client) *GetPrivateUnsubscribeParams
- func NewGetPrivateUnsubscribeParamsWithTimeout(timeout time.Duration) *GetPrivateUnsubscribeParams
- func (o *GetPrivateUnsubscribeParams) SetChannels(channels []string)
- func (o *GetPrivateUnsubscribeParams) SetContext(ctx context.Context)
- func (o *GetPrivateUnsubscribeParams) SetHTTPClient(client *http.Client)
- func (o *GetPrivateUnsubscribeParams) SetTimeout(timeout time.Duration)
- func (o *GetPrivateUnsubscribeParams) WithChannels(channels []string) *GetPrivateUnsubscribeParams
- func (o *GetPrivateUnsubscribeParams) WithContext(ctx context.Context) *GetPrivateUnsubscribeParams
- func (o *GetPrivateUnsubscribeParams) WithHTTPClient(client *http.Client) *GetPrivateUnsubscribeParams
- func (o *GetPrivateUnsubscribeParams) WithTimeout(timeout time.Duration) *GetPrivateUnsubscribeParams
- func (o *GetPrivateUnsubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPrivateUnsubscribeReader
- type GetPrivateUnsubscribeUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for private API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new private API client.
func (*Client) GetPrivateBuy ¶
func (a *Client) GetPrivateBuy(params *GetPrivateBuyParams) (*GetPrivateBuyOK, error)
GetPrivateBuy places a buy order for an instrument
func (*Client) GetPrivateCancelTransferByID ¶
func (a *Client) GetPrivateCancelTransferByID(params *GetPrivateCancelTransferByIDParams) (*GetPrivateCancelTransferByIDOK, error)
GetPrivateCancelTransferByID cancels transfer
func (*Client) GetPrivateChangeSubaccountName ¶
func (a *Client) GetPrivateChangeSubaccountName(params *GetPrivateChangeSubaccountNameParams) (*GetPrivateChangeSubaccountNameOK, error)
GetPrivateChangeSubaccountName changes the user name for a subaccount
func (*Client) GetPrivateClosePosition ¶
func (a *Client) GetPrivateClosePosition(params *GetPrivateClosePositionParams) (*GetPrivateClosePositionOK, error)
GetPrivateClosePosition makes closing position reduce only order
func (*Client) GetPrivateCreateSubaccount ¶
func (a *Client) GetPrivateCreateSubaccount(params *GetPrivateCreateSubaccountParams) (*GetPrivateCreateSubaccountOK, error)
GetPrivateCreateSubaccount creates a new subaccount
func (*Client) GetPrivateDisableTfaForSubaccount ¶
func (a *Client) GetPrivateDisableTfaForSubaccount(params *GetPrivateDisableTfaForSubaccountParams) (*GetPrivateDisableTfaForSubaccountOK, error)
GetPrivateDisableTfaForSubaccount disables two factor authentication for a subaccount
func (*Client) GetPrivateGetOrderState ¶
func (a *Client) GetPrivateGetOrderState(params *GetPrivateGetOrderStateParams) (*GetPrivateGetOrderStateOK, error)
GetPrivateGetOrderState retrieves the current state of an order
func (*Client) GetPrivateGetPosition ¶
func (a *Client) GetPrivateGetPosition(params *GetPrivateGetPositionParams) (*GetPrivateGetPositionOK, error)
GetPrivateGetPosition retrieves user position
func (*Client) GetPrivateGetPositions ¶
func (a *Client) GetPrivateGetPositions(params *GetPrivateGetPositionsParams) (*GetPrivateGetPositionsOK, error)
GetPrivateGetPositions retrieves user positions
func (*Client) GetPrivateGetSubaccounts ¶
func (a *Client) GetPrivateGetSubaccounts(params *GetPrivateGetSubaccountsParams) (*GetPrivateGetSubaccountsOK, error)
GetPrivateGetSubaccounts gets information about subaccounts
func (*Client) GetPrivateSell ¶
func (a *Client) GetPrivateSell(params *GetPrivateSellParams) (*GetPrivateSellOK, error)
GetPrivateSell places a sell order for an instrument
func (*Client) GetPrivateSetEmailForSubaccount ¶
func (a *Client) GetPrivateSetEmailForSubaccount(params *GetPrivateSetEmailForSubaccountParams) (*GetPrivateSetEmailForSubaccountOK, error)
GetPrivateSetEmailForSubaccount assigns an email address to a subaccount user will receive an email with confirmation link
func (*Client) GetPrivateSetPasswordForSubaccount ¶
func (a *Client) GetPrivateSetPasswordForSubaccount(params *GetPrivateSetPasswordForSubaccountParams) (*GetPrivateSetPasswordForSubaccountOK, error)
GetPrivateSetPasswordForSubaccount sets the password for the subaccount
func (*Client) GetPrivateSubmitTransferToSubaccount ¶
func (a *Client) GetPrivateSubmitTransferToSubaccount(params *GetPrivateSubmitTransferToSubaccountParams) (*GetPrivateSubmitTransferToSubaccountOK, error)
GetPrivateSubmitTransferToSubaccount transfers funds to a subaccount
func (*Client) GetPrivateSubmitTransferToUser ¶
func (a *Client) GetPrivateSubmitTransferToUser(params *GetPrivateSubmitTransferToUserParams) (*GetPrivateSubmitTransferToUserOK, error)
GetPrivateSubmitTransferToUser transfers funds to a another user
func (*Client) GetPrivateSubscribe ¶
func (a *Client) GetPrivateSubscribe(params *GetPrivateSubscribeParams) (*GetPrivateSubscribeOK, error)
GetPrivateSubscribe subscribes to one or more channels
Subscribe to one or more channels.
The name of the channel determines what information will be provided, and in what form.
func (*Client) GetPrivateToggleNotificationsFromSubaccount ¶
func (a *Client) GetPrivateToggleNotificationsFromSubaccount(params *GetPrivateToggleNotificationsFromSubaccountParams) (*GetPrivateToggleNotificationsFromSubaccountOK, error)
GetPrivateToggleNotificationsFromSubaccount enables or disable sending of notifications for the subaccount
func (*Client) GetPrivateToggleSubaccountLogin ¶
func (a *Client) GetPrivateToggleSubaccountLogin(params *GetPrivateToggleSubaccountLoginParams) (*GetPrivateToggleSubaccountLoginOK, error)
GetPrivateToggleSubaccountLogin enables or disable login for a subaccount if login is disabled and a session for the subaccount exists this session will be terminated
func (*Client) GetPrivateUnsubscribe ¶
func (a *Client) GetPrivateUnsubscribe(params *GetPrivateUnsubscribeParams) (*GetPrivateUnsubscribeOK, error)
GetPrivateUnsubscribe unsubscribes from one or more channels
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetPrivateBuyOK ¶
type GetPrivateBuyOK struct {
Payload *models.PrivateBuyAndSellResponse
}
GetPrivateBuyOK handles this case with default header values.
ok response
func NewGetPrivateBuyOK ¶
func NewGetPrivateBuyOK() *GetPrivateBuyOK
NewGetPrivateBuyOK creates a GetPrivateBuyOK with default headers values
func (*GetPrivateBuyOK) Error ¶
func (o *GetPrivateBuyOK) Error() string
func (*GetPrivateBuyOK) GetPayload ¶
func (o *GetPrivateBuyOK) GetPayload() *models.PrivateBuyAndSellResponse
type GetPrivateBuyParams ¶
type GetPrivateBuyParams struct { /*Advanced Advanced option order type. (Only for options) */ Advanced *string /*Amount It represents the requested order size. For perpetual and futures the amount is in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH */ Amount float64 /*InstrumentName Instrument name */ InstrumentName string /*Label user defined label for the order (maximum 32 characters) */ Label *string /*MaxShow Maximum amount within an order to be shown to other customers, `0` for invisible order */ MaxShow *float64 /*PostOnly <p>If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below the bid.</p> <p>Only valid in combination with time_in_force=`"good_til_cancelled"`</p> */ PostOnly *bool /*Price <p>The order price in base currency (Only for limit and stop_limit orders)</p> <p>When adding order with advanced=usd, the field price should be the option price value in USD.</p> <p>When adding order with advanced=implv, the field price should be a value of implied volatility in percentages. For example, price=100, means implied volatility of 100%</p> */ Price *float64 /*ReduceOnly If `true`, the order is considered reduce-only which is intended to only reduce a current position */ ReduceOnly *bool /*StopPrice Stop price, required for stop limit orders (Only for stop orders) */ StopPrice *float64 /*TimeInForce <p>Specifies how long the order remains in effect. Default `"good_til_cancelled"`</p> <ul> <li>`"good_til_cancelled"` - unfilled order remains in order book until cancelled</li> <li>`"fill_or_kill"` - execute a transaction immediately and completely or not at all</li> <li>`"immediate_or_cancel"` - execute a transaction immediately, and any portion of the order that cannot be immediately filled is cancelled</li> </ul> */ TimeInForce *string /*Trigger Defines trigger type, required for `"stop_limit"` order type */ Trigger *string /*Type The order type, default: `"limit"` */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateBuyParams contains all the parameters to send to the API endpoint for the get private buy operation typically these are written to a http.Request
func NewGetPrivateBuyParams ¶
func NewGetPrivateBuyParams() *GetPrivateBuyParams
NewGetPrivateBuyParams creates a new GetPrivateBuyParams object with the default values initialized.
func NewGetPrivateBuyParamsWithContext ¶
func NewGetPrivateBuyParamsWithContext(ctx context.Context) *GetPrivateBuyParams
NewGetPrivateBuyParamsWithContext creates a new GetPrivateBuyParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateBuyParamsWithHTTPClient ¶
func NewGetPrivateBuyParamsWithHTTPClient(client *http.Client) *GetPrivateBuyParams
NewGetPrivateBuyParamsWithHTTPClient creates a new GetPrivateBuyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateBuyParamsWithTimeout ¶
func NewGetPrivateBuyParamsWithTimeout(timeout time.Duration) *GetPrivateBuyParams
NewGetPrivateBuyParamsWithTimeout creates a new GetPrivateBuyParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateBuyParams) SetAdvanced ¶
func (o *GetPrivateBuyParams) SetAdvanced(advanced *string)
SetAdvanced adds the advanced to the get private buy params
func (*GetPrivateBuyParams) SetAmount ¶
func (o *GetPrivateBuyParams) SetAmount(amount float64)
SetAmount adds the amount to the get private buy params
func (*GetPrivateBuyParams) SetContext ¶
func (o *GetPrivateBuyParams) SetContext(ctx context.Context)
SetContext adds the context to the get private buy params
func (*GetPrivateBuyParams) SetHTTPClient ¶
func (o *GetPrivateBuyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private buy params
func (*GetPrivateBuyParams) SetInstrumentName ¶
func (o *GetPrivateBuyParams) SetInstrumentName(instrumentName string)
SetInstrumentName adds the instrumentName to the get private buy params
func (*GetPrivateBuyParams) SetLabel ¶
func (o *GetPrivateBuyParams) SetLabel(label *string)
SetLabel adds the label to the get private buy params
func (*GetPrivateBuyParams) SetMaxShow ¶
func (o *GetPrivateBuyParams) SetMaxShow(maxShow *float64)
SetMaxShow adds the maxShow to the get private buy params
func (*GetPrivateBuyParams) SetPostOnly ¶
func (o *GetPrivateBuyParams) SetPostOnly(postOnly *bool)
SetPostOnly adds the postOnly to the get private buy params
func (*GetPrivateBuyParams) SetPrice ¶
func (o *GetPrivateBuyParams) SetPrice(price *float64)
SetPrice adds the price to the get private buy params
func (*GetPrivateBuyParams) SetReduceOnly ¶
func (o *GetPrivateBuyParams) SetReduceOnly(reduceOnly *bool)
SetReduceOnly adds the reduceOnly to the get private buy params
func (*GetPrivateBuyParams) SetStopPrice ¶
func (o *GetPrivateBuyParams) SetStopPrice(stopPrice *float64)
SetStopPrice adds the stopPrice to the get private buy params
func (*GetPrivateBuyParams) SetTimeInForce ¶
func (o *GetPrivateBuyParams) SetTimeInForce(timeInForce *string)
SetTimeInForce adds the timeInForce to the get private buy params
func (*GetPrivateBuyParams) SetTimeout ¶
func (o *GetPrivateBuyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private buy params
func (*GetPrivateBuyParams) SetTrigger ¶
func (o *GetPrivateBuyParams) SetTrigger(trigger *string)
SetTrigger adds the trigger to the get private buy params
func (*GetPrivateBuyParams) SetType ¶
func (o *GetPrivateBuyParams) SetType(typeVar *string)
SetType adds the type to the get private buy params
func (*GetPrivateBuyParams) WithAdvanced ¶
func (o *GetPrivateBuyParams) WithAdvanced(advanced *string) *GetPrivateBuyParams
WithAdvanced adds the advanced to the get private buy params
func (*GetPrivateBuyParams) WithAmount ¶
func (o *GetPrivateBuyParams) WithAmount(amount float64) *GetPrivateBuyParams
WithAmount adds the amount to the get private buy params
func (*GetPrivateBuyParams) WithContext ¶
func (o *GetPrivateBuyParams) WithContext(ctx context.Context) *GetPrivateBuyParams
WithContext adds the context to the get private buy params
func (*GetPrivateBuyParams) WithHTTPClient ¶
func (o *GetPrivateBuyParams) WithHTTPClient(client *http.Client) *GetPrivateBuyParams
WithHTTPClient adds the HTTPClient to the get private buy params
func (*GetPrivateBuyParams) WithInstrumentName ¶
func (o *GetPrivateBuyParams) WithInstrumentName(instrumentName string) *GetPrivateBuyParams
WithInstrumentName adds the instrumentName to the get private buy params
func (*GetPrivateBuyParams) WithLabel ¶
func (o *GetPrivateBuyParams) WithLabel(label *string) *GetPrivateBuyParams
WithLabel adds the label to the get private buy params
func (*GetPrivateBuyParams) WithMaxShow ¶
func (o *GetPrivateBuyParams) WithMaxShow(maxShow *float64) *GetPrivateBuyParams
WithMaxShow adds the maxShow to the get private buy params
func (*GetPrivateBuyParams) WithPostOnly ¶
func (o *GetPrivateBuyParams) WithPostOnly(postOnly *bool) *GetPrivateBuyParams
WithPostOnly adds the postOnly to the get private buy params
func (*GetPrivateBuyParams) WithPrice ¶
func (o *GetPrivateBuyParams) WithPrice(price *float64) *GetPrivateBuyParams
WithPrice adds the price to the get private buy params
func (*GetPrivateBuyParams) WithReduceOnly ¶
func (o *GetPrivateBuyParams) WithReduceOnly(reduceOnly *bool) *GetPrivateBuyParams
WithReduceOnly adds the reduceOnly to the get private buy params
func (*GetPrivateBuyParams) WithStopPrice ¶
func (o *GetPrivateBuyParams) WithStopPrice(stopPrice *float64) *GetPrivateBuyParams
WithStopPrice adds the stopPrice to the get private buy params
func (*GetPrivateBuyParams) WithTimeInForce ¶
func (o *GetPrivateBuyParams) WithTimeInForce(timeInForce *string) *GetPrivateBuyParams
WithTimeInForce adds the timeInForce to the get private buy params
func (*GetPrivateBuyParams) WithTimeout ¶
func (o *GetPrivateBuyParams) WithTimeout(timeout time.Duration) *GetPrivateBuyParams
WithTimeout adds the timeout to the get private buy params
func (*GetPrivateBuyParams) WithTrigger ¶
func (o *GetPrivateBuyParams) WithTrigger(trigger *string) *GetPrivateBuyParams
WithTrigger adds the trigger to the get private buy params
func (*GetPrivateBuyParams) WithType ¶
func (o *GetPrivateBuyParams) WithType(typeVar *string) *GetPrivateBuyParams
WithType adds the typeVar to the get private buy params
func (*GetPrivateBuyParams) WriteToRequest ¶
func (o *GetPrivateBuyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateBuyReader ¶
type GetPrivateBuyReader struct {
// contains filtered or unexported fields
}
GetPrivateBuyReader is a Reader for the GetPrivateBuy structure.
func (*GetPrivateBuyReader) ReadResponse ¶
func (o *GetPrivateBuyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateCancelTransferByIDOK ¶
type GetPrivateCancelTransferByIDOK struct {
Payload *models.PrivateSubmitTransferResponse
}
GetPrivateCancelTransferByIDOK handles this case with default header values.
ok response
func NewGetPrivateCancelTransferByIDOK ¶
func NewGetPrivateCancelTransferByIDOK() *GetPrivateCancelTransferByIDOK
NewGetPrivateCancelTransferByIDOK creates a GetPrivateCancelTransferByIDOK with default headers values
func (*GetPrivateCancelTransferByIDOK) Error ¶
func (o *GetPrivateCancelTransferByIDOK) Error() string
func (*GetPrivateCancelTransferByIDOK) GetPayload ¶
func (o *GetPrivateCancelTransferByIDOK) GetPayload() *models.PrivateSubmitTransferResponse
type GetPrivateCancelTransferByIDParams ¶
type GetPrivateCancelTransferByIDParams struct { /*Currency The currency symbol */ Currency string /*ID Id of transfer */ ID int64 /*Tfa TFA code, required when TFA is enabled for current account */ Tfa *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateCancelTransferByIDParams contains all the parameters to send to the API endpoint for the get private cancel transfer by ID operation typically these are written to a http.Request
func NewGetPrivateCancelTransferByIDParams ¶
func NewGetPrivateCancelTransferByIDParams() *GetPrivateCancelTransferByIDParams
NewGetPrivateCancelTransferByIDParams creates a new GetPrivateCancelTransferByIDParams object with the default values initialized.
func NewGetPrivateCancelTransferByIDParamsWithContext ¶
func NewGetPrivateCancelTransferByIDParamsWithContext(ctx context.Context) *GetPrivateCancelTransferByIDParams
NewGetPrivateCancelTransferByIDParamsWithContext creates a new GetPrivateCancelTransferByIDParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateCancelTransferByIDParamsWithHTTPClient ¶
func NewGetPrivateCancelTransferByIDParamsWithHTTPClient(client *http.Client) *GetPrivateCancelTransferByIDParams
NewGetPrivateCancelTransferByIDParamsWithHTTPClient creates a new GetPrivateCancelTransferByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateCancelTransferByIDParamsWithTimeout ¶
func NewGetPrivateCancelTransferByIDParamsWithTimeout(timeout time.Duration) *GetPrivateCancelTransferByIDParams
NewGetPrivateCancelTransferByIDParamsWithTimeout creates a new GetPrivateCancelTransferByIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateCancelTransferByIDParams) SetContext ¶
func (o *GetPrivateCancelTransferByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) SetCurrency ¶
func (o *GetPrivateCancelTransferByIDParams) SetCurrency(currency string)
SetCurrency adds the currency to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) SetHTTPClient ¶
func (o *GetPrivateCancelTransferByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) SetID ¶
func (o *GetPrivateCancelTransferByIDParams) SetID(id int64)
SetID adds the id to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) SetTfa ¶
func (o *GetPrivateCancelTransferByIDParams) SetTfa(tfa *string)
SetTfa adds the tfa to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) SetTimeout ¶
func (o *GetPrivateCancelTransferByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) WithContext ¶
func (o *GetPrivateCancelTransferByIDParams) WithContext(ctx context.Context) *GetPrivateCancelTransferByIDParams
WithContext adds the context to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) WithCurrency ¶
func (o *GetPrivateCancelTransferByIDParams) WithCurrency(currency string) *GetPrivateCancelTransferByIDParams
WithCurrency adds the currency to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) WithHTTPClient ¶
func (o *GetPrivateCancelTransferByIDParams) WithHTTPClient(client *http.Client) *GetPrivateCancelTransferByIDParams
WithHTTPClient adds the HTTPClient to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) WithID ¶
func (o *GetPrivateCancelTransferByIDParams) WithID(id int64) *GetPrivateCancelTransferByIDParams
WithID adds the id to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) WithTfa ¶
func (o *GetPrivateCancelTransferByIDParams) WithTfa(tfa *string) *GetPrivateCancelTransferByIDParams
WithTfa adds the tfa to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) WithTimeout ¶
func (o *GetPrivateCancelTransferByIDParams) WithTimeout(timeout time.Duration) *GetPrivateCancelTransferByIDParams
WithTimeout adds the timeout to the get private cancel transfer by ID params
func (*GetPrivateCancelTransferByIDParams) WriteToRequest ¶
func (o *GetPrivateCancelTransferByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateCancelTransferByIDReader ¶
type GetPrivateCancelTransferByIDReader struct {
// contains filtered or unexported fields
}
GetPrivateCancelTransferByIDReader is a Reader for the GetPrivateCancelTransferByID structure.
func (*GetPrivateCancelTransferByIDReader) ReadResponse ¶
func (o *GetPrivateCancelTransferByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateChangeSubaccountNameOK ¶
type GetPrivateChangeSubaccountNameOK struct {
Payload *models.OkResponse
}
GetPrivateChangeSubaccountNameOK handles this case with default header values.
ok response
func NewGetPrivateChangeSubaccountNameOK ¶
func NewGetPrivateChangeSubaccountNameOK() *GetPrivateChangeSubaccountNameOK
NewGetPrivateChangeSubaccountNameOK creates a GetPrivateChangeSubaccountNameOK with default headers values
func (*GetPrivateChangeSubaccountNameOK) Error ¶
func (o *GetPrivateChangeSubaccountNameOK) Error() string
func (*GetPrivateChangeSubaccountNameOK) GetPayload ¶
func (o *GetPrivateChangeSubaccountNameOK) GetPayload() *models.OkResponse
type GetPrivateChangeSubaccountNameParams ¶
type GetPrivateChangeSubaccountNameParams struct { /*Name The new user name */ Name string /*Sid The user id for the subaccount */ Sid int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateChangeSubaccountNameParams contains all the parameters to send to the API endpoint for the get private change subaccount name operation typically these are written to a http.Request
func NewGetPrivateChangeSubaccountNameParams ¶
func NewGetPrivateChangeSubaccountNameParams() *GetPrivateChangeSubaccountNameParams
NewGetPrivateChangeSubaccountNameParams creates a new GetPrivateChangeSubaccountNameParams object with the default values initialized.
func NewGetPrivateChangeSubaccountNameParamsWithContext ¶
func NewGetPrivateChangeSubaccountNameParamsWithContext(ctx context.Context) *GetPrivateChangeSubaccountNameParams
NewGetPrivateChangeSubaccountNameParamsWithContext creates a new GetPrivateChangeSubaccountNameParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateChangeSubaccountNameParamsWithHTTPClient ¶
func NewGetPrivateChangeSubaccountNameParamsWithHTTPClient(client *http.Client) *GetPrivateChangeSubaccountNameParams
NewGetPrivateChangeSubaccountNameParamsWithHTTPClient creates a new GetPrivateChangeSubaccountNameParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateChangeSubaccountNameParamsWithTimeout ¶
func NewGetPrivateChangeSubaccountNameParamsWithTimeout(timeout time.Duration) *GetPrivateChangeSubaccountNameParams
NewGetPrivateChangeSubaccountNameParamsWithTimeout creates a new GetPrivateChangeSubaccountNameParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateChangeSubaccountNameParams) SetContext ¶
func (o *GetPrivateChangeSubaccountNameParams) SetContext(ctx context.Context)
SetContext adds the context to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) SetHTTPClient ¶
func (o *GetPrivateChangeSubaccountNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) SetName ¶
func (o *GetPrivateChangeSubaccountNameParams) SetName(name string)
SetName adds the name to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) SetSid ¶
func (o *GetPrivateChangeSubaccountNameParams) SetSid(sid int64)
SetSid adds the sid to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) SetTimeout ¶
func (o *GetPrivateChangeSubaccountNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) WithContext ¶
func (o *GetPrivateChangeSubaccountNameParams) WithContext(ctx context.Context) *GetPrivateChangeSubaccountNameParams
WithContext adds the context to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) WithHTTPClient ¶
func (o *GetPrivateChangeSubaccountNameParams) WithHTTPClient(client *http.Client) *GetPrivateChangeSubaccountNameParams
WithHTTPClient adds the HTTPClient to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) WithName ¶
func (o *GetPrivateChangeSubaccountNameParams) WithName(name string) *GetPrivateChangeSubaccountNameParams
WithName adds the name to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) WithSid ¶
func (o *GetPrivateChangeSubaccountNameParams) WithSid(sid int64) *GetPrivateChangeSubaccountNameParams
WithSid adds the sid to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) WithTimeout ¶
func (o *GetPrivateChangeSubaccountNameParams) WithTimeout(timeout time.Duration) *GetPrivateChangeSubaccountNameParams
WithTimeout adds the timeout to the get private change subaccount name params
func (*GetPrivateChangeSubaccountNameParams) WriteToRequest ¶
func (o *GetPrivateChangeSubaccountNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateChangeSubaccountNameReader ¶
type GetPrivateChangeSubaccountNameReader struct {
// contains filtered or unexported fields
}
GetPrivateChangeSubaccountNameReader is a Reader for the GetPrivateChangeSubaccountName structure.
func (*GetPrivateChangeSubaccountNameReader) ReadResponse ¶
func (o *GetPrivateChangeSubaccountNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateClosePositionOK ¶
type GetPrivateClosePositionOK struct {
Payload *models.PrivateBuyAndSellResponse
}
GetPrivateClosePositionOK handles this case with default header values.
ok response
func NewGetPrivateClosePositionOK ¶
func NewGetPrivateClosePositionOK() *GetPrivateClosePositionOK
NewGetPrivateClosePositionOK creates a GetPrivateClosePositionOK with default headers values
func (*GetPrivateClosePositionOK) Error ¶
func (o *GetPrivateClosePositionOK) Error() string
func (*GetPrivateClosePositionOK) GetPayload ¶
func (o *GetPrivateClosePositionOK) GetPayload() *models.PrivateBuyAndSellResponse
type GetPrivateClosePositionParams ¶
type GetPrivateClosePositionParams struct { /*InstrumentName Instrument name */ InstrumentName string /*Price Optional price for limit order. */ Price *float64 /*Type The order type */ Type string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateClosePositionParams contains all the parameters to send to the API endpoint for the get private close position operation typically these are written to a http.Request
func NewGetPrivateClosePositionParams ¶
func NewGetPrivateClosePositionParams() *GetPrivateClosePositionParams
NewGetPrivateClosePositionParams creates a new GetPrivateClosePositionParams object with the default values initialized.
func NewGetPrivateClosePositionParamsWithContext ¶
func NewGetPrivateClosePositionParamsWithContext(ctx context.Context) *GetPrivateClosePositionParams
NewGetPrivateClosePositionParamsWithContext creates a new GetPrivateClosePositionParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateClosePositionParamsWithHTTPClient ¶
func NewGetPrivateClosePositionParamsWithHTTPClient(client *http.Client) *GetPrivateClosePositionParams
NewGetPrivateClosePositionParamsWithHTTPClient creates a new GetPrivateClosePositionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateClosePositionParamsWithTimeout ¶
func NewGetPrivateClosePositionParamsWithTimeout(timeout time.Duration) *GetPrivateClosePositionParams
NewGetPrivateClosePositionParamsWithTimeout creates a new GetPrivateClosePositionParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateClosePositionParams) SetContext ¶
func (o *GetPrivateClosePositionParams) SetContext(ctx context.Context)
SetContext adds the context to the get private close position params
func (*GetPrivateClosePositionParams) SetHTTPClient ¶
func (o *GetPrivateClosePositionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private close position params
func (*GetPrivateClosePositionParams) SetInstrumentName ¶
func (o *GetPrivateClosePositionParams) SetInstrumentName(instrumentName string)
SetInstrumentName adds the instrumentName to the get private close position params
func (*GetPrivateClosePositionParams) SetPrice ¶
func (o *GetPrivateClosePositionParams) SetPrice(price *float64)
SetPrice adds the price to the get private close position params
func (*GetPrivateClosePositionParams) SetTimeout ¶
func (o *GetPrivateClosePositionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private close position params
func (*GetPrivateClosePositionParams) SetType ¶
func (o *GetPrivateClosePositionParams) SetType(typeVar string)
SetType adds the type to the get private close position params
func (*GetPrivateClosePositionParams) WithContext ¶
func (o *GetPrivateClosePositionParams) WithContext(ctx context.Context) *GetPrivateClosePositionParams
WithContext adds the context to the get private close position params
func (*GetPrivateClosePositionParams) WithHTTPClient ¶
func (o *GetPrivateClosePositionParams) WithHTTPClient(client *http.Client) *GetPrivateClosePositionParams
WithHTTPClient adds the HTTPClient to the get private close position params
func (*GetPrivateClosePositionParams) WithInstrumentName ¶
func (o *GetPrivateClosePositionParams) WithInstrumentName(instrumentName string) *GetPrivateClosePositionParams
WithInstrumentName adds the instrumentName to the get private close position params
func (*GetPrivateClosePositionParams) WithPrice ¶
func (o *GetPrivateClosePositionParams) WithPrice(price *float64) *GetPrivateClosePositionParams
WithPrice adds the price to the get private close position params
func (*GetPrivateClosePositionParams) WithTimeout ¶
func (o *GetPrivateClosePositionParams) WithTimeout(timeout time.Duration) *GetPrivateClosePositionParams
WithTimeout adds the timeout to the get private close position params
func (*GetPrivateClosePositionParams) WithType ¶
func (o *GetPrivateClosePositionParams) WithType(typeVar string) *GetPrivateClosePositionParams
WithType adds the typeVar to the get private close position params
func (*GetPrivateClosePositionParams) WriteToRequest ¶
func (o *GetPrivateClosePositionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateClosePositionReader ¶
type GetPrivateClosePositionReader struct {
// contains filtered or unexported fields
}
GetPrivateClosePositionReader is a Reader for the GetPrivateClosePosition structure.
func (*GetPrivateClosePositionReader) ReadResponse ¶
func (o *GetPrivateClosePositionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateCreateSubaccountOK ¶
type GetPrivateCreateSubaccountOK struct {
Payload *models.PrivateCreateSubaccountResponse
}
GetPrivateCreateSubaccountOK handles this case with default header values.
ok response
func NewGetPrivateCreateSubaccountOK ¶
func NewGetPrivateCreateSubaccountOK() *GetPrivateCreateSubaccountOK
NewGetPrivateCreateSubaccountOK creates a GetPrivateCreateSubaccountOK with default headers values
func (*GetPrivateCreateSubaccountOK) Error ¶
func (o *GetPrivateCreateSubaccountOK) Error() string
func (*GetPrivateCreateSubaccountOK) GetPayload ¶
func (o *GetPrivateCreateSubaccountOK) GetPayload() *models.PrivateCreateSubaccountResponse
type GetPrivateCreateSubaccountParams ¶
type GetPrivateCreateSubaccountParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateCreateSubaccountParams contains all the parameters to send to the API endpoint for the get private create subaccount operation typically these are written to a http.Request
func NewGetPrivateCreateSubaccountParams ¶
func NewGetPrivateCreateSubaccountParams() *GetPrivateCreateSubaccountParams
NewGetPrivateCreateSubaccountParams creates a new GetPrivateCreateSubaccountParams object with the default values initialized.
func NewGetPrivateCreateSubaccountParamsWithContext ¶
func NewGetPrivateCreateSubaccountParamsWithContext(ctx context.Context) *GetPrivateCreateSubaccountParams
NewGetPrivateCreateSubaccountParamsWithContext creates a new GetPrivateCreateSubaccountParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateCreateSubaccountParamsWithHTTPClient ¶
func NewGetPrivateCreateSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateCreateSubaccountParams
NewGetPrivateCreateSubaccountParamsWithHTTPClient creates a new GetPrivateCreateSubaccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateCreateSubaccountParamsWithTimeout ¶
func NewGetPrivateCreateSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateCreateSubaccountParams
NewGetPrivateCreateSubaccountParamsWithTimeout creates a new GetPrivateCreateSubaccountParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateCreateSubaccountParams) SetContext ¶
func (o *GetPrivateCreateSubaccountParams) SetContext(ctx context.Context)
SetContext adds the context to the get private create subaccount params
func (*GetPrivateCreateSubaccountParams) SetHTTPClient ¶
func (o *GetPrivateCreateSubaccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private create subaccount params
func (*GetPrivateCreateSubaccountParams) SetTimeout ¶
func (o *GetPrivateCreateSubaccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private create subaccount params
func (*GetPrivateCreateSubaccountParams) WithContext ¶
func (o *GetPrivateCreateSubaccountParams) WithContext(ctx context.Context) *GetPrivateCreateSubaccountParams
WithContext adds the context to the get private create subaccount params
func (*GetPrivateCreateSubaccountParams) WithHTTPClient ¶
func (o *GetPrivateCreateSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateCreateSubaccountParams
WithHTTPClient adds the HTTPClient to the get private create subaccount params
func (*GetPrivateCreateSubaccountParams) WithTimeout ¶
func (o *GetPrivateCreateSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateCreateSubaccountParams
WithTimeout adds the timeout to the get private create subaccount params
func (*GetPrivateCreateSubaccountParams) WriteToRequest ¶
func (o *GetPrivateCreateSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateCreateSubaccountReader ¶
type GetPrivateCreateSubaccountReader struct {
// contains filtered or unexported fields
}
GetPrivateCreateSubaccountReader is a Reader for the GetPrivateCreateSubaccount structure.
func (*GetPrivateCreateSubaccountReader) ReadResponse ¶
func (o *GetPrivateCreateSubaccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateDisableTfaForSubaccountOK ¶
type GetPrivateDisableTfaForSubaccountOK struct {
Payload *models.OkResponse
}
GetPrivateDisableTfaForSubaccountOK handles this case with default header values.
ok response
func NewGetPrivateDisableTfaForSubaccountOK ¶
func NewGetPrivateDisableTfaForSubaccountOK() *GetPrivateDisableTfaForSubaccountOK
NewGetPrivateDisableTfaForSubaccountOK creates a GetPrivateDisableTfaForSubaccountOK with default headers values
func (*GetPrivateDisableTfaForSubaccountOK) Error ¶
func (o *GetPrivateDisableTfaForSubaccountOK) Error() string
func (*GetPrivateDisableTfaForSubaccountOK) GetPayload ¶
func (o *GetPrivateDisableTfaForSubaccountOK) GetPayload() *models.OkResponse
type GetPrivateDisableTfaForSubaccountParams ¶
type GetPrivateDisableTfaForSubaccountParams struct { /*Sid The user id for the subaccount */ Sid int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateDisableTfaForSubaccountParams contains all the parameters to send to the API endpoint for the get private disable tfa for subaccount operation typically these are written to a http.Request
func NewGetPrivateDisableTfaForSubaccountParams ¶
func NewGetPrivateDisableTfaForSubaccountParams() *GetPrivateDisableTfaForSubaccountParams
NewGetPrivateDisableTfaForSubaccountParams creates a new GetPrivateDisableTfaForSubaccountParams object with the default values initialized.
func NewGetPrivateDisableTfaForSubaccountParamsWithContext ¶
func NewGetPrivateDisableTfaForSubaccountParamsWithContext(ctx context.Context) *GetPrivateDisableTfaForSubaccountParams
NewGetPrivateDisableTfaForSubaccountParamsWithContext creates a new GetPrivateDisableTfaForSubaccountParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateDisableTfaForSubaccountParamsWithHTTPClient ¶
func NewGetPrivateDisableTfaForSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateDisableTfaForSubaccountParams
NewGetPrivateDisableTfaForSubaccountParamsWithHTTPClient creates a new GetPrivateDisableTfaForSubaccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateDisableTfaForSubaccountParamsWithTimeout ¶
func NewGetPrivateDisableTfaForSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateDisableTfaForSubaccountParams
NewGetPrivateDisableTfaForSubaccountParamsWithTimeout creates a new GetPrivateDisableTfaForSubaccountParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateDisableTfaForSubaccountParams) SetContext ¶
func (o *GetPrivateDisableTfaForSubaccountParams) SetContext(ctx context.Context)
SetContext adds the context to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) SetHTTPClient ¶
func (o *GetPrivateDisableTfaForSubaccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) SetSid ¶
func (o *GetPrivateDisableTfaForSubaccountParams) SetSid(sid int64)
SetSid adds the sid to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) SetTimeout ¶
func (o *GetPrivateDisableTfaForSubaccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) WithContext ¶
func (o *GetPrivateDisableTfaForSubaccountParams) WithContext(ctx context.Context) *GetPrivateDisableTfaForSubaccountParams
WithContext adds the context to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) WithHTTPClient ¶
func (o *GetPrivateDisableTfaForSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateDisableTfaForSubaccountParams
WithHTTPClient adds the HTTPClient to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) WithSid ¶
func (o *GetPrivateDisableTfaForSubaccountParams) WithSid(sid int64) *GetPrivateDisableTfaForSubaccountParams
WithSid adds the sid to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) WithTimeout ¶
func (o *GetPrivateDisableTfaForSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateDisableTfaForSubaccountParams
WithTimeout adds the timeout to the get private disable tfa for subaccount params
func (*GetPrivateDisableTfaForSubaccountParams) WriteToRequest ¶
func (o *GetPrivateDisableTfaForSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateDisableTfaForSubaccountReader ¶
type GetPrivateDisableTfaForSubaccountReader struct {
// contains filtered or unexported fields
}
GetPrivateDisableTfaForSubaccountReader is a Reader for the GetPrivateDisableTfaForSubaccount structure.
func (*GetPrivateDisableTfaForSubaccountReader) ReadResponse ¶
func (o *GetPrivateDisableTfaForSubaccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateGetOrderStateBadRequest ¶
type GetPrivateGetOrderStateBadRequest struct {
Payload *models.ErrorMessage
}
GetPrivateGetOrderStateBadRequest handles this case with default header values.
result when used via rest/HTTP
func NewGetPrivateGetOrderStateBadRequest ¶
func NewGetPrivateGetOrderStateBadRequest() *GetPrivateGetOrderStateBadRequest
NewGetPrivateGetOrderStateBadRequest creates a GetPrivateGetOrderStateBadRequest with default headers values
func (*GetPrivateGetOrderStateBadRequest) Error ¶
func (o *GetPrivateGetOrderStateBadRequest) Error() string
func (*GetPrivateGetOrderStateBadRequest) GetPayload ¶
func (o *GetPrivateGetOrderStateBadRequest) GetPayload() *models.ErrorMessage
type GetPrivateGetOrderStateOK ¶
type GetPrivateGetOrderStateOK struct {
Payload *models.PrivateGetOrderStateResponse
}
GetPrivateGetOrderStateOK handles this case with default header values.
ok response
func NewGetPrivateGetOrderStateOK ¶
func NewGetPrivateGetOrderStateOK() *GetPrivateGetOrderStateOK
NewGetPrivateGetOrderStateOK creates a GetPrivateGetOrderStateOK with default headers values
func (*GetPrivateGetOrderStateOK) Error ¶
func (o *GetPrivateGetOrderStateOK) Error() string
func (*GetPrivateGetOrderStateOK) GetPayload ¶
func (o *GetPrivateGetOrderStateOK) GetPayload() *models.PrivateGetOrderStateResponse
type GetPrivateGetOrderStateParams ¶
type GetPrivateGetOrderStateParams struct { /*OrderID The order id */ OrderID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateGetOrderStateParams contains all the parameters to send to the API endpoint for the get private get order state operation typically these are written to a http.Request
func NewGetPrivateGetOrderStateParams ¶
func NewGetPrivateGetOrderStateParams() *GetPrivateGetOrderStateParams
NewGetPrivateGetOrderStateParams creates a new GetPrivateGetOrderStateParams object with the default values initialized.
func NewGetPrivateGetOrderStateParamsWithContext ¶
func NewGetPrivateGetOrderStateParamsWithContext(ctx context.Context) *GetPrivateGetOrderStateParams
NewGetPrivateGetOrderStateParamsWithContext creates a new GetPrivateGetOrderStateParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateGetOrderStateParamsWithHTTPClient ¶
func NewGetPrivateGetOrderStateParamsWithHTTPClient(client *http.Client) *GetPrivateGetOrderStateParams
NewGetPrivateGetOrderStateParamsWithHTTPClient creates a new GetPrivateGetOrderStateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateGetOrderStateParamsWithTimeout ¶
func NewGetPrivateGetOrderStateParamsWithTimeout(timeout time.Duration) *GetPrivateGetOrderStateParams
NewGetPrivateGetOrderStateParamsWithTimeout creates a new GetPrivateGetOrderStateParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateGetOrderStateParams) SetContext ¶
func (o *GetPrivateGetOrderStateParams) SetContext(ctx context.Context)
SetContext adds the context to the get private get order state params
func (*GetPrivateGetOrderStateParams) SetHTTPClient ¶
func (o *GetPrivateGetOrderStateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private get order state params
func (*GetPrivateGetOrderStateParams) SetOrderID ¶
func (o *GetPrivateGetOrderStateParams) SetOrderID(orderID string)
SetOrderID adds the orderId to the get private get order state params
func (*GetPrivateGetOrderStateParams) SetTimeout ¶
func (o *GetPrivateGetOrderStateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private get order state params
func (*GetPrivateGetOrderStateParams) WithContext ¶
func (o *GetPrivateGetOrderStateParams) WithContext(ctx context.Context) *GetPrivateGetOrderStateParams
WithContext adds the context to the get private get order state params
func (*GetPrivateGetOrderStateParams) WithHTTPClient ¶
func (o *GetPrivateGetOrderStateParams) WithHTTPClient(client *http.Client) *GetPrivateGetOrderStateParams
WithHTTPClient adds the HTTPClient to the get private get order state params
func (*GetPrivateGetOrderStateParams) WithOrderID ¶
func (o *GetPrivateGetOrderStateParams) WithOrderID(orderID string) *GetPrivateGetOrderStateParams
WithOrderID adds the orderID to the get private get order state params
func (*GetPrivateGetOrderStateParams) WithTimeout ¶
func (o *GetPrivateGetOrderStateParams) WithTimeout(timeout time.Duration) *GetPrivateGetOrderStateParams
WithTimeout adds the timeout to the get private get order state params
func (*GetPrivateGetOrderStateParams) WriteToRequest ¶
func (o *GetPrivateGetOrderStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateGetOrderStateReader ¶
type GetPrivateGetOrderStateReader struct {
// contains filtered or unexported fields
}
GetPrivateGetOrderStateReader is a Reader for the GetPrivateGetOrderState structure.
func (*GetPrivateGetOrderStateReader) ReadResponse ¶
func (o *GetPrivateGetOrderStateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateGetPositionBadRequest ¶
type GetPrivateGetPositionBadRequest struct {
Payload *models.ErrorMessage
}
GetPrivateGetPositionBadRequest handles this case with default header values.
When some error occurs
func NewGetPrivateGetPositionBadRequest ¶
func NewGetPrivateGetPositionBadRequest() *GetPrivateGetPositionBadRequest
NewGetPrivateGetPositionBadRequest creates a GetPrivateGetPositionBadRequest with default headers values
func (*GetPrivateGetPositionBadRequest) Error ¶
func (o *GetPrivateGetPositionBadRequest) Error() string
func (*GetPrivateGetPositionBadRequest) GetPayload ¶
func (o *GetPrivateGetPositionBadRequest) GetPayload() *models.ErrorMessage
type GetPrivateGetPositionOK ¶
type GetPrivateGetPositionOK struct {
Payload *models.PrivateGetPositionResponse
}
GetPrivateGetPositionOK handles this case with default header values.
When successful returns position
func NewGetPrivateGetPositionOK ¶
func NewGetPrivateGetPositionOK() *GetPrivateGetPositionOK
NewGetPrivateGetPositionOK creates a GetPrivateGetPositionOK with default headers values
func (*GetPrivateGetPositionOK) Error ¶
func (o *GetPrivateGetPositionOK) Error() string
func (*GetPrivateGetPositionOK) GetPayload ¶
func (o *GetPrivateGetPositionOK) GetPayload() *models.PrivateGetPositionResponse
type GetPrivateGetPositionParams ¶
type GetPrivateGetPositionParams struct { /*InstrumentName Instrument name */ InstrumentName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateGetPositionParams contains all the parameters to send to the API endpoint for the get private get position operation typically these are written to a http.Request
func NewGetPrivateGetPositionParams ¶
func NewGetPrivateGetPositionParams() *GetPrivateGetPositionParams
NewGetPrivateGetPositionParams creates a new GetPrivateGetPositionParams object with the default values initialized.
func NewGetPrivateGetPositionParamsWithContext ¶
func NewGetPrivateGetPositionParamsWithContext(ctx context.Context) *GetPrivateGetPositionParams
NewGetPrivateGetPositionParamsWithContext creates a new GetPrivateGetPositionParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateGetPositionParamsWithHTTPClient ¶
func NewGetPrivateGetPositionParamsWithHTTPClient(client *http.Client) *GetPrivateGetPositionParams
NewGetPrivateGetPositionParamsWithHTTPClient creates a new GetPrivateGetPositionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateGetPositionParamsWithTimeout ¶
func NewGetPrivateGetPositionParamsWithTimeout(timeout time.Duration) *GetPrivateGetPositionParams
NewGetPrivateGetPositionParamsWithTimeout creates a new GetPrivateGetPositionParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateGetPositionParams) SetContext ¶
func (o *GetPrivateGetPositionParams) SetContext(ctx context.Context)
SetContext adds the context to the get private get position params
func (*GetPrivateGetPositionParams) SetHTTPClient ¶
func (o *GetPrivateGetPositionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private get position params
func (*GetPrivateGetPositionParams) SetInstrumentName ¶
func (o *GetPrivateGetPositionParams) SetInstrumentName(instrumentName string)
SetInstrumentName adds the instrumentName to the get private get position params
func (*GetPrivateGetPositionParams) SetTimeout ¶
func (o *GetPrivateGetPositionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private get position params
func (*GetPrivateGetPositionParams) WithContext ¶
func (o *GetPrivateGetPositionParams) WithContext(ctx context.Context) *GetPrivateGetPositionParams
WithContext adds the context to the get private get position params
func (*GetPrivateGetPositionParams) WithHTTPClient ¶
func (o *GetPrivateGetPositionParams) WithHTTPClient(client *http.Client) *GetPrivateGetPositionParams
WithHTTPClient adds the HTTPClient to the get private get position params
func (*GetPrivateGetPositionParams) WithInstrumentName ¶
func (o *GetPrivateGetPositionParams) WithInstrumentName(instrumentName string) *GetPrivateGetPositionParams
WithInstrumentName adds the instrumentName to the get private get position params
func (*GetPrivateGetPositionParams) WithTimeout ¶
func (o *GetPrivateGetPositionParams) WithTimeout(timeout time.Duration) *GetPrivateGetPositionParams
WithTimeout adds the timeout to the get private get position params
func (*GetPrivateGetPositionParams) WriteToRequest ¶
func (o *GetPrivateGetPositionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateGetPositionReader ¶
type GetPrivateGetPositionReader struct {
// contains filtered or unexported fields
}
GetPrivateGetPositionReader is a Reader for the GetPrivateGetPosition structure.
func (*GetPrivateGetPositionReader) ReadResponse ¶
func (o *GetPrivateGetPositionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateGetPositionsBadRequest ¶
type GetPrivateGetPositionsBadRequest struct {
Payload *models.ErrorMessage
}
GetPrivateGetPositionsBadRequest handles this case with default header values.
When some error occurs
func NewGetPrivateGetPositionsBadRequest ¶
func NewGetPrivateGetPositionsBadRequest() *GetPrivateGetPositionsBadRequest
NewGetPrivateGetPositionsBadRequest creates a GetPrivateGetPositionsBadRequest with default headers values
func (*GetPrivateGetPositionsBadRequest) Error ¶
func (o *GetPrivateGetPositionsBadRequest) Error() string
func (*GetPrivateGetPositionsBadRequest) GetPayload ¶
func (o *GetPrivateGetPositionsBadRequest) GetPayload() *models.ErrorMessage
type GetPrivateGetPositionsOK ¶
type GetPrivateGetPositionsOK struct {
Payload *models.PrivateGetPositionsResponse
}
GetPrivateGetPositionsOK handles this case with default header values.
When successful returns array of positions
func NewGetPrivateGetPositionsOK ¶
func NewGetPrivateGetPositionsOK() *GetPrivateGetPositionsOK
NewGetPrivateGetPositionsOK creates a GetPrivateGetPositionsOK with default headers values
func (*GetPrivateGetPositionsOK) Error ¶
func (o *GetPrivateGetPositionsOK) Error() string
func (*GetPrivateGetPositionsOK) GetPayload ¶
func (o *GetPrivateGetPositionsOK) GetPayload() *models.PrivateGetPositionsResponse
type GetPrivateGetPositionsParams ¶
type GetPrivateGetPositionsParams struct { /*Currency*/ Currency string /*Kind Kind filter on positions */ Kind *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateGetPositionsParams contains all the parameters to send to the API endpoint for the get private get positions operation typically these are written to a http.Request
func NewGetPrivateGetPositionsParams ¶
func NewGetPrivateGetPositionsParams() *GetPrivateGetPositionsParams
NewGetPrivateGetPositionsParams creates a new GetPrivateGetPositionsParams object with the default values initialized.
func NewGetPrivateGetPositionsParamsWithContext ¶
func NewGetPrivateGetPositionsParamsWithContext(ctx context.Context) *GetPrivateGetPositionsParams
NewGetPrivateGetPositionsParamsWithContext creates a new GetPrivateGetPositionsParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateGetPositionsParamsWithHTTPClient ¶
func NewGetPrivateGetPositionsParamsWithHTTPClient(client *http.Client) *GetPrivateGetPositionsParams
NewGetPrivateGetPositionsParamsWithHTTPClient creates a new GetPrivateGetPositionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateGetPositionsParamsWithTimeout ¶
func NewGetPrivateGetPositionsParamsWithTimeout(timeout time.Duration) *GetPrivateGetPositionsParams
NewGetPrivateGetPositionsParamsWithTimeout creates a new GetPrivateGetPositionsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateGetPositionsParams) SetContext ¶
func (o *GetPrivateGetPositionsParams) SetContext(ctx context.Context)
SetContext adds the context to the get private get positions params
func (*GetPrivateGetPositionsParams) SetCurrency ¶
func (o *GetPrivateGetPositionsParams) SetCurrency(currency string)
SetCurrency adds the currency to the get private get positions params
func (*GetPrivateGetPositionsParams) SetHTTPClient ¶
func (o *GetPrivateGetPositionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private get positions params
func (*GetPrivateGetPositionsParams) SetKind ¶
func (o *GetPrivateGetPositionsParams) SetKind(kind *string)
SetKind adds the kind to the get private get positions params
func (*GetPrivateGetPositionsParams) SetTimeout ¶
func (o *GetPrivateGetPositionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private get positions params
func (*GetPrivateGetPositionsParams) WithContext ¶
func (o *GetPrivateGetPositionsParams) WithContext(ctx context.Context) *GetPrivateGetPositionsParams
WithContext adds the context to the get private get positions params
func (*GetPrivateGetPositionsParams) WithCurrency ¶
func (o *GetPrivateGetPositionsParams) WithCurrency(currency string) *GetPrivateGetPositionsParams
WithCurrency adds the currency to the get private get positions params
func (*GetPrivateGetPositionsParams) WithHTTPClient ¶
func (o *GetPrivateGetPositionsParams) WithHTTPClient(client *http.Client) *GetPrivateGetPositionsParams
WithHTTPClient adds the HTTPClient to the get private get positions params
func (*GetPrivateGetPositionsParams) WithKind ¶
func (o *GetPrivateGetPositionsParams) WithKind(kind *string) *GetPrivateGetPositionsParams
WithKind adds the kind to the get private get positions params
func (*GetPrivateGetPositionsParams) WithTimeout ¶
func (o *GetPrivateGetPositionsParams) WithTimeout(timeout time.Duration) *GetPrivateGetPositionsParams
WithTimeout adds the timeout to the get private get positions params
func (*GetPrivateGetPositionsParams) WriteToRequest ¶
func (o *GetPrivateGetPositionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateGetPositionsReader ¶
type GetPrivateGetPositionsReader struct {
// contains filtered or unexported fields
}
GetPrivateGetPositionsReader is a Reader for the GetPrivateGetPositions structure.
func (*GetPrivateGetPositionsReader) ReadResponse ¶
func (o *GetPrivateGetPositionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateGetSubaccountsOK ¶
type GetPrivateGetSubaccountsOK struct {
Payload *models.PrivateGetSubaccountsResponse
}
GetPrivateGetSubaccountsOK handles this case with default header values.
ok response
func NewGetPrivateGetSubaccountsOK ¶
func NewGetPrivateGetSubaccountsOK() *GetPrivateGetSubaccountsOK
NewGetPrivateGetSubaccountsOK creates a GetPrivateGetSubaccountsOK with default headers values
func (*GetPrivateGetSubaccountsOK) Error ¶
func (o *GetPrivateGetSubaccountsOK) Error() string
func (*GetPrivateGetSubaccountsOK) GetPayload ¶
func (o *GetPrivateGetSubaccountsOK) GetPayload() *models.PrivateGetSubaccountsResponse
type GetPrivateGetSubaccountsParams ¶
type GetPrivateGetSubaccountsParams struct { /*WithPortfolio*/ WithPortfolio *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateGetSubaccountsParams contains all the parameters to send to the API endpoint for the get private get subaccounts operation typically these are written to a http.Request
func NewGetPrivateGetSubaccountsParams ¶
func NewGetPrivateGetSubaccountsParams() *GetPrivateGetSubaccountsParams
NewGetPrivateGetSubaccountsParams creates a new GetPrivateGetSubaccountsParams object with the default values initialized.
func NewGetPrivateGetSubaccountsParamsWithContext ¶
func NewGetPrivateGetSubaccountsParamsWithContext(ctx context.Context) *GetPrivateGetSubaccountsParams
NewGetPrivateGetSubaccountsParamsWithContext creates a new GetPrivateGetSubaccountsParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateGetSubaccountsParamsWithHTTPClient ¶
func NewGetPrivateGetSubaccountsParamsWithHTTPClient(client *http.Client) *GetPrivateGetSubaccountsParams
NewGetPrivateGetSubaccountsParamsWithHTTPClient creates a new GetPrivateGetSubaccountsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateGetSubaccountsParamsWithTimeout ¶
func NewGetPrivateGetSubaccountsParamsWithTimeout(timeout time.Duration) *GetPrivateGetSubaccountsParams
NewGetPrivateGetSubaccountsParamsWithTimeout creates a new GetPrivateGetSubaccountsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateGetSubaccountsParams) SetContext ¶
func (o *GetPrivateGetSubaccountsParams) SetContext(ctx context.Context)
SetContext adds the context to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) SetHTTPClient ¶
func (o *GetPrivateGetSubaccountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) SetTimeout ¶
func (o *GetPrivateGetSubaccountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) SetWithPortfolio ¶
func (o *GetPrivateGetSubaccountsParams) SetWithPortfolio(withPortfolio *bool)
SetWithPortfolio adds the withPortfolio to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) WithContext ¶
func (o *GetPrivateGetSubaccountsParams) WithContext(ctx context.Context) *GetPrivateGetSubaccountsParams
WithContext adds the context to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) WithHTTPClient ¶
func (o *GetPrivateGetSubaccountsParams) WithHTTPClient(client *http.Client) *GetPrivateGetSubaccountsParams
WithHTTPClient adds the HTTPClient to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) WithTimeout ¶
func (o *GetPrivateGetSubaccountsParams) WithTimeout(timeout time.Duration) *GetPrivateGetSubaccountsParams
WithTimeout adds the timeout to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) WithWithPortfolio ¶
func (o *GetPrivateGetSubaccountsParams) WithWithPortfolio(withPortfolio *bool) *GetPrivateGetSubaccountsParams
WithWithPortfolio adds the withPortfolio to the get private get subaccounts params
func (*GetPrivateGetSubaccountsParams) WriteToRequest ¶
func (o *GetPrivateGetSubaccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateGetSubaccountsReader ¶
type GetPrivateGetSubaccountsReader struct {
// contains filtered or unexported fields
}
GetPrivateGetSubaccountsReader is a Reader for the GetPrivateGetSubaccounts structure.
func (*GetPrivateGetSubaccountsReader) ReadResponse ¶
func (o *GetPrivateGetSubaccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateGetSubaccountsUnauthorized ¶
type GetPrivateGetSubaccountsUnauthorized struct {
}GetPrivateGetSubaccountsUnauthorized handles this case with default header values.
not authorised
func NewGetPrivateGetSubaccountsUnauthorized ¶
func NewGetPrivateGetSubaccountsUnauthorized() *GetPrivateGetSubaccountsUnauthorized
NewGetPrivateGetSubaccountsUnauthorized creates a GetPrivateGetSubaccountsUnauthorized with default headers values
func (*GetPrivateGetSubaccountsUnauthorized) Error ¶
func (o *GetPrivateGetSubaccountsUnauthorized) Error() string
func (*GetPrivateGetSubaccountsUnauthorized) GetPayload ¶
func (o *GetPrivateGetSubaccountsUnauthorized) GetPayload() *models.ErrorMessage
type GetPrivateSellOK ¶
type GetPrivateSellOK struct {
Payload *models.PrivateBuyAndSellResponse
}
GetPrivateSellOK handles this case with default header values.
ok response
func NewGetPrivateSellOK ¶
func NewGetPrivateSellOK() *GetPrivateSellOK
NewGetPrivateSellOK creates a GetPrivateSellOK with default headers values
func (*GetPrivateSellOK) Error ¶
func (o *GetPrivateSellOK) Error() string
func (*GetPrivateSellOK) GetPayload ¶
func (o *GetPrivateSellOK) GetPayload() *models.PrivateBuyAndSellResponse
type GetPrivateSellParams ¶
type GetPrivateSellParams struct { /*Advanced Advanced option order type. (Only for options) */ Advanced *string /*Amount It represents the requested order size. For perpetual and futures the amount is in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH */ Amount float64 /*InstrumentName Instrument name */ InstrumentName string /*Label user defined label for the order (maximum 32 characters) */ Label *string /*MaxShow Maximum amount within an order to be shown to other customers, `0` for invisible order */ MaxShow *float64 /*PostOnly <p>If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below the bid.</p> <p>Only valid in combination with time_in_force=`"good_til_cancelled"`</p> */ PostOnly *bool /*Price <p>The order price in base currency (Only for limit and stop_limit orders)</p> <p>When adding order with advanced=usd, the field price should be the option price value in USD.</p> <p>When adding order with advanced=implv, the field price should be a value of implied volatility in percentages. For example, price=100, means implied volatility of 100%</p> */ Price *float64 /*ReduceOnly If `true`, the order is considered reduce-only which is intended to only reduce a current position */ ReduceOnly *bool /*StopPrice Stop price, required for stop limit orders (Only for stop orders) */ StopPrice *float64 /*TimeInForce <p>Specifies how long the order remains in effect. Default `"good_til_cancelled"`</p> <ul> <li>`"good_til_cancelled"` - unfilled order remains in order book until cancelled</li> <li>`"fill_or_kill"` - execute a transaction immediately and completely or not at all</li> <li>`"immediate_or_cancel"` - execute a transaction immediately, and any portion of the order that cannot be immediately filled is cancelled</li> </ul> */ TimeInForce *string /*Trigger Defines trigger type, required for `"stop_limit"` order type */ Trigger *string /*Type The order type, default: `"limit"` */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateSellParams contains all the parameters to send to the API endpoint for the get private sell operation typically these are written to a http.Request
func NewGetPrivateSellParams ¶
func NewGetPrivateSellParams() *GetPrivateSellParams
NewGetPrivateSellParams creates a new GetPrivateSellParams object with the default values initialized.
func NewGetPrivateSellParamsWithContext ¶
func NewGetPrivateSellParamsWithContext(ctx context.Context) *GetPrivateSellParams
NewGetPrivateSellParamsWithContext creates a new GetPrivateSellParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateSellParamsWithHTTPClient ¶
func NewGetPrivateSellParamsWithHTTPClient(client *http.Client) *GetPrivateSellParams
NewGetPrivateSellParamsWithHTTPClient creates a new GetPrivateSellParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateSellParamsWithTimeout ¶
func NewGetPrivateSellParamsWithTimeout(timeout time.Duration) *GetPrivateSellParams
NewGetPrivateSellParamsWithTimeout creates a new GetPrivateSellParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateSellParams) SetAdvanced ¶
func (o *GetPrivateSellParams) SetAdvanced(advanced *string)
SetAdvanced adds the advanced to the get private sell params
func (*GetPrivateSellParams) SetAmount ¶
func (o *GetPrivateSellParams) SetAmount(amount float64)
SetAmount adds the amount to the get private sell params
func (*GetPrivateSellParams) SetContext ¶
func (o *GetPrivateSellParams) SetContext(ctx context.Context)
SetContext adds the context to the get private sell params
func (*GetPrivateSellParams) SetHTTPClient ¶
func (o *GetPrivateSellParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private sell params
func (*GetPrivateSellParams) SetInstrumentName ¶
func (o *GetPrivateSellParams) SetInstrumentName(instrumentName string)
SetInstrumentName adds the instrumentName to the get private sell params
func (*GetPrivateSellParams) SetLabel ¶
func (o *GetPrivateSellParams) SetLabel(label *string)
SetLabel adds the label to the get private sell params
func (*GetPrivateSellParams) SetMaxShow ¶
func (o *GetPrivateSellParams) SetMaxShow(maxShow *float64)
SetMaxShow adds the maxShow to the get private sell params
func (*GetPrivateSellParams) SetPostOnly ¶
func (o *GetPrivateSellParams) SetPostOnly(postOnly *bool)
SetPostOnly adds the postOnly to the get private sell params
func (*GetPrivateSellParams) SetPrice ¶
func (o *GetPrivateSellParams) SetPrice(price *float64)
SetPrice adds the price to the get private sell params
func (*GetPrivateSellParams) SetReduceOnly ¶
func (o *GetPrivateSellParams) SetReduceOnly(reduceOnly *bool)
SetReduceOnly adds the reduceOnly to the get private sell params
func (*GetPrivateSellParams) SetStopPrice ¶
func (o *GetPrivateSellParams) SetStopPrice(stopPrice *float64)
SetStopPrice adds the stopPrice to the get private sell params
func (*GetPrivateSellParams) SetTimeInForce ¶
func (o *GetPrivateSellParams) SetTimeInForce(timeInForce *string)
SetTimeInForce adds the timeInForce to the get private sell params
func (*GetPrivateSellParams) SetTimeout ¶
func (o *GetPrivateSellParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private sell params
func (*GetPrivateSellParams) SetTrigger ¶
func (o *GetPrivateSellParams) SetTrigger(trigger *string)
SetTrigger adds the trigger to the get private sell params
func (*GetPrivateSellParams) SetType ¶
func (o *GetPrivateSellParams) SetType(typeVar *string)
SetType adds the type to the get private sell params
func (*GetPrivateSellParams) WithAdvanced ¶
func (o *GetPrivateSellParams) WithAdvanced(advanced *string) *GetPrivateSellParams
WithAdvanced adds the advanced to the get private sell params
func (*GetPrivateSellParams) WithAmount ¶
func (o *GetPrivateSellParams) WithAmount(amount float64) *GetPrivateSellParams
WithAmount adds the amount to the get private sell params
func (*GetPrivateSellParams) WithContext ¶
func (o *GetPrivateSellParams) WithContext(ctx context.Context) *GetPrivateSellParams
WithContext adds the context to the get private sell params
func (*GetPrivateSellParams) WithHTTPClient ¶
func (o *GetPrivateSellParams) WithHTTPClient(client *http.Client) *GetPrivateSellParams
WithHTTPClient adds the HTTPClient to the get private sell params
func (*GetPrivateSellParams) WithInstrumentName ¶
func (o *GetPrivateSellParams) WithInstrumentName(instrumentName string) *GetPrivateSellParams
WithInstrumentName adds the instrumentName to the get private sell params
func (*GetPrivateSellParams) WithLabel ¶
func (o *GetPrivateSellParams) WithLabel(label *string) *GetPrivateSellParams
WithLabel adds the label to the get private sell params
func (*GetPrivateSellParams) WithMaxShow ¶
func (o *GetPrivateSellParams) WithMaxShow(maxShow *float64) *GetPrivateSellParams
WithMaxShow adds the maxShow to the get private sell params
func (*GetPrivateSellParams) WithPostOnly ¶
func (o *GetPrivateSellParams) WithPostOnly(postOnly *bool) *GetPrivateSellParams
WithPostOnly adds the postOnly to the get private sell params
func (*GetPrivateSellParams) WithPrice ¶
func (o *GetPrivateSellParams) WithPrice(price *float64) *GetPrivateSellParams
WithPrice adds the price to the get private sell params
func (*GetPrivateSellParams) WithReduceOnly ¶
func (o *GetPrivateSellParams) WithReduceOnly(reduceOnly *bool) *GetPrivateSellParams
WithReduceOnly adds the reduceOnly to the get private sell params
func (*GetPrivateSellParams) WithStopPrice ¶
func (o *GetPrivateSellParams) WithStopPrice(stopPrice *float64) *GetPrivateSellParams
WithStopPrice adds the stopPrice to the get private sell params
func (*GetPrivateSellParams) WithTimeInForce ¶
func (o *GetPrivateSellParams) WithTimeInForce(timeInForce *string) *GetPrivateSellParams
WithTimeInForce adds the timeInForce to the get private sell params
func (*GetPrivateSellParams) WithTimeout ¶
func (o *GetPrivateSellParams) WithTimeout(timeout time.Duration) *GetPrivateSellParams
WithTimeout adds the timeout to the get private sell params
func (*GetPrivateSellParams) WithTrigger ¶
func (o *GetPrivateSellParams) WithTrigger(trigger *string) *GetPrivateSellParams
WithTrigger adds the trigger to the get private sell params
func (*GetPrivateSellParams) WithType ¶
func (o *GetPrivateSellParams) WithType(typeVar *string) *GetPrivateSellParams
WithType adds the typeVar to the get private sell params
func (*GetPrivateSellParams) WriteToRequest ¶
func (o *GetPrivateSellParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateSellReader ¶
type GetPrivateSellReader struct {
// contains filtered or unexported fields
}
GetPrivateSellReader is a Reader for the GetPrivateSell structure.
func (*GetPrivateSellReader) ReadResponse ¶
func (o *GetPrivateSellReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateSetEmailForSubaccountOK ¶
type GetPrivateSetEmailForSubaccountOK struct {
Payload *models.OkResponse
}
GetPrivateSetEmailForSubaccountOK handles this case with default header values.
ok response
func NewGetPrivateSetEmailForSubaccountOK ¶
func NewGetPrivateSetEmailForSubaccountOK() *GetPrivateSetEmailForSubaccountOK
NewGetPrivateSetEmailForSubaccountOK creates a GetPrivateSetEmailForSubaccountOK with default headers values
func (*GetPrivateSetEmailForSubaccountOK) Error ¶
func (o *GetPrivateSetEmailForSubaccountOK) Error() string
func (*GetPrivateSetEmailForSubaccountOK) GetPayload ¶
func (o *GetPrivateSetEmailForSubaccountOK) GetPayload() *models.OkResponse
type GetPrivateSetEmailForSubaccountParams ¶
type GetPrivateSetEmailForSubaccountParams struct { /*Email The email address for the subaccount */ Email string /*Sid The user id for the subaccount */ Sid int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateSetEmailForSubaccountParams contains all the parameters to send to the API endpoint for the get private set email for subaccount operation typically these are written to a http.Request
func NewGetPrivateSetEmailForSubaccountParams ¶
func NewGetPrivateSetEmailForSubaccountParams() *GetPrivateSetEmailForSubaccountParams
NewGetPrivateSetEmailForSubaccountParams creates a new GetPrivateSetEmailForSubaccountParams object with the default values initialized.
func NewGetPrivateSetEmailForSubaccountParamsWithContext ¶
func NewGetPrivateSetEmailForSubaccountParamsWithContext(ctx context.Context) *GetPrivateSetEmailForSubaccountParams
NewGetPrivateSetEmailForSubaccountParamsWithContext creates a new GetPrivateSetEmailForSubaccountParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateSetEmailForSubaccountParamsWithHTTPClient ¶
func NewGetPrivateSetEmailForSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateSetEmailForSubaccountParams
NewGetPrivateSetEmailForSubaccountParamsWithHTTPClient creates a new GetPrivateSetEmailForSubaccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateSetEmailForSubaccountParamsWithTimeout ¶
func NewGetPrivateSetEmailForSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateSetEmailForSubaccountParams
NewGetPrivateSetEmailForSubaccountParamsWithTimeout creates a new GetPrivateSetEmailForSubaccountParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateSetEmailForSubaccountParams) SetContext ¶
func (o *GetPrivateSetEmailForSubaccountParams) SetContext(ctx context.Context)
SetContext adds the context to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) SetEmail ¶
func (o *GetPrivateSetEmailForSubaccountParams) SetEmail(email string)
SetEmail adds the email to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) SetHTTPClient ¶
func (o *GetPrivateSetEmailForSubaccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) SetSid ¶
func (o *GetPrivateSetEmailForSubaccountParams) SetSid(sid int64)
SetSid adds the sid to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) SetTimeout ¶
func (o *GetPrivateSetEmailForSubaccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) WithContext ¶
func (o *GetPrivateSetEmailForSubaccountParams) WithContext(ctx context.Context) *GetPrivateSetEmailForSubaccountParams
WithContext adds the context to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) WithEmail ¶
func (o *GetPrivateSetEmailForSubaccountParams) WithEmail(email string) *GetPrivateSetEmailForSubaccountParams
WithEmail adds the email to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) WithHTTPClient ¶
func (o *GetPrivateSetEmailForSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateSetEmailForSubaccountParams
WithHTTPClient adds the HTTPClient to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) WithSid ¶
func (o *GetPrivateSetEmailForSubaccountParams) WithSid(sid int64) *GetPrivateSetEmailForSubaccountParams
WithSid adds the sid to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) WithTimeout ¶
func (o *GetPrivateSetEmailForSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateSetEmailForSubaccountParams
WithTimeout adds the timeout to the get private set email for subaccount params
func (*GetPrivateSetEmailForSubaccountParams) WriteToRequest ¶
func (o *GetPrivateSetEmailForSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateSetEmailForSubaccountReader ¶
type GetPrivateSetEmailForSubaccountReader struct {
// contains filtered or unexported fields
}
GetPrivateSetEmailForSubaccountReader is a Reader for the GetPrivateSetEmailForSubaccount structure.
func (*GetPrivateSetEmailForSubaccountReader) ReadResponse ¶
func (o *GetPrivateSetEmailForSubaccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateSetPasswordForSubaccountOK ¶
type GetPrivateSetPasswordForSubaccountOK struct {
Payload *models.OkResponse
}
GetPrivateSetPasswordForSubaccountOK handles this case with default header values.
ok response
func NewGetPrivateSetPasswordForSubaccountOK ¶
func NewGetPrivateSetPasswordForSubaccountOK() *GetPrivateSetPasswordForSubaccountOK
NewGetPrivateSetPasswordForSubaccountOK creates a GetPrivateSetPasswordForSubaccountOK with default headers values
func (*GetPrivateSetPasswordForSubaccountOK) Error ¶
func (o *GetPrivateSetPasswordForSubaccountOK) Error() string
func (*GetPrivateSetPasswordForSubaccountOK) GetPayload ¶
func (o *GetPrivateSetPasswordForSubaccountOK) GetPayload() *models.OkResponse
type GetPrivateSetPasswordForSubaccountParams ¶
type GetPrivateSetPasswordForSubaccountParams struct { /*Password The password for the subaccount */ Password string /*Sid The user id for the subaccount */ Sid int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateSetPasswordForSubaccountParams contains all the parameters to send to the API endpoint for the get private set password for subaccount operation typically these are written to a http.Request
func NewGetPrivateSetPasswordForSubaccountParams ¶
func NewGetPrivateSetPasswordForSubaccountParams() *GetPrivateSetPasswordForSubaccountParams
NewGetPrivateSetPasswordForSubaccountParams creates a new GetPrivateSetPasswordForSubaccountParams object with the default values initialized.
func NewGetPrivateSetPasswordForSubaccountParamsWithContext ¶
func NewGetPrivateSetPasswordForSubaccountParamsWithContext(ctx context.Context) *GetPrivateSetPasswordForSubaccountParams
NewGetPrivateSetPasswordForSubaccountParamsWithContext creates a new GetPrivateSetPasswordForSubaccountParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateSetPasswordForSubaccountParamsWithHTTPClient ¶
func NewGetPrivateSetPasswordForSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateSetPasswordForSubaccountParams
NewGetPrivateSetPasswordForSubaccountParamsWithHTTPClient creates a new GetPrivateSetPasswordForSubaccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateSetPasswordForSubaccountParamsWithTimeout ¶
func NewGetPrivateSetPasswordForSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateSetPasswordForSubaccountParams
NewGetPrivateSetPasswordForSubaccountParamsWithTimeout creates a new GetPrivateSetPasswordForSubaccountParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateSetPasswordForSubaccountParams) SetContext ¶
func (o *GetPrivateSetPasswordForSubaccountParams) SetContext(ctx context.Context)
SetContext adds the context to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) SetHTTPClient ¶
func (o *GetPrivateSetPasswordForSubaccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) SetPassword ¶
func (o *GetPrivateSetPasswordForSubaccountParams) SetPassword(password string)
SetPassword adds the password to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) SetSid ¶
func (o *GetPrivateSetPasswordForSubaccountParams) SetSid(sid int64)
SetSid adds the sid to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) SetTimeout ¶
func (o *GetPrivateSetPasswordForSubaccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) WithContext ¶
func (o *GetPrivateSetPasswordForSubaccountParams) WithContext(ctx context.Context) *GetPrivateSetPasswordForSubaccountParams
WithContext adds the context to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) WithHTTPClient ¶
func (o *GetPrivateSetPasswordForSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateSetPasswordForSubaccountParams
WithHTTPClient adds the HTTPClient to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) WithPassword ¶
func (o *GetPrivateSetPasswordForSubaccountParams) WithPassword(password string) *GetPrivateSetPasswordForSubaccountParams
WithPassword adds the password to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) WithSid ¶
func (o *GetPrivateSetPasswordForSubaccountParams) WithSid(sid int64) *GetPrivateSetPasswordForSubaccountParams
WithSid adds the sid to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) WithTimeout ¶
func (o *GetPrivateSetPasswordForSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateSetPasswordForSubaccountParams
WithTimeout adds the timeout to the get private set password for subaccount params
func (*GetPrivateSetPasswordForSubaccountParams) WriteToRequest ¶
func (o *GetPrivateSetPasswordForSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateSetPasswordForSubaccountReader ¶
type GetPrivateSetPasswordForSubaccountReader struct {
// contains filtered or unexported fields
}
GetPrivateSetPasswordForSubaccountReader is a Reader for the GetPrivateSetPasswordForSubaccount structure.
func (*GetPrivateSetPasswordForSubaccountReader) ReadResponse ¶
func (o *GetPrivateSetPasswordForSubaccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateSubmitTransferToSubaccountOK ¶
type GetPrivateSubmitTransferToSubaccountOK struct {
Payload *models.PrivateSubmitTransferResponse
}
GetPrivateSubmitTransferToSubaccountOK handles this case with default header values.
ok response
func NewGetPrivateSubmitTransferToSubaccountOK ¶
func NewGetPrivateSubmitTransferToSubaccountOK() *GetPrivateSubmitTransferToSubaccountOK
NewGetPrivateSubmitTransferToSubaccountOK creates a GetPrivateSubmitTransferToSubaccountOK with default headers values
func (*GetPrivateSubmitTransferToSubaccountOK) Error ¶
func (o *GetPrivateSubmitTransferToSubaccountOK) Error() string
func (*GetPrivateSubmitTransferToSubaccountOK) GetPayload ¶
func (o *GetPrivateSubmitTransferToSubaccountOK) GetPayload() *models.PrivateSubmitTransferResponse
type GetPrivateSubmitTransferToSubaccountParams ¶
type GetPrivateSubmitTransferToSubaccountParams struct { /*Amount Amount of funds to be transferred */ Amount float64 /*Currency The currency symbol */ Currency string /*Destination Id of destination subaccount */ Destination int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateSubmitTransferToSubaccountParams contains all the parameters to send to the API endpoint for the get private submit transfer to subaccount operation typically these are written to a http.Request
func NewGetPrivateSubmitTransferToSubaccountParams ¶
func NewGetPrivateSubmitTransferToSubaccountParams() *GetPrivateSubmitTransferToSubaccountParams
NewGetPrivateSubmitTransferToSubaccountParams creates a new GetPrivateSubmitTransferToSubaccountParams object with the default values initialized.
func NewGetPrivateSubmitTransferToSubaccountParamsWithContext ¶
func NewGetPrivateSubmitTransferToSubaccountParamsWithContext(ctx context.Context) *GetPrivateSubmitTransferToSubaccountParams
NewGetPrivateSubmitTransferToSubaccountParamsWithContext creates a new GetPrivateSubmitTransferToSubaccountParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateSubmitTransferToSubaccountParamsWithHTTPClient ¶
func NewGetPrivateSubmitTransferToSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToSubaccountParams
NewGetPrivateSubmitTransferToSubaccountParamsWithHTTPClient creates a new GetPrivateSubmitTransferToSubaccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateSubmitTransferToSubaccountParamsWithTimeout ¶
func NewGetPrivateSubmitTransferToSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToSubaccountParams
NewGetPrivateSubmitTransferToSubaccountParamsWithTimeout creates a new GetPrivateSubmitTransferToSubaccountParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateSubmitTransferToSubaccountParams) SetAmount ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) SetAmount(amount float64)
SetAmount adds the amount to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) SetContext ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) SetContext(ctx context.Context)
SetContext adds the context to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) SetCurrency ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) SetCurrency(currency string)
SetCurrency adds the currency to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) SetDestination ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) SetDestination(destination int64)
SetDestination adds the destination to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) SetHTTPClient ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) SetTimeout ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) WithAmount ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) WithAmount(amount float64) *GetPrivateSubmitTransferToSubaccountParams
WithAmount adds the amount to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) WithContext ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) WithContext(ctx context.Context) *GetPrivateSubmitTransferToSubaccountParams
WithContext adds the context to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) WithCurrency ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) WithCurrency(currency string) *GetPrivateSubmitTransferToSubaccountParams
WithCurrency adds the currency to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) WithDestination ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) WithDestination(destination int64) *GetPrivateSubmitTransferToSubaccountParams
WithDestination adds the destination to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) WithHTTPClient ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToSubaccountParams
WithHTTPClient adds the HTTPClient to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) WithTimeout ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToSubaccountParams
WithTimeout adds the timeout to the get private submit transfer to subaccount params
func (*GetPrivateSubmitTransferToSubaccountParams) WriteToRequest ¶
func (o *GetPrivateSubmitTransferToSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateSubmitTransferToSubaccountReader ¶
type GetPrivateSubmitTransferToSubaccountReader struct {
// contains filtered or unexported fields
}
GetPrivateSubmitTransferToSubaccountReader is a Reader for the GetPrivateSubmitTransferToSubaccount structure.
func (*GetPrivateSubmitTransferToSubaccountReader) ReadResponse ¶
func (o *GetPrivateSubmitTransferToSubaccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateSubmitTransferToUserOK ¶
type GetPrivateSubmitTransferToUserOK struct {
Payload *models.PrivateSubmitTransferResponse
}
GetPrivateSubmitTransferToUserOK handles this case with default header values.
GetPrivateSubmitTransferToUserOK get private submit transfer to user o k
func NewGetPrivateSubmitTransferToUserOK ¶
func NewGetPrivateSubmitTransferToUserOK() *GetPrivateSubmitTransferToUserOK
NewGetPrivateSubmitTransferToUserOK creates a GetPrivateSubmitTransferToUserOK with default headers values
func (*GetPrivateSubmitTransferToUserOK) Error ¶
func (o *GetPrivateSubmitTransferToUserOK) Error() string
func (*GetPrivateSubmitTransferToUserOK) GetPayload ¶
func (o *GetPrivateSubmitTransferToUserOK) GetPayload() *models.PrivateSubmitTransferResponse
type GetPrivateSubmitTransferToUserParams ¶
type GetPrivateSubmitTransferToUserParams struct { /*Amount Amount of funds to be transferred */ Amount float64 /*Currency The currency symbol */ Currency string /*Destination Destination address from address book */ Destination string /*Tfa TFA code, required when TFA is enabled for current account */ Tfa *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateSubmitTransferToUserParams contains all the parameters to send to the API endpoint for the get private submit transfer to user operation typically these are written to a http.Request
func NewGetPrivateSubmitTransferToUserParams ¶
func NewGetPrivateSubmitTransferToUserParams() *GetPrivateSubmitTransferToUserParams
NewGetPrivateSubmitTransferToUserParams creates a new GetPrivateSubmitTransferToUserParams object with the default values initialized.
func NewGetPrivateSubmitTransferToUserParamsWithContext ¶
func NewGetPrivateSubmitTransferToUserParamsWithContext(ctx context.Context) *GetPrivateSubmitTransferToUserParams
NewGetPrivateSubmitTransferToUserParamsWithContext creates a new GetPrivateSubmitTransferToUserParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateSubmitTransferToUserParamsWithHTTPClient ¶
func NewGetPrivateSubmitTransferToUserParamsWithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToUserParams
NewGetPrivateSubmitTransferToUserParamsWithHTTPClient creates a new GetPrivateSubmitTransferToUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateSubmitTransferToUserParamsWithTimeout ¶
func NewGetPrivateSubmitTransferToUserParamsWithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToUserParams
NewGetPrivateSubmitTransferToUserParamsWithTimeout creates a new GetPrivateSubmitTransferToUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateSubmitTransferToUserParams) SetAmount ¶
func (o *GetPrivateSubmitTransferToUserParams) SetAmount(amount float64)
SetAmount adds the amount to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) SetContext ¶
func (o *GetPrivateSubmitTransferToUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) SetCurrency ¶
func (o *GetPrivateSubmitTransferToUserParams) SetCurrency(currency string)
SetCurrency adds the currency to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) SetDestination ¶
func (o *GetPrivateSubmitTransferToUserParams) SetDestination(destination string)
SetDestination adds the destination to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) SetHTTPClient ¶
func (o *GetPrivateSubmitTransferToUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) SetTfa ¶
func (o *GetPrivateSubmitTransferToUserParams) SetTfa(tfa *string)
SetTfa adds the tfa to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) SetTimeout ¶
func (o *GetPrivateSubmitTransferToUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WithAmount ¶
func (o *GetPrivateSubmitTransferToUserParams) WithAmount(amount float64) *GetPrivateSubmitTransferToUserParams
WithAmount adds the amount to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WithContext ¶
func (o *GetPrivateSubmitTransferToUserParams) WithContext(ctx context.Context) *GetPrivateSubmitTransferToUserParams
WithContext adds the context to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WithCurrency ¶
func (o *GetPrivateSubmitTransferToUserParams) WithCurrency(currency string) *GetPrivateSubmitTransferToUserParams
WithCurrency adds the currency to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WithDestination ¶
func (o *GetPrivateSubmitTransferToUserParams) WithDestination(destination string) *GetPrivateSubmitTransferToUserParams
WithDestination adds the destination to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WithHTTPClient ¶
func (o *GetPrivateSubmitTransferToUserParams) WithHTTPClient(client *http.Client) *GetPrivateSubmitTransferToUserParams
WithHTTPClient adds the HTTPClient to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WithTfa ¶
func (o *GetPrivateSubmitTransferToUserParams) WithTfa(tfa *string) *GetPrivateSubmitTransferToUserParams
WithTfa adds the tfa to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WithTimeout ¶
func (o *GetPrivateSubmitTransferToUserParams) WithTimeout(timeout time.Duration) *GetPrivateSubmitTransferToUserParams
WithTimeout adds the timeout to the get private submit transfer to user params
func (*GetPrivateSubmitTransferToUserParams) WriteToRequest ¶
func (o *GetPrivateSubmitTransferToUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateSubmitTransferToUserReader ¶
type GetPrivateSubmitTransferToUserReader struct {
// contains filtered or unexported fields
}
GetPrivateSubmitTransferToUserReader is a Reader for the GetPrivateSubmitTransferToUser structure.
func (*GetPrivateSubmitTransferToUserReader) ReadResponse ¶
func (o *GetPrivateSubmitTransferToUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateSubscribeOK ¶
type GetPrivateSubscribeOK struct {
Payload *models.PrivateSubscribeResponse
}
GetPrivateSubscribeOK handles this case with default header values.
ok response
func NewGetPrivateSubscribeOK ¶
func NewGetPrivateSubscribeOK() *GetPrivateSubscribeOK
NewGetPrivateSubscribeOK creates a GetPrivateSubscribeOK with default headers values
func (*GetPrivateSubscribeOK) Error ¶
func (o *GetPrivateSubscribeOK) Error() string
func (*GetPrivateSubscribeOK) GetPayload ¶
func (o *GetPrivateSubscribeOK) GetPayload() *models.PrivateSubscribeResponse
type GetPrivateSubscribeParams ¶
type GetPrivateSubscribeParams struct { /*Channels A list of channels to subscribe to. */ Channels []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateSubscribeParams contains all the parameters to send to the API endpoint for the get private subscribe operation typically these are written to a http.Request
func NewGetPrivateSubscribeParams ¶
func NewGetPrivateSubscribeParams() *GetPrivateSubscribeParams
NewGetPrivateSubscribeParams creates a new GetPrivateSubscribeParams object with the default values initialized.
func NewGetPrivateSubscribeParamsWithContext ¶
func NewGetPrivateSubscribeParamsWithContext(ctx context.Context) *GetPrivateSubscribeParams
NewGetPrivateSubscribeParamsWithContext creates a new GetPrivateSubscribeParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateSubscribeParamsWithHTTPClient ¶
func NewGetPrivateSubscribeParamsWithHTTPClient(client *http.Client) *GetPrivateSubscribeParams
NewGetPrivateSubscribeParamsWithHTTPClient creates a new GetPrivateSubscribeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateSubscribeParamsWithTimeout ¶
func NewGetPrivateSubscribeParamsWithTimeout(timeout time.Duration) *GetPrivateSubscribeParams
NewGetPrivateSubscribeParamsWithTimeout creates a new GetPrivateSubscribeParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateSubscribeParams) SetChannels ¶
func (o *GetPrivateSubscribeParams) SetChannels(channels []string)
SetChannels adds the channels to the get private subscribe params
func (*GetPrivateSubscribeParams) SetContext ¶
func (o *GetPrivateSubscribeParams) SetContext(ctx context.Context)
SetContext adds the context to the get private subscribe params
func (*GetPrivateSubscribeParams) SetHTTPClient ¶
func (o *GetPrivateSubscribeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private subscribe params
func (*GetPrivateSubscribeParams) SetTimeout ¶
func (o *GetPrivateSubscribeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private subscribe params
func (*GetPrivateSubscribeParams) WithChannels ¶
func (o *GetPrivateSubscribeParams) WithChannels(channels []string) *GetPrivateSubscribeParams
WithChannels adds the channels to the get private subscribe params
func (*GetPrivateSubscribeParams) WithContext ¶
func (o *GetPrivateSubscribeParams) WithContext(ctx context.Context) *GetPrivateSubscribeParams
WithContext adds the context to the get private subscribe params
func (*GetPrivateSubscribeParams) WithHTTPClient ¶
func (o *GetPrivateSubscribeParams) WithHTTPClient(client *http.Client) *GetPrivateSubscribeParams
WithHTTPClient adds the HTTPClient to the get private subscribe params
func (*GetPrivateSubscribeParams) WithTimeout ¶
func (o *GetPrivateSubscribeParams) WithTimeout(timeout time.Duration) *GetPrivateSubscribeParams
WithTimeout adds the timeout to the get private subscribe params
func (*GetPrivateSubscribeParams) WriteToRequest ¶
func (o *GetPrivateSubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateSubscribeReader ¶
type GetPrivateSubscribeReader struct {
// contains filtered or unexported fields
}
GetPrivateSubscribeReader is a Reader for the GetPrivateSubscribe structure.
func (*GetPrivateSubscribeReader) ReadResponse ¶
func (o *GetPrivateSubscribeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateSubscribeUnauthorized ¶
type GetPrivateSubscribeUnauthorized struct {
}GetPrivateSubscribeUnauthorized handles this case with default header values.
not authorised
func NewGetPrivateSubscribeUnauthorized ¶
func NewGetPrivateSubscribeUnauthorized() *GetPrivateSubscribeUnauthorized
NewGetPrivateSubscribeUnauthorized creates a GetPrivateSubscribeUnauthorized with default headers values
func (*GetPrivateSubscribeUnauthorized) Error ¶
func (o *GetPrivateSubscribeUnauthorized) Error() string
func (*GetPrivateSubscribeUnauthorized) GetPayload ¶
func (o *GetPrivateSubscribeUnauthorized) GetPayload() *models.ErrorMessage
type GetPrivateToggleNotificationsFromSubaccountOK ¶
type GetPrivateToggleNotificationsFromSubaccountOK struct {
Payload *models.OkResponse
}
GetPrivateToggleNotificationsFromSubaccountOK handles this case with default header values.
ok response
func NewGetPrivateToggleNotificationsFromSubaccountOK ¶
func NewGetPrivateToggleNotificationsFromSubaccountOK() *GetPrivateToggleNotificationsFromSubaccountOK
NewGetPrivateToggleNotificationsFromSubaccountOK creates a GetPrivateToggleNotificationsFromSubaccountOK with default headers values
func (*GetPrivateToggleNotificationsFromSubaccountOK) Error ¶
func (o *GetPrivateToggleNotificationsFromSubaccountOK) Error() string
func (*GetPrivateToggleNotificationsFromSubaccountOK) GetPayload ¶
func (o *GetPrivateToggleNotificationsFromSubaccountOK) GetPayload() *models.OkResponse
type GetPrivateToggleNotificationsFromSubaccountParams ¶
type GetPrivateToggleNotificationsFromSubaccountParams struct { /*Sid The user id for the subaccount */ Sid int64 /*State enable (`true`) or disable (`false`) notifications */ State bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateToggleNotificationsFromSubaccountParams contains all the parameters to send to the API endpoint for the get private toggle notifications from subaccount operation typically these are written to a http.Request
func NewGetPrivateToggleNotificationsFromSubaccountParams ¶
func NewGetPrivateToggleNotificationsFromSubaccountParams() *GetPrivateToggleNotificationsFromSubaccountParams
NewGetPrivateToggleNotificationsFromSubaccountParams creates a new GetPrivateToggleNotificationsFromSubaccountParams object with the default values initialized.
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithContext ¶
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithContext(ctx context.Context) *GetPrivateToggleNotificationsFromSubaccountParams
NewGetPrivateToggleNotificationsFromSubaccountParamsWithContext creates a new GetPrivateToggleNotificationsFromSubaccountParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithHTTPClient ¶
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateToggleNotificationsFromSubaccountParams
NewGetPrivateToggleNotificationsFromSubaccountParamsWithHTTPClient creates a new GetPrivateToggleNotificationsFromSubaccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithTimeout ¶
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateToggleNotificationsFromSubaccountParams
NewGetPrivateToggleNotificationsFromSubaccountParamsWithTimeout creates a new GetPrivateToggleNotificationsFromSubaccountParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateToggleNotificationsFromSubaccountParams) SetContext ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetContext(ctx context.Context)
SetContext adds the context to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) SetHTTPClient ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) SetSid ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetSid(sid int64)
SetSid adds the sid to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) SetState ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetState(state bool)
SetState adds the state to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) SetTimeout ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) WithContext ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithContext(ctx context.Context) *GetPrivateToggleNotificationsFromSubaccountParams
WithContext adds the context to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) WithHTTPClient ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateToggleNotificationsFromSubaccountParams
WithHTTPClient adds the HTTPClient to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) WithSid ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithSid(sid int64) *GetPrivateToggleNotificationsFromSubaccountParams
WithSid adds the sid to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) WithState ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithState(state bool) *GetPrivateToggleNotificationsFromSubaccountParams
WithState adds the state to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) WithTimeout ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateToggleNotificationsFromSubaccountParams
WithTimeout adds the timeout to the get private toggle notifications from subaccount params
func (*GetPrivateToggleNotificationsFromSubaccountParams) WriteToRequest ¶
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateToggleNotificationsFromSubaccountReader ¶
type GetPrivateToggleNotificationsFromSubaccountReader struct {
// contains filtered or unexported fields
}
GetPrivateToggleNotificationsFromSubaccountReader is a Reader for the GetPrivateToggleNotificationsFromSubaccount structure.
func (*GetPrivateToggleNotificationsFromSubaccountReader) ReadResponse ¶
func (o *GetPrivateToggleNotificationsFromSubaccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateToggleSubaccountLoginOK ¶
type GetPrivateToggleSubaccountLoginOK struct {
Payload *models.OkResponse
}
GetPrivateToggleSubaccountLoginOK handles this case with default header values.
ok response
func NewGetPrivateToggleSubaccountLoginOK ¶
func NewGetPrivateToggleSubaccountLoginOK() *GetPrivateToggleSubaccountLoginOK
NewGetPrivateToggleSubaccountLoginOK creates a GetPrivateToggleSubaccountLoginOK with default headers values
func (*GetPrivateToggleSubaccountLoginOK) Error ¶
func (o *GetPrivateToggleSubaccountLoginOK) Error() string
func (*GetPrivateToggleSubaccountLoginOK) GetPayload ¶
func (o *GetPrivateToggleSubaccountLoginOK) GetPayload() *models.OkResponse
type GetPrivateToggleSubaccountLoginParams ¶
type GetPrivateToggleSubaccountLoginParams struct { /*Sid The user id for the subaccount */ Sid int64 /*State enable or disable login. */ State string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateToggleSubaccountLoginParams contains all the parameters to send to the API endpoint for the get private toggle subaccount login operation typically these are written to a http.Request
func NewGetPrivateToggleSubaccountLoginParams ¶
func NewGetPrivateToggleSubaccountLoginParams() *GetPrivateToggleSubaccountLoginParams
NewGetPrivateToggleSubaccountLoginParams creates a new GetPrivateToggleSubaccountLoginParams object with the default values initialized.
func NewGetPrivateToggleSubaccountLoginParamsWithContext ¶
func NewGetPrivateToggleSubaccountLoginParamsWithContext(ctx context.Context) *GetPrivateToggleSubaccountLoginParams
NewGetPrivateToggleSubaccountLoginParamsWithContext creates a new GetPrivateToggleSubaccountLoginParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateToggleSubaccountLoginParamsWithHTTPClient ¶
func NewGetPrivateToggleSubaccountLoginParamsWithHTTPClient(client *http.Client) *GetPrivateToggleSubaccountLoginParams
NewGetPrivateToggleSubaccountLoginParamsWithHTTPClient creates a new GetPrivateToggleSubaccountLoginParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateToggleSubaccountLoginParamsWithTimeout ¶
func NewGetPrivateToggleSubaccountLoginParamsWithTimeout(timeout time.Duration) *GetPrivateToggleSubaccountLoginParams
NewGetPrivateToggleSubaccountLoginParamsWithTimeout creates a new GetPrivateToggleSubaccountLoginParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateToggleSubaccountLoginParams) SetContext ¶
func (o *GetPrivateToggleSubaccountLoginParams) SetContext(ctx context.Context)
SetContext adds the context to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) SetHTTPClient ¶
func (o *GetPrivateToggleSubaccountLoginParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) SetSid ¶
func (o *GetPrivateToggleSubaccountLoginParams) SetSid(sid int64)
SetSid adds the sid to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) SetState ¶
func (o *GetPrivateToggleSubaccountLoginParams) SetState(state string)
SetState adds the state to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) SetTimeout ¶
func (o *GetPrivateToggleSubaccountLoginParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) WithContext ¶
func (o *GetPrivateToggleSubaccountLoginParams) WithContext(ctx context.Context) *GetPrivateToggleSubaccountLoginParams
WithContext adds the context to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) WithHTTPClient ¶
func (o *GetPrivateToggleSubaccountLoginParams) WithHTTPClient(client *http.Client) *GetPrivateToggleSubaccountLoginParams
WithHTTPClient adds the HTTPClient to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) WithSid ¶
func (o *GetPrivateToggleSubaccountLoginParams) WithSid(sid int64) *GetPrivateToggleSubaccountLoginParams
WithSid adds the sid to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) WithState ¶
func (o *GetPrivateToggleSubaccountLoginParams) WithState(state string) *GetPrivateToggleSubaccountLoginParams
WithState adds the state to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) WithTimeout ¶
func (o *GetPrivateToggleSubaccountLoginParams) WithTimeout(timeout time.Duration) *GetPrivateToggleSubaccountLoginParams
WithTimeout adds the timeout to the get private toggle subaccount login params
func (*GetPrivateToggleSubaccountLoginParams) WriteToRequest ¶
func (o *GetPrivateToggleSubaccountLoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateToggleSubaccountLoginReader ¶
type GetPrivateToggleSubaccountLoginReader struct {
// contains filtered or unexported fields
}
GetPrivateToggleSubaccountLoginReader is a Reader for the GetPrivateToggleSubaccountLogin structure.
func (*GetPrivateToggleSubaccountLoginReader) ReadResponse ¶
func (o *GetPrivateToggleSubaccountLoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateUnsubscribeOK ¶
type GetPrivateUnsubscribeOK struct {
Payload *models.PrivateSubscribeResponse
}
GetPrivateUnsubscribeOK handles this case with default header values.
ok response
func NewGetPrivateUnsubscribeOK ¶
func NewGetPrivateUnsubscribeOK() *GetPrivateUnsubscribeOK
NewGetPrivateUnsubscribeOK creates a GetPrivateUnsubscribeOK with default headers values
func (*GetPrivateUnsubscribeOK) Error ¶
func (o *GetPrivateUnsubscribeOK) Error() string
func (*GetPrivateUnsubscribeOK) GetPayload ¶
func (o *GetPrivateUnsubscribeOK) GetPayload() *models.PrivateSubscribeResponse
type GetPrivateUnsubscribeParams ¶
type GetPrivateUnsubscribeParams struct { /*Channels A list of channels to unsubscribe from. */ Channels []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPrivateUnsubscribeParams contains all the parameters to send to the API endpoint for the get private unsubscribe operation typically these are written to a http.Request
func NewGetPrivateUnsubscribeParams ¶
func NewGetPrivateUnsubscribeParams() *GetPrivateUnsubscribeParams
NewGetPrivateUnsubscribeParams creates a new GetPrivateUnsubscribeParams object with the default values initialized.
func NewGetPrivateUnsubscribeParamsWithContext ¶
func NewGetPrivateUnsubscribeParamsWithContext(ctx context.Context) *GetPrivateUnsubscribeParams
NewGetPrivateUnsubscribeParamsWithContext creates a new GetPrivateUnsubscribeParams object with the default values initialized, and the ability to set a context for a request
func NewGetPrivateUnsubscribeParamsWithHTTPClient ¶
func NewGetPrivateUnsubscribeParamsWithHTTPClient(client *http.Client) *GetPrivateUnsubscribeParams
NewGetPrivateUnsubscribeParamsWithHTTPClient creates a new GetPrivateUnsubscribeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPrivateUnsubscribeParamsWithTimeout ¶
func NewGetPrivateUnsubscribeParamsWithTimeout(timeout time.Duration) *GetPrivateUnsubscribeParams
NewGetPrivateUnsubscribeParamsWithTimeout creates a new GetPrivateUnsubscribeParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPrivateUnsubscribeParams) SetChannels ¶
func (o *GetPrivateUnsubscribeParams) SetChannels(channels []string)
SetChannels adds the channels to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) SetContext ¶
func (o *GetPrivateUnsubscribeParams) SetContext(ctx context.Context)
SetContext adds the context to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) SetHTTPClient ¶
func (o *GetPrivateUnsubscribeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) SetTimeout ¶
func (o *GetPrivateUnsubscribeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) WithChannels ¶
func (o *GetPrivateUnsubscribeParams) WithChannels(channels []string) *GetPrivateUnsubscribeParams
WithChannels adds the channels to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) WithContext ¶
func (o *GetPrivateUnsubscribeParams) WithContext(ctx context.Context) *GetPrivateUnsubscribeParams
WithContext adds the context to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) WithHTTPClient ¶
func (o *GetPrivateUnsubscribeParams) WithHTTPClient(client *http.Client) *GetPrivateUnsubscribeParams
WithHTTPClient adds the HTTPClient to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) WithTimeout ¶
func (o *GetPrivateUnsubscribeParams) WithTimeout(timeout time.Duration) *GetPrivateUnsubscribeParams
WithTimeout adds the timeout to the get private unsubscribe params
func (*GetPrivateUnsubscribeParams) WriteToRequest ¶
func (o *GetPrivateUnsubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPrivateUnsubscribeReader ¶
type GetPrivateUnsubscribeReader struct {
// contains filtered or unexported fields
}
GetPrivateUnsubscribeReader is a Reader for the GetPrivateUnsubscribe structure.
func (*GetPrivateUnsubscribeReader) ReadResponse ¶
func (o *GetPrivateUnsubscribeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPrivateUnsubscribeUnauthorized ¶
type GetPrivateUnsubscribeUnauthorized struct {
}GetPrivateUnsubscribeUnauthorized handles this case with default header values.
not authorised
func NewGetPrivateUnsubscribeUnauthorized ¶
func NewGetPrivateUnsubscribeUnauthorized() *GetPrivateUnsubscribeUnauthorized
NewGetPrivateUnsubscribeUnauthorized creates a GetPrivateUnsubscribeUnauthorized with default headers values
func (*GetPrivateUnsubscribeUnauthorized) Error ¶
func (o *GetPrivateUnsubscribeUnauthorized) Error() string
func (*GetPrivateUnsubscribeUnauthorized) GetPayload ¶
func (o *GetPrivateUnsubscribeUnauthorized) GetPayload() *models.ErrorMessage
Source Files
¶
- get_private_buy_parameters.go
- get_private_buy_responses.go
- get_private_cancel_transfer_by_id_parameters.go
- get_private_cancel_transfer_by_id_responses.go
- get_private_change_subaccount_name_parameters.go
- get_private_change_subaccount_name_responses.go
- get_private_close_position_parameters.go
- get_private_close_position_responses.go
- get_private_create_subaccount_parameters.go
- get_private_create_subaccount_responses.go
- get_private_disable_tfa_for_subaccount_parameters.go
- get_private_disable_tfa_for_subaccount_responses.go
- get_private_get_order_state_parameters.go
- get_private_get_order_state_responses.go
- get_private_get_position_parameters.go
- get_private_get_position_responses.go
- get_private_get_positions_parameters.go
- get_private_get_positions_responses.go
- get_private_get_subaccounts_parameters.go
- get_private_get_subaccounts_responses.go
- get_private_sell_parameters.go
- get_private_sell_responses.go
- get_private_set_email_for_subaccount_parameters.go
- get_private_set_email_for_subaccount_responses.go
- get_private_set_password_for_subaccount_parameters.go
- get_private_set_password_for_subaccount_responses.go
- get_private_submit_transfer_to_subaccount_parameters.go
- get_private_submit_transfer_to_subaccount_responses.go
- get_private_submit_transfer_to_user_parameters.go
- get_private_submit_transfer_to_user_responses.go
- get_private_subscribe_parameters.go
- get_private_subscribe_responses.go
- get_private_toggle_notifications_from_subaccount_parameters.go
- get_private_toggle_notifications_from_subaccount_responses.go
- get_private_toggle_subaccount_login_parameters.go
- get_private_toggle_subaccount_login_responses.go
- get_private_unsubscribe_parameters.go
- get_private_unsubscribe_responses.go
- private_client.go