Documentation ¶
Index ¶
- type BybitBroker
- func (b *BybitBroker) AmendOrder(symbol string, id string, price float64, size float64) (result Order, err error)
- func (b *BybitBroker) CancelAllOrders(symbol string) (err error)
- func (b *BybitBroker) CancelOrder(symbol string, id string) (result Order, err error)
- func (b *BybitBroker) GetAccountSummary(currency string) (result AccountSummary, err error)
- func (b *BybitBroker) GetContractID() (symbol string, err error)
- func (b *BybitBroker) GetName() (name string)
- func (b *BybitBroker) GetOpenOrders(symbol string) (result []Order, err error)
- func (b *BybitBroker) GetOrder(symbol string, id string) (result Order, err error)
- func (b *BybitBroker) GetOrderBook(symbol string, depth int) (result OrderBook, err error)
- func (b *BybitBroker) GetPosition(symbol string) (result Position, err error)
- func (b *BybitBroker) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []Record, err error)
- func (b *BybitBroker) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64, ...) (result Order, err error)
- func (b *BybitBroker) RunEventLoopOnce() (err error)
- func (b *BybitBroker) SetContractType(currencyPair string, contractType string) (err error)
- func (b *BybitBroker) SetLeverRate(value float64) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BybitBroker ¶
type BybitBroker struct {
// contains filtered or unexported fields
}
BybitBroker the Bybit broker
func (*BybitBroker) AmendOrder ¶
func (*BybitBroker) CancelAllOrders ¶
func (b *BybitBroker) CancelAllOrders(symbol string) (err error)
func (*BybitBroker) CancelOrder ¶
func (b *BybitBroker) CancelOrder(symbol string, id string) (result Order, err error)
func (*BybitBroker) GetAccountSummary ¶
func (b *BybitBroker) GetAccountSummary(currency string) (result AccountSummary, err error)
func (*BybitBroker) GetContractID ¶ added in v0.9.4
func (b *BybitBroker) GetContractID() (symbol string, err error)
func (*BybitBroker) GetName ¶ added in v0.9.7
func (b *BybitBroker) GetName() (name string)
func (*BybitBroker) GetOpenOrders ¶
func (b *BybitBroker) GetOpenOrders(symbol string) (result []Order, err error)
func (*BybitBroker) GetOrder ¶
func (b *BybitBroker) GetOrder(symbol string, id string) (result Order, err error)
func (*BybitBroker) GetOrderBook ¶
func (b *BybitBroker) GetOrderBook(symbol string, depth int) (result OrderBook, err error)
func (*BybitBroker) GetPosition ¶
func (b *BybitBroker) GetPosition(symbol string) (result Position, err error)
func (*BybitBroker) GetRecords ¶ added in v0.9.8
func (*BybitBroker) PlaceOrder ¶
func (*BybitBroker) RunEventLoopOnce ¶
func (b *BybitBroker) RunEventLoopOnce() (err error)
func (*BybitBroker) SetContractType ¶
func (b *BybitBroker) SetContractType(currencyPair string, contractType string) (err error)
func (*BybitBroker) SetLeverRate ¶
func (b *BybitBroker) SetLeverRate(value float64) (err error)
Click to show internal directories.
Click to hide internal directories.