ccxt 4.1.29 → 4.1.30

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.
package/js/src/huobijp.js CHANGED
@@ -319,7 +319,6 @@ export default class huobijp extends Exchange {
319
319
  'GET': 'Themis',
320
320
  'GTC': 'Game.com',
321
321
  'HIT': 'HitChain',
322
- 'HOT': 'Hydro Protocol',
323
322
  // https://github.com/ccxt/ccxt/issues/7399
324
323
  // https://coinmarketcap.com/currencies/pnetwork/
325
324
  // https://coinmarketcap.com/currencies/penta/markets/
@@ -1920,7 +1920,7 @@ export default class krakenfutures extends Exchange {
1920
1920
  result.push({
1921
1921
  'info': item,
1922
1922
  'symbol': symbol,
1923
- 'fundingRate': this.safeNumber(item, 'fundingRate'),
1923
+ 'fundingRate': this.safeNumber(item, 'relativeFundingRate'),
1924
1924
  'timestamp': this.parse8601(datetime),
1925
1925
  'datetime': datetime,
1926
1926
  });
package/js/src/phemex.js CHANGED
@@ -1817,6 +1817,9 @@ export default class phemex extends Exchange {
1817
1817
  [type, params] = this.handleMarketTypeAndParams('fetchBalance', undefined, params);
1818
1818
  let method = 'privateGetSpotWallets';
1819
1819
  const request = {};
1820
+ if ((type !== 'spot') && (type !== 'swap')) {
1821
+ throw new BadRequest(this.id + ' does not support ' + type + ' markets, only spot and swap');
1822
+ }
1820
1823
  if (type === 'swap') {
1821
1824
  const code = this.safeString(params, 'code');
1822
1825
  let settle = undefined;
@@ -355,6 +355,7 @@ export default class huobi extends huobiRest {
355
355
  // id: 1583473663565,
356
356
  // rep: 'market.btcusdt.mbp.150',
357
357
  // status: 'ok',
358
+ // ts: 1698359289261,
358
359
  // data: {
359
360
  // seqNum: 104999417756,
360
361
  // bids: [
@@ -383,6 +384,9 @@ export default class huobi extends huobiRest {
383
384
  const sequence = this.safeInteger(tick, 'seqNum');
384
385
  const nonce = this.safeInteger(data, 'seqNum');
385
386
  snapshot['nonce'] = nonce;
387
+ const timestamp = this.safeInteger(message, 'ts');
388
+ snapshot['timestamp'] = timestamp;
389
+ snapshot['datetime'] = this.iso8601(timestamp);
386
390
  const snapshotLimit = this.safeInteger(subscription, 'limit');
387
391
  const snapshotOrderBook = this.orderBook(snapshot, snapshotLimit);
388
392
  client.resolve(snapshotOrderBook, id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.1.29",
3
+ "version": "4.1.30",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.js",
6
6
  "type": "module",