Documentation ¶
Index ¶
- type AllocatePortfolioRequest
- type AllocatePortfolioResponse
- type GetPerpetualsPortfolioSummaryRequest
- type GetPerpetualsPortfolioSummaryResponse
- type GetPerpetualsPositionRequest
- type GetPerpetualsPositionResponse
- type ListPerpetualsPositionsRequest
- type ListPerpetualsPositionsResponse
- type ProductsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocatePortfolioResponse ¶
type AllocatePortfolioResponse struct { Description string `json:"description"` Schema *model.Schema `json:"schema"` Request *AllocatePortfolioRequest `json:"request"` }
type GetPerpetualsPortfolioSummaryRequest ¶
type GetPerpetualsPortfolioSummaryRequest struct {
PortfolioUuid string `json:"portfolio_uuid"`
}
type GetPerpetualsPortfolioSummaryResponse ¶
type GetPerpetualsPortfolioSummaryResponse struct { Portfolios *model.IntxPortfolio `json:"portfolios"` Request *GetPerpetualsPortfolioSummaryRequest `json:"request"` }
type GetPerpetualsPositionResponse ¶
type GetPerpetualsPositionResponse struct { Position *model.IntxPosition `json:"position"` Request *GetPerpetualsPositionRequest `json:"request"` }
type ListPerpetualsPositionsRequest ¶
type ListPerpetualsPositionsRequest struct {
PortfolioUuid string `json:"portfolio_uuid"`
}
type ListPerpetualsPositionsResponse ¶
type ListPerpetualsPositionsResponse struct { Positions []*model.IntxPosition `json:"positions"` Summary *model.IntxSummary `json:"summary"` Request *ListPerpetualsPositionsRequest `json:"request"` }
type ProductsService ¶
type ProductsService interface { AllocatePortfolio(ctx context.Context, request *AllocatePortfolioRequest) (*AllocatePortfolioResponse, error) GetPerpetualsPortfolioSummary(ctx context.Context, request *GetPerpetualsPortfolioSummaryRequest) (*GetPerpetualsPortfolioSummaryResponse, error) GetPerpetualsPosition(ctx context.Context, request *GetPerpetualsPositionRequest) (*GetPerpetualsPositionResponse, error) ListPerpetualsPositions(ctx context.Context, request *ListPerpetualsPositionsRequest) (*ListPerpetualsPositionsResponse, error) }
func NewProductsService ¶
func NewProductsService(c client.RestClient) ProductsService
Click to show internal directories.
Click to hide internal directories.