ccxt 4.1.83 → 4.1.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,6 @@ export default class kucoinfutures extends kucoin {
21
21
  network: string;
22
22
  }>;
23
23
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
24
- fetchL3OrderBook(symbol: string, limit?: Int, params?: {}): Promise<void>;
25
24
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
26
25
  parseTicker(ticker: any, market?: Market): Ticker;
27
26
  fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
@@ -707,9 +707,6 @@ export default class kucoinfutures extends kucoin {
707
707
  orderbook['nonce'] = this.safeInteger(data, 'sequence');
708
708
  return orderbook;
709
709
  }
710
- async fetchL3OrderBook(symbol, limit = undefined, params = {}) {
711
- throw new BadRequest(this.id + ' fetchL3OrderBook() is not supported yet');
712
- }
713
710
  async fetchTicker(symbol, params = {}) {
714
711
  /**
715
712
  * @method
@@ -1,25 +1,36 @@
1
1
  import bitmartRest from '../bitmart.js';
2
- import { Int, Str } from '../base/types.js';
2
+ import { Int, Market, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitmart extends bitmartRest {
5
5
  describe(): any;
6
- subscribe(channel: any, symbol: any, params?: {}): Promise<any>;
7
- subscribePrivate(channel: any, symbol: any, params?: {}): Promise<any>;
6
+ subscribe(channel: any, symbol: any, type: any, params?: {}): Promise<any>;
7
+ watchBalance(params?: {}): Promise<any>;
8
+ setBalanceCache(client: Client, type: any): any;
9
+ loadBalanceSnapshot(client: any, messageHash: any, type: any): Promise<void>;
10
+ handleBalance(client: Client, message: any): void;
8
11
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
9
12
  watchTicker(symbol: string, params?: {}): Promise<any>;
13
+ watchTickers(symbols?: Strings, params?: {}): Promise<any>;
10
14
  watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
11
15
  handleOrders(client: Client, message: any): void;
12
- parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
16
+ parseWsOrder(order: any, market?: Market): import("../base/types.js").Order;
17
+ parseWsOrderStatus(statusId: any): string;
18
+ parseWsOrderSide(sideId: any): string;
19
+ watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
20
+ handlePositions(client: Client, message: any): void;
21
+ parseWsPosition(position: any, market?: Market): import("../base/types.js").Position;
13
22
  handleTrade(client: Client, message: any): any;
23
+ parseWsTrade(trade: any, market?: Market): import("../base/types.js").Trade;
14
24
  handleTicker(client: Client, message: any): any;
25
+ parseWsSwapTicker(ticker: any, market?: Market): import("../base/types.js").Ticker;
15
26
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
16
27
  handleOHLCV(client: Client, message: any): void;
17
28
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
18
29
  handleDelta(bookside: any, delta: any): void;
19
30
  handleDeltas(bookside: any, deltas: any): void;
20
31
  handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
21
- handleOrderBook(client: Client, message: any): any;
22
- authenticate(params?: {}): Promise<any>;
32
+ handleOrderBook(client: Client, message: any): void;
33
+ authenticate(type: any, params?: {}): Promise<any>;
23
34
  handleSubscriptionStatus(client: Client, message: any): any;
24
35
  handleAuthenticate(client: Client, message: any): void;
25
36
  handleErrorMessage(client: Client, message: any): boolean;