@blackcube/xgate-sdk 0.25.2 → 0.25.3

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.cjs CHANGED
@@ -2132,8 +2132,37 @@ exports.XgateModule = __decorateClass([
2132
2132
  })
2133
2133
  ], exports.XgateModule);
2134
2134
 
2135
+ // src/helpers/rest-limits.ts
2136
+ var CANDLES_PER_CALL = {
2137
+ binance: 1500,
2138
+ bybit: 1e3,
2139
+ blofin: 1440,
2140
+ aster: 1500,
2141
+ hyperliquid: 5e3,
2142
+ pacifica: 500
2143
+ };
2144
+ function candlesPerCallOf(xex) {
2145
+ return CANDLES_PER_CALL[xex];
2146
+ }
2147
+ var REST_THROTTLE_MS = {
2148
+ binance: 150,
2149
+ bybit: 150,
2150
+ hyperliquid: 500,
2151
+ extended: 200,
2152
+ paradex: 200,
2153
+ aster: 400,
2154
+ lighter: 1200,
2155
+ blofin: 250,
2156
+ pacifica: 4e3
2157
+ };
2158
+ function restThrottleOf(xex) {
2159
+ return REST_THROTTLE_MS[xex];
2160
+ }
2161
+
2162
+ exports.CANDLES_PER_CALL = CANDLES_PER_CALL;
2135
2163
  exports.CandlesStreamService = CandlesStreamService;
2136
2164
  exports.ORDER_STATUSES = ORDER_STATUSES;
2165
+ exports.REST_THROTTLE_MS = REST_THROTTLE_MS;
2137
2166
  exports.SPOT_XEXES = SPOT_XEXES;
2138
2167
  exports.TIMEFRAME_MINUTES = TIMEFRAME_MINUTES;
2139
2168
  exports.Timeframe = Timeframe;
@@ -2143,11 +2172,13 @@ exports.XGATE_EXCHANGES = XGATE_EXCHANGES;
2143
2172
  exports.XgateEx = XgateEx;
2144
2173
  exports.buildLevels = buildLevels;
2145
2174
  exports.buildProtection = buildProtection;
2175
+ exports.candlesPerCallOf = candlesPerCallOf;
2146
2176
  exports.canonicalFromBase = canonicalFromBase;
2147
2177
  exports.canonicalFromXex = canonicalFromXex;
2148
2178
  exports.expiryOf = expiryOf;
2149
2179
  exports.isDated = isDated;
2150
2180
  exports.multiplierFromXex = multiplierFromXex;
2181
+ exports.restThrottleOf = restThrottleOf;
2151
2182
  exports.roundPrice = roundPrice;
2152
2183
  exports.roundToStep = roundToStep;
2153
2184
  exports.servesNatively = servesNatively;