@blackcube/xgate-sdk 0.25.3 → 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 +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -546,6 +546,35 @@ declare const REST_THROTTLE_MS: Partial<Record<XgateEx, number>>;
|
|
|
546
546
|
* plus vite que ce que la table annonce. C'est à lui de sérialiser par venue.
|
|
547
547
|
*/
|
|
548
548
|
declare function restThrottleOf(xex: XgateEx): number | undefined;
|
|
549
|
+
/**
|
|
550
|
+
* TOUT L'HISTORIQUE QU'UNE VENUE ACCEPTE DE SERVIR, en bougies par (marché, intervalle).
|
|
551
|
+
*
|
|
552
|
+
* ⚠️ CE N'EST PAS `CANDLES_PER_CALL`, ET LES CONFONDRE FAIT LIRE UN BACKFILL DE TRAVERS. Le premier plafond dit
|
|
553
|
+
* combien de bougies tiennent dans UN appel : binance en rend 1 500 à la fois et sert pourtant quarante-quatre
|
|
554
|
+
* mois, parce qu'on pagine. Celui-ci dit combien la venue en garde EN TOUT — au-delà, aucune pagination ne sert à
|
|
555
|
+
* rien, elle répond une liste vide.
|
|
556
|
+
*
|
|
557
|
+
* **hyperliquid** : « Only the most recent 5000 candles are available » (documentation officielle,
|
|
558
|
+
* `info` endpoint, `candleSnapshot`). La fenêtre GLISSE : ce qui sort des 5 000 dernières devient définitivement
|
|
559
|
+
* hors de portée. Sondé le 2026-08-16 sur dix symboles au 2024-09-14 en 15m — POL rend ~500 barres (coin peu
|
|
560
|
+
* traité, ses 5 000 bougies s'étalent sur deux ans), les neuf autres rendent ZÉRO.
|
|
561
|
+
*
|
|
562
|
+
* L'horizon couvert dépend donc de l'ACTIVITÉ du marché, jamais d'une durée fixe : en 1d et 1w la venue est
|
|
563
|
+
* complète, le plafond ne mord que sous le jour.
|
|
564
|
+
*
|
|
565
|
+
* ⚠️ UNE VENUE ABSENTE DE CETTE TABLE SERT SON HISTORIQUE COMPLET par pagination, pour autant qu'on sache. Ce
|
|
566
|
+
* n'est pas une valeur par défaut confortable : c'est ce qui a été constaté. Le jour où l'une d'elles s'arrête,
|
|
567
|
+
* on lit sa documentation et on l'ajoute — on ne devine aucun chiffre ici.
|
|
568
|
+
*/
|
|
569
|
+
declare const CANDLES_MAX_HISTORY: Partial<Record<XgateEx, number>>;
|
|
570
|
+
/**
|
|
571
|
+
* Combien de bougies une venue garde au total, ou `undefined` quand elle sert tout son historique.
|
|
572
|
+
*
|
|
573
|
+
* ⚠️ LA CLÉ EST LA VENUE, PAS LA LIGNE DE CATALOGUE DE L'APPELANT — même règle que `candlesPerCallOf` : un
|
|
574
|
+
* consommateur qui sépare le comptant du perpétuel (`binance` / `binance-spot`) résout vers la venue avant de
|
|
575
|
+
* demander, sinon il lit `undefined` et croit à un historique complet.
|
|
576
|
+
*/
|
|
577
|
+
declare function candlesMaxHistoryOf(xex: XgateEx): number | undefined;
|
|
549
578
|
|
|
550
579
|
/**
|
|
551
580
|
* UNE COTATION, TELLE QU'XGATE LA REND — quelle que soit la venue d'où elle vient.
|
|
@@ -1815,4 +1844,4 @@ declare function expiryOf(xtras?: Record<string, unknown>): Date | undefined;
|
|
|
1815
1844
|
*/
|
|
1816
1845
|
declare function isDated(xtras?: Record<string, unknown>): boolean;
|
|
1817
1846
|
|
|
1818
|
-
export { CANDLES_PER_CALL, CandlesService, CandlesStreamRegistry, CandlesStreamService, CatalogService, type Direction, type IAccountState, type IBalance, type ICandle, type ICandlesQuery, type IEntryWithProtection, type IEquityPoint, type IFundingPaid, type IMoveStop, type IMovement, type IOrder, type IPair, type IPosition, type IPrice, type IProtection, type IProtectionInput, type IProtectionLeg, type IPublicTrade, type ITarget, type ITrade, type ITradingAccess, type IWalletAccess, type IXexAccess, type IXexSpotSource, type MarketKind, type MovementKind, type MovementStatus, ORDER_STATUSES, type OrderStatus, type OrderType, PricesService, REST_THROTTLE_MS, SPOT_XEXES, type Side, SpotCandlesService, SpotCatalogService, SpotPricesService, SpotWsCandlesService, TIMEFRAME_MINUTES, type TimeInForce, Timeframe, TradingService, type Unsubscribe, WALLET_XEXES, WS_SUBSCRIPTION_LIMITS, WalletService, WsCandlesService, WsTradesService, XGATE_EXCHANGES, XgateEx, XgateModule, buildLevels, buildProtection, candlesPerCallOf, canonicalFromBase, canonicalFromXex, expiryOf, isDated, multiplierFromXex, restThrottleOf, roundPrice, roundToStep, servesNatively, servesSpot, sourceFor, subscriptionLimitOf, timeframeMs };
|
|
1847
|
+
export { CANDLES_MAX_HISTORY, CANDLES_PER_CALL, CandlesService, CandlesStreamRegistry, CandlesStreamService, CatalogService, type Direction, type IAccountState, type IBalance, type ICandle, type ICandlesQuery, type IEntryWithProtection, type IEquityPoint, type IFundingPaid, type IMoveStop, type IMovement, type IOrder, type IPair, type IPosition, type IPrice, type IProtection, type IProtectionInput, type IProtectionLeg, type IPublicTrade, type ITarget, type ITrade, type ITradingAccess, type IWalletAccess, type IXexAccess, type IXexSpotSource, type MarketKind, type MovementKind, type MovementStatus, ORDER_STATUSES, type OrderStatus, type OrderType, PricesService, REST_THROTTLE_MS, SPOT_XEXES, type Side, SpotCandlesService, SpotCatalogService, SpotPricesService, SpotWsCandlesService, TIMEFRAME_MINUTES, type TimeInForce, Timeframe, TradingService, type Unsubscribe, WALLET_XEXES, WS_SUBSCRIPTION_LIMITS, WalletService, WsCandlesService, WsTradesService, XGATE_EXCHANGES, XgateEx, XgateModule, buildLevels, buildProtection, candlesMaxHistoryOf, candlesPerCallOf, canonicalFromBase, canonicalFromXex, expiryOf, isDated, multiplierFromXex, restThrottleOf, roundPrice, roundToStep, servesNatively, servesSpot, sourceFor, subscriptionLimitOf, timeframeMs };
|
package/dist/index.d.ts
CHANGED
|
@@ -546,6 +546,35 @@ declare const REST_THROTTLE_MS: Partial<Record<XgateEx, number>>;
|
|
|
546
546
|
* plus vite que ce que la table annonce. C'est à lui de sérialiser par venue.
|
|
547
547
|
*/
|
|
548
548
|
declare function restThrottleOf(xex: XgateEx): number | undefined;
|
|
549
|
+
/**
|
|
550
|
+
* TOUT L'HISTORIQUE QU'UNE VENUE ACCEPTE DE SERVIR, en bougies par (marché, intervalle).
|
|
551
|
+
*
|
|
552
|
+
* ⚠️ CE N'EST PAS `CANDLES_PER_CALL`, ET LES CONFONDRE FAIT LIRE UN BACKFILL DE TRAVERS. Le premier plafond dit
|
|
553
|
+
* combien de bougies tiennent dans UN appel : binance en rend 1 500 à la fois et sert pourtant quarante-quatre
|
|
554
|
+
* mois, parce qu'on pagine. Celui-ci dit combien la venue en garde EN TOUT — au-delà, aucune pagination ne sert à
|
|
555
|
+
* rien, elle répond une liste vide.
|
|
556
|
+
*
|
|
557
|
+
* **hyperliquid** : « Only the most recent 5000 candles are available » (documentation officielle,
|
|
558
|
+
* `info` endpoint, `candleSnapshot`). La fenêtre GLISSE : ce qui sort des 5 000 dernières devient définitivement
|
|
559
|
+
* hors de portée. Sondé le 2026-08-16 sur dix symboles au 2024-09-14 en 15m — POL rend ~500 barres (coin peu
|
|
560
|
+
* traité, ses 5 000 bougies s'étalent sur deux ans), les neuf autres rendent ZÉRO.
|
|
561
|
+
*
|
|
562
|
+
* L'horizon couvert dépend donc de l'ACTIVITÉ du marché, jamais d'une durée fixe : en 1d et 1w la venue est
|
|
563
|
+
* complète, le plafond ne mord que sous le jour.
|
|
564
|
+
*
|
|
565
|
+
* ⚠️ UNE VENUE ABSENTE DE CETTE TABLE SERT SON HISTORIQUE COMPLET par pagination, pour autant qu'on sache. Ce
|
|
566
|
+
* n'est pas une valeur par défaut confortable : c'est ce qui a été constaté. Le jour où l'une d'elles s'arrête,
|
|
567
|
+
* on lit sa documentation et on l'ajoute — on ne devine aucun chiffre ici.
|
|
568
|
+
*/
|
|
569
|
+
declare const CANDLES_MAX_HISTORY: Partial<Record<XgateEx, number>>;
|
|
570
|
+
/**
|
|
571
|
+
* Combien de bougies une venue garde au total, ou `undefined` quand elle sert tout son historique.
|
|
572
|
+
*
|
|
573
|
+
* ⚠️ LA CLÉ EST LA VENUE, PAS LA LIGNE DE CATALOGUE DE L'APPELANT — même règle que `candlesPerCallOf` : un
|
|
574
|
+
* consommateur qui sépare le comptant du perpétuel (`binance` / `binance-spot`) résout vers la venue avant de
|
|
575
|
+
* demander, sinon il lit `undefined` et croit à un historique complet.
|
|
576
|
+
*/
|
|
577
|
+
declare function candlesMaxHistoryOf(xex: XgateEx): number | undefined;
|
|
549
578
|
|
|
550
579
|
/**
|
|
551
580
|
* UNE COTATION, TELLE QU'XGATE LA REND — quelle que soit la venue d'où elle vient.
|
|
@@ -1815,4 +1844,4 @@ declare function expiryOf(xtras?: Record<string, unknown>): Date | undefined;
|
|
|
1815
1844
|
*/
|
|
1816
1845
|
declare function isDated(xtras?: Record<string, unknown>): boolean;
|
|
1817
1846
|
|
|
1818
|
-
export { CANDLES_PER_CALL, CandlesService, CandlesStreamRegistry, CandlesStreamService, CatalogService, type Direction, type IAccountState, type IBalance, type ICandle, type ICandlesQuery, type IEntryWithProtection, type IEquityPoint, type IFundingPaid, type IMoveStop, type IMovement, type IOrder, type IPair, type IPosition, type IPrice, type IProtection, type IProtectionInput, type IProtectionLeg, type IPublicTrade, type ITarget, type ITrade, type ITradingAccess, type IWalletAccess, type IXexAccess, type IXexSpotSource, type MarketKind, type MovementKind, type MovementStatus, ORDER_STATUSES, type OrderStatus, type OrderType, PricesService, REST_THROTTLE_MS, SPOT_XEXES, type Side, SpotCandlesService, SpotCatalogService, SpotPricesService, SpotWsCandlesService, TIMEFRAME_MINUTES, type TimeInForce, Timeframe, TradingService, type Unsubscribe, WALLET_XEXES, WS_SUBSCRIPTION_LIMITS, WalletService, WsCandlesService, WsTradesService, XGATE_EXCHANGES, XgateEx, XgateModule, buildLevels, buildProtection, candlesPerCallOf, canonicalFromBase, canonicalFromXex, expiryOf, isDated, multiplierFromXex, restThrottleOf, roundPrice, roundToStep, servesNatively, servesSpot, sourceFor, subscriptionLimitOf, timeframeMs };
|
|
1847
|
+
export { CANDLES_MAX_HISTORY, CANDLES_PER_CALL, CandlesService, CandlesStreamRegistry, CandlesStreamService, CatalogService, type Direction, type IAccountState, type IBalance, type ICandle, type ICandlesQuery, type IEntryWithProtection, type IEquityPoint, type IFundingPaid, type IMoveStop, type IMovement, type IOrder, type IPair, type IPosition, type IPrice, type IProtection, type IProtectionInput, type IProtectionLeg, type IPublicTrade, type ITarget, type ITrade, type ITradingAccess, type IWalletAccess, type IXexAccess, type IXexSpotSource, type MarketKind, type MovementKind, type MovementStatus, ORDER_STATUSES, type OrderStatus, type OrderType, PricesService, REST_THROTTLE_MS, SPOT_XEXES, type Side, SpotCandlesService, SpotCatalogService, SpotPricesService, SpotWsCandlesService, TIMEFRAME_MINUTES, type TimeInForce, Timeframe, TradingService, type Unsubscribe, WALLET_XEXES, WS_SUBSCRIPTION_LIMITS, WalletService, WsCandlesService, WsTradesService, XGATE_EXCHANGES, XgateEx, XgateModule, buildLevels, buildProtection, candlesMaxHistoryOf, candlesPerCallOf, canonicalFromBase, canonicalFromXex, expiryOf, isDated, multiplierFromXex, restThrottleOf, roundPrice, roundToStep, servesNatively, servesSpot, sourceFor, subscriptionLimitOf, timeframeMs };
|
package/dist/index.js
CHANGED
|
@@ -2156,7 +2156,13 @@ var REST_THROTTLE_MS = {
|
|
|
2156
2156
|
function restThrottleOf(xex) {
|
|
2157
2157
|
return REST_THROTTLE_MS[xex];
|
|
2158
2158
|
}
|
|
2159
|
+
var CANDLES_MAX_HISTORY = {
|
|
2160
|
+
hyperliquid: 5e3
|
|
2161
|
+
};
|
|
2162
|
+
function candlesMaxHistoryOf(xex) {
|
|
2163
|
+
return CANDLES_MAX_HISTORY[xex];
|
|
2164
|
+
}
|
|
2159
2165
|
|
|
2160
|
-
export { CANDLES_PER_CALL, CandlesService, CandlesStreamRegistry, CandlesStreamService, CatalogService, ORDER_STATUSES, PricesService, REST_THROTTLE_MS, SPOT_XEXES, SpotCandlesService, SpotCatalogService, SpotPricesService, SpotWsCandlesService, TIMEFRAME_MINUTES, Timeframe, TradingService, WALLET_XEXES, WS_SUBSCRIPTION_LIMITS, WalletService, WsCandlesService, WsTradesService, XGATE_EXCHANGES, XgateEx, XgateModule, buildLevels, buildProtection, candlesPerCallOf, canonicalFromBase, canonicalFromXex, expiryOf, isDated, multiplierFromXex, restThrottleOf, roundPrice, roundToStep, servesNatively, servesSpot, sourceFor, subscriptionLimitOf, timeframeMs };
|
|
2166
|
+
export { CANDLES_MAX_HISTORY, CANDLES_PER_CALL, CandlesService, CandlesStreamRegistry, CandlesStreamService, CatalogService, ORDER_STATUSES, PricesService, REST_THROTTLE_MS, SPOT_XEXES, SpotCandlesService, SpotCatalogService, SpotPricesService, SpotWsCandlesService, TIMEFRAME_MINUTES, Timeframe, TradingService, WALLET_XEXES, WS_SUBSCRIPTION_LIMITS, WalletService, WsCandlesService, WsTradesService, XGATE_EXCHANGES, XgateEx, XgateModule, buildLevels, buildProtection, candlesMaxHistoryOf, candlesPerCallOf, canonicalFromBase, canonicalFromXex, expiryOf, isDated, multiplierFromXex, restThrottleOf, roundPrice, roundToStep, servesNatively, servesSpot, sourceFor, subscriptionLimitOf, timeframeMs };
|
|
2161
2167
|
//# sourceMappingURL=index.js.map
|
|
2162
2168
|
//# sourceMappingURL=index.js.map
|