@stxapp/stx-typescript 0.8.1 → 0.8.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/CHANGELOG.md +12 -0
- package/README.md +23 -20
- package/dist/{chunk-VLNOUSFW.cjs → chunk-SI3EILHN.cjs} +30 -21
- package/dist/chunk-SI3EILHN.cjs.map +1 -0
- package/dist/{chunk-GLUTQFBV.js → chunk-SIYERAKK.js} +30 -21
- package/dist/chunk-SIYERAKK.js.map +1 -0
- package/dist/{client-CRccD5B2.d.cts → client-BrHjO1__.d.cts} +57 -23
- package/dist/{client-CRccD5B2.d.ts → client-BrHjO1__.d.ts} +57 -23
- 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 +17 -17
- 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-GLUTQFBV.js.map +0 -1
- package/dist/chunk-VLNOUSFW.cjs.map +0 -1
|
@@ -254,8 +254,11 @@ interface EventPlayers {
|
|
|
254
254
|
}
|
|
255
255
|
/** One market to create. */
|
|
256
256
|
interface NewMarketInput {
|
|
257
|
-
/**
|
|
258
|
-
|
|
257
|
+
/**
|
|
258
|
+
* The market rule. `"player_stat_line"`, the only one today and the default;
|
|
259
|
+
* the exchange answers any other with `unsupported_rule`.
|
|
260
|
+
*/
|
|
261
|
+
rule?: "player_stat_line" | (string & {});
|
|
259
262
|
/** From `eventPlayers()`. */
|
|
260
263
|
playerId: string;
|
|
261
264
|
/** One of the event's stats, e.g. `Stats.Basketball.POINTS`. */
|
|
@@ -266,30 +269,48 @@ interface NewMarketInput {
|
|
|
266
269
|
* are rejected with `invalid_line`.
|
|
267
270
|
*/
|
|
268
271
|
line: number;
|
|
269
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* @deprecated Not sent. A player stat line is always over/under.
|
|
274
|
+
*/
|
|
270
275
|
propType?: "ou";
|
|
271
276
|
}
|
|
272
277
|
/** Why a market was not created. */
|
|
273
|
-
type MarketRejectionReason = "invalid_market" | "
|
|
274
|
-
/**
|
|
278
|
+
type MarketRejectionReason = "invalid_market" | "unsupported_rule" | "unsupported_stat" | "invalid_line" | "unknown_player" | "event_not_open" | "not_created" | (string & {});
|
|
279
|
+
/** The market a result is for, as it was requested. */
|
|
275
280
|
interface MarketRequestEcho {
|
|
281
|
+
rule?: string;
|
|
276
282
|
player_id?: string;
|
|
277
283
|
stat?: string;
|
|
278
|
-
prop_type?: string;
|
|
279
284
|
line?: number;
|
|
280
285
|
[key: string]: unknown;
|
|
281
286
|
}
|
|
282
|
-
/**
|
|
287
|
+
/**
|
|
288
|
+
* The outcome for one requested market. `index` is the market's position in
|
|
289
|
+
* the list given to `createMarkets()`, and `market` is that market as
|
|
290
|
+
* requested.
|
|
291
|
+
*/
|
|
283
292
|
type CreateMarketResult = {
|
|
293
|
+
index: number;
|
|
284
294
|
status: "created";
|
|
285
295
|
market_id: string;
|
|
296
|
+
reason: null;
|
|
286
297
|
market: MarketRequestEcho;
|
|
287
298
|
} | {
|
|
299
|
+
index: number;
|
|
288
300
|
status: "exists";
|
|
289
301
|
market_id: string;
|
|
302
|
+
reason: null;
|
|
290
303
|
market: MarketRequestEcho;
|
|
291
304
|
} | {
|
|
305
|
+
index: number;
|
|
306
|
+
status: "valid";
|
|
307
|
+
market_id: null;
|
|
308
|
+
reason: null;
|
|
309
|
+
market: MarketRequestEcho;
|
|
310
|
+
} | {
|
|
311
|
+
index: number;
|
|
292
312
|
status: "rejected";
|
|
313
|
+
market_id: null;
|
|
293
314
|
reason: MarketRejectionReason;
|
|
294
315
|
market: MarketRequestEcho;
|
|
295
316
|
};
|
|
@@ -303,6 +324,11 @@ interface CreateMarketsOptions {
|
|
|
303
324
|
* needs the `events` scope.
|
|
304
325
|
*/
|
|
305
326
|
validate?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Run every check on the exchange and create nothing. A market that would
|
|
329
|
+
* be created, or a repeat of one, comes back `valid`.
|
|
330
|
+
*/
|
|
331
|
+
dryRun?: boolean;
|
|
306
332
|
}
|
|
307
333
|
/** The most markets one `createMarkets()` call takes. */
|
|
308
334
|
declare const MAX_MARKETS_PER_REQUEST = 25;
|
|
@@ -2905,7 +2931,7 @@ declare class STXTimeoutException extends STXChannelException {
|
|
|
2905
2931
|
/**
|
|
2906
2932
|
* Combos are not available on this environment: the exchange refused the
|
|
2907
2933
|
* join to the player or maker topic with `unmatched topic`. Nothing else is
|
|
2908
|
-
* affected.
|
|
2934
|
+
* affected. Combos are available on US demo.
|
|
2909
2935
|
*/
|
|
2910
2936
|
declare class STXCombosUnavailableException extends STXChannelException {
|
|
2911
2937
|
}
|
|
@@ -3052,8 +3078,8 @@ declare class ApiKeyCredentials implements AuthProvider {
|
|
|
3052
3078
|
toString(): string;
|
|
3053
3079
|
}
|
|
3054
3080
|
|
|
3055
|
-
declare const VERSION = "0.8.
|
|
3056
|
-
declare const USER_AGENT = "stx-typescript/0.8.
|
|
3081
|
+
declare const VERSION = "0.8.3";
|
|
3082
|
+
declare const USER_AGENT = "stx-typescript/0.8.3";
|
|
3057
3083
|
/**
|
|
3058
3084
|
* `Symbol.asyncDispose` where the runtime has it (Node 20+, Bun), so
|
|
3059
3085
|
* `await using client = new STX()` works there; a registered stand-in on
|
|
@@ -3107,8 +3133,10 @@ declare const CHANNELS: readonly ["balances", "orders", "fills", "positions"];
|
|
|
3107
3133
|
*
|
|
3108
3134
|
* const ws = await client.websocket().connect();
|
|
3109
3135
|
* const view = await ws.accountView({ onChange: (c) => render(c.view.state()) });
|
|
3110
|
-
* view.balance?.available_balance; // "
|
|
3111
|
-
* view.openOrders;
|
|
3136
|
+
* view.balance?.available_balance; // "746.8600"
|
|
3137
|
+
* view.openOrders[0]?.id; // "4702e9b6-211a-4805-a605-0eb0817ee9b3"
|
|
3138
|
+
* view.openOrders[0]?.status; // "open"
|
|
3139
|
+
* view.openOrders[0]?.price; // "0.5800"
|
|
3112
3140
|
*/
|
|
3113
3141
|
declare class AccountView {
|
|
3114
3142
|
#private;
|
|
@@ -3270,7 +3298,8 @@ type ComboPlayerEvent = {
|
|
|
3270
3298
|
interface ComboRfqLeg {
|
|
3271
3299
|
market_id: string;
|
|
3272
3300
|
outcome: ComboOutcome;
|
|
3273
|
-
|
|
3301
|
+
/** Display name of the leg's market. Null when the exchange has no name for it. */
|
|
3302
|
+
short_name: string | null;
|
|
3274
3303
|
}
|
|
3275
3304
|
/** `rfq_opened`: a player opened a request. */
|
|
3276
3305
|
interface ComboRfqOpenedEvent {
|
|
@@ -3406,7 +3435,7 @@ declare abstract class ComboSession<E extends {
|
|
|
3406
3435
|
* The player's side of combos, on `rfq:<user_id>`. Get one with
|
|
3407
3436
|
* `ws.comboPlayer()`.
|
|
3408
3437
|
*
|
|
3409
|
-
*
|
|
3438
|
+
* Available on US demo.
|
|
3410
3439
|
*
|
|
3411
3440
|
* A request belongs to this channel: leaving, a dropped socket or a geo lapse
|
|
3412
3441
|
* ends it `cancelled`, and the SDK's automatic rejoin does not bring it back.
|
|
@@ -3464,7 +3493,7 @@ declare class ComboPlayer extends ComboSession<ComboPlayerEvent> {
|
|
|
3464
3493
|
* `ws.comboMaker()`. Joining subscribes to every request opened after the
|
|
3465
3494
|
* join (`rfq_opened`); earlier requests are not replayed.
|
|
3466
3495
|
*
|
|
3467
|
-
*
|
|
3496
|
+
* Available on US demo.
|
|
3468
3497
|
*
|
|
3469
3498
|
* A quote belongs to this channel: leaving or a dropped socket withdraws it.
|
|
3470
3499
|
* Every refusal throws `STXComboRefusedException` with the exchange's
|
|
@@ -3664,7 +3693,7 @@ interface STXWebSocketOptions extends Pick<STXOptions, "environment" | "region"
|
|
|
3664
3693
|
*
|
|
3665
3694
|
* const client = new STX();
|
|
3666
3695
|
* const ws = await client.websocket().connect();
|
|
3667
|
-
* const book = await ws.orderbook(["
|
|
3696
|
+
* const book = await ws.orderbook(["e00651a3-10cb-4bc1-9e1f-c5ea1796c83b"], { onMessage: console.log });
|
|
3668
3697
|
* const orders = await ws.orders();
|
|
3669
3698
|
* console.log(await orders.waitSnapshot());
|
|
3670
3699
|
* await ws.runForever();
|
|
@@ -3826,7 +3855,7 @@ declare class STXWebSocket {
|
|
|
3826
3855
|
* Join `rfq:{user_id}` and return a `ComboPlayer`: request quotes on a
|
|
3827
3856
|
* combination, cash one out, accept, cancel and read a request.
|
|
3828
3857
|
*
|
|
3829
|
-
*
|
|
3858
|
+
* Available on US demo.
|
|
3830
3859
|
* Where combos are not available, rejects with
|
|
3831
3860
|
* `STXCombosUnavailableException`. Other join refusals (a read-only key, an
|
|
3832
3861
|
* account that may not trade) reject with `STXComboRefusedException`.
|
|
@@ -3836,7 +3865,7 @@ declare class STXWebSocket {
|
|
|
3836
3865
|
* Join `combo_quote:{user_id}` and return a `ComboMaker`: receive every
|
|
3837
3866
|
* request opened from now on (`rfq_opened`), quote and withdraw quotes.
|
|
3838
3867
|
*
|
|
3839
|
-
*
|
|
3868
|
+
* Available on US demo.
|
|
3840
3869
|
* Where combos are not available, rejects with
|
|
3841
3870
|
* `STXCombosUnavailableException`.
|
|
3842
3871
|
*/
|
|
@@ -4014,9 +4043,9 @@ interface PageQuery {
|
|
|
4014
4043
|
type WithoutCursor<T> = Omit<T, "cursor">;
|
|
4015
4044
|
/** The optional fields of one new order. */
|
|
4016
4045
|
interface OrderOptions extends GeoOption {
|
|
4017
|
-
/** Dollars, as a decimal string: `"0.
|
|
4046
|
+
/** Dollars, as a decimal string: `"0.58"`. Required for a limit order. */
|
|
4018
4047
|
price?: string;
|
|
4019
|
-
/** Contracts, as a decimal string: `"
|
|
4048
|
+
/** Contracts, as a decimal string: `"100"`. */
|
|
4020
4049
|
quantity: string;
|
|
4021
4050
|
clientOrderId?: string;
|
|
4022
4051
|
/** `"good_till_start"` or `"good_till_time"`. */
|
|
@@ -4047,7 +4076,9 @@ declare function orderBody(marketId: string, action: string, orderType: string,
|
|
|
4047
4076
|
*
|
|
4048
4077
|
* const client = new STX();
|
|
4049
4078
|
* const me = await client.me();
|
|
4079
|
+
* me.user_id; // "e6528824-b4e0-4ff8-bd70-36e5904738d1"
|
|
4050
4080
|
* const page = await client.markets({ status: "open", limit: 10 });
|
|
4081
|
+
* page.items[0]?.symbol; // "STXNHL-26OCT101600EDMSJ-GAMEEDM"
|
|
4051
4082
|
*/
|
|
4052
4083
|
declare class STX {
|
|
4053
4084
|
#private;
|
|
@@ -4111,14 +4142,17 @@ declare class STX {
|
|
|
4111
4142
|
* `markets.write`, which STX grants, from the client's IP allow-list.
|
|
4112
4143
|
*
|
|
4113
4144
|
* Returns one result per market, in order: `created` or `exists` (both with
|
|
4114
|
-
* `market_id`), or `rejected` with a `reason`.
|
|
4145
|
+
* `market_id`), `valid` with `dryRun`, or `rejected` with a `reason`. Each
|
|
4146
|
+
* result's `index` is its position in `markets`, and `market` is that market
|
|
4147
|
+
* as requested. A rejected market is a
|
|
4115
4148
|
* result, not an error, and resending is safe: a market that is already
|
|
4116
4149
|
* listed comes back `exists`. A refused request throws (`403` without
|
|
4117
4150
|
* `markets.write`, `404` unknown event, `422` event not open).
|
|
4118
4151
|
*
|
|
4119
4152
|
* Each `line` must be a positive number ending in `.5`, e.g. `18.5`. More
|
|
4120
4153
|
* than `MAX_MARKETS_PER_REQUEST` markets throws `TypeError` before any
|
|
4121
|
-
* request. `
|
|
4154
|
+
* request. `dryRun` runs every check and creates nothing. `validate` also
|
|
4155
|
+
* needs the `events` scope.
|
|
4122
4156
|
*/
|
|
4123
4157
|
createMarkets(eventId: string, markets: readonly NewMarketInput[], opts?: CreateMarketsOptions): Promise<CreateMarketResult[]>;
|
|
4124
4158
|
/** `GET /api/v1/orders`: one page of your orders, newest first. */
|
|
@@ -4132,7 +4166,7 @@ declare class STX {
|
|
|
4132
4166
|
*
|
|
4133
4167
|
* `action` is `"buy"` or `"sell"`; `orderType` is `"limit"` or `"market"`.
|
|
4134
4168
|
* `price` (dollars, required for a limit order) and `quantity` (contracts)
|
|
4135
|
-
* are decimal strings, e.g. `{ price: "0.
|
|
4169
|
+
* are decimal strings, e.g. `{ price: "0.58", quantity: "100" }`. Numbers are
|
|
4136
4170
|
* refused client-side.
|
|
4137
4171
|
*
|
|
4138
4172
|
* The exchange validates the order: a bad price step or a fractional
|
|
@@ -254,8 +254,11 @@ interface EventPlayers {
|
|
|
254
254
|
}
|
|
255
255
|
/** One market to create. */
|
|
256
256
|
interface NewMarketInput {
|
|
257
|
-
/**
|
|
258
|
-
|
|
257
|
+
/**
|
|
258
|
+
* The market rule. `"player_stat_line"`, the only one today and the default;
|
|
259
|
+
* the exchange answers any other with `unsupported_rule`.
|
|
260
|
+
*/
|
|
261
|
+
rule?: "player_stat_line" | (string & {});
|
|
259
262
|
/** From `eventPlayers()`. */
|
|
260
263
|
playerId: string;
|
|
261
264
|
/** One of the event's stats, e.g. `Stats.Basketball.POINTS`. */
|
|
@@ -266,30 +269,48 @@ interface NewMarketInput {
|
|
|
266
269
|
* are rejected with `invalid_line`.
|
|
267
270
|
*/
|
|
268
271
|
line: number;
|
|
269
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* @deprecated Not sent. A player stat line is always over/under.
|
|
274
|
+
*/
|
|
270
275
|
propType?: "ou";
|
|
271
276
|
}
|
|
272
277
|
/** Why a market was not created. */
|
|
273
|
-
type MarketRejectionReason = "invalid_market" | "
|
|
274
|
-
/**
|
|
278
|
+
type MarketRejectionReason = "invalid_market" | "unsupported_rule" | "unsupported_stat" | "invalid_line" | "unknown_player" | "event_not_open" | "not_created" | (string & {});
|
|
279
|
+
/** The market a result is for, as it was requested. */
|
|
275
280
|
interface MarketRequestEcho {
|
|
281
|
+
rule?: string;
|
|
276
282
|
player_id?: string;
|
|
277
283
|
stat?: string;
|
|
278
|
-
prop_type?: string;
|
|
279
284
|
line?: number;
|
|
280
285
|
[key: string]: unknown;
|
|
281
286
|
}
|
|
282
|
-
/**
|
|
287
|
+
/**
|
|
288
|
+
* The outcome for one requested market. `index` is the market's position in
|
|
289
|
+
* the list given to `createMarkets()`, and `market` is that market as
|
|
290
|
+
* requested.
|
|
291
|
+
*/
|
|
283
292
|
type CreateMarketResult = {
|
|
293
|
+
index: number;
|
|
284
294
|
status: "created";
|
|
285
295
|
market_id: string;
|
|
296
|
+
reason: null;
|
|
286
297
|
market: MarketRequestEcho;
|
|
287
298
|
} | {
|
|
299
|
+
index: number;
|
|
288
300
|
status: "exists";
|
|
289
301
|
market_id: string;
|
|
302
|
+
reason: null;
|
|
290
303
|
market: MarketRequestEcho;
|
|
291
304
|
} | {
|
|
305
|
+
index: number;
|
|
306
|
+
status: "valid";
|
|
307
|
+
market_id: null;
|
|
308
|
+
reason: null;
|
|
309
|
+
market: MarketRequestEcho;
|
|
310
|
+
} | {
|
|
311
|
+
index: number;
|
|
292
312
|
status: "rejected";
|
|
313
|
+
market_id: null;
|
|
293
314
|
reason: MarketRejectionReason;
|
|
294
315
|
market: MarketRequestEcho;
|
|
295
316
|
};
|
|
@@ -303,6 +324,11 @@ interface CreateMarketsOptions {
|
|
|
303
324
|
* needs the `events` scope.
|
|
304
325
|
*/
|
|
305
326
|
validate?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Run every check on the exchange and create nothing. A market that would
|
|
329
|
+
* be created, or a repeat of one, comes back `valid`.
|
|
330
|
+
*/
|
|
331
|
+
dryRun?: boolean;
|
|
306
332
|
}
|
|
307
333
|
/** The most markets one `createMarkets()` call takes. */
|
|
308
334
|
declare const MAX_MARKETS_PER_REQUEST = 25;
|
|
@@ -2905,7 +2931,7 @@ declare class STXTimeoutException extends STXChannelException {
|
|
|
2905
2931
|
/**
|
|
2906
2932
|
* Combos are not available on this environment: the exchange refused the
|
|
2907
2933
|
* join to the player or maker topic with `unmatched topic`. Nothing else is
|
|
2908
|
-
* affected.
|
|
2934
|
+
* affected. Combos are available on US demo.
|
|
2909
2935
|
*/
|
|
2910
2936
|
declare class STXCombosUnavailableException extends STXChannelException {
|
|
2911
2937
|
}
|
|
@@ -3052,8 +3078,8 @@ declare class ApiKeyCredentials implements AuthProvider {
|
|
|
3052
3078
|
toString(): string;
|
|
3053
3079
|
}
|
|
3054
3080
|
|
|
3055
|
-
declare const VERSION = "0.8.
|
|
3056
|
-
declare const USER_AGENT = "stx-typescript/0.8.
|
|
3081
|
+
declare const VERSION = "0.8.3";
|
|
3082
|
+
declare const USER_AGENT = "stx-typescript/0.8.3";
|
|
3057
3083
|
/**
|
|
3058
3084
|
* `Symbol.asyncDispose` where the runtime has it (Node 20+, Bun), so
|
|
3059
3085
|
* `await using client = new STX()` works there; a registered stand-in on
|
|
@@ -3107,8 +3133,10 @@ declare const CHANNELS: readonly ["balances", "orders", "fills", "positions"];
|
|
|
3107
3133
|
*
|
|
3108
3134
|
* const ws = await client.websocket().connect();
|
|
3109
3135
|
* const view = await ws.accountView({ onChange: (c) => render(c.view.state()) });
|
|
3110
|
-
* view.balance?.available_balance; // "
|
|
3111
|
-
* view.openOrders;
|
|
3136
|
+
* view.balance?.available_balance; // "746.8600"
|
|
3137
|
+
* view.openOrders[0]?.id; // "4702e9b6-211a-4805-a605-0eb0817ee9b3"
|
|
3138
|
+
* view.openOrders[0]?.status; // "open"
|
|
3139
|
+
* view.openOrders[0]?.price; // "0.5800"
|
|
3112
3140
|
*/
|
|
3113
3141
|
declare class AccountView {
|
|
3114
3142
|
#private;
|
|
@@ -3270,7 +3298,8 @@ type ComboPlayerEvent = {
|
|
|
3270
3298
|
interface ComboRfqLeg {
|
|
3271
3299
|
market_id: string;
|
|
3272
3300
|
outcome: ComboOutcome;
|
|
3273
|
-
|
|
3301
|
+
/** Display name of the leg's market. Null when the exchange has no name for it. */
|
|
3302
|
+
short_name: string | null;
|
|
3274
3303
|
}
|
|
3275
3304
|
/** `rfq_opened`: a player opened a request. */
|
|
3276
3305
|
interface ComboRfqOpenedEvent {
|
|
@@ -3406,7 +3435,7 @@ declare abstract class ComboSession<E extends {
|
|
|
3406
3435
|
* The player's side of combos, on `rfq:<user_id>`. Get one with
|
|
3407
3436
|
* `ws.comboPlayer()`.
|
|
3408
3437
|
*
|
|
3409
|
-
*
|
|
3438
|
+
* Available on US demo.
|
|
3410
3439
|
*
|
|
3411
3440
|
* A request belongs to this channel: leaving, a dropped socket or a geo lapse
|
|
3412
3441
|
* ends it `cancelled`, and the SDK's automatic rejoin does not bring it back.
|
|
@@ -3464,7 +3493,7 @@ declare class ComboPlayer extends ComboSession<ComboPlayerEvent> {
|
|
|
3464
3493
|
* `ws.comboMaker()`. Joining subscribes to every request opened after the
|
|
3465
3494
|
* join (`rfq_opened`); earlier requests are not replayed.
|
|
3466
3495
|
*
|
|
3467
|
-
*
|
|
3496
|
+
* Available on US demo.
|
|
3468
3497
|
*
|
|
3469
3498
|
* A quote belongs to this channel: leaving or a dropped socket withdraws it.
|
|
3470
3499
|
* Every refusal throws `STXComboRefusedException` with the exchange's
|
|
@@ -3664,7 +3693,7 @@ interface STXWebSocketOptions extends Pick<STXOptions, "environment" | "region"
|
|
|
3664
3693
|
*
|
|
3665
3694
|
* const client = new STX();
|
|
3666
3695
|
* const ws = await client.websocket().connect();
|
|
3667
|
-
* const book = await ws.orderbook(["
|
|
3696
|
+
* const book = await ws.orderbook(["e00651a3-10cb-4bc1-9e1f-c5ea1796c83b"], { onMessage: console.log });
|
|
3668
3697
|
* const orders = await ws.orders();
|
|
3669
3698
|
* console.log(await orders.waitSnapshot());
|
|
3670
3699
|
* await ws.runForever();
|
|
@@ -3826,7 +3855,7 @@ declare class STXWebSocket {
|
|
|
3826
3855
|
* Join `rfq:{user_id}` and return a `ComboPlayer`: request quotes on a
|
|
3827
3856
|
* combination, cash one out, accept, cancel and read a request.
|
|
3828
3857
|
*
|
|
3829
|
-
*
|
|
3858
|
+
* Available on US demo.
|
|
3830
3859
|
* Where combos are not available, rejects with
|
|
3831
3860
|
* `STXCombosUnavailableException`. Other join refusals (a read-only key, an
|
|
3832
3861
|
* account that may not trade) reject with `STXComboRefusedException`.
|
|
@@ -3836,7 +3865,7 @@ declare class STXWebSocket {
|
|
|
3836
3865
|
* Join `combo_quote:{user_id}` and return a `ComboMaker`: receive every
|
|
3837
3866
|
* request opened from now on (`rfq_opened`), quote and withdraw quotes.
|
|
3838
3867
|
*
|
|
3839
|
-
*
|
|
3868
|
+
* Available on US demo.
|
|
3840
3869
|
* Where combos are not available, rejects with
|
|
3841
3870
|
* `STXCombosUnavailableException`.
|
|
3842
3871
|
*/
|
|
@@ -4014,9 +4043,9 @@ interface PageQuery {
|
|
|
4014
4043
|
type WithoutCursor<T> = Omit<T, "cursor">;
|
|
4015
4044
|
/** The optional fields of one new order. */
|
|
4016
4045
|
interface OrderOptions extends GeoOption {
|
|
4017
|
-
/** Dollars, as a decimal string: `"0.
|
|
4046
|
+
/** Dollars, as a decimal string: `"0.58"`. Required for a limit order. */
|
|
4018
4047
|
price?: string;
|
|
4019
|
-
/** Contracts, as a decimal string: `"
|
|
4048
|
+
/** Contracts, as a decimal string: `"100"`. */
|
|
4020
4049
|
quantity: string;
|
|
4021
4050
|
clientOrderId?: string;
|
|
4022
4051
|
/** `"good_till_start"` or `"good_till_time"`. */
|
|
@@ -4047,7 +4076,9 @@ declare function orderBody(marketId: string, action: string, orderType: string,
|
|
|
4047
4076
|
*
|
|
4048
4077
|
* const client = new STX();
|
|
4049
4078
|
* const me = await client.me();
|
|
4079
|
+
* me.user_id; // "e6528824-b4e0-4ff8-bd70-36e5904738d1"
|
|
4050
4080
|
* const page = await client.markets({ status: "open", limit: 10 });
|
|
4081
|
+
* page.items[0]?.symbol; // "STXNHL-26OCT101600EDMSJ-GAMEEDM"
|
|
4051
4082
|
*/
|
|
4052
4083
|
declare class STX {
|
|
4053
4084
|
#private;
|
|
@@ -4111,14 +4142,17 @@ declare class STX {
|
|
|
4111
4142
|
* `markets.write`, which STX grants, from the client's IP allow-list.
|
|
4112
4143
|
*
|
|
4113
4144
|
* Returns one result per market, in order: `created` or `exists` (both with
|
|
4114
|
-
* `market_id`), or `rejected` with a `reason`.
|
|
4145
|
+
* `market_id`), `valid` with `dryRun`, or `rejected` with a `reason`. Each
|
|
4146
|
+
* result's `index` is its position in `markets`, and `market` is that market
|
|
4147
|
+
* as requested. A rejected market is a
|
|
4115
4148
|
* result, not an error, and resending is safe: a market that is already
|
|
4116
4149
|
* listed comes back `exists`. A refused request throws (`403` without
|
|
4117
4150
|
* `markets.write`, `404` unknown event, `422` event not open).
|
|
4118
4151
|
*
|
|
4119
4152
|
* Each `line` must be a positive number ending in `.5`, e.g. `18.5`. More
|
|
4120
4153
|
* than `MAX_MARKETS_PER_REQUEST` markets throws `TypeError` before any
|
|
4121
|
-
* request. `
|
|
4154
|
+
* request. `dryRun` runs every check and creates nothing. `validate` also
|
|
4155
|
+
* needs the `events` scope.
|
|
4122
4156
|
*/
|
|
4123
4157
|
createMarkets(eventId: string, markets: readonly NewMarketInput[], opts?: CreateMarketsOptions): Promise<CreateMarketResult[]>;
|
|
4124
4158
|
/** `GET /api/v1/orders`: one page of your orders, newest first. */
|
|
@@ -4132,7 +4166,7 @@ declare class STX {
|
|
|
4132
4166
|
*
|
|
4133
4167
|
* `action` is `"buy"` or `"sell"`; `orderType` is `"limit"` or `"market"`.
|
|
4134
4168
|
* `price` (dollars, required for a limit order) and `quantity` (contracts)
|
|
4135
|
-
* are decimal strings, e.g. `{ price: "0.
|
|
4169
|
+
* are decimal strings, e.g. `{ price: "0.58", quantity: "100" }`. Numbers are
|
|
4136
4170
|
* refused client-side.
|
|
4137
4171
|
*
|
|
4138
4172
|
* The exchange validates the order: a bad price step or a fractional
|
package/dist/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkSI3EILHNcjs = require('./chunk-SI3EILHN.cjs');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -133,5 +133,5 @@ var _chunkVLNOUSFWcjs = require('./chunk-VLNOUSFW.cjs');
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
exports.AccountView =
|
|
136
|
+
exports.AccountView = _chunkSI3EILHNcjs.AccountView; exports.ApiKeyCredentials = _chunkSI3EILHNcjs.ApiKeyCredentials; exports.Channel = _chunkSI3EILHNcjs.Channel; exports.ChannelMessage = _chunkSI3EILHNcjs.ChannelMessage; exports.ComboMaker = _chunkSI3EILHNcjs.ComboMaker; exports.ComboPlayer = _chunkSI3EILHNcjs.ComboPlayer; exports.Environment = _chunkSI3EILHNcjs.Environment; exports.Environments = _chunkSI3EILHNcjs.Environments; exports.HOSTS = _chunkSI3EILHNcjs.HOSTS; exports.KEY_HEADER = _chunkSI3EILHNcjs.KEY_HEADER; exports.MAX_MARKETS_PER_REQUEST = _chunkSI3EILHNcjs.MAX_MARKETS_PER_REQUEST; exports.NO_RETRY = _chunkSI3EILHNcjs.NO_RETRY; exports.OPERATIONS = _chunkSI3EILHNcjs.OPERATIONS; exports.Page = _chunkSI3EILHNcjs.Page; exports.ReconnectPolicy = _chunkSI3EILHNcjs.ReconnectPolicy; exports.Region = _chunkSI3EILHNcjs.Region; exports.RetryPolicy = _chunkSI3EILHNcjs.RetryPolicy; exports.SIGNATURE_HEADER = _chunkSI3EILHNcjs.SIGNATURE_HEADER; exports.SNAPSHOT_EVENTS = _chunkSI3EILHNcjs.SNAPSHOT_EVENTS; exports.STX = _chunkSI3EILHNcjs.STX; exports.STXAPIException = _chunkSI3EILHNcjs.STXAPIException; exports.STXAuthenticationException = _chunkSI3EILHNcjs.STXAuthenticationException; exports.STXChannelException = _chunkSI3EILHNcjs.STXChannelException; exports.STXComboPriceMovedException = _chunkSI3EILHNcjs.STXComboPriceMovedException; exports.STXComboRefusedException = _chunkSI3EILHNcjs.STXComboRefusedException; exports.STXCombosUnavailableException = _chunkSI3EILHNcjs.STXCombosUnavailableException; exports.STXConfigException = _chunkSI3EILHNcjs.STXConfigException; exports.STXException = _chunkSI3EILHNcjs.STXException; exports.STXForbiddenException = _chunkSI3EILHNcjs.STXForbiddenException; exports.STXGeoLocationException = _chunkSI3EILHNcjs.STXGeoLocationException; exports.STXInsufficientScopeException = _chunkSI3EILHNcjs.STXInsufficientScopeException; exports.STXInvalidTokenException = _chunkSI3EILHNcjs.STXInvalidTokenException; exports.STXNotFoundException = _chunkSI3EILHNcjs.STXNotFoundException; exports.STXRateLimitException = _chunkSI3EILHNcjs.STXRateLimitException; exports.STXRejectedException = _chunkSI3EILHNcjs.STXRejectedException; exports.STXServerException = _chunkSI3EILHNcjs.STXServerException; exports.STXTimeoutException = _chunkSI3EILHNcjs.STXTimeoutException; exports.STXTransportException = _chunkSI3EILHNcjs.STXTransportException; exports.STXValidationException = _chunkSI3EILHNcjs.STXValidationException; exports.STXWebSocket = _chunkSI3EILHNcjs.STXWebSocket; exports.Stats = _chunkSI3EILHNcjs.Stats; exports.TERMINAL_ORDER_STATUSES = _chunkSI3EILHNcjs.TERMINAL_ORDER_STATUSES; exports.TIMESTAMP_HEADER = _chunkSI3EILHNcjs.TIMESTAMP_HEADER; exports.USER_AGENT = _chunkSI3EILHNcjs.USER_AGENT; exports.VERSION = _chunkSI3EILHNcjs.VERSION; exports.baseUrlFor = _chunkSI3EILHNcjs.baseUrlFor; exports.buildMessage = _chunkSI3EILHNcjs.buildMessage; exports.centsToDollars = _chunkSI3EILHNcjs.centsToDollars; exports.convertBook = _chunkSI3EILHNcjs.convertBook; exports.convertMarketChannelPayload = _chunkSI3EILHNcjs.convertMarketChannelPayload; exports.convertMarketPayload = _chunkSI3EILHNcjs.convertMarketPayload; exports.convertMarketsFrame = _chunkSI3EILHNcjs.convertMarketsFrame; exports.environmentNamed = _chunkSI3EILHNcjs.environmentNamed; exports.errorForStatus = _chunkSI3EILHNcjs.errorForStatus; exports.geoRejection = _chunkSI3EILHNcjs.geoRejection; exports.handshakePath = _chunkSI3EILHNcjs.handshakePath; exports.isValidLine = _chunkSI3EILHNcjs.isValidLine; exports.loadPrivateKey = _chunkSI3EILHNcjs.loadPrivateKey; exports.orderBody = _chunkSI3EILHNcjs.orderBody; exports.requestPath = _chunkSI3EILHNcjs.requestPath; exports.resolveHost = _chunkSI3EILHNcjs.resolveHost; exports.resolveSettings = _chunkSI3EILHNcjs.resolveSettings; exports.signerFromPrivateKey = _chunkSI3EILHNcjs.signerFromPrivateKey; exports.socketUrlFor = _chunkSI3EILHNcjs.socketUrlFor; exports.toDollarString = _chunkSI3EILHNcjs.toDollarString; exports.toQuantity = _chunkSI3EILHNcjs.toQuantity;
|
|
137
137
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-
|
|
1
|
+
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-BrHjO1__.cjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
|
|
4
4
|
/** The fully resolved configuration the clients consume. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-
|
|
1
|
+
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-BrHjO1__.js';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
|
|
4
4
|
/** The fully resolved configuration the clients consume. */
|