@blackcube/xgate-sdk 0.25.2 → 0.25.4

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,44 @@ 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
+ var CANDLES_MAX_HISTORY = {
2162
+ hyperliquid: 5e3
2163
+ };
2164
+ function candlesMaxHistoryOf(xex) {
2165
+ return CANDLES_MAX_HISTORY[xex];
2166
+ }
2167
+
2168
+ exports.CANDLES_MAX_HISTORY = CANDLES_MAX_HISTORY;
2169
+ exports.CANDLES_PER_CALL = CANDLES_PER_CALL;
2135
2170
  exports.CandlesStreamService = CandlesStreamService;
2136
2171
  exports.ORDER_STATUSES = ORDER_STATUSES;
2172
+ exports.REST_THROTTLE_MS = REST_THROTTLE_MS;
2137
2173
  exports.SPOT_XEXES = SPOT_XEXES;
2138
2174
  exports.TIMEFRAME_MINUTES = TIMEFRAME_MINUTES;
2139
2175
  exports.Timeframe = Timeframe;
@@ -2143,11 +2179,14 @@ exports.XGATE_EXCHANGES = XGATE_EXCHANGES;
2143
2179
  exports.XgateEx = XgateEx;
2144
2180
  exports.buildLevels = buildLevels;
2145
2181
  exports.buildProtection = buildProtection;
2182
+ exports.candlesMaxHistoryOf = candlesMaxHistoryOf;
2183
+ exports.candlesPerCallOf = candlesPerCallOf;
2146
2184
  exports.canonicalFromBase = canonicalFromBase;
2147
2185
  exports.canonicalFromXex = canonicalFromXex;
2148
2186
  exports.expiryOf = expiryOf;
2149
2187
  exports.isDated = isDated;
2150
2188
  exports.multiplierFromXex = multiplierFromXex;
2189
+ exports.restThrottleOf = restThrottleOf;
2151
2190
  exports.roundPrice = roundPrice;
2152
2191
  exports.roundToStep = roundToStep;
2153
2192
  exports.servesNatively = servesNatively;