Documentation ¶
Index ¶
- type Bybit
- func (b *Bybit) AmendOrder(symbol string, id string, price float64, size float64, opts ...OrderOption) (result *Order, err error)
- func (b *Bybit) CancelAllOrders(symbol string, opts ...OrderOption) (err error)
- func (b *Bybit) CancelOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error)
- func (b *Bybit) CloseLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *Bybit) CloseShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *Bybit) GetBalance(currency string) (result *Balance, err error)
- func (b *Bybit) GetContractID() (symbol string, err error)
- func (b *Bybit) GetName() (name string)
- func (b *Bybit) GetOpenOrders(symbol string, opts ...OrderOption) (result []*Order, err error)
- func (b *Bybit) GetOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error)
- func (b *Bybit) GetOrderBook(symbol string, depth int) (result *OrderBook, err error)
- func (b *Bybit) GetPositions(symbol string) (result []*Position, err error)
- func (b *Bybit) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []*Record, err error)
- func (b *Bybit) GetTime() (tm int64, err error)
- func (b *Bybit) OpenLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *Bybit) OpenShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *Bybit) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64, ...) (result *Order, err error)
- func (b *Bybit) SetContractType(currencyPair string, contractType string) (err error)
- func (b *Bybit) SetLeverRate(value float64) (err error)
- func (b *Bybit) SubscribeLevel2Snapshots(market Market, callback func(ob *OrderBook)) error
- func (b *Bybit) SubscribeOrders(market Market, callback func(orders []*Order)) error
- func (b *Bybit) SubscribePositions(market Market, callback func(positions []*Position)) error
- func (b *Bybit) SubscribeTrades(market Market, callback func(trades []*Trade)) error
- type BybitWebSocket
- func (s *BybitWebSocket) SubscribeLevel2Snapshots(market Market, callback func(ob *OrderBook)) error
- func (s *BybitWebSocket) SubscribeOrders(market Market, callback func(orders []*Order)) error
- func (s *BybitWebSocket) SubscribePositions(market Market, callback func(positions []*Position)) error
- func (s *BybitWebSocket) SubscribeTrades(market Market, callback func(trades []*Trade)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bybit ¶
type Bybit struct {
// contains filtered or unexported fields
}
Bybit the Bybit exchange
func (*Bybit) AmendOrder ¶
func (*Bybit) CancelAllOrders ¶
func (*Bybit) CancelOrder ¶
func (*Bybit) CloseShort ¶
func (*Bybit) GetBalance ¶
func (*Bybit) GetContractID ¶
func (*Bybit) GetOpenOrders ¶
func (*Bybit) GetOrderBook ¶
func (*Bybit) GetPositions ¶
func (*Bybit) GetRecords ¶
func (*Bybit) PlaceOrder ¶
func (*Bybit) SetContractType ¶
func (*Bybit) SetLeverRate ¶
func (*Bybit) SubscribeLevel2Snapshots ¶
func (*Bybit) SubscribeOrders ¶
func (*Bybit) SubscribePositions ¶
func (*Bybit) SubscribeTrades ¶
type BybitWebSocket ¶
type BybitWebSocket struct {
// contains filtered or unexported fields
}
func NewBybitWebSocket ¶
func NewBybitWebSocket(params *Parameters) *BybitWebSocket
func (*BybitWebSocket) SubscribeLevel2Snapshots ¶
func (s *BybitWebSocket) SubscribeLevel2Snapshots(market Market, callback func(ob *OrderBook)) error
func (*BybitWebSocket) SubscribeOrders ¶
func (s *BybitWebSocket) SubscribeOrders(market Market, callback func(orders []*Order)) error
func (*BybitWebSocket) SubscribePositions ¶
func (s *BybitWebSocket) SubscribePositions(market Market, callback func(positions []*Position)) error
func (*BybitWebSocket) SubscribeTrades ¶
func (s *BybitWebSocket) SubscribeTrades(market Market, callback func(trades []*Trade)) error
Click to show internal directories.
Click to hide internal directories.