UNPKG

ccxt

Version:

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges

37 lines (36 loc) 2.07 kB
import independentreserveRest from '../independentreserve.js'; import type { Int, OrderBook, Trade } from '../base/types.js'; import Client from '../base/ws/Client.js'; export default class independentreserve extends independentreserveRest { describe(): any; /** * @method * @name independentreserve#watchTrades * @description get the list of most recent trades for a particular symbol * @param {string} symbol unified symbol of the market to fetch trades for * @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} */ watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>; handleTrades(client: Client, message: any): void; parseWsTrade(trade: any, market?: any): Trade; /** * @method * @name independentreserve#watchOrderBook * @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} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols */ watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>; handleOrderBook(client: Client, message: any): void; valueToChecksum(value: any): any; handleDelta(bookside: any, delta: any): void; handleDeltas(bookside: any, deltas: any): void; handleHeartbeat(client: Client, message: any): any; handleSubscriptions(client: Client, message: any): any; handleMessage(client: Client, message: any): void; }