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 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 ¶
type Client interface { AccountMargin AccountAssets Orders ActiveOrders Executions LastExecutions OpenPositions PositionSummary Order ChangeOrder CancelOrder CloseOrder CloseBulkOrder ChangeLosscutPrice }
Client ...
func NewWithKeys ¶
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 PositionSummary ¶
type PositionSummary interface {
PositionSummary(symbol configuration.Symbol) (*model.PositionSummaryRes, error)
}
PositionSummary ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.