private

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAssets

type AccountAssets interface {
	AccountAssets() (*model.AccountAssetsRes, error)
}

AccountAssets ...

type AccountMargin

type AccountMargin interface {
	AccountMargin() (*model.AccountMarginRes, error)
}

AccountMargin ...

type ActiveOrders

type ActiveOrders interface {
	ActiveOrders(symbol configuration.Symbol, pageNo int) (*model.ActiveOrdersRes, error)
}

ActiveOrders ...

type CancelOrder

type CancelOrder interface {
	CancelOrder(orderID int64) error
}

CancelOrder ...

type ChangeLosscutPrice

type ChangeLosscutPrice interface {
	ChangeLosscutPrice(positionID int64, losscutPrice decimal.Decimal) (*model.ChangeLosscutPriceRes, error)
}

ChangeLosscutPrice ...

type ChangeOrder

type ChangeOrder interface {
	ChangeOrder(orderID int64, price decimal.Decimal) (*model.ChangeOrderRes, error)
}

ChangeOrder ...

type Client

Client ...

func New

func New() Client

New ...

func NewWithKeys

func NewWithKeys(apiKey, secretKey string) Client

NewWithKeys create Client instance.

type CloseBulkOrder

type CloseBulkOrder interface {
	CloseBulkOrder(symbol configuration.Symbol, side configuration.Side, executionType configuration.ExecutionType, price, size decimal.Decimal) (*model.CloseBulkOrderRes, error)
}

CloseBulkOrder ...

type CloseOrder

type CloseOrder interface {
	CloseOrder(positionID int64, symbol configuration.Symbol, side configuration.Side, executionType configuration.ExecutionType, price, size decimal.Decimal) (*model.CloseOrderRes, error)
}

CloseOrder ...

type Executions

type Executions interface {
	Executions(orderID, executionID int64) (*model.ExecutionsRes, error)
	ExecutionsByOrderID(orderID int64) (*model.ExecutionsRes, error)
	ExecutionsByExecutionID(executionID int64) (*model.ExecutionsRes, error)
}

Executions ...

type LastExecutions

type LastExecutions interface {
	LastExecutions(symbol configuration.Symbol, page, count int) (*model.LastExecutionsRes, error)
}

LastExecutions ...

type OpenPositions

type OpenPositions interface {
	OpenPositions(symbol configuration.Symbol, pageNo int) (*model.OpenPositionRes, error)
}

OpenPositions ...

type Order

type Order interface {
	Order(symbol configuration.Symbol, side configuration.Side, executionType configuration.ExecutionType, price, size decimal.Decimal) (*model.OrderRes, error)
}

Order ...

type Orders

type Orders interface {
	Orders(orderID int64) (*model.OrdersRes, error)
}

Orders ...

type PositionSummary

type PositionSummary interface {
	PositionSummary(symbol configuration.Symbol) (*model.PositionSummaryRes, error)
}

PositionSummary ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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