Documentation ¶
Index ¶
- type Diribit
- func (b *Diribit) AmendOrder(symbol string, id string, price float64, size float64) (result Order, err error)
- func (b *Diribit) CancelAllOrders(symbol string) (err error)
- func (b *Diribit) CancelOrder(symbol string, id string) (result Order, err error)
- func (b *Diribit) GetAccountSummary(currency string) (result AccountSummary, err error)
- func (b *Diribit) GetContractID() (symbol string, err error)
- func (b *Diribit) GetName() (name string)
- func (b *Diribit) GetOpenOrders(symbol string) (result []Order, err error)
- func (b *Diribit) GetOrder(symbol string, id string) (result Order, err error)
- func (b *Diribit) GetOrderBook(symbol string, depth int) (result OrderBook, err error)
- func (b *Diribit) GetPositions(symbol string) (result []Position, err error)
- func (b *Diribit) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []Record, err error)
- func (b *Diribit) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64, ...) (result Order, err error)
- func (b *Diribit) RunEventLoopOnce() (err error)
- func (b *Diribit) SetContractType(currencyPair string, contractType string) (err error)
- func (b *Diribit) SetLeverRate(value float64) (err error)
- func (b *Diribit) Subscribe(event string, param string, listener interface{})
- func (b *Diribit) WS() (ws WebSocket, err error)
- type OrderBookLocal
- type OrderBookManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diribit ¶
type Diribit struct {
// contains filtered or unexported fields
}
Diribit the deribit broker
func (*Diribit) AmendOrder ¶
func (*Diribit) CancelAllOrders ¶
func (*Diribit) CancelOrder ¶
func (*Diribit) GetAccountSummary ¶
func (*Diribit) GetContractID ¶
func (*Diribit) GetOpenOrders ¶
func (*Diribit) GetOrderBook ¶
func (*Diribit) GetPositions ¶ added in v1.0.0
func (*Diribit) GetRecords ¶
func (*Diribit) PlaceOrder ¶
func (*Diribit) RunEventLoopOnce ¶
func (*Diribit) SetContractType ¶
func (*Diribit) SetLeverRate ¶
type OrderBookLocal ¶
type OrderBookLocal struct {
// contains filtered or unexported fields
}
func NewOrderBookLocal ¶
func NewOrderBookLocal(symbol string) *OrderBookLocal
func (*OrderBookLocal) GetOrderbook ¶
func (o *OrderBookLocal) GetOrderbook() (ob OrderBook)
func (*OrderBookLocal) Key ¶
func (o *OrderBookLocal) Key(price float64) string
func (*OrderBookLocal) Update ¶
func (o *OrderBookLocal) Update(newOrderBook *models.OrderBookNotification)
type OrderBookManager ¶
type OrderBookManager struct {
// contains filtered or unexported fields
}
func NewOrderBookManager ¶
func NewOrderBookManager() *OrderBookManager
func (*OrderBookManager) GetOrderBook ¶
func (m *OrderBookManager) GetOrderBook(instrumentName string) (ob OrderBook, ok bool)
func (*OrderBookManager) Update ¶
func (m *OrderBookManager) Update(newOrderBook *models.OrderBookNotification)
Click to show internal directories.
Click to hide internal directories.