@stxapp/stx-typescript 0.12.0 → 0.12.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/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/dist/{chunk-JJRK3Z27.js → chunk-NYUIPUZH.js} +22 -4
- package/dist/chunk-NYUIPUZH.js.map +1 -0
- package/dist/{chunk-B3JQFXMJ.cjs → chunk-WTKAZNEP.cjs} +22 -4
- package/dist/chunk-WTKAZNEP.cjs.map +1 -0
- package/dist/{client-CwshT5D4.d.ts → client-CjXFrcQR.d.cts} +3 -3
- package/dist/{client-CwshT5D4.d.cts → client-CjXFrcQR.d.ts} +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/oauth.cjs +30 -30
- package/dist/oauth.d.cts +2 -2
- package/dist/oauth.d.ts +2 -2
- package/dist/oauth.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-B3JQFXMJ.cjs.map +0 -1
- package/dist/chunk-JJRK3Z27.js.map +0 -1
|
@@ -311,7 +311,22 @@ var FEATURES = [
|
|
|
311
311
|
"event_players",
|
|
312
312
|
"leaderboard",
|
|
313
313
|
"loyalty",
|
|
314
|
-
"combos"
|
|
314
|
+
"combos",
|
|
315
|
+
/**
|
|
316
|
+
* @deprecated The exchange no longer publishes whether it takes post-only
|
|
317
|
+
* orders, so this is always `null` (unknown). Send the order with
|
|
318
|
+
* `fillMode: "post_only"` and handle `STXNotAvailableException`. An exchange
|
|
319
|
+
* on a release from before fill modes may place it as a normal limit order.
|
|
320
|
+
*/
|
|
321
|
+
"orders.post_only",
|
|
322
|
+
/**
|
|
323
|
+
* @deprecated The exchange no longer publishes whether it takes fill-or-kill
|
|
324
|
+
* orders, so this is always `null` (unknown). Send the order with
|
|
325
|
+
* `fillMode: "fill_or_kill"` and handle `STXNotAvailableException`. An
|
|
326
|
+
* exchange on a release from before fill modes may place it as a normal
|
|
327
|
+
* limit order.
|
|
328
|
+
*/
|
|
329
|
+
"orders.fill_or_kill"
|
|
315
330
|
];
|
|
316
331
|
var MEMBER_SCOPES = [
|
|
317
332
|
"profile.read",
|
|
@@ -423,7 +438,10 @@ async function discoverCapabilities(probes) {
|
|
|
423
438
|
leaderboard: board === null ? null : board.status >= 200 && board.status < 300 ? true : board.status === 404 ? false : null,
|
|
424
439
|
// Switched off answers 404 ("Loyalty program is not enabled").
|
|
425
440
|
loyalty: loyalty === null ? null : loyalty.status >= 200 && loyalty.status < 300 ? true : loyalty.status === 404 ? false : null,
|
|
426
|
-
combos: combos === null ? null : combos !== "unmatched topic"
|
|
441
|
+
combos: combos === null ? null : combos !== "unmatched topic",
|
|
442
|
+
// Kept so code written for 0.11 still compiles; the exchange publishes no answer.
|
|
443
|
+
"orders.post_only": null,
|
|
444
|
+
"orders.fill_or_kill": null
|
|
427
445
|
};
|
|
428
446
|
return new Capabilities({
|
|
429
447
|
host: probes.host,
|
|
@@ -1256,7 +1274,7 @@ function credentialsFromSettings(keyId, privateKey, signer) {
|
|
|
1256
1274
|
}
|
|
1257
1275
|
|
|
1258
1276
|
// src/version.ts
|
|
1259
|
-
var VERSION = "0.12.
|
|
1277
|
+
var VERSION = "0.12.1";
|
|
1260
1278
|
var USER_AGENT = `stx-typescript/${VERSION}`;
|
|
1261
1279
|
var ASYNC_DISPOSE = _nullishCoalesce(Symbol.asyncDispose, () => ( /* @__PURE__ */ Symbol.for("Symbol.asyncDispose")));
|
|
1262
1280
|
|
|
@@ -3925,4 +3943,4 @@ function dropUndefined(payload) {
|
|
|
3925
3943
|
|
|
3926
3944
|
|
|
3927
3945
|
exports.STXException = STXException; exports.STXConfigException = STXConfigException; exports.STXAPIException = STXAPIException; exports.STXValidationException = STXValidationException; exports.STXAuthenticationException = STXAuthenticationException; exports.STXForbiddenException = STXForbiddenException; exports.STXInvalidTokenException = STXInvalidTokenException; exports.STXInsufficientScopeException = STXInsufficientScopeException; exports.STXTermsRequiredException = STXTermsRequiredException; exports.STXIPNotAllowedException = STXIPNotAllowedException; exports.STXBlockedException = STXBlockedException; exports.STXRestrictedJurisdictionException = STXRestrictedJurisdictionException; exports.STXUnusualNetworkException = STXUnusualNetworkException; exports.STXNotFoundException = STXNotFoundException; exports.STXRejectedException = STXRejectedException; exports.STXFillModeNotAllowedException = STXFillModeNotAllowedException; exports.STXPostOnlyWouldMatchException = STXPostOnlyWouldMatchException; exports.STXRateLimitException = STXRateLimitException; exports.STXServerException = STXServerException; exports.STXTransportException = STXTransportException; exports.STXChannelException = STXChannelException; exports.STXTimeoutException = STXTimeoutException; exports.notAvailableMessage = notAvailableMessage; exports.STXNotAvailableException = STXNotAvailableException; exports.STXCombosUnavailableException = STXCombosUnavailableException; exports.isEdgeBlock = isEdgeBlock; exports.STXComboRefusedException = STXComboRefusedException; exports.STXComboPriceMovedException = STXComboPriceMovedException; exports.errorForStatus = errorForStatus; exports.FEATURES = FEATURES; exports.Capabilities = Capabilities; exports.Region = Region; exports.Environment = Environment; exports.Environments = Environments; exports.HOSTS = HOSTS; exports.environmentNamed = environmentNamed; exports.resolveHost = resolveHost; exports.baseUrlFor = baseUrlFor; exports.socketUrlFor = socketUrlFor; exports.OPERATIONS = OPERATIONS; exports.Stats = Stats; exports.MAX_MARKETS_PER_REQUEST = MAX_MARKETS_PER_REQUEST; exports.isValidLine = isValidLine; exports.Page = Page; exports.RetryPolicy = RetryPolicy; exports.NO_RETRY = NO_RETRY; exports.resolveSettings = resolveSettings; exports.KEY_HEADER = KEY_HEADER; exports.TIMESTAMP_HEADER = TIMESTAMP_HEADER; exports.SIGNATURE_HEADER = SIGNATURE_HEADER; exports.buildMessage = buildMessage; exports.requestPath = requestPath; exports.handshakePath = handshakePath; exports.loadPrivateKey = loadPrivateKey; exports.signerFromPrivateKey = signerFromPrivateKey; exports.ApiKeyCredentials = ApiKeyCredentials; exports.VERSION = VERSION; exports.USER_AGENT = USER_AGENT; exports.TERMINAL_ORDER_STATUSES = TERMINAL_ORDER_STATUSES; exports.AccountView = AccountView; exports.ComboPlayer = ComboPlayer; exports.ComboMaker = ComboMaker; exports.centsToDollars = centsToDollars; exports.toDollarString = toDollarString; exports.toQuantity = toQuantity; exports.convertMarketPayload = convertMarketPayload; exports.convertMarketsFrame = convertMarketsFrame; exports.convertBook = convertBook; exports.convertMarketChannelPayload = convertMarketChannelPayload; exports.SNAPSHOT_EVENTS = SNAPSHOT_EVENTS; exports.ChannelMessage = ChannelMessage; exports.ReconnectPolicy = ReconnectPolicy; exports.Channel = Channel; exports.STXWebSocket = STXWebSocket; exports.orderBody = orderBody; exports.STX = STX;
|
|
3928
|
-
//# sourceMappingURL=chunk-
|
|
3946
|
+
//# sourceMappingURL=chunk-WTKAZNEP.cjs.map
|