Versions in this module Expand all Collapse all v1 v1.0.3 Sep 3, 2020 Changes in this version + var ErrTimeout = errors.New("timed out waiting for a response") + type Exchange struct + func NewExchange(test bool, errs chan error, stop chan bool) (*Exchange, error) + func NewExchangeFromCore(test bool, core RPCCore) *Exchange + func (e *Exchange) Authenticate(keys ...string) error + func (e *Exchange) Client() *client.DeribitAPI + func (e *Exchange) Close() error + func (e *Exchange) Connect() error + func (e *Exchange) Reconnect(core *RPCCore) + func (e *Exchange) SetDisconnectHandler(f func(*RPCCore)) + func (e *Exchange) SetLogOutput(w io.Writer) + func (e *Exchange) SubscribeAnnouncements() (chan *models.AnnouncementNotification, error) + func (e *Exchange) SubscribeBookGroup(instrument_name, group, depth, interval string) (chan *models.BookNotification, error) + func (e *Exchange) SubscribeBookInterval(instrument_name, interval string) (chan *models.BookNotificationRaw, error) + func (e *Exchange) SubscribeDeribitPriceIndex(index_name string) (chan *models.DeribitPriceIndexNotification, error) + func (e *Exchange) SubscribeDeribitPriceRanking(index_name string) (chan *models.DeribitPriceRankingNotification, error) + func (e *Exchange) SubscribeEstimatedExpirationPrice(index_name string) (chan *models.EstimatedExpirationPriceNotification, error) + func (e *Exchange) SubscribeMarkPriceOptions(index_name string) (chan *models.MarkpriceOptionsNotification, error) + func (e *Exchange) SubscribePerpetual(instrument_name, interval string) (chan *models.PerpetualNotification, error) + func (e *Exchange) SubscribeQuote(instrument_name string) (chan *models.QuoteNotification, error) + func (e *Exchange) SubscribeTicker(instrument_name, interval string) (chan *models.TickerNotification, error) + func (e *Exchange) SubscribeTrades(instrument_name, interval string) (chan *models.PublicTrade, error) + func (e *Exchange) SubscribeUserOrdersInstrumentName(instrument_name, interval string) (chan *models.Order, error) + func (e *Exchange) SubscribeUserOrdersKind(kind, currency, interval string) (chan *models.Order, error) + func (e *Exchange) SubscribeUserPortfolio(currency string) (chan *models.UserPortfolioNotification, error) + func (e *Exchange) SubscribeUserTradesInstrument(instrument_name, interval string) (chan *models.UserTrade, error) + func (e *Exchange) SubscribeUserTradesKind(kind, currency, interval string) (chan *models.UserTrade, error) + type RPCCall struct + Done chan bool + Error error + Req *RPCRequest + Res *RPCResponse + func NewRPCCall(req *RPCRequest) *RPCCall + func (r *RPCCall) CloseError(err error) + func (r *RPCCall) CloseOK() + type RPCCore struct + OnConnect func() + func (r *RPCCore) Submit(operation *runtime.ClientOperation) (interface{}, error) + type RPCError struct + Code int + Message string + type RPCNotification struct + JsonRpc string + Method string + Params struct{ ... } + type RPCRequest struct + ID uint64 + JsonRpc string + Method string + Params map[string]interface{} + func NewRPCRequest(method string) *RPCRequest + func (RPCRequest) GetBody() []byte + func (RPCRequest) GetBodyParam() interface{} + func (RPCRequest) GetFileParam() map[string][]runtime.NamedReadCloser + func (RPCRequest) GetHeaderParams() http.Header + func (RPCRequest) GetMethod() string + func (RPCRequest) GetQueryParams() url.Values + func (RPCRequest) SetBodyParam(interface{}) error + func (RPCRequest) SetFileParam(string, ...runtime.NamedReadCloser) error + func (RPCRequest) SetFormParam(string, ...string) error + func (RPCRequest) SetHeaderParam(string, ...string) error + func (RPCRequest) SetPathParam(string, string) error + func (RPCRequest) SetTimeout(time.Duration) error + func (r *RPCRequest) AddAuth(auth *models.PublicAuthResponse) + func (r *RPCRequest) GetPath() string + func (r *RPCRequest) SetQueryParam(key string, vals ...string) error + type RPCResponse struct + Error *RPCError + ID uint64 + JsonRpc string + Result json.RawMessage + func (RPCResponse) GetHeader(string) string + func (r *RPCResponse) Body() io.ReadCloser + func (r *RPCResponse) Code() int + func (r *RPCResponse) Message() string + type RPCSubscription struct + Channel string + Data chan *RPCNotification v1.0.1 Aug 24, 2020 Incompatible versions in this module v3.2.0+incompatible Jan 6, 2020 v3.1.1+incompatible Jul 29, 2019