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