perpetuals

package
v0.0.0-...-ac4ccac Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocatePortfolioRequest

type AllocatePortfolioRequest struct {
	PortfolioUuid string `json:"portfolio_uuid"`
	Symbol        string `json:"string"`
	Amount        string `json:"amount"`
	Currency      string `json:"currency"`
}

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 GetPerpetualsPositionRequest

type GetPerpetualsPositionRequest struct {
	PortfolioUuid string `json:"portfolio_uuid"`
	Symbol        string `json:"symbol"`
}

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

Jump to

Keyboard shortcuts

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