@tradejs/connectors 2.0.21 → 3.0.1

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/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import * as _tradejs_types from '@tradejs/types';
2
1
  import { DerivativesInterval, KlineChartData, Interval, KlineChartItem, ConnectorConfig, DerivativesRow, SpreadRow, ConnectorRegistryEntry, ConnectorCreator } from '@tradejs/types';
3
2
  import { WebsocketClient } from 'bybit-api';
4
3
 
@@ -62,8 +61,7 @@ declare const marketDataProviders: Record<MarketDataProviderName, MarketDataProv
62
61
  declare enum ConnectorNames {
63
62
  ByBit = "ByBit",
64
63
  Binance = "Binance",
65
- Coinbase = "Coinbase",
66
- Test = "Test"
64
+ Coinbase = "Coinbase"
67
65
  }
68
66
  declare enum ConnectorProviders {
69
67
  bybit = "bybit",
@@ -77,7 +75,6 @@ declare const connectors: {
77
75
  readonly ByBit: ConnectorCreator;
78
76
  readonly Binance: ConnectorCreator;
79
77
  readonly Coinbase: ConnectorCreator;
80
- readonly Test: _tradejs_types.TestConnectorCreator;
81
78
  };
82
79
  declare const connectorEntries: ConnectorRegistryEntry[];
83
80
  declare const getConnectorCreatorByProvider: (provider: unknown) => ConnectorCreator | null;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as _tradejs_types from '@tradejs/types';
2
1
  import { DerivativesInterval, KlineChartData, Interval, KlineChartItem, ConnectorConfig, DerivativesRow, SpreadRow, ConnectorRegistryEntry, ConnectorCreator } from '@tradejs/types';
3
2
  import { WebsocketClient } from 'bybit-api';
4
3
 
@@ -62,8 +61,7 @@ declare const marketDataProviders: Record<MarketDataProviderName, MarketDataProv
62
61
  declare enum ConnectorNames {
63
62
  ByBit = "ByBit",
64
63
  Binance = "Binance",
65
- Coinbase = "Coinbase",
66
- Test = "Test"
64
+ Coinbase = "Coinbase"
67
65
  }
68
66
  declare enum ConnectorProviders {
69
67
  bybit = "bybit",
@@ -77,7 +75,6 @@ declare const connectors: {
77
75
  readonly ByBit: ConnectorCreator;
78
76
  readonly Binance: ConnectorCreator;
79
77
  readonly Coinbase: ConnectorCreator;
80
- readonly Test: _tradejs_types.TestConnectorCreator;
81
78
  };
82
79
  declare const connectorEntries: ConnectorRegistryEntry[];
83
80
  declare const getConnectorCreatorByProvider: (provider: unknown) => ConnectorCreator | null;
package/dist/index.js CHANGED
@@ -2130,10 +2130,6 @@ var CoinbaseConnectorCreator = async (config) => {
2130
2130
  };
2131
2131
  };
2132
2132
 
2133
- // src/Test/index.ts
2134
- var import_backtest = require("@tradejs/node/backtest");
2135
- var TestConnectorCreator = (connector, context) => (0, import_backtest.createTestConnector)(connector, context);
2136
-
2137
2133
  // src/marketData/spotKlineProviders.ts
2138
2134
  var import_http3 = require("@tradejs/infra/http");
2139
2135
  var toIntervalToken = (interval) => interval === "1h" ? "1h" : "15m";
@@ -2590,7 +2586,6 @@ var ConnectorNames = /* @__PURE__ */ ((ConnectorNames2) => {
2590
2586
  ConnectorNames2["ByBit"] = "ByBit";
2591
2587
  ConnectorNames2["Binance"] = "Binance";
2592
2588
  ConnectorNames2["Coinbase"] = "Coinbase";
2593
- ConnectorNames2["Test"] = "Test";
2594
2589
  return ConnectorNames2;
2595
2590
  })(ConnectorNames || {});
2596
2591
  var ConnectorProviders = /* @__PURE__ */ ((ConnectorProviders2) => {
@@ -2612,8 +2607,7 @@ var resolveConnectorNameByProvider = (provider) => {
2612
2607
  var connectors = {
2613
2608
  ["ByBit" /* ByBit */]: ByBitConnectorCreator,
2614
2609
  ["Binance" /* Binance */]: BinanceConnectorCreator,
2615
- ["Coinbase" /* Coinbase */]: CoinbaseConnectorCreator,
2616
- ["Test" /* Test */]: TestConnectorCreator
2610
+ ["Coinbase" /* Coinbase */]: CoinbaseConnectorCreator
2617
2611
  };
2618
2612
  var connectorEntries = [
2619
2613
  {
package/dist/index.mjs CHANGED
@@ -2091,10 +2091,6 @@ var CoinbaseConnectorCreator = async (config) => {
2091
2091
  };
2092
2092
  };
2093
2093
 
2094
- // src/Test/index.ts
2095
- import { createTestConnector } from "@tradejs/node/backtest";
2096
- var TestConnectorCreator = (connector, context) => createTestConnector(connector, context);
2097
-
2098
2094
  // src/marketData/spotKlineProviders.ts
2099
2095
  import { fetchWithRetry as fetchWithRetry3 } from "@tradejs/infra/http";
2100
2096
  var toIntervalToken = (interval) => interval === "1h" ? "1h" : "15m";
@@ -2558,7 +2554,6 @@ var ConnectorNames = /* @__PURE__ */ ((ConnectorNames2) => {
2558
2554
  ConnectorNames2["ByBit"] = "ByBit";
2559
2555
  ConnectorNames2["Binance"] = "Binance";
2560
2556
  ConnectorNames2["Coinbase"] = "Coinbase";
2561
- ConnectorNames2["Test"] = "Test";
2562
2557
  return ConnectorNames2;
2563
2558
  })(ConnectorNames || {});
2564
2559
  var ConnectorProviders = /* @__PURE__ */ ((ConnectorProviders2) => {
@@ -2580,8 +2575,7 @@ var resolveConnectorNameByProvider = (provider) => {
2580
2575
  var connectors = {
2581
2576
  ["ByBit" /* ByBit */]: ByBitConnectorCreator,
2582
2577
  ["Binance" /* Binance */]: BinanceConnectorCreator,
2583
- ["Coinbase" /* Coinbase */]: CoinbaseConnectorCreator,
2584
- ["Test" /* Test */]: TestConnectorCreator
2578
+ ["Coinbase" /* Coinbase */]: CoinbaseConnectorCreator
2585
2579
  };
2586
2580
  var connectorEntries = [
2587
2581
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradejs/connectors",
3
- "version": "2.0.21",
3
+ "version": "3.0.1",
4
4
  "description": "MIT-licensed exchange connectors and market data providers for the TradeJS framework.",
5
5
  "keywords": [
6
6
  "tradejs",
@@ -33,10 +33,9 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@tradejs/core": "^2.0.21",
37
- "@tradejs/infra": "^2.0.21",
38
- "@tradejs/node": "^2.0.21",
39
- "@tradejs/types": "^2.0.21",
36
+ "@tradejs/core": "^3.0.1",
37
+ "@tradejs/infra": "^3.0.1",
38
+ "@tradejs/types": "^3.0.1",
40
39
  "bybit-api": "^4.7.1",
41
40
  "chalk": "4.1.2",
42
41
  "lodash": "^4.18.1"