@stxapp/stx-typescript 0.9.0 → 0.10.0
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 +23 -0
- package/dist/{chunk-R77AZ5UH.cjs → chunk-42OCIF3G.cjs} +193 -164
- package/dist/chunk-42OCIF3G.cjs.map +1 -0
- package/dist/{chunk-46XK6VDD.js → chunk-FTZCBXT7.js} +179 -150
- package/dist/chunk-FTZCBXT7.js.map +1 -0
- package/dist/{client-B-MMKiRt.d.ts → client-DJr0UUvB.d.cts} +51 -130
- package/dist/{client-B-MMKiRt.d.cts → client-DJr0UUvB.d.ts} +51 -130
- package/dist/index.cjs +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -5
- 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-46XK6VDD.js.map +0 -1
- package/dist/chunk-R77AZ5UH.cjs.map +0 -1
|
@@ -31,7 +31,7 @@ interface WebSocketAuthContext {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/** The features `STX.capabilities()` reports, by stable id. */
|
|
34
|
-
declare const FEATURES: readonly ["oauth", "oauth.member", "oauth.app", "connect", "terms.stx_page", "markets.create", "market_types", "event_players", "leaderboard", "combos"];
|
|
34
|
+
declare const FEATURES: readonly ["oauth", "oauth.member", "oauth.app", "connect", "terms.stx_page", "markets.create", "market_types", "event_players", "leaderboard", "loyalty", "combos"];
|
|
35
35
|
/** A feature id `STX.capabilities()` reports. */
|
|
36
36
|
type Feature = (typeof FEATURES)[number];
|
|
37
37
|
/**
|
|
@@ -150,36 +150,6 @@ declare function baseUrlFor(region: string | null | undefined, env: string | nul
|
|
|
150
150
|
/** The WebSocket URL for an API base URL: https maps to wss, http to ws. */
|
|
151
151
|
declare function socketUrlFor(baseUrl: string): string;
|
|
152
152
|
|
|
153
|
-
/** Why the exchange's geo-fencing refused a request. */
|
|
154
|
-
interface GeoRejection {
|
|
155
|
-
reason: "ip_not_allowed" | "packet_invalid" | "packet_other_user" | "packet_ip_mismatch" | "location_not_allowed";
|
|
156
|
-
/** The address the exchange saw, when its message names one. */
|
|
157
|
-
ipAddress?: string;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* A geolocation packet, or a function returning one (sync or async). Return
|
|
161
|
-
* `undefined` to send none for that request.
|
|
162
|
-
*/
|
|
163
|
-
type GeoLocationProvider = string | (() => string | undefined | null | Promise<string | undefined | null>);
|
|
164
|
-
/**
|
|
165
|
-
* Classify a 422 message from an order write. Returns undefined for a refusal
|
|
166
|
-
* that is not geo-fencing (funds, market closed, price step).
|
|
167
|
-
*/
|
|
168
|
-
declare function geoRejection(message: string): GeoRejection | undefined;
|
|
169
|
-
/** The outcome of `STX.geoCheck()`. */
|
|
170
|
-
interface GeoCheckResult {
|
|
171
|
-
/** True when the exchange would accept an order write from here now. */
|
|
172
|
-
allowed: boolean;
|
|
173
|
-
/** Set when `allowed` is false. */
|
|
174
|
-
reason?: GeoRejection["reason"];
|
|
175
|
-
/** The exchange's message when `allowed` is false. */
|
|
176
|
-
message?: string;
|
|
177
|
-
/** The address the exchange saw, when its message names one. */
|
|
178
|
-
ipAddress?: string;
|
|
179
|
-
/** Whether a geolocation packet was sent with the check. */
|
|
180
|
-
sentPacket: boolean;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
153
|
/**
|
|
184
154
|
* Player stats by sport, as the exchange names them. Use these for
|
|
185
155
|
* autocomplete; the stats a given event accepts are the ones
|
|
@@ -1918,19 +1888,6 @@ interface NewOrder {
|
|
|
1918
1888
|
* `good_till_time`. UNIX microseconds.
|
|
1919
1889
|
*/
|
|
1920
1890
|
expiration_time?: number | null;
|
|
1921
|
-
/**
|
|
1922
|
-
* Location code from the STX geolocation check, covering this order. Inside a
|
|
1923
|
-
* `POST /api/v1/orders/batched` leg it is ignored; send the batch's top-level
|
|
1924
|
-
* `geo_location` instead. Read only in environments that enforce geo-fencing,
|
|
1925
|
-
* and ignored elsewhere. Where it is read, omitting it is a 422 (`Placing
|
|
1926
|
-
* Order(s) from this IP address … is disallowed.`) unless that environment
|
|
1927
|
-
* accepts the network location the request arrives from in its place, which
|
|
1928
|
-
* it can refuse for an address identified as a VPN, proxy or hosting
|
|
1929
|
-
* provider. Do not rely on omitting it: send the code whenever you have one.
|
|
1930
|
-
* A code that is sent is always checked, so a bad one is a 422 even where
|
|
1931
|
-
* omitting it would have been accepted.
|
|
1932
|
-
*/
|
|
1933
|
-
geo_location?: string | null;
|
|
1934
1891
|
/**
|
|
1935
1892
|
* The market to place the order on.
|
|
1936
1893
|
*/
|
|
@@ -2997,25 +2954,11 @@ declare class STXIPNotAllowedException extends STXForbiddenException {
|
|
|
2997
2954
|
declare class STXNotFoundException extends STXAPIException {
|
|
2998
2955
|
}
|
|
2999
2956
|
/**
|
|
3000
|
-
* 422: the exchange refused the request, e.g. insufficient funds
|
|
3001
|
-
* market.
|
|
2957
|
+
* 422: the exchange refused the request, e.g. insufficient funds, a closed
|
|
2958
|
+
* market or an order from outside the region.
|
|
3002
2959
|
*/
|
|
3003
2960
|
declare class STXRejectedException extends STXAPIException {
|
|
3004
2961
|
}
|
|
3005
|
-
/**
|
|
3006
|
-
* 422 from the exchange's geo-fencing: this request's IP address is not
|
|
3007
|
-
* allowed to trade, or the geolocation packet sent with it was missing,
|
|
3008
|
-
* invalid, expired or from another user. A subclass of
|
|
3009
|
-
* `STXRejectedException`, so existing `catch` blocks still see it.
|
|
3010
|
-
*
|
|
3011
|
-
* `reason` classifies it; `ipAddress` is the address the exchange saw, when
|
|
3012
|
-
* its message names one. Never retried.
|
|
3013
|
-
*/
|
|
3014
|
-
declare class STXGeoLocationException extends STXRejectedException {
|
|
3015
|
-
readonly reason: GeoRejection["reason"];
|
|
3016
|
-
readonly ipAddress: string | undefined;
|
|
3017
|
-
constructor(message: string, rejection: GeoRejection, opts?: STXExceptionOptions);
|
|
3018
|
-
}
|
|
3019
2962
|
/** 429: too many requests. `retryAfter` is seconds, when sent. */
|
|
3020
2963
|
declare class STXRateLimitException extends STXAPIException {
|
|
3021
2964
|
readonly retryAfter: number | undefined;
|
|
@@ -3064,7 +3007,7 @@ declare function notAvailableMessage(feature: string, host: string): string;
|
|
|
3064
3007
|
*
|
|
3065
3008
|
* `feature` is a stable id (`oauth`, `oauth.member`, `oauth.app`, `connect`,
|
|
3066
3009
|
* `terms.stx_page`, `markets.create`, `market_types`, `event_players`,
|
|
3067
|
-
* `leaderboard`, `combos`, or `scope:<name>`); `host` is the exchange that answered.
|
|
3010
|
+
* `leaderboard`, `loyalty`, `combos`, or `scope:<name>`); `host` is the exchange that answered.
|
|
3068
3011
|
* `statusCode` and `body` are the HTTP answer the decision came from, when
|
|
3069
3012
|
* there was one.
|
|
3070
3013
|
*/
|
|
@@ -3238,8 +3181,8 @@ declare class ApiKeyCredentials implements AuthProvider {
|
|
|
3238
3181
|
toString(): string;
|
|
3239
3182
|
}
|
|
3240
3183
|
|
|
3241
|
-
declare const VERSION = "0.
|
|
3242
|
-
declare const USER_AGENT = "stx-typescript/0.
|
|
3184
|
+
declare const VERSION = "0.10.0";
|
|
3185
|
+
declare const USER_AGENT = "stx-typescript/0.10.0";
|
|
3243
3186
|
/**
|
|
3244
3187
|
* `Symbol.asyncDispose` where the runtime has it (Node 20+, Bun), so
|
|
3245
3188
|
* `await using client = new STX()` works there; a registered stand-in on
|
|
@@ -3348,12 +3291,6 @@ interface ComboLeg {
|
|
|
3348
3291
|
}
|
|
3349
3292
|
/** Options for `STXWebSocket.comboPlayer()` and `STXWebSocket.comboMaker()`. */
|
|
3350
3293
|
interface ComboJoinOptions<E> {
|
|
3351
|
-
/**
|
|
3352
|
-
* A geolocation packet, or a function returning one, sent on every join
|
|
3353
|
-
* where the exchange is geo-fenced. A function is called again on each
|
|
3354
|
-
* rejoin, so a reconnect sends a fresh packet.
|
|
3355
|
-
*/
|
|
3356
|
-
geoLocation?: GeoLocationProvider;
|
|
3357
3294
|
/** Called for every typed event, as it arrives. */
|
|
3358
3295
|
onEvent?: (event: E) => void | Promise<void>;
|
|
3359
3296
|
}
|
|
@@ -3361,8 +3298,6 @@ interface ComboJoinOptions<E> {
|
|
|
3361
3298
|
interface ComboJoinReply {
|
|
3362
3299
|
/** Your account's pseudonym for counterparties. Makers see the player's on requests and quotes. */
|
|
3363
3300
|
external_id: string;
|
|
3364
|
-
/** ISO 8601 time the geolocation packet expires, or null when no packet was needed. Rejoin before it. */
|
|
3365
|
-
next_geolocation_at: string | null;
|
|
3366
3301
|
}
|
|
3367
3302
|
/** `requestQuote()` reply. */
|
|
3368
3303
|
interface ComboRequestReply {
|
|
@@ -3553,8 +3488,6 @@ declare abstract class ComboSession<E extends {
|
|
|
3553
3488
|
constructor(channel: Channel, events: ReadonlySet<string>, onEvent: ((event: E) => void | Promise<void>) | undefined);
|
|
3554
3489
|
/** Your account's pseudonym for counterparties, from the join reply. */
|
|
3555
3490
|
get externalId(): string;
|
|
3556
|
-
/** When the geolocation packet this join used expires (ISO 8601), or null. Rejoin before it. */
|
|
3557
|
-
get nextGeolocationAt(): string | null;
|
|
3558
3491
|
/** @internal */
|
|
3559
3492
|
_typed(msg: ChannelMessage): E | undefined;
|
|
3560
3493
|
/** @internal Called for every message on the channel, before it is queued. */
|
|
@@ -3604,10 +3537,8 @@ declare abstract class ComboSession<E extends {
|
|
|
3604
3537
|
* The player's side of combos, on `rfq:<user_id>`. Get one with
|
|
3605
3538
|
* `ws.comboPlayer()`.
|
|
3606
3539
|
*
|
|
3607
|
-
*
|
|
3608
|
-
*
|
|
3609
|
-
* A request belongs to this channel: leaving, a dropped socket or a geo lapse
|
|
3610
|
-
* ends it `cancelled`, and the SDK's automatic rejoin does not bring it back.
|
|
3540
|
+
* A request belongs to this channel: leaving or a dropped socket ends it
|
|
3541
|
+
* `cancelled`, and the SDK's automatic rejoin does not bring it back.
|
|
3611
3542
|
* Every refusal throws `STXComboRefusedException` with the exchange's
|
|
3612
3543
|
* `reason` in `code`.
|
|
3613
3544
|
*/
|
|
@@ -3662,8 +3593,6 @@ declare class ComboPlayer extends ComboSession<ComboPlayerEvent> {
|
|
|
3662
3593
|
* `ws.comboMaker()`. Joining subscribes to every request opened after the
|
|
3663
3594
|
* join (`rfq_opened`); earlier requests are not replayed.
|
|
3664
3595
|
*
|
|
3665
|
-
* Available on US demo.
|
|
3666
|
-
*
|
|
3667
3596
|
* A quote belongs to this channel: leaving or a dropped socket withdraws it.
|
|
3668
3597
|
* Every refusal throws `STXComboRefusedException` with the exchange's
|
|
3669
3598
|
* `reason` in `code`.
|
|
@@ -3752,8 +3681,19 @@ declare class Channel implements AsyncIterable<ChannelMessage> {
|
|
|
3752
3681
|
joinRef: string | null;
|
|
3753
3682
|
joined: boolean;
|
|
3754
3683
|
closed: boolean;
|
|
3755
|
-
/** @internal
|
|
3756
|
-
|
|
3684
|
+
/** @internal Milliseconds between pings while joined; null when none are sent. */
|
|
3685
|
+
_pingEveryMs: number | null;
|
|
3686
|
+
/** @internal */
|
|
3687
|
+
_joinTail: Promise<unknown>;
|
|
3688
|
+
/** @internal */
|
|
3689
|
+
_joinedConnection: number;
|
|
3690
|
+
/** @internal The connection whose join also restored watches and the pinger. */
|
|
3691
|
+
_restoredConnection: number;
|
|
3692
|
+
/** @internal A phx_close/phx_error for the join in flight. */
|
|
3693
|
+
_endedJoin: {
|
|
3694
|
+
joinRef: string;
|
|
3695
|
+
event: string;
|
|
3696
|
+
} | null;
|
|
3757
3697
|
constructor(ws: STXWebSocket, topic: string, joinPayload: Record<string, unknown>, onMessage: MessageHandler | undefined, opts: {
|
|
3758
3698
|
pingIntervalMs: number | null;
|
|
3759
3699
|
queueSize: number;
|
|
@@ -3814,6 +3754,8 @@ declare class Channel implements AsyncIterable<ChannelMessage> {
|
|
|
3814
3754
|
_stopPinger(): void;
|
|
3815
3755
|
/** @internal */
|
|
3816
3756
|
_resetForRejoin(): void;
|
|
3757
|
+
/** @internal End the channel after every queued message is read. */
|
|
3758
|
+
_finish(): void;
|
|
3817
3759
|
/** @internal */
|
|
3818
3760
|
_close(): void;
|
|
3819
3761
|
}
|
|
@@ -3842,7 +3784,11 @@ interface STXWebSocketOptions extends Pick<STXOptions, "environment" | "region"
|
|
|
3842
3784
|
/** Reconnect after a drop. Default true. */
|
|
3843
3785
|
reconnect?: boolean;
|
|
3844
3786
|
reconnectPolicy?: ReconnectPolicy;
|
|
3845
|
-
/**
|
|
3787
|
+
/**
|
|
3788
|
+
* Called after every successful reconnect and rejoin, and after rejoining a
|
|
3789
|
+
* channel the server closed or errored while the socket stayed up: the
|
|
3790
|
+
* moment to read open orders and anything else you loaded with `STX` again.
|
|
3791
|
+
*/
|
|
3846
3792
|
onReconnect?: () => void | Promise<void>;
|
|
3847
3793
|
/**
|
|
3848
3794
|
* Called when the socket gives up because its credentials are dead: an OAuth
|
|
@@ -3891,6 +3837,8 @@ declare class STXWebSocket {
|
|
|
3891
3837
|
readonly channels: Map<string, Channel>;
|
|
3892
3838
|
/** Successful reconnects so far. */
|
|
3893
3839
|
reconnects: number;
|
|
3840
|
+
/** Channels rejoined after the server closed or errored them while the socket stayed up. */
|
|
3841
|
+
channelRejoins: number;
|
|
3894
3842
|
constructor(opts?: STXWebSocketOptions);
|
|
3895
3843
|
toString(): string;
|
|
3896
3844
|
get connected(): boolean;
|
|
@@ -3974,7 +3922,7 @@ declare class STXWebSocket {
|
|
|
3974
3922
|
* `cancelOnDisconnect: true` arms cancel-on-disconnect for orders placed
|
|
3975
3923
|
* with `cancelOnDisconnect: true`. `pingTimeout` is in milliseconds,
|
|
3976
3924
|
* clamped by the server to 5000 to 20000; the granted value is in
|
|
3977
|
-
* `channel.reply.ping_timeout` and the SDK pings at
|
|
3925
|
+
* `channel.reply.ping_timeout` and the SDK pings at a third of it for as long
|
|
3978
3926
|
* as the channel is joined.
|
|
3979
3927
|
*/
|
|
3980
3928
|
orders(opts?: {
|
|
@@ -4027,7 +3975,6 @@ declare class STXWebSocket {
|
|
|
4027
3975
|
* Join `rfq:{user_id}` and return a `ComboPlayer`: request quotes on a
|
|
4028
3976
|
* combination, cash one out, accept, cancel and read a request.
|
|
4029
3977
|
*
|
|
4030
|
-
* Available on US demo.
|
|
4031
3978
|
* Where combos are not available, rejects with
|
|
4032
3979
|
* `STXCombosUnavailableException`. Other join refusals (a read-only key, an
|
|
4033
3980
|
* account that may not trade) reject with `STXComboRefusedException`.
|
|
@@ -4037,7 +3984,6 @@ declare class STXWebSocket {
|
|
|
4037
3984
|
* Join `combo_quote:{user_id}` and return a `ComboMaker`: receive every
|
|
4038
3985
|
* request opened from now on (`rfq_opened`), quote and withdraw quotes.
|
|
4039
3986
|
*
|
|
4040
|
-
* Available on US demo.
|
|
4041
3987
|
* Where combos are not available, rejects with
|
|
4042
3988
|
* `STXCombosUnavailableException`.
|
|
4043
3989
|
*/
|
|
@@ -4095,12 +4041,6 @@ interface STXOptions {
|
|
|
4095
4041
|
retry?: RetryPolicy;
|
|
4096
4042
|
/** Milliseconds per HTTP request. Default 30000. */
|
|
4097
4043
|
timeoutMs?: number;
|
|
4098
|
-
/**
|
|
4099
|
-
* A geolocation packet, or a function returning one, sent as `geo_location`
|
|
4100
|
-
* with every order write. Only needed where the exchange is geo-fenced and
|
|
4101
|
-
* this machine's IP address is not whitelisted for the account.
|
|
4102
|
-
*/
|
|
4103
|
-
geoLocation?: GeoLocationProvider;
|
|
4104
4044
|
/** Inject a fetch implementation (tests, proxies). */
|
|
4105
4045
|
fetch?: FetchLike;
|
|
4106
4046
|
/**
|
|
@@ -4137,11 +4077,6 @@ interface ResponseEvent {
|
|
|
4137
4077
|
*/
|
|
4138
4078
|
responseBody?: string | null;
|
|
4139
4079
|
}
|
|
4140
|
-
/** The per-call geolocation override accepted by every order write. */
|
|
4141
|
-
interface GeoOption {
|
|
4142
|
-
/** Overrides the client's `geoLocation` for this call; `null` sends none. */
|
|
4143
|
-
geoLocation?: string | null;
|
|
4144
|
-
}
|
|
4145
4080
|
interface MarketsQuery {
|
|
4146
4081
|
marketIds?: StrList;
|
|
4147
4082
|
eventIds?: StrList;
|
|
@@ -4177,7 +4112,7 @@ interface OrdersQuery {
|
|
|
4177
4112
|
orderIds?: StrList;
|
|
4178
4113
|
clientOrderIds?: StrList;
|
|
4179
4114
|
marketIds?: StrList;
|
|
4180
|
-
/** One status or a list, e.g. `["
|
|
4115
|
+
/** One status or a list, e.g. `["accepted", "delayed", "open"]`. */
|
|
4181
4116
|
status?: StrList;
|
|
4182
4117
|
limit?: number;
|
|
4183
4118
|
cursor?: string;
|
|
@@ -4223,7 +4158,7 @@ interface PageQuery {
|
|
|
4223
4158
|
}
|
|
4224
4159
|
type WithoutCursor<T> = Omit<T, "cursor">;
|
|
4225
4160
|
/** The optional fields of one new order. */
|
|
4226
|
-
interface OrderOptions
|
|
4161
|
+
interface OrderOptions {
|
|
4227
4162
|
/** Dollars, as a decimal string: `"0.58"`. Required for a limit order. */
|
|
4228
4163
|
price?: string;
|
|
4229
4164
|
/** Contracts, as a decimal string: `"100"`. */
|
|
@@ -4237,7 +4172,7 @@ interface OrderOptions extends GeoOption {
|
|
|
4237
4172
|
deviceId?: string;
|
|
4238
4173
|
}
|
|
4239
4174
|
/** One order in a `placeOrders` batch. */
|
|
4240
|
-
interface NewOrderInput extends
|
|
4175
|
+
interface NewOrderInput extends OrderOptions {
|
|
4241
4176
|
marketId: string;
|
|
4242
4177
|
/** `"buy"` or `"sell"`. */
|
|
4243
4178
|
action: string;
|
|
@@ -4250,7 +4185,7 @@ interface AcceptTermsOptions {
|
|
|
4250
4185
|
acceptHouseRules?: boolean;
|
|
4251
4186
|
}
|
|
4252
4187
|
/** The JSON body for one new order. Fields left undefined are omitted. */
|
|
4253
|
-
declare function orderBody(marketId: string, action: string, orderType: string, opts:
|
|
4188
|
+
declare function orderBody(marketId: string, action: string, orderType: string, opts: OrderOptions): Record<string, unknown>;
|
|
4254
4189
|
/**
|
|
4255
4190
|
* The STX client. Configuration comes from the options, then
|
|
4256
4191
|
* environment variables, then a profile in ~/.stx/credentials:
|
|
@@ -4274,7 +4209,6 @@ declare class STX {
|
|
|
4274
4209
|
readonly verifyTls: boolean;
|
|
4275
4210
|
readonly retry: RetryPolicy;
|
|
4276
4211
|
readonly timeoutMs: number;
|
|
4277
|
-
geoLocation: GeoLocationProvider | undefined;
|
|
4278
4212
|
onResponse: ((event: ResponseEvent) => void) | undefined;
|
|
4279
4213
|
/** Test hook: how retries wait. */
|
|
4280
4214
|
_sleep: (ms: number) => Promise<void>;
|
|
@@ -4382,45 +4316,28 @@ declare class STX {
|
|
|
4382
4316
|
*
|
|
4383
4317
|
* The exchange validates the order: a bad price step or a fractional
|
|
4384
4318
|
* quantity throws `STXValidationException` (400) or `STXRejectedException`
|
|
4385
|
-
* (422) with the API's message
|
|
4386
|
-
* `
|
|
4319
|
+
* (422) with the API's message. An order from outside the region is also
|
|
4320
|
+
* an `STXRejectedException`.
|
|
4387
4321
|
*
|
|
4388
4322
|
* A POST is never retried after a 5xx or a dropped connection; pass
|
|
4389
4323
|
* `clientOrderId` so you can look the order up if that happens.
|
|
4390
4324
|
*/
|
|
4391
4325
|
placeOrder(marketId: string, action: string, orderType: string, opts: OrderOptions): Promise<Order>;
|
|
4392
4326
|
/**
|
|
4393
|
-
* `POST /api/v1/orders/batched`: place several orders in one call.
|
|
4394
|
-
*
|
|
4395
|
-
*
|
|
4396
|
-
* others.
|
|
4327
|
+
* `POST /api/v1/orders/batched`: place several orders in one call. Returns
|
|
4328
|
+
* one result per order, in order; a rejected order has `errors` instead of
|
|
4329
|
+
* `order` and does not stop the others.
|
|
4397
4330
|
*/
|
|
4398
|
-
placeOrders(orders: readonly NewOrderInput[]
|
|
4331
|
+
placeOrders(orders: readonly NewOrderInput[]): Promise<BatchOrderResult[]>;
|
|
4399
4332
|
/**
|
|
4400
4333
|
* `DELETE /api/v1/orders/{order_id}`: request a cancel. A cancel is a
|
|
4401
4334
|
* request: a fill already in flight can still land.
|
|
4402
4335
|
*/
|
|
4403
|
-
cancelOrder(orderId: string
|
|
4336
|
+
cancelOrder(orderId: string): Promise<Cancellation>;
|
|
4404
4337
|
/** `DELETE /api/v1/orders/batched`: cancel the named orders. */
|
|
4405
|
-
cancelOrders(orderIds: readonly string[]
|
|
4338
|
+
cancelOrders(orderIds: readonly string[]): Promise<Cancellation[]>;
|
|
4406
4339
|
/** `DELETE /api/v1/orders/all`: cancel everything resting on the account. */
|
|
4407
|
-
cancelAllOrders(
|
|
4408
|
-
/**
|
|
4409
|
-
* Ask the exchange whether this machine may trade right now, without
|
|
4410
|
-
* placing or cancelling anything.
|
|
4411
|
-
*
|
|
4412
|
-
* Sends `DELETE /api/v1/orders/00000000-0000-0000-0000-000000000000` (an
|
|
4413
|
-
* order id that cannot exist) with the geolocation packet, if one is
|
|
4414
|
-
* configured. The exchange runs its geo check before it looks the order
|
|
4415
|
-
* up, so a 404 means the check passed, and a geo 422 means it did not. On
|
|
4416
|
-
* an exchange without geo-fencing it always passes.
|
|
4417
|
-
*
|
|
4418
|
-
* Needs a `read_write` key (the probe is a write route). The exchange
|
|
4419
|
-
* records a failed check in its geolocation log exactly as it would a real
|
|
4420
|
-
* order from the same place, and may raise a compliance alert, so call it
|
|
4421
|
-
* once at start-up, not in a loop.
|
|
4422
|
-
*/
|
|
4423
|
-
geoCheck(opts?: GeoOption): Promise<GeoCheckResult>;
|
|
4340
|
+
cancelAllOrders(): Promise<Cancellation[]>;
|
|
4424
4341
|
/** `GET /api/v1/fills`: one page of your executions. */
|
|
4425
4342
|
fills(query?: FillsQuery): Promise<Page<Fill>>;
|
|
4426
4343
|
/** Every fill matching the filters, following the cursor. */
|
|
@@ -4473,9 +4390,13 @@ declare class STX {
|
|
|
4473
4390
|
iterFees(query?: {
|
|
4474
4391
|
limit?: number;
|
|
4475
4392
|
}): AsyncGenerator<FeeTransaction, void, undefined>;
|
|
4476
|
-
/**
|
|
4393
|
+
/**
|
|
4394
|
+
* `GET /api/v1/portfolio/loyalty`: loyalty entries. Throws
|
|
4395
|
+
* `STXNotAvailableException` (feature `loyalty`) where the exchange has the
|
|
4396
|
+
* loyalty program switched off.
|
|
4397
|
+
*/
|
|
4477
4398
|
loyalty(query?: PageQuery): Promise<Page<Transaction>>;
|
|
4478
|
-
/** Every loyalty entry, following the cursor. */
|
|
4399
|
+
/** Every loyalty entry, following the cursor. Throws like `loyalty()`. */
|
|
4479
4400
|
iterLoyalty(query?: {
|
|
4480
4401
|
limit?: number;
|
|
4481
4402
|
}): AsyncGenerator<Transaction, void, undefined>;
|
|
@@ -4509,4 +4430,4 @@ declare class STX {
|
|
|
4509
4430
|
websocket(opts?: Omit<STXWebSocketOptions, "rest">): STXWebSocket;
|
|
4510
4431
|
}
|
|
4511
4432
|
|
|
4512
|
-
export { type EventPlayers as $, type AcceptTermsOptions as A, type Balance as B, type Cancellation as C, ComboPlayer as D, type ComboPlayerEvent as E, type ComboQuoteAcceptedEvent as F, type ComboQuoteClosedEvent as G, type ComboQuoteClosedReason as H, type ComboQuoteReply as I, type ComboRefusalReason as J, type ComboRequestClosedEvent as K, type ComboRequestClosedReason as L, type ComboRequestReply as M, type ComboRfqClosedEvent as N, type ComboRfqClosedReason as O, type ComboRfqLeg as P, type ComboRfqOpenedEvent as Q, type ComboSnapshot as R, type ComboWithdrawReply as S, type CreatableMarketType as T, type CreateMarketResult as U, type CreateMarketsOptions as V, Environment as W, Environments as X, type Error$1 as Y, type Event as Z, type EventPlayer as _, type AccountChange as a,
|
|
4433
|
+
export { type EventPlayers as $, type AcceptTermsOptions as A, type Balance as B, type Cancellation as C, ComboPlayer as D, type ComboPlayerEvent as E, type ComboQuoteAcceptedEvent as F, type ComboQuoteClosedEvent as G, type ComboQuoteClosedReason as H, type ComboQuoteReply as I, type ComboRefusalReason as J, type ComboRequestClosedEvent as K, type ComboRequestClosedReason as L, type ComboRequestReply as M, type ComboRfqClosedEvent as N, type ComboRfqClosedReason as O, type ComboRfqLeg as P, type ComboRfqOpenedEvent as Q, type ComboSnapshot as R, type ComboWithdrawReply as S, type CreatableMarketType as T, type CreateMarketResult as U, type CreateMarketsOptions as V, Environment as W, Environments as X, type Error$1 as Y, type Event as Z, type EventPlayer as _, type AccountChange as a, STXAuthenticationException as a$, type EventStat as a0, type EventTeam as a1, type EventsQuery as a2, FEATURES as a3, type Feature as a4, type FeatureMap as a5, type FeeTransaction as a6, type FetchLike as a7, type Fill as a8, type FillsQuery as a9, type NewMarketInput as aA, type NewOrder as aB, type NewOrderInput as aC, OPERATIONS as aD, type Operation as aE, type OperationId as aF, type Order as aG, type OrderOptions as aH, type OrdersQuery as aI, Page as aJ, type PageQuery as aK, type PaymentTransaction as aL, type PlayerStatLineMarket as aM, type Position as aN, type PrivateKeyInput as aO, type ProfileUpdate as aP, type RecentTrade as aQ, ReconnectPolicy as aR, type ReconnectPolicyOptions as aS, Region as aT, type ResponseEvent as aU, RetryPolicy as aV, type RetryPolicyOptions as aW, SIGNATURE_HEADER as aX, SNAPSHOT_EVENTS as aY, STX as aZ, STXAPIException as a_, HOSTS as aa, KEY_HEADER as ab, type KnownStat as ac, type Leaderboard as ad, type LeaderboardEntry as ae, type LeaderboardQuery as af, type LeaderboardStanding as ag, type ListedMarketType as ah, type Logger as ai, MAX_MARKETS_PER_REQUEST as aj, type Market as ak, type MarketFilter as al, type MarketRejectionReason as am, type MarketRequestEcho as an, type MarketRule as ao, type MarketStat as ap, type MarketStatsQuery as aq, type MarketType as ar, type MarketTypeEventType as as, type MarketTypeField as at, type MarketTypes as au, type MarketsQuery as av, type Me as aw, type MessageHandler as ax, NO_RETRY as ay, type NewMarket as az, type AccountChangeKind as b, STXChannelException as b0, STXComboPriceMovedException as b1, STXComboRefusedException as b2, STXCombosUnavailableException as b3, STXConfigException as b4, type STXEnvironment as b5, STXException as b6, STXForbiddenException as b7, STXIPNotAllowedException as b8, STXInsufficientScopeException as b9, baseUrlFor as bA, buildMessage as bB, environmentNamed as bC, errorForStatus as bD, handshakePath as bE, isValidLine as bF, loadPrivateKey as bG, models as bH, notAvailableMessage as bI, orderBody as bJ, requestPath as bK, resolveHost as bL, signerFromPrivateKey as bM, socketUrlFor as bN, STXInvalidTokenException as ba, STXNotAvailableException as bb, STXNotFoundException as bc, type STXOptions as bd, STXRateLimitException as be, STXRejectedException as bf, STXServerException as bg, STXTermsRequiredException as bh, STXTimeoutException as bi, STXTransportException as bj, STXValidationException as bk, STXWebSocket as bl, type STXWebSocketOptions as bm, type Settlement as bn, type SettlementsQuery as bo, type Signer as bp, type Stat as bq, type StatDetail as br, Stats as bs, type StrList as bt, TERMINAL_ORDER_STATUSES as bu, TIMESTAMP_HEADER as bv, type Transaction as bw, USER_AGENT as bx, VERSION as by, type WebSocketAuthContext as bz, type AccountState as c, AccountView as d, type AccountViewOptions as e, ApiKeyCredentials as f, type AuthProvider as g, type AuthRequest as h, type BatchOrderResult as i, type BookLevel as j, Capabilities as k, Channel as l, ChannelMessage as m, type ComboBestQuote as n, type ComboBestQuoteEvent as o, type ComboCancelReply as p, type ComboCashOutReply as q, type ComboJoinOptions as r, type ComboJoinReply as s, type ComboLeg as t, ComboMaker as u, type ComboMakerEvent as v, type ComboMakerPlacedEvent as w, type ComboOutcome as x, type ComboPlacedEvent as y, type ComboPlacement as z };
|
package/dist/index.cjs
CHANGED
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
+
var _chunk42OCIF3Gcjs = require('./chunk-42OCIF3G.cjs');
|
|
72
73
|
|
|
73
74
|
|
|
74
|
-
var _chunkR77AZ5UHcjs = require('./chunk-R77AZ5UH.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
@@ -141,9 +141,5 @@ var _chunkR77AZ5UHcjs = require('./chunk-R77AZ5UH.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
exports.AccountView = _chunkR77AZ5UHcjs.AccountView; exports.ApiKeyCredentials = _chunkR77AZ5UHcjs.ApiKeyCredentials; exports.Capabilities = _chunkR77AZ5UHcjs.Capabilities; exports.Channel = _chunkR77AZ5UHcjs.Channel; exports.ChannelMessage = _chunkR77AZ5UHcjs.ChannelMessage; exports.ComboMaker = _chunkR77AZ5UHcjs.ComboMaker; exports.ComboPlayer = _chunkR77AZ5UHcjs.ComboPlayer; exports.Environment = _chunkR77AZ5UHcjs.Environment; exports.Environments = _chunkR77AZ5UHcjs.Environments; exports.FEATURES = _chunkR77AZ5UHcjs.FEATURES; exports.HOSTS = _chunkR77AZ5UHcjs.HOSTS; exports.KEY_HEADER = _chunkR77AZ5UHcjs.KEY_HEADER; exports.MAX_MARKETS_PER_REQUEST = _chunkR77AZ5UHcjs.MAX_MARKETS_PER_REQUEST; exports.NO_RETRY = _chunkR77AZ5UHcjs.NO_RETRY; exports.OPERATIONS = _chunkR77AZ5UHcjs.OPERATIONS; exports.Page = _chunkR77AZ5UHcjs.Page; exports.ReconnectPolicy = _chunkR77AZ5UHcjs.ReconnectPolicy; exports.Region = _chunkR77AZ5UHcjs.Region; exports.RetryPolicy = _chunkR77AZ5UHcjs.RetryPolicy; exports.SIGNATURE_HEADER = _chunkR77AZ5UHcjs.SIGNATURE_HEADER; exports.SNAPSHOT_EVENTS = _chunkR77AZ5UHcjs.SNAPSHOT_EVENTS; exports.STX = _chunkR77AZ5UHcjs.STX; exports.STXAPIException = _chunkR77AZ5UHcjs.STXAPIException; exports.STXAuthenticationException = _chunkR77AZ5UHcjs.STXAuthenticationException; exports.STXChannelException = _chunkR77AZ5UHcjs.STXChannelException; exports.STXComboPriceMovedException = _chunkR77AZ5UHcjs.STXComboPriceMovedException; exports.STXComboRefusedException = _chunkR77AZ5UHcjs.STXComboRefusedException; exports.STXCombosUnavailableException = _chunkR77AZ5UHcjs.STXCombosUnavailableException; exports.STXConfigException = _chunkR77AZ5UHcjs.STXConfigException; exports.STXException = _chunkR77AZ5UHcjs.STXException; exports.STXForbiddenException = _chunkR77AZ5UHcjs.STXForbiddenException; exports.STXGeoLocationException = _chunkR77AZ5UHcjs.STXGeoLocationException; exports.STXIPNotAllowedException = _chunkR77AZ5UHcjs.STXIPNotAllowedException; exports.STXInsufficientScopeException = _chunkR77AZ5UHcjs.STXInsufficientScopeException; exports.STXInvalidTokenException = _chunkR77AZ5UHcjs.STXInvalidTokenException; exports.STXNotAvailableException = _chunkR77AZ5UHcjs.STXNotAvailableException; exports.STXNotFoundException = _chunkR77AZ5UHcjs.STXNotFoundException; exports.STXRateLimitException = _chunkR77AZ5UHcjs.STXRateLimitException; exports.STXRejectedException = _chunkR77AZ5UHcjs.STXRejectedException; exports.STXServerException = _chunkR77AZ5UHcjs.STXServerException; exports.STXTermsRequiredException = _chunkR77AZ5UHcjs.STXTermsRequiredException; exports.STXTimeoutException = _chunkR77AZ5UHcjs.STXTimeoutException; exports.STXTransportException = _chunkR77AZ5UHcjs.STXTransportException; exports.STXValidationException = _chunkR77AZ5UHcjs.STXValidationException; exports.STXWebSocket = _chunkR77AZ5UHcjs.STXWebSocket; exports.Stats = _chunkR77AZ5UHcjs.Stats; exports.TERMINAL_ORDER_STATUSES = _chunkR77AZ5UHcjs.TERMINAL_ORDER_STATUSES; exports.TIMESTAMP_HEADER = _chunkR77AZ5UHcjs.TIMESTAMP_HEADER; exports.USER_AGENT = _chunkR77AZ5UHcjs.USER_AGENT; exports.VERSION = _chunkR77AZ5UHcjs.VERSION; exports.baseUrlFor = _chunkR77AZ5UHcjs.baseUrlFor; exports.buildMessage = _chunkR77AZ5UHcjs.buildMessage; exports.centsToDollars = _chunkR77AZ5UHcjs.centsToDollars; exports.convertBook = _chunkR77AZ5UHcjs.convertBook; exports.convertMarketChannelPayload = _chunkR77AZ5UHcjs.convertMarketChannelPayload; exports.convertMarketPayload = _chunkR77AZ5UHcjs.convertMarketPayload; exports.convertMarketsFrame = _chunkR77AZ5UHcjs.convertMarketsFrame; exports.environmentNamed = _chunkR77AZ5UHcjs.environmentNamed; exports.errorForStatus = _chunkR77AZ5UHcjs.errorForStatus; exports.geoRejection = _chunkR77AZ5UHcjs.geoRejection; exports.handshakePath = _chunkR77AZ5UHcjs.handshakePath; exports.isValidLine = _chunkR77AZ5UHcjs.isValidLine; exports.loadPrivateKey = _chunkR77AZ5UHcjs.loadPrivateKey; exports.notAvailableMessage = _chunkR77AZ5UHcjs.notAvailableMessage; exports.orderBody = _chunkR77AZ5UHcjs.orderBody; exports.requestPath = _chunkR77AZ5UHcjs.requestPath; exports.resolveHost = _chunkR77AZ5UHcjs.resolveHost; exports.resolveSettings = _chunkR77AZ5UHcjs.resolveSettings; exports.signerFromPrivateKey = _chunkR77AZ5UHcjs.signerFromPrivateKey; exports.socketUrlFor = _chunkR77AZ5UHcjs.socketUrlFor; exports.toDollarString = _chunkR77AZ5UHcjs.toDollarString; exports.toQuantity = _chunkR77AZ5UHcjs.toQuantity;
|
|
144
|
+
exports.AccountView = _chunk42OCIF3Gcjs.AccountView; exports.ApiKeyCredentials = _chunk42OCIF3Gcjs.ApiKeyCredentials; exports.Capabilities = _chunk42OCIF3Gcjs.Capabilities; exports.Channel = _chunk42OCIF3Gcjs.Channel; exports.ChannelMessage = _chunk42OCIF3Gcjs.ChannelMessage; exports.ComboMaker = _chunk42OCIF3Gcjs.ComboMaker; exports.ComboPlayer = _chunk42OCIF3Gcjs.ComboPlayer; exports.Environment = _chunk42OCIF3Gcjs.Environment; exports.Environments = _chunk42OCIF3Gcjs.Environments; exports.FEATURES = _chunk42OCIF3Gcjs.FEATURES; exports.HOSTS = _chunk42OCIF3Gcjs.HOSTS; exports.KEY_HEADER = _chunk42OCIF3Gcjs.KEY_HEADER; exports.MAX_MARKETS_PER_REQUEST = _chunk42OCIF3Gcjs.MAX_MARKETS_PER_REQUEST; exports.NO_RETRY = _chunk42OCIF3Gcjs.NO_RETRY; exports.OPERATIONS = _chunk42OCIF3Gcjs.OPERATIONS; exports.Page = _chunk42OCIF3Gcjs.Page; exports.ReconnectPolicy = _chunk42OCIF3Gcjs.ReconnectPolicy; exports.Region = _chunk42OCIF3Gcjs.Region; exports.RetryPolicy = _chunk42OCIF3Gcjs.RetryPolicy; exports.SIGNATURE_HEADER = _chunk42OCIF3Gcjs.SIGNATURE_HEADER; exports.SNAPSHOT_EVENTS = _chunk42OCIF3Gcjs.SNAPSHOT_EVENTS; exports.STX = _chunk42OCIF3Gcjs.STX; exports.STXAPIException = _chunk42OCIF3Gcjs.STXAPIException; exports.STXAuthenticationException = _chunk42OCIF3Gcjs.STXAuthenticationException; exports.STXChannelException = _chunk42OCIF3Gcjs.STXChannelException; exports.STXComboPriceMovedException = _chunk42OCIF3Gcjs.STXComboPriceMovedException; exports.STXComboRefusedException = _chunk42OCIF3Gcjs.STXComboRefusedException; exports.STXCombosUnavailableException = _chunk42OCIF3Gcjs.STXCombosUnavailableException; exports.STXConfigException = _chunk42OCIF3Gcjs.STXConfigException; exports.STXException = _chunk42OCIF3Gcjs.STXException; exports.STXForbiddenException = _chunk42OCIF3Gcjs.STXForbiddenException; exports.STXIPNotAllowedException = _chunk42OCIF3Gcjs.STXIPNotAllowedException; exports.STXInsufficientScopeException = _chunk42OCIF3Gcjs.STXInsufficientScopeException; exports.STXInvalidTokenException = _chunk42OCIF3Gcjs.STXInvalidTokenException; exports.STXNotAvailableException = _chunk42OCIF3Gcjs.STXNotAvailableException; exports.STXNotFoundException = _chunk42OCIF3Gcjs.STXNotFoundException; exports.STXRateLimitException = _chunk42OCIF3Gcjs.STXRateLimitException; exports.STXRejectedException = _chunk42OCIF3Gcjs.STXRejectedException; exports.STXServerException = _chunk42OCIF3Gcjs.STXServerException; exports.STXTermsRequiredException = _chunk42OCIF3Gcjs.STXTermsRequiredException; exports.STXTimeoutException = _chunk42OCIF3Gcjs.STXTimeoutException; exports.STXTransportException = _chunk42OCIF3Gcjs.STXTransportException; exports.STXValidationException = _chunk42OCIF3Gcjs.STXValidationException; exports.STXWebSocket = _chunk42OCIF3Gcjs.STXWebSocket; exports.Stats = _chunk42OCIF3Gcjs.Stats; exports.TERMINAL_ORDER_STATUSES = _chunk42OCIF3Gcjs.TERMINAL_ORDER_STATUSES; exports.TIMESTAMP_HEADER = _chunk42OCIF3Gcjs.TIMESTAMP_HEADER; exports.USER_AGENT = _chunk42OCIF3Gcjs.USER_AGENT; exports.VERSION = _chunk42OCIF3Gcjs.VERSION; exports.baseUrlFor = _chunk42OCIF3Gcjs.baseUrlFor; exports.buildMessage = _chunk42OCIF3Gcjs.buildMessage; exports.centsToDollars = _chunk42OCIF3Gcjs.centsToDollars; exports.convertBook = _chunk42OCIF3Gcjs.convertBook; exports.convertMarketChannelPayload = _chunk42OCIF3Gcjs.convertMarketChannelPayload; exports.convertMarketPayload = _chunk42OCIF3Gcjs.convertMarketPayload; exports.convertMarketsFrame = _chunk42OCIF3Gcjs.convertMarketsFrame; exports.environmentNamed = _chunk42OCIF3Gcjs.environmentNamed; exports.errorForStatus = _chunk42OCIF3Gcjs.errorForStatus; exports.handshakePath = _chunk42OCIF3Gcjs.handshakePath; exports.isValidLine = _chunk42OCIF3Gcjs.isValidLine; exports.loadPrivateKey = _chunk42OCIF3Gcjs.loadPrivateKey; exports.notAvailableMessage = _chunk42OCIF3Gcjs.notAvailableMessage; exports.orderBody = _chunk42OCIF3Gcjs.orderBody; exports.requestPath = _chunk42OCIF3Gcjs.requestPath; exports.resolveHost = _chunk42OCIF3Gcjs.resolveHost; exports.resolveSettings = _chunk42OCIF3Gcjs.resolveSettings; exports.signerFromPrivateKey = _chunk42OCIF3Gcjs.signerFromPrivateKey; exports.socketUrlFor = _chunk42OCIF3Gcjs.socketUrlFor; exports.toDollarString = _chunk42OCIF3Gcjs.toDollarString; exports.toQuantity = _chunk42OCIF3Gcjs.toQuantity;
|
|
149
145
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/tssdk/tssdk/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/tssdk/tssdk/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ytIAAC","file":"/home/runner/work/tssdk/tssdk/dist/index.cjs"}
|
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 Capabilities, l as Channel, m as ChannelMessage, n as ComboBestQuote, o as ComboBestQuoteEvent, p as ComboCancelReply, q as ComboCashOutReply, r as ComboJoinOptions, s as ComboJoinReply, t as ComboLeg, u as ComboMaker, v as ComboMakerEvent, w as ComboMakerPlacedEvent, x as ComboOutcome, y as ComboPlacedEvent, z as ComboPlacement, D as ComboPlayer, E as ComboPlayerEvent, F as ComboQuoteAcceptedEvent, G as ComboQuoteClosedEvent, H as ComboQuoteClosedReason, I as ComboQuoteReply, J as ComboRefusalReason, K as ComboRequestClosedEvent, L as ComboRequestClosedReason, M as ComboRequestReply, N as ComboRfqClosedEvent, O as ComboRfqClosedReason, P as ComboRfqLeg, Q as ComboRfqOpenedEvent, R as ComboSnapshot, S as ComboWithdrawReply, T as CreatableMarketType, U as CreateMarketResult, V as CreateMarketsOptions, W as Environment, X as Environments, Y as Error, Z as Event, _ as EventPlayer, $ as EventPlayers, a0 as EventStat, a1 as EventTeam, a2 as EventsQuery, a3 as FEATURES, a4 as Feature, a5 as FeatureMap, a6 as FeeTransaction, a7 as FetchLike, a8 as Fill, a9 as FillsQuery, aa as
|
|
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 Capabilities, l as Channel, m as ChannelMessage, n as ComboBestQuote, o as ComboBestQuoteEvent, p as ComboCancelReply, q as ComboCashOutReply, r as ComboJoinOptions, s as ComboJoinReply, t as ComboLeg, u as ComboMaker, v as ComboMakerEvent, w as ComboMakerPlacedEvent, x as ComboOutcome, y as ComboPlacedEvent, z as ComboPlacement, D as ComboPlayer, E as ComboPlayerEvent, F as ComboQuoteAcceptedEvent, G as ComboQuoteClosedEvent, H as ComboQuoteClosedReason, I as ComboQuoteReply, J as ComboRefusalReason, K as ComboRequestClosedEvent, L as ComboRequestClosedReason, M as ComboRequestReply, N as ComboRfqClosedEvent, O as ComboRfqClosedReason, P as ComboRfqLeg, Q as ComboRfqOpenedEvent, R as ComboSnapshot, S as ComboWithdrawReply, T as CreatableMarketType, U as CreateMarketResult, V as CreateMarketsOptions, W as Environment, X as Environments, Y as Error, Z as Event, _ as EventPlayer, $ as EventPlayers, a0 as EventStat, a1 as EventTeam, a2 as EventsQuery, a3 as FEATURES, a4 as Feature, a5 as FeatureMap, a6 as FeeTransaction, a7 as FetchLike, a8 as Fill, a9 as FillsQuery, aa as HOSTS, ab as KEY_HEADER, ac as KnownStat, ad as Leaderboard, ae as LeaderboardEntry, af as LeaderboardQuery, ag as LeaderboardStanding, ah as ListedMarketType, ai as Logger, aj as MAX_MARKETS_PER_REQUEST, ak as Market, al as MarketFilter, am as MarketRejectionReason, an as MarketRequestEcho, ao as MarketRule, ap as MarketStat, aq as MarketStatsQuery, ar as MarketType, as as MarketTypeEventType, at as MarketTypeField, au as MarketTypes, av as MarketsQuery, aw as Me, ax as MessageHandler, ay as NO_RETRY, az as NewMarket, aA as NewMarketInput, aB as NewOrder, aC as NewOrderInput, aD as OPERATIONS, aE as Operation, aF as OperationId, aG as Order, aH as OrderOptions, aI as OrdersQuery, aJ as Page, aK as PageQuery, aL as PaymentTransaction, aM as PlayerStatLineMarket, aN as Position, aO as PrivateKeyInput, aP as ProfileUpdate, aQ as RecentTrade, aR as ReconnectPolicy, aS as ReconnectPolicyOptions, aT as Region, aU as ResponseEvent, aV as RetryPolicy, aW as RetryPolicyOptions, aX as SIGNATURE_HEADER, aY as SNAPSHOT_EVENTS, aZ as STX, a_ as STXAPIException, a$ as STXAuthenticationException, b0 as STXChannelException, b1 as STXComboPriceMovedException, b2 as STXComboRefusedException, b3 as STXCombosUnavailableException, b4 as STXConfigException, b5 as STXEnvironment, b6 as STXException, b7 as STXForbiddenException, b8 as STXIPNotAllowedException, b9 as STXInsufficientScopeException, ba as STXInvalidTokenException, bb as STXNotAvailableException, bc as STXNotFoundException, bd as STXOptions, be as STXRateLimitException, bf as STXRejectedException, bg as STXServerException, bh as STXTermsRequiredException, bi as STXTimeoutException, bj as STXTransportException, bk as STXValidationException, bl as STXWebSocket, bm as STXWebSocketOptions, bn as Settlement, bo as SettlementsQuery, bp as Signer, bq as Stat, br as StatDetail, bs as Stats, bt as StrList, bu as TERMINAL_ORDER_STATUSES, bv as TIMESTAMP_HEADER, bw as Transaction, bx as USER_AGENT, by as VERSION, bz as WebSocketAuthContext, bA as baseUrlFor, bB as buildMessage, bC as environmentNamed, bD as errorForStatus, bE as handshakePath, bF as isValidLine, bG as loadPrivateKey, bH as models, bI as notAvailableMessage, bJ as orderBody, bK as requestPath, bL as resolveHost, bM as signerFromPrivateKey, bN as socketUrlFor } from './client-DJr0UUvB.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 Capabilities, l as Channel, m as ChannelMessage, n as ComboBestQuote, o as ComboBestQuoteEvent, p as ComboCancelReply, q as ComboCashOutReply, r as ComboJoinOptions, s as ComboJoinReply, t as ComboLeg, u as ComboMaker, v as ComboMakerEvent, w as ComboMakerPlacedEvent, x as ComboOutcome, y as ComboPlacedEvent, z as ComboPlacement, D as ComboPlayer, E as ComboPlayerEvent, F as ComboQuoteAcceptedEvent, G as ComboQuoteClosedEvent, H as ComboQuoteClosedReason, I as ComboQuoteReply, J as ComboRefusalReason, K as ComboRequestClosedEvent, L as ComboRequestClosedReason, M as ComboRequestReply, N as ComboRfqClosedEvent, O as ComboRfqClosedReason, P as ComboRfqLeg, Q as ComboRfqOpenedEvent, R as ComboSnapshot, S as ComboWithdrawReply, T as CreatableMarketType, U as CreateMarketResult, V as CreateMarketsOptions, W as Environment, X as Environments, Y as Error, Z as Event, _ as EventPlayer, $ as EventPlayers, a0 as EventStat, a1 as EventTeam, a2 as EventsQuery, a3 as FEATURES, a4 as Feature, a5 as FeatureMap, a6 as FeeTransaction, a7 as FetchLike, a8 as Fill, a9 as FillsQuery, aa as
|
|
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 Capabilities, l as Channel, m as ChannelMessage, n as ComboBestQuote, o as ComboBestQuoteEvent, p as ComboCancelReply, q as ComboCashOutReply, r as ComboJoinOptions, s as ComboJoinReply, t as ComboLeg, u as ComboMaker, v as ComboMakerEvent, w as ComboMakerPlacedEvent, x as ComboOutcome, y as ComboPlacedEvent, z as ComboPlacement, D as ComboPlayer, E as ComboPlayerEvent, F as ComboQuoteAcceptedEvent, G as ComboQuoteClosedEvent, H as ComboQuoteClosedReason, I as ComboQuoteReply, J as ComboRefusalReason, K as ComboRequestClosedEvent, L as ComboRequestClosedReason, M as ComboRequestReply, N as ComboRfqClosedEvent, O as ComboRfqClosedReason, P as ComboRfqLeg, Q as ComboRfqOpenedEvent, R as ComboSnapshot, S as ComboWithdrawReply, T as CreatableMarketType, U as CreateMarketResult, V as CreateMarketsOptions, W as Environment, X as Environments, Y as Error, Z as Event, _ as EventPlayer, $ as EventPlayers, a0 as EventStat, a1 as EventTeam, a2 as EventsQuery, a3 as FEATURES, a4 as Feature, a5 as FeatureMap, a6 as FeeTransaction, a7 as FetchLike, a8 as Fill, a9 as FillsQuery, aa as HOSTS, ab as KEY_HEADER, ac as KnownStat, ad as Leaderboard, ae as LeaderboardEntry, af as LeaderboardQuery, ag as LeaderboardStanding, ah as ListedMarketType, ai as Logger, aj as MAX_MARKETS_PER_REQUEST, ak as Market, al as MarketFilter, am as MarketRejectionReason, an as MarketRequestEcho, ao as MarketRule, ap as MarketStat, aq as MarketStatsQuery, ar as MarketType, as as MarketTypeEventType, at as MarketTypeField, au as MarketTypes, av as MarketsQuery, aw as Me, ax as MessageHandler, ay as NO_RETRY, az as NewMarket, aA as NewMarketInput, aB as NewOrder, aC as NewOrderInput, aD as OPERATIONS, aE as Operation, aF as OperationId, aG as Order, aH as OrderOptions, aI as OrdersQuery, aJ as Page, aK as PageQuery, aL as PaymentTransaction, aM as PlayerStatLineMarket, aN as Position, aO as PrivateKeyInput, aP as ProfileUpdate, aQ as RecentTrade, aR as ReconnectPolicy, aS as ReconnectPolicyOptions, aT as Region, aU as ResponseEvent, aV as RetryPolicy, aW as RetryPolicyOptions, aX as SIGNATURE_HEADER, aY as SNAPSHOT_EVENTS, aZ as STX, a_ as STXAPIException, a$ as STXAuthenticationException, b0 as STXChannelException, b1 as STXComboPriceMovedException, b2 as STXComboRefusedException, b3 as STXCombosUnavailableException, b4 as STXConfigException, b5 as STXEnvironment, b6 as STXException, b7 as STXForbiddenException, b8 as STXIPNotAllowedException, b9 as STXInsufficientScopeException, ba as STXInvalidTokenException, bb as STXNotAvailableException, bc as STXNotFoundException, bd as STXOptions, be as STXRateLimitException, bf as STXRejectedException, bg as STXServerException, bh as STXTermsRequiredException, bi as STXTimeoutException, bj as STXTransportException, bk as STXValidationException, bl as STXWebSocket, bm as STXWebSocketOptions, bn as Settlement, bo as SettlementsQuery, bp as Signer, bq as Stat, br as StatDetail, bs as Stats, bt as StrList, bu as TERMINAL_ORDER_STATUSES, bv as TIMESTAMP_HEADER, bw as Transaction, bx as USER_AGENT, by as VERSION, bz as WebSocketAuthContext, bA as baseUrlFor, bB as buildMessage, bC as environmentNamed, bD as errorForStatus, bE as handshakePath, bF as isValidLine, bG as loadPrivateKey, bH as models, bI as notAvailableMessage, bJ as orderBody, bK as requestPath, bL as resolveHost, bM as signerFromPrivateKey, bN as socketUrlFor } from './client-DJr0UUvB.js';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
|
|
4
4
|
/** The fully resolved configuration the clients consume. */
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
STXConfigException,
|
|
31
31
|
STXException,
|
|
32
32
|
STXForbiddenException,
|
|
33
|
-
STXGeoLocationException,
|
|
34
33
|
STXIPNotAllowedException,
|
|
35
34
|
STXInsufficientScopeException,
|
|
36
35
|
STXInvalidTokenException,
|
|
@@ -58,7 +57,6 @@ import {
|
|
|
58
57
|
convertMarketsFrame,
|
|
59
58
|
environmentNamed,
|
|
60
59
|
errorForStatus,
|
|
61
|
-
geoRejection,
|
|
62
60
|
handshakePath,
|
|
63
61
|
isValidLine,
|
|
64
62
|
loadPrivateKey,
|
|
@@ -71,7 +69,7 @@ import {
|
|
|
71
69
|
socketUrlFor,
|
|
72
70
|
toDollarString,
|
|
73
71
|
toQuantity
|
|
74
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-FTZCBXT7.js";
|
|
75
73
|
export {
|
|
76
74
|
AccountView,
|
|
77
75
|
ApiKeyCredentials,
|
|
@@ -104,7 +102,6 @@ export {
|
|
|
104
102
|
STXConfigException,
|
|
105
103
|
STXException,
|
|
106
104
|
STXForbiddenException,
|
|
107
|
-
STXGeoLocationException,
|
|
108
105
|
STXIPNotAllowedException,
|
|
109
106
|
STXInsufficientScopeException,
|
|
110
107
|
STXInvalidTokenException,
|
|
@@ -132,7 +129,6 @@ export {
|
|
|
132
129
|
convertMarketsFrame,
|
|
133
130
|
environmentNamed,
|
|
134
131
|
errorForStatus,
|
|
135
|
-
geoRejection,
|
|
136
132
|
handshakePath,
|
|
137
133
|
isValidLine,
|
|
138
134
|
loadPrivateKey,
|