{"modulePath":"github.com/QuantProcessing/exchanges","version":"v0.2.19","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package decibel\n\n## Types\n\n```go\ntype Adapter struct {\n\t*exchanges.BaseAdapter\n\t// contains filtered or unexported fields\n}\n```\nAdapter is the Decibel perpetual futures adapter.\n\n```go\nfunc NewAdapter(ctx context.Context, opts Options) (*Adapter, error)\n```\n\n```go\nfunc (a *Adapter) CancelAllOrders(context.Context, string) error\n```\n\n```go\nfunc (a *Adapter) CancelOrder(ctx context.Context, orderID, symbol string) error\n```\n\n```go\nfunc (a *Adapter) CancelOrderWS(context.Context, string, string) error\n```\n\n```go\nfunc (a *Adapter) Close() error\n```\n\n```go\nfunc (a *Adapter) ExtractSymbol(symbol string) string\n```\n\n```go\nfunc (a *Adapter) FetchAccount(ctx context.Context) (*exchanges.Account, error)\n```\n\n```go\nfunc (a *Adapter) FetchAllFundingRates(context.Context) ([]exchanges.FundingRate, error)\n```\n\n```go\nfunc (a *Adapter) FetchBalance(ctx context.Context) (decimal.Decimal, error)\n```\n\n```go\nfunc (a *Adapter) FetchFeeRate(_ context.Context, symbol string) (*exchanges.FeeRate, error)\n```\n\n```go\nfunc (a *Adapter) FetchFundingRate(context.Context, string) (*exchanges.FundingRate, error)\n```\n\n```go\nfunc (a *Adapter) FetchFundingRateHistory(ctx context.Context, symbol string, opts *exchanges.FundingRateHistoryOpts) ([]exchanges.FundingRate, error)\n```\nFetchFundingRateHistory is not implemented by this adapter.\n\n```go\nfunc (a *Adapter) FetchKlines(context.Context, string, exchanges.Interval, *exchanges.KlineOpts) ([]exchanges.Kline, error)\n```\n\n```go\nfunc (a *Adapter) FetchOpenInterest(ctx context.Context, symbol string) (*exchanges.OpenInterest, error)\n```\nFetchOpenInterest is not implemented by this adapter.\n\n```go\nfunc (a *Adapter) FetchOpenOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)\n```\n\n```go\nfunc (a *Adapter) FetchOrderBook(ctx context.Context, symbol string, limit int) (*exchanges.OrderBook, error)\n```\n\n```go\nfunc (a *Adapter) FetchOrderByID(ctx context.Context, orderID, symbol string) (*exchanges.Order, error)\n```\n\n```go\nfunc (a *Adapter) FetchOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)\n```\n\n```go\nfunc (a *Adapter) FetchPositions(ctx context.Context) ([]exchanges.Position, error)\n```\n\n```go\nfunc (a *Adapter) FetchSymbolDetails(_ context.Context, symbol string) (*exchanges.SymbolDetails, error)\n```\n\n```go\nfunc (a *Adapter) FetchTicker(ctx context.Context, symbol string) (*exchanges.Ticker, error)\n```\n\n```go\nfunc (a *Adapter) FetchTrades(context.Context, string, int) ([]exchanges.Trade, error)\n```\n\n```go\nfunc (a *Adapter) FormatSymbol(symbol string) string\n```\n\n```go\nfunc (a *Adapter) ModifyOrder(context.Context, string, string, *exchanges.ModifyOrderParams) (*exchanges.Order, error)\n```\n\n```go\nfunc (a *Adapter) ModifyOrderWS(context.Context, string, string, *exchanges.ModifyOrderParams) error\n```\n\n```go\nfunc (a *Adapter) PlaceOrder(ctx context.Context, params *exchanges.OrderParams) (*exchanges.Order, error)\n```\n\n```go\nfunc (a *Adapter) PlaceOrderWS(context.Context, *exchanges.OrderParams) error\n```\n\n```go\nfunc (a *Adapter) SetLeverage(context.Context, string, int) error\n```\n\n```go\nfunc (a *Adapter) StopWatchFills(context.Context) error\n```\n\n```go\nfunc (a *Adapter) StopWatchKlines(context.Context, string, exchanges.Interval) error\n```\n\n```go\nfunc (a *Adapter) StopWatchOrderBook(_ context.Context, symbol string) error\n```\n\n```go\nfunc (a *Adapter) StopWatchOrders(context.Context) error\n```\n\n```go\nfunc (a *Adapter) StopWatchPositions(context.Context) error\n```\n\n```go\nfunc (a *Adapter) StopWatchTicker(context.Context, string) error\n```\n\n```go\nfunc (a *Adapter) StopWatchTrades(context.Context, string) error\n```\n\n```go\nfunc (a *Adapter) WatchFills(_ context.Context, cb exchanges.FillCallback) error\n```\n\n```go\nfunc (a *Adapter) WatchKlines(context.Context, string, exchanges.Interval, exchanges.KlineCallback) error\n```\n\n```go\nfunc (a *Adapter) WatchOrderBook(ctx context.Context, symbol string, depth int, cb exchanges.OrderBookCallback) error\n```\n\n```go\nfunc (a *Adapter) WatchOrders(_ context.Context, cb exchanges.OrderUpdateCallback) error\n```\n\n```go\nfunc (a *Adapter) WatchPositions(context.Context, exchanges.PositionUpdateCallback) error\n```\n\n```go\nfunc (a *Adapter) WatchTicker(context.Context, string, exchanges.TickerCallback) error\n```\n\n```go\nfunc (a *Adapter) WatchTrades(context.Context, string, exchanges.TradeCallback) error\n```\n\n```go\ntype Options struct {\n\tAPIKey         string\n\tPrivateKey     string\n\tSubaccountAddr string\n\tQuoteCurrency  exchanges.QuoteCurrency\n\tLogger         exchanges.Logger\n}\n```\nOptions configures the Decibel perp adapter.\n\n```go\ntype OrderBook struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrderBook(symbol string) *OrderBook\n```\n\n```go\nfunc (ob *OrderBook) GetDepth(limit int) ([]exchanges.Level, []exchanges.Level)\n```\n\n```go\nfunc (ob *OrderBook) ProcessDepth(msg decibelws.MarketDepthMessage)\n```\n\n```go\nfunc (ob *OrderBook) Timestamp() int64\n```\n\n```go\nfunc (ob *OrderBook) ToAdapterOrderBook(depth int) *exchanges.OrderBook\n```\n\n```go\nfunc (ob *OrderBook) WaitReady(ctx context.Context, timeout time.Duration) bool\n```\n\n","path":"github.com/QuantProcessing/exchanges/decibel","name":"decibel","synopsis":"","isRedistributable":true}
