import onetradingRest from '../onetrading.js'; import type { Int, Str, Strings, OrderBook, Order, Trade, Ticker, Tickers, OHLCV, Balances, Dict, Bool, Market } from '../base/types.js'; import Client from '../base/ws/Client.js'; import type { WsOrderBook } from '../base/ws/OrderBook.js'; export default class onetrading extends onetradingRest { describe(): any; /** * @method * @name onetrading#watchBalance * @see https://developers.bitpanda.com/exchange/#account-history-channel * @description watch balance and get the amount of funds available for trading or funds locked in orders * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure} */ watchBalance(params?: Dict): Promise; handleBalanceSnapshot(client: Client, message: Dict): void; /** * @method * @name onetrading#watchTicker * @see https://developers.bitpanda.com/exchange/#market-ticker-channel * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market * @param {string} symbol unified symbol of the market to fetch the ticker for * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure} */ watchTicker(symbol: string, params?: Dict): Promise; /** * @method * @name onetrading#watchTickers * @see https://developers.bitpanda.com/exchange/#market-ticker-channel * @description watches price tickers, a statistical calculation with the information for all markets or those specified. * @param {string} symbols unified symbols of the markets to fetch the ticker for * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an array of [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure} */ watchTickers(symbols?: Strings, params?: Dict): Promise; handleTicker(client: Client, message: Dict): void; parseWSTicker(ticker: Dict, market?: Market): Ticker; /** * @method * @name onetrading#watchMyTrades * @see https://developers.bitpanda.com/exchange/#account-history-channel * @description get the list of trades associated with the user * @param {string} symbol unified symbol of the market to fetch trades for. Use 'any' to watch all trades * @param {int} [since] timestamp in ms of the earliest trade to fetch * @param {int} [limit] the maximum amount of trades to fetch * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades} */ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; /** * @method * @name onetrading#watchOrderBook * @see https://docs.onetrading.com/websocket/orderbook/introduction * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data * @param {string} symbol unified symbol of the market to fetch the order book for * @param {int} [limit] the maximum amount of order book entries to return * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure} */ watchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise; handleOrderBook(client: Client, message: Dict): void; handleBookDelta(orderbook: WsOrderBook, delta: any): void; handleBookDeltas(orderbook: WsOrderBook, deltas: any): void; /** * @method * @name onetrading#watchOrders * @see https://developers.bitpanda.com/exchange/#account-history-channel * @description watches information on multiple orders made by the user * @param {string} symbol unified market symbol of the market orders were made in * @param {int} [since] the earliest time in ms to fetch orders for * @param {int} [limit] the maximum number of order structures to retrieve * @param {object} [params] extra parameters specific to the exchange API endpoint * @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure} */ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise; handleTrading(client: Client, message: Dict): void; parseTradingOrder(order: Dict, market?: Market): Order; parseTradingOrderStatus(status: Str): Str; handleOrders(client: Client, message: Dict): void; handleAccountUpdate(client: Client, message: Dict): void; parseWsOrderStatus(status: Str): Str; updateBalance(balance: Dict): void; /** * @method * @name onetrading#watchOHLCV * @see https://developers.bitpanda.com/exchange/#candlesticks-channel * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market * @param {string} symbol unified symbol of the market to fetch OHLCV data for * @param {string} timeframe the length of time each candle represents * @param {int} [since] timestamp in ms of the earliest candle to fetch * @param {int} [limit] the maximum amount of candles to fetch * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume */ watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise; handleOHLCV(client: Client, message: Dict): void; findTimeframe(timeframe: any, timeframes?: any): Str; handleSubscriptions(client: Client, message: Dict): Dict; handleHeartbeat(client: Client, message: Dict): Dict; handleErrorMessage(client: Client, message: Dict): Bool; handleMessage(client: Client, message: Dict): void; handlePricePointUpdates(client: Client, message: Dict): Dict; handleAuthenticationMessage(client: Client, message: Dict): Dict; watchMany(messageHash: string, request: Dict, subscriptionHash: string, symbols?: Strings, params?: Dict): Promise; authenticate(params?: Dict): Promise; }