@skinpricer/sdk 0.3.0 → 0.4.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 +30 -0
- package/README.md +169 -16
- package/dist/index.cjs +433 -304
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +901 -619
- package/dist/index.d.ts +901 -619
- package/dist/index.js +430 -305
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/index.d.cts
CHANGED
|
@@ -131,6 +131,8 @@ type QueryValue = QueryScalar | QueryScalar[] | Date | null | undefined;
|
|
|
131
131
|
type QueryParams = Record<string, QueryValue>;
|
|
132
132
|
|
|
133
133
|
interface BuildRequestInput {
|
|
134
|
+
authenticated?: boolean;
|
|
135
|
+
ifNoneMatch?: string;
|
|
134
136
|
method: HttpMethod;
|
|
135
137
|
path: string;
|
|
136
138
|
query?: QueryParams;
|
|
@@ -150,20 +152,15 @@ declare class HttpClient {
|
|
|
150
152
|
constructor(config: ResolvedConfig);
|
|
151
153
|
/** Base URL for keyless public-service endpoints (see {@link ResolvedConfig.publicBaseUrl}). */
|
|
152
154
|
get publicBaseUrl(): string;
|
|
155
|
+
/** Selects an API version while retaining a configured gateway prefix. */
|
|
156
|
+
versionedBaseUrl(version: "v2", baseUrl?: string): string;
|
|
153
157
|
request<T>(input: BuildRequestInput, options?: RequestOptions): Promise<HttpResponse<T>>;
|
|
154
158
|
private recordRateLimit;
|
|
155
159
|
private awaitThrottle;
|
|
156
160
|
}
|
|
157
161
|
|
|
158
|
-
/**
|
|
159
|
-
|
|
160
|
-
* `GET /v1/markets/health` and used across pricing / nbbo / aggregation
|
|
161
|
-
* responses. Kept in sync with that registry (18 integrated markets as of
|
|
162
|
-
* 2026-06). A market id appears here once the backend integrates it, regardless
|
|
163
|
-
* of live/degraded/stale status; ids prepared but not yet ingesting (e.g.
|
|
164
|
-
* bitskins, skinbaron) are intentionally excluded until they show in health.
|
|
165
|
-
*/
|
|
166
|
-
declare const KNOWN_MARKETS: readonly ["skinport", "skindeck", "buff163", "csfloat", "csdeals", "marketcsgo", "cstrade", "dmarket", "itrade", "lis-skins", "swapgg", "whitemarket", "waxpeer", "lootfarm", "avanmarket", "tradeit-store", "tradeit-trade", "steamcommunity"];
|
|
162
|
+
/** Market identifiers used in pricing responses. Availability differs by game. */
|
|
163
|
+
declare const KNOWN_MARKETS: readonly ["skinport", "skindeck", "buff163", "csfloat", "csdeals", "marketcsgo", "cstrade", "dmarket", "itrade", "lis-skins", "swapgg", "whitemarket", "waxpeer", "lootfarm", "rapidskins", "avanmarket", "tradeit-store", "tradeit-trade", "steamcommunity", "youpin", "mannco-store", "rusttm", "rustskins"];
|
|
167
164
|
/** A known market id, or any other string. */
|
|
168
165
|
type KnownMarket = (typeof KNOWN_MARKETS)[number] | (string & Record<never, never>);
|
|
169
166
|
/** Markets that expose attribute (float/fade/tag) bucket pricing. */
|
|
@@ -184,14 +181,33 @@ interface MarketHealthRow {
|
|
|
184
181
|
id: string;
|
|
185
182
|
status: MarketRegistryStatus;
|
|
186
183
|
/** ISO timestamp of the latest ingest event from this marketplace. */
|
|
187
|
-
lastEventAt: string;
|
|
188
|
-
|
|
184
|
+
lastEventAt: string | null;
|
|
185
|
+
/** Null when the source does not establish an inventory count. */
|
|
186
|
+
listingsCount: number | null;
|
|
187
|
+
/** Percentage (0-100) of the market's quotes that are fresh. Null when it has none. */
|
|
188
|
+
freshnessCoveragePct: number | null;
|
|
189
|
+
listingsCountBasis?: "observed-listings" | "observed-units" | "observed-listings-subset" | "observed-empty" | null;
|
|
190
|
+
freshnessCoverageBasis?: {
|
|
191
|
+
kind: "observed-active-quote-identities";
|
|
192
|
+
activeWindowHours: number;
|
|
193
|
+
freshWindowMinutes: number;
|
|
194
|
+
activeQuotes: number;
|
|
195
|
+
freshQuotes: number;
|
|
196
|
+
collectionMode: "rolling-catalogue" | "snapshot-feed" | "unspecified";
|
|
197
|
+
};
|
|
198
|
+
/** CS2 coverage of the market's known item catalog. Absent without a reference. */
|
|
199
|
+
catalogCompleteness?: {
|
|
200
|
+
basis: "known-market-catalog";
|
|
201
|
+
referenceItems: number;
|
|
202
|
+
coveredItems: number;
|
|
203
|
+
percentage: number;
|
|
204
|
+
measuredAt: string;
|
|
205
|
+
};
|
|
189
206
|
/**
|
|
190
|
-
*
|
|
191
|
-
* 0 (
|
|
192
|
-
* doesn't yet emit per-bucket health.
|
|
207
|
+
* 48 half-hour bars covering the trailing 24 hours, oldest first. Values are
|
|
208
|
+
* 0 (stale), 1 (degraded), 2 (fresh), or null (unknown). Not provider uptime.
|
|
193
209
|
*/
|
|
194
|
-
healthBars
|
|
210
|
+
healthBars: readonly (number | null)[];
|
|
195
211
|
}
|
|
196
212
|
/** `GET /v1/markets/health` — a plain array of per-market health rows. */
|
|
197
213
|
type MarketHealthResponse = MarketHealthRow[];
|
|
@@ -200,16 +216,37 @@ type MarketHealthResponse = MarketHealthRow[];
|
|
|
200
216
|
type IsoDateString = string;
|
|
201
217
|
/** A monetary value in integer USD cents. */
|
|
202
218
|
type Cents = number;
|
|
219
|
+
/** Evidence for a source time: the payload's own timestamp, a `Last-Modified` header, or CDN cache age. */
|
|
220
|
+
type SourceTimeKind = "payload" | "last_modified" | "cdn_age" | "none";
|
|
203
221
|
interface MarketPricePoint {
|
|
204
222
|
market: string;
|
|
205
223
|
price: Cents;
|
|
206
224
|
currency: string;
|
|
225
|
+
/** Source price in minor units of `originalCurrency`, before conversion and fees. */
|
|
226
|
+
originalPriceCents?: number | null;
|
|
227
|
+
originalCurrency?: string | null;
|
|
228
|
+
/** When the price was last read or confirmed still current. Not the age of the data. */
|
|
207
229
|
fetchedAt: IsoDateString;
|
|
208
230
|
ingestedAt?: IsoDateString;
|
|
209
|
-
|
|
210
|
-
|
|
231
|
+
/** Count the source reports for this quote. Null when unknown, which is not zero. */
|
|
232
|
+
quoteSize?: number | null;
|
|
233
|
+
/** Quantity across bid price levels. Null when unknown. */
|
|
234
|
+
totalQuantity?: number | null;
|
|
235
|
+
/** Order count across bid price levels, where the source reports one. */
|
|
236
|
+
totalOrdersCount?: number | null;
|
|
237
|
+
/** False when the source's book was read only in part, so quantities are lower bounds. */
|
|
238
|
+
orderBookComplete?: boolean | null;
|
|
211
239
|
ingestLatencyMs?: number;
|
|
212
240
|
isStale?: boolean;
|
|
241
|
+
/** When the source produced this data. Absent or null when unknown. */
|
|
242
|
+
sourceUpdatedAt?: IsoDateString | null;
|
|
243
|
+
sourceTimeKind?: SourceTimeKind;
|
|
244
|
+
/** Age of the source's data when it was read, in seconds. */
|
|
245
|
+
sourceAgeSeconds?: number | null;
|
|
246
|
+
/** Whether the source's data is older than 30 minutes. Absent when its age is unknown. */
|
|
247
|
+
isSourceStale?: boolean;
|
|
248
|
+
/** True for a placeholder ask left out of the aggregate's average, median and deviation. It is still a real listing. */
|
|
249
|
+
outlier?: boolean;
|
|
213
250
|
}
|
|
214
251
|
interface AggregatePriceData {
|
|
215
252
|
minPrice: Cents | null;
|
|
@@ -217,6 +254,8 @@ interface AggregatePriceData {
|
|
|
217
254
|
avgPrice: Cents | null;
|
|
218
255
|
medianPrice: Cents | null;
|
|
219
256
|
stdDev: number | null;
|
|
257
|
+
/** `corroborated_low_cluster` when placeholder asks were left out of the average, median and deviation. */
|
|
258
|
+
basis?: "all_venues" | "corroborated_low_cluster";
|
|
220
259
|
marketCount?: number;
|
|
221
260
|
freshMarketCount?: number;
|
|
222
261
|
listingCount?: number;
|
|
@@ -245,602 +284,882 @@ interface PaginationMeta {
|
|
|
245
284
|
nextPage: number | null;
|
|
246
285
|
}
|
|
247
286
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
287
|
+
type HistoryListingType = "SELL_OFFER" | "BUY_ORDER" | "SALE_HISTORY";
|
|
288
|
+
/** Accepted on input; the backend also normalizes `SELL`/`BUY`/`SALES`. */
|
|
289
|
+
type HistoryListingTypeInput = HistoryListingType | "SELL" | "BUY" | "SALES";
|
|
290
|
+
type SalesHistoryWindow = "24h" | "7d" | "30d" | "90d";
|
|
291
|
+
type PriceHistoryInterval = "MINUTE_5" | "MINUTE_15" | "HOUR_1" | "HOUR_6" | "DAY_1";
|
|
292
|
+
interface PriceHistoryParams {
|
|
293
|
+
/** Start of the range (Date or ISO string). */
|
|
294
|
+
from?: Date | string;
|
|
295
|
+
/** End of the range (Date or ISO string). */
|
|
296
|
+
to?: Date | string;
|
|
297
|
+
/** Markets to include; when set, `byMarket` returns per-market series. */
|
|
253
298
|
markets?: KnownMarket[];
|
|
299
|
+
listingType?: HistoryListingTypeInput;
|
|
300
|
+
salesWindow?: SalesHistoryWindow;
|
|
301
|
+
interval?: PriceHistoryInterval;
|
|
254
302
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
market_hash_name: string;
|
|
268
|
-
prices: MarketMinPrice[];
|
|
269
|
-
}
|
|
270
|
-
/** `GET /v1/aggregations/min-prices` (snake_case). */
|
|
271
|
-
interface MinPricesResponse {
|
|
272
|
-
items: ItemMinPrices[];
|
|
303
|
+
interface PriceHistoryPoint {
|
|
304
|
+
timestamp: IsoDateString;
|
|
305
|
+
avgPrice: Cents | null;
|
|
306
|
+
medianPrice: Cents | null;
|
|
307
|
+
minPrice: Cents | null;
|
|
308
|
+
maxPrice: Cents | null;
|
|
309
|
+
listingCount: number | null;
|
|
310
|
+
totalQuantity: number | null;
|
|
311
|
+
volume: number | null;
|
|
312
|
+
bestBidCents: Cents | null;
|
|
313
|
+
bestAskCents: Cents | null;
|
|
314
|
+
spreadBps: number | null;
|
|
273
315
|
}
|
|
274
|
-
/**
|
|
275
|
-
interface
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
ingest_latency_ms?: number;
|
|
316
|
+
/** `GET /v1/pricing/:marketHashName/history` (camelCase). */
|
|
317
|
+
interface PriceHistoryResponse {
|
|
318
|
+
canonicalItemId: string;
|
|
319
|
+
name: string;
|
|
320
|
+
history: PriceHistoryPoint[];
|
|
321
|
+
listingType: HistoryListingType;
|
|
322
|
+
salesWindow: SalesHistoryWindow | null;
|
|
323
|
+
/** Actual returned bucket width, which may differ from the requested interval. */
|
|
324
|
+
effectiveInterval: "10m" | "1h" | "1d";
|
|
284
325
|
}
|
|
285
|
-
interface
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
orders: MarketMaxOrder[];
|
|
326
|
+
interface MarketSeries {
|
|
327
|
+
market: string;
|
|
328
|
+
history: PriceHistoryPoint[];
|
|
289
329
|
}
|
|
290
|
-
/** `GET /v1/
|
|
291
|
-
interface
|
|
292
|
-
|
|
330
|
+
/** `GET /v1/pricing/:marketHashName/history/markets` (camelCase). */
|
|
331
|
+
interface PriceHistoryByMarketResponse {
|
|
332
|
+
canonicalItemId: string;
|
|
333
|
+
name: string;
|
|
334
|
+
series: MarketSeries[];
|
|
335
|
+
listingType: HistoryListingType;
|
|
336
|
+
salesWindow: SalesHistoryWindow | null;
|
|
337
|
+
/** Actual returned bucket width, which may differ from the requested interval. */
|
|
338
|
+
effectiveInterval: "10m" | "1h" | "1d";
|
|
293
339
|
}
|
|
294
340
|
|
|
341
|
+
/** Games supported by the v2 pricing API. */
|
|
342
|
+
type Game = "cs2" | "rust";
|
|
343
|
+
|
|
295
344
|
/** Shared base for resource namespaces. Holds the {@link HttpClient}. */
|
|
296
345
|
declare abstract class BaseResource {
|
|
297
346
|
protected readonly http: HttpClient;
|
|
298
|
-
|
|
347
|
+
private readonly game?;
|
|
348
|
+
constructor(http: HttpClient, game?: Game | undefined);
|
|
299
349
|
/** Performs a request and returns the data with {@link ResponseMeta} attached. */
|
|
300
350
|
protected call<T>(input: BuildRequestInput, options?: RequestOptions): Promise<T>;
|
|
301
351
|
}
|
|
302
352
|
|
|
303
|
-
|
|
353
|
+
/** Historical price series for an item. */
|
|
354
|
+
declare class HistoryResource extends BaseResource {
|
|
355
|
+
/** `GET /v1/pricing/:marketHashName/history` — aggregated time series. */
|
|
356
|
+
get(marketHashName: string, params?: PriceHistoryParams, options?: RequestOptions): Promise<PriceHistoryResponse>;
|
|
357
|
+
/** `GET /v1/pricing/:marketHashName/history/markets` — per-market series. */
|
|
358
|
+
byMarket(marketHashName: string, params?: PriceHistoryParams, options?: RequestOptions): Promise<PriceHistoryByMarketResponse>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface CurrentPriceParams {
|
|
362
|
+
/** Restrict the response to these market ids. */
|
|
304
363
|
markets?: KnownMarket[];
|
|
305
|
-
concurrency?: number;
|
|
306
364
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
365
|
+
/** `GET /v1/pricing/:marketHashName` (camelCase). */
|
|
366
|
+
interface CurrentPriceResponse {
|
|
367
|
+
canonicalItemId: string;
|
|
368
|
+
name: string;
|
|
369
|
+
aggregate?: AggregatePriceData;
|
|
370
|
+
markets: MarketPricePoint[];
|
|
371
|
+
buyOrders?: MarketPricePoint[];
|
|
372
|
+
bestAsk?: NbboBestPrice | null;
|
|
373
|
+
bestBid?: NbboBestPrice | null;
|
|
374
|
+
spreadBps?: number | null;
|
|
375
|
+
marketCount?: number;
|
|
376
|
+
freshMarketCount?: number;
|
|
377
|
+
calculatedAt: IsoDateString;
|
|
317
378
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
interface ArbitrageParams {
|
|
321
|
-
/** Max opportunities to return (1–100, default 50). */
|
|
379
|
+
interface PricingListingsParams {
|
|
380
|
+
/** Max listing samples to return (1–2000, default 500). */
|
|
322
381
|
limit?: number;
|
|
323
|
-
/** Minimum cross-market spread in basis points (default 200). */
|
|
324
|
-
minSpreadBps?: number;
|
|
325
|
-
/** Minimum estimated buy-side notional in integer USD cents (default 1000). */
|
|
326
|
-
minNotionalCents?: number;
|
|
327
|
-
/** @deprecated Alias for {@link ArbitrageParams.minNotionalCents}. */
|
|
328
|
-
minNotional?: number;
|
|
329
|
-
sort?: ArbitrageSort;
|
|
330
382
|
markets?: KnownMarket[];
|
|
331
|
-
/** Internal shortlist size (50–2000, default 500). */
|
|
332
|
-
candidateLimit?: number;
|
|
333
383
|
}
|
|
334
|
-
interface
|
|
384
|
+
interface PricingListing {
|
|
385
|
+
listingId: string | null;
|
|
335
386
|
market: string;
|
|
336
387
|
price: Cents;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
388
|
+
currency: "USD";
|
|
389
|
+
floatValue: number | null;
|
|
390
|
+
paintSeed: number | null;
|
|
391
|
+
paintIndex: number | null;
|
|
392
|
+
inspectLink: string | null;
|
|
393
|
+
stickers: unknown[];
|
|
394
|
+
isStatTrak: boolean;
|
|
395
|
+
fetchedAt: IsoDateString;
|
|
340
396
|
}
|
|
341
|
-
interface
|
|
342
|
-
|
|
343
|
-
|
|
397
|
+
interface PricingListingFloatCoverage {
|
|
398
|
+
coverage: "none" | "partial" | "complete";
|
|
399
|
+
sampledListings: number;
|
|
400
|
+
listingsWithFloat: number;
|
|
401
|
+
marketsWithFloat: string[];
|
|
402
|
+
marketsWithoutFloat: string[];
|
|
344
403
|
}
|
|
345
|
-
interface
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
imageUrl: string | null;
|
|
350
|
-
buy: ArbitrageQuote;
|
|
351
|
-
sell: ArbitrageQuote;
|
|
352
|
-
spreadBps: number;
|
|
353
|
-
spreadCents: Cents;
|
|
354
|
-
estimatedNetCents: Cents;
|
|
355
|
-
maxTradableQuantity: number;
|
|
356
|
-
estimatedNotionalCents: Cents;
|
|
357
|
-
feeNotes: string;
|
|
358
|
-
freshness: ArbitrageFreshness;
|
|
359
|
-
calculatedAt: IsoDateString;
|
|
404
|
+
interface PricingListingObservedFloatSource {
|
|
405
|
+
market: string;
|
|
406
|
+
price: Cents;
|
|
407
|
+
fetchedAt: IsoDateString;
|
|
360
408
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
409
|
+
interface PricingListingFloatSummary {
|
|
410
|
+
observed: number;
|
|
411
|
+
itemMin: number | null;
|
|
412
|
+
itemMax: number | null;
|
|
413
|
+
observedSource: PricingListingObservedFloatSource;
|
|
366
414
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
415
|
+
/** `GET /v1/pricing/:marketHashName/listings` (camelCase). */
|
|
416
|
+
interface PricingListingsResponse {
|
|
417
|
+
marketHashName: string;
|
|
418
|
+
canonicalItemId: string;
|
|
419
|
+
totalListings: number;
|
|
420
|
+
sampledListings: number;
|
|
421
|
+
floatCoverage: PricingListingFloatCoverage;
|
|
422
|
+
floatSummary: PricingListingFloatSummary | null;
|
|
423
|
+
listings: PricingListing[];
|
|
424
|
+
calculatedAt: IsoDateString;
|
|
372
425
|
}
|
|
373
426
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
interface AttributeBucketDimensions {
|
|
383
|
-
variant: string | null;
|
|
384
|
-
float: AttributeRangeDimension | null;
|
|
385
|
-
fade: AttributeRangeDimension | null;
|
|
386
|
-
pattern: number | null;
|
|
387
|
-
finishCatalog: number | null;
|
|
388
|
-
paintSeed: number | null;
|
|
389
|
-
charmTemplate: number | null;
|
|
390
|
-
stickerScrape: number | null;
|
|
391
|
-
sourceTagId: number | null;
|
|
392
|
-
sourceTagName: string | null;
|
|
393
|
-
nameTag: string | null;
|
|
427
|
+
interface ItemSearchParams {
|
|
428
|
+
/** Case-insensitive contains match on item name. */
|
|
429
|
+
search?: string;
|
|
430
|
+
markets?: KnownMarket[];
|
|
431
|
+
/** 1-based page number (default 1). */
|
|
432
|
+
page?: number;
|
|
433
|
+
/** Items per page (1–100, default 10). */
|
|
434
|
+
perPage?: number;
|
|
394
435
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
bucketType: "attribute";
|
|
400
|
-
attributeType: AttributeType;
|
|
401
|
-
attributeTypes: AttributeType[];
|
|
402
|
-
sourceItemId: string;
|
|
403
|
-
dimensions: AttributeBucketDimensions;
|
|
404
|
-
askCents: Cents | null;
|
|
405
|
-
avgAskCents: Cents | null;
|
|
406
|
-
medianAskCents: Cents | null;
|
|
407
|
-
bidCents: Cents | null;
|
|
408
|
-
askListingCount: number | null;
|
|
409
|
-
bidOrderCount: number | null;
|
|
410
|
-
sourceUpdatedAt: IsoDateString;
|
|
411
|
-
collectedAt: IsoDateString;
|
|
436
|
+
/** `GET /v1/items` — paginated (camelCase). */
|
|
437
|
+
interface ItemPriceListResponse {
|
|
438
|
+
data: CurrentPriceResponse[];
|
|
439
|
+
pagination: PaginationMeta;
|
|
412
440
|
}
|
|
413
|
-
interface
|
|
414
|
-
canonicalItemId: string;
|
|
415
|
-
marketHashName: string;
|
|
441
|
+
interface AllItemsLatestPrice {
|
|
416
442
|
market: string;
|
|
417
|
-
|
|
443
|
+
effectiveUsdCents: Cents;
|
|
444
|
+
fetchedAt: IsoDateString;
|
|
445
|
+
originalCurrency: string;
|
|
418
446
|
}
|
|
419
|
-
interface
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
closeBidCents: Cents | null;
|
|
427
|
-
askListingCount: number | null;
|
|
428
|
-
bidOrderCount: number | null;
|
|
429
|
-
firstObservedAt: IsoDateString;
|
|
430
|
-
lastObservedAt: IsoDateString;
|
|
447
|
+
interface AllItemsPriceAggregates {
|
|
448
|
+
minPrice: Cents | null;
|
|
449
|
+
maxPrice: Cents | null;
|
|
450
|
+
avgPrice: Cents | null;
|
|
451
|
+
medianPrice: Cents | null;
|
|
452
|
+
stdDev: number | null;
|
|
453
|
+
updatedAt: IsoDateString;
|
|
431
454
|
}
|
|
432
|
-
interface
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
attributeType: AttributeType;
|
|
438
|
-
attributeTypes: AttributeType[];
|
|
439
|
-
sourceItemId: string;
|
|
440
|
-
dimensions: AttributeBucketDimensions;
|
|
441
|
-
points: AttributeHistoryPoint[];
|
|
455
|
+
interface AllItemsItem {
|
|
456
|
+
id: string;
|
|
457
|
+
name: string;
|
|
458
|
+
latestPrices: AllItemsLatestPrice[];
|
|
459
|
+
priceAggregates: AllItemsPriceAggregates | null;
|
|
442
460
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
461
|
+
/** `GET /v1/items/all` — a plain array (camelCase). */
|
|
462
|
+
type AllItemsResponse = AllItemsItem[];
|
|
463
|
+
|
|
464
|
+
/** Item discovery / search. */
|
|
465
|
+
declare class ItemSearchResource extends BaseResource {
|
|
466
|
+
/** GET /v1/items — paginated item search with current pricing. */
|
|
467
|
+
search(params?: ItemSearchParams, options?: RequestOptions): Promise<ItemPriceListResponse>;
|
|
468
|
+
/** Async iterator over every matching item, walking pages. */
|
|
469
|
+
searchEach(params?: ItemSearchParams, options?: RequestOptions): AsyncGenerator<CurrentPriceResponse>;
|
|
470
|
+
}
|
|
471
|
+
/** CS2 item discovery and full-catalog export. */
|
|
472
|
+
declare class ItemsResource extends ItemSearchResource {
|
|
473
|
+
/** GET /v1/items/all — every tracked item with latest prices (capped, unpaginated). */
|
|
474
|
+
all(options?: RequestOptions): Promise<AllItemsResponse>;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare const LIQUIDITY_BADGES: readonly ["EXTREMELY_LIQUID", "VERY_LIQUID", "LIQUID", "ILLIQUID", "VERY_ILLIQUID", "EXTREMELY_ILLIQUID", "UNTRADED", "INSUFFICIENT_DATA"];
|
|
478
|
+
type LiquidityBadge = (typeof LIQUIDITY_BADGES)[number];
|
|
479
|
+
declare const LIQUIDITY_CONFIDENCE: readonly ["HIGH", "MEDIUM", "LOW", "CRITICAL"];
|
|
480
|
+
type LiquidityConfidence = (typeof LIQUIDITY_CONFIDENCE)[number];
|
|
481
|
+
type LiquidityCoverage = "full" | "partial" | "none";
|
|
482
|
+
/** Lowercase label form of the badge; `UNTRADED` maps to `"unknown"`, no `"moderate"` tier. */
|
|
483
|
+
declare const LIQUIDITY_LABELS: readonly ["extremely_liquid", "very_liquid", "liquid", "illiquid", "very_illiquid", "extremely_illiquid", "unknown"];
|
|
484
|
+
type LiquidityLabel = (typeof LIQUIDITY_LABELS)[number];
|
|
485
|
+
declare const SUPPORTED_LIQUIDITY_MARKETS: readonly ["skinport", "marketcsgo", "dmarket", "steamcommunity", "csfloat"];
|
|
486
|
+
type SupportedLiquidityMarket = (typeof SUPPORTED_LIQUIDITY_MARKETS)[number];
|
|
487
|
+
declare const SUPPORTED_RUST_LIQUIDITY_MARKETS: readonly ["rusttm", "skinport"];
|
|
488
|
+
type SupportedRustLiquidityMarket = (typeof SUPPORTED_RUST_LIQUIDITY_MARKETS)[number];
|
|
489
|
+
type LiquidityMarketForGame<G extends Game> = G extends "rust" ? SupportedRustLiquidityMarket : SupportedLiquidityMarket;
|
|
490
|
+
interface LiquidityParams<Market extends string = SupportedLiquidityMarket> {
|
|
491
|
+
/** Hypothetical ask (USD cents) to estimate against; defaults to the best ask. */
|
|
492
|
+
askPrice?: Cents;
|
|
493
|
+
market?: Market;
|
|
494
|
+
}
|
|
495
|
+
/** Per-market row; every metric is null when that market has no data. */
|
|
496
|
+
interface LiquidityMarketMetric {
|
|
446
497
|
market: string;
|
|
447
|
-
|
|
498
|
+
salesPerDay: number | null;
|
|
499
|
+
activeListings: number | null;
|
|
500
|
+
bestAskUsdCents: Cents | null;
|
|
501
|
+
medianTimeToSellHours: number | null;
|
|
502
|
+
p90TimeToSellHours: number | null;
|
|
503
|
+
salesDataAgeMinutes: number | null;
|
|
504
|
+
listingsDataAgeMinutes: number | null;
|
|
448
505
|
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
506
|
+
/** `GET /v1/liquidity/:marketHashName` — full liquidity model for one item. */
|
|
507
|
+
interface LiquidityResponse {
|
|
508
|
+
canonicalItemId: string;
|
|
509
|
+
marketHashName: string;
|
|
510
|
+
liquidityBadge: LiquidityBadge;
|
|
511
|
+
confidence: LiquidityConfidence;
|
|
512
|
+
coverage: LiquidityCoverage;
|
|
513
|
+
medianTimeToSellHours: number | null;
|
|
514
|
+
p90TimeToSellHours: number | null;
|
|
515
|
+
bestMarketToList: string | null;
|
|
516
|
+
salesPerDay: number | null;
|
|
517
|
+
activeListings: number | null;
|
|
518
|
+
referenceAskUsdCents: Cents | null;
|
|
519
|
+
marketWideSalesPerDay: number | null;
|
|
520
|
+
marketWideListings: number | null;
|
|
521
|
+
marketsWithSales: number;
|
|
522
|
+
marketsWithDepth: number;
|
|
523
|
+
/** Whole-market saturation (hours), NOT a per-listing estimate. */
|
|
524
|
+
marketWideMedianTimeToSellHours: number | null;
|
|
525
|
+
marketWideP90TimeToSellHours: number | null;
|
|
526
|
+
metrics: LiquidityMarketMetric[];
|
|
527
|
+
/** Data-quality flags, e.g. `sales_data_stale:marketcsgo`. */
|
|
528
|
+
notes: string[];
|
|
529
|
+
calculatedAt: IsoDateString;
|
|
459
530
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
531
|
+
/** `GET /v1/liquidity/summary/:marketHashName` — slim badge-only projection. */
|
|
532
|
+
interface LiquiditySummaryResponse {
|
|
533
|
+
marketHashName: string;
|
|
534
|
+
liquidityBadge: LiquidityBadge;
|
|
535
|
+
liquidity: LiquidityLabel;
|
|
536
|
+
/** Human time-to-sell, e.g. `"2 - 6 hours"` (`"Insufficient data"` when no estimate is available). */
|
|
537
|
+
estimatedSaleTime: string;
|
|
538
|
+
confidence: LiquidityConfidence;
|
|
539
|
+
/** 0-100, higher sells faster; null when untraded. */
|
|
540
|
+
score: number | null;
|
|
541
|
+
bestMarketToList: string | null;
|
|
542
|
+
calculatedAt: IsoDateString;
|
|
468
543
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
bucketIds?: string[];
|
|
474
|
-
attributes?: AttributeType[];
|
|
475
|
-
from?: Date | string;
|
|
476
|
-
to?: Date | string;
|
|
477
|
-
granularity?: AttributeGranularity;
|
|
478
|
-
/** Max history points across all buckets (1–10000). */
|
|
479
|
-
limit?: number;
|
|
480
|
-
markets?: KnownMarket[];
|
|
544
|
+
/** Request body for `POST /v1/liquidity/batch` (1-100 names). */
|
|
545
|
+
interface LiquidityBatchBody<Market extends string = SupportedLiquidityMarket> {
|
|
546
|
+
marketHashNames: string[];
|
|
547
|
+
market?: Market;
|
|
481
548
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
sourceGaps: string[];
|
|
549
|
+
/** `POST /v1/liquidity/batch` — up to 100 full results in one call. */
|
|
550
|
+
interface LiquidityBatchResponse {
|
|
551
|
+
results: LiquidityResponse[];
|
|
552
|
+
notFound: string[];
|
|
553
|
+
requested: number;
|
|
554
|
+
calculatedAt: IsoDateString;
|
|
489
555
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
556
|
+
/** Bulk-map entry. `market_hash_name` and `estimated_sale_time` are snake_case on the wire. */
|
|
557
|
+
interface LiquidityBulkItem {
|
|
558
|
+
market_hash_name: string;
|
|
559
|
+
liquidity: LiquidityLabel;
|
|
560
|
+
estimated_sale_time: string;
|
|
561
|
+
liquidityBadge: LiquidityBadge;
|
|
562
|
+
confidence: LiquidityConfidence;
|
|
563
|
+
score: number | null;
|
|
564
|
+
bestMarketToList: string | null;
|
|
565
|
+
/** Reserved; always `{}` for now. */
|
|
566
|
+
variants: Record<string, never>;
|
|
496
567
|
}
|
|
497
|
-
interface
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
currency: "USD";
|
|
501
|
-
asOf: IsoDateString;
|
|
502
|
-
items: AttributePriceItem[];
|
|
503
|
-
nextCursor: string | null;
|
|
504
|
-
sourceGaps: string[];
|
|
568
|
+
interface LiquidityBulkParams {
|
|
569
|
+
/** ETag from the preceding response. HTTP 304 returns null. */
|
|
570
|
+
ifNoneMatch?: string;
|
|
505
571
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
limit?: number;
|
|
572
|
+
/** `GET /v1/liquidity/items/manifest` — cheap change-probe; compare `version` before refetching. */
|
|
573
|
+
interface LiquidityBulkManifest {
|
|
574
|
+
/** Snapshot version / ETag. */
|
|
575
|
+
version: string;
|
|
576
|
+
calculatedAt: IsoDateString;
|
|
577
|
+
/** Recompute cadence as an ISO-8601 duration, e.g. `"PT10M"`. */
|
|
578
|
+
cadence: string;
|
|
579
|
+
markets: string[];
|
|
580
|
+
itemCount: number;
|
|
516
581
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
currency: "USD";
|
|
521
|
-
granularity: AttributeGranularity;
|
|
522
|
-
items: AttributeHistoryItem[];
|
|
523
|
-
sourceGaps: string[];
|
|
582
|
+
/** `GET /v1/liquidity/items` — Enterprise: whole-catalog map keyed by market_hash_name. */
|
|
583
|
+
interface LiquidityBulkResponse extends LiquidityBulkManifest {
|
|
584
|
+
items: Record<string, LiquidityBulkItem>;
|
|
524
585
|
}
|
|
525
586
|
|
|
526
|
-
/**
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
|
|
587
|
+
/**
|
|
588
|
+
* Liquidity & expected time-to-sell, from cross-market order-book depth and
|
|
589
|
+
* sales velocity. The single + summary + batch endpoints are Pro; the bulk map
|
|
590
|
+
* + manifest are Enterprise.
|
|
591
|
+
*/
|
|
592
|
+
declare class ItemLiquidityResource<Market extends string = SupportedLiquidityMarket> extends BaseResource {
|
|
593
|
+
/** `GET /v1/liquidity/:marketHashName` — full liquidity model for one item. */
|
|
594
|
+
get(marketHashName: string, params?: LiquidityParams<Market>, options?: RequestOptions): Promise<LiquidityResponse>;
|
|
595
|
+
/** `GET /v1/liquidity/summary/:marketHashName` — slim badge-only projection. */
|
|
596
|
+
summary(marketHashName: string, params?: LiquidityParams<Market>, options?: RequestOptions): Promise<LiquiditySummaryResponse>;
|
|
597
|
+
/** `POST /v1/liquidity/batch` — score up to 100 items in one call. */
|
|
598
|
+
batch(body: LiquidityBatchBody<Market>, options?: RequestOptions): Promise<LiquidityBatchResponse>;
|
|
599
|
+
}
|
|
600
|
+
/** CS2 liquidity, including Enterprise bulk exports. */
|
|
601
|
+
declare class LiquidityResource extends ItemLiquidityResource {
|
|
602
|
+
/** `GET /v1/liquidity/:marketHashName`. `"items"` is reserved for {@link bulk}. */
|
|
603
|
+
get(marketHashName: string, params?: LiquidityParams<SupportedLiquidityMarket>, options?: RequestOptions): Promise<LiquidityResponse>;
|
|
604
|
+
/**
|
|
605
|
+
* `GET /v1/liquidity/items`. Enterprise: the whole-catalog liquidity map,
|
|
606
|
+
* rematerialized every ~10 minutes. Poll {@link manifest} and compare
|
|
607
|
+
* `version` before refetching this heavier payload.
|
|
608
|
+
*/
|
|
609
|
+
bulk(params?: undefined, options?: RequestOptions): Promise<LiquidityBulkResponse>;
|
|
610
|
+
/** A matching conditional ETag returns null. */
|
|
611
|
+
bulk(params: LiquidityBulkParams, options?: RequestOptions): Promise<LiquidityBulkResponse | null>;
|
|
612
|
+
/**
|
|
613
|
+
* `GET /v1/liquidity/items/manifest`. Enterprise: a cheap change-probe for
|
|
614
|
+
* the {@link bulk} map (`version`, `calculatedAt`, `cadence`, `markets`,
|
|
615
|
+
* `itemCount`). Refetch the bulk map only when `version` changes.
|
|
616
|
+
*/
|
|
617
|
+
manifest(params?: undefined, options?: RequestOptions): Promise<LiquidityBulkManifest>;
|
|
618
|
+
/** A matching conditional ETag returns null. */
|
|
619
|
+
manifest(params: LiquidityBulkParams, options?: RequestOptions): Promise<LiquidityBulkManifest | null>;
|
|
534
620
|
}
|
|
535
621
|
|
|
536
|
-
/**
|
|
537
|
-
declare class
|
|
538
|
-
/**
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
622
|
+
/** Market registry health & integration status. */
|
|
623
|
+
declare class MarketsResource extends BaseResource {
|
|
624
|
+
/**
|
|
625
|
+
* `GET /v1/markets/health` — per-market ingest status, last event time, and
|
|
626
|
+
* listing counts for every integrated market. Returns a plain array of
|
|
627
|
+
* {@link import("../types/markets").MarketHealthRow}.
|
|
628
|
+
*/
|
|
629
|
+
health(options?: RequestOptions): Promise<MarketHealthResponse>;
|
|
544
630
|
}
|
|
545
631
|
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
interface PriceHistoryParams {
|
|
552
|
-
/** Start of the range (Date or ISO string). */
|
|
553
|
-
from?: Date | string;
|
|
554
|
-
/** End of the range (Date or ISO string). */
|
|
555
|
-
to?: Date | string;
|
|
556
|
-
/** Markets to include; when set, `byMarket` returns per-market series. */
|
|
632
|
+
interface NbboParams {
|
|
633
|
+
/** Canonical item id. Provide this or `marketHashName`. */
|
|
634
|
+
id?: string;
|
|
635
|
+
/** Market hash name. Sent as the `market_hash_name` query param. */
|
|
636
|
+
marketHashName?: string;
|
|
557
637
|
markets?: KnownMarket[];
|
|
558
|
-
listingType?: HistoryListingTypeInput;
|
|
559
|
-
salesWindow?: SalesHistoryWindow;
|
|
560
|
-
interval?: PriceHistoryInterval;
|
|
561
638
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
639
|
+
/** Fee-aware, executability-ranked best price for one side. Ask `price` is the total a buyer pays; bid `price` is the net a seller receives after fees. */
|
|
640
|
+
interface ExecutionAdjustedBestPrice {
|
|
641
|
+
market: string;
|
|
642
|
+
price: Cents;
|
|
643
|
+
rawPrice: Cents;
|
|
644
|
+
appliedFeeBps: number;
|
|
645
|
+
withdrawalFlatUsdCents?: Cents;
|
|
646
|
+
executability: number;
|
|
647
|
+
updatedAt: IsoDateString;
|
|
648
|
+
isStale: boolean;
|
|
649
|
+
reasons: string[];
|
|
650
|
+
}
|
|
651
|
+
/** Execution-adjusted NBBO block: fee-aware best bid/ask re-ranked by executability. */
|
|
652
|
+
interface ExecutionAdjustedNbbo {
|
|
653
|
+
bestAsk: ExecutionAdjustedBestPrice | null;
|
|
654
|
+
bestBid: ExecutionAdjustedBestPrice | null;
|
|
573
655
|
spreadBps: number | null;
|
|
656
|
+
locked: boolean;
|
|
657
|
+
crossed: boolean;
|
|
658
|
+
executableConfidence: number;
|
|
659
|
+
reasons: string[];
|
|
660
|
+
feeModelVersion: string;
|
|
661
|
+
calculatedAt: IsoDateString;
|
|
574
662
|
}
|
|
575
|
-
/** `GET /v1/
|
|
576
|
-
interface
|
|
663
|
+
/** `GET /v1/nbbo` (camelCase). */
|
|
664
|
+
interface NbboResponse {
|
|
665
|
+
marketHashName: string;
|
|
577
666
|
canonicalItemId: string;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
667
|
+
bestAsk: NbboBestPrice | null;
|
|
668
|
+
bestBid: NbboBestPrice | null;
|
|
669
|
+
spreadBps: number | null;
|
|
670
|
+
marketCount: number;
|
|
671
|
+
freshMarketCount: number;
|
|
672
|
+
locked: boolean;
|
|
673
|
+
crossed: boolean;
|
|
674
|
+
confidence: number;
|
|
675
|
+
calculatedAt: IsoDateString;
|
|
676
|
+
/** Execution-adjusted "real best market"; null when no quotes. */
|
|
677
|
+
executionAdjusted: ExecutionAdjustedNbbo | null;
|
|
582
678
|
}
|
|
583
|
-
interface
|
|
679
|
+
interface NbboDepthParams extends NbboParams {
|
|
680
|
+
/** Aggregated depth levels per side (1–50, default 10). */
|
|
681
|
+
depth?: number;
|
|
682
|
+
}
|
|
683
|
+
interface NbboDepthQuote {
|
|
584
684
|
market: string;
|
|
585
|
-
|
|
685
|
+
level: number;
|
|
686
|
+
price: Cents;
|
|
687
|
+
quantity: number;
|
|
688
|
+
ordersCount: number;
|
|
689
|
+
updatedAt: IsoDateString;
|
|
690
|
+
isStale: boolean;
|
|
586
691
|
}
|
|
587
|
-
|
|
588
|
-
|
|
692
|
+
interface NbboDepthLevel {
|
|
693
|
+
rank: number;
|
|
694
|
+
price: Cents;
|
|
695
|
+
quantity: number;
|
|
696
|
+
ordersCount: number;
|
|
697
|
+
marketCount: number;
|
|
698
|
+
cumulativeQuantity: number;
|
|
699
|
+
updatedAt: IsoDateString;
|
|
700
|
+
isStale: boolean;
|
|
701
|
+
quotes: NbboDepthQuote[];
|
|
702
|
+
}
|
|
703
|
+
/** `GET /v1/nbbo/depth` (camelCase). */
|
|
704
|
+
interface NbboDepthResponse {
|
|
705
|
+
marketHashName: string;
|
|
589
706
|
canonicalItemId: string;
|
|
707
|
+
depth: number;
|
|
708
|
+
marketCount: number;
|
|
709
|
+
asks: NbboDepthLevel[];
|
|
710
|
+
bids: NbboDepthLevel[];
|
|
711
|
+
spreadBps: number | null;
|
|
712
|
+
locked: boolean;
|
|
713
|
+
crossed: boolean;
|
|
714
|
+
calculatedAt: IsoDateString;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/** National Best Bid and Offer (top of book) and aggregated depth. */
|
|
718
|
+
declare class NbboResource extends BaseResource {
|
|
719
|
+
/** `GET /v1/nbbo` — best bid/ask across markets. Pass `id` or `marketHashName`. */
|
|
720
|
+
get(params: NbboParams, options?: RequestOptions): Promise<NbboResponse>;
|
|
721
|
+
/** `GET /v1/nbbo/depth` — aggregated order-book depth per side. */
|
|
722
|
+
depth(params: NbboDepthParams, options?: RequestOptions): Promise<NbboDepthResponse>;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/** Current cross-market pricing for a single item. */
|
|
726
|
+
declare class PricingResource extends BaseResource {
|
|
727
|
+
/** `GET /v1/pricing/:marketHashName` — full cross-market pricing snapshot. */
|
|
728
|
+
get(marketHashName: string, params?: CurrentPriceParams, options?: RequestOptions): Promise<CurrentPriceResponse>;
|
|
729
|
+
/** `GET /v1/pricing/:marketHashName/listings` — individual listing samples. */
|
|
730
|
+
listings(marketHashName: string, params?: PricingListingsParams, options?: RequestOptions): Promise<PricingListingsResponse>;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
interface SchemaRarity {
|
|
734
|
+
key: string;
|
|
590
735
|
name: string;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
736
|
+
tier: number;
|
|
737
|
+
color?: string;
|
|
738
|
+
}
|
|
739
|
+
interface SchemaCollection {
|
|
740
|
+
name: string;
|
|
741
|
+
image?: string;
|
|
742
|
+
}
|
|
743
|
+
interface SchemaContainer {
|
|
744
|
+
name: string;
|
|
745
|
+
type: string;
|
|
746
|
+
releaseDate?: IsoDateString;
|
|
747
|
+
image?: string;
|
|
748
|
+
}
|
|
749
|
+
interface SchemaRegistries {
|
|
750
|
+
rarities: SchemaRarity[];
|
|
751
|
+
collections: Record<string, SchemaCollection>;
|
|
752
|
+
containers: Record<string, SchemaContainer>;
|
|
753
|
+
}
|
|
754
|
+
interface SchemaVariant {
|
|
755
|
+
marketHashName: string;
|
|
756
|
+
family: string;
|
|
757
|
+
name: string;
|
|
758
|
+
phase?: number;
|
|
759
|
+
image?: string;
|
|
760
|
+
}
|
|
761
|
+
/** Schema fields that do not apply to the item or game are omitted. */
|
|
762
|
+
interface SchemaItem {
|
|
763
|
+
id: string;
|
|
764
|
+
marketHashName: string;
|
|
765
|
+
slug: string;
|
|
766
|
+
category: string;
|
|
767
|
+
baseName?: string;
|
|
768
|
+
weapon?: string;
|
|
769
|
+
finish?: string;
|
|
770
|
+
paintIndex?: string;
|
|
771
|
+
rarity?: string;
|
|
772
|
+
wear?: string;
|
|
773
|
+
wears?: string[];
|
|
774
|
+
stattrak?: boolean;
|
|
775
|
+
souvenir?: boolean;
|
|
776
|
+
hasStattrak?: boolean;
|
|
777
|
+
hasSouvenir?: boolean;
|
|
778
|
+
stattrakOf?: string;
|
|
779
|
+
souvenirOf?: string;
|
|
780
|
+
floatRange?: {
|
|
781
|
+
min: number;
|
|
782
|
+
max: number;
|
|
783
|
+
};
|
|
784
|
+
variants?: SchemaVariant[];
|
|
785
|
+
variant?: {
|
|
786
|
+
base: string;
|
|
787
|
+
family: string;
|
|
788
|
+
name: string;
|
|
789
|
+
};
|
|
790
|
+
collections?: string[];
|
|
791
|
+
containers?: string[];
|
|
792
|
+
image?: string;
|
|
793
|
+
releaseDate?: IsoDateString;
|
|
794
|
+
ids: Record<string, string>;
|
|
795
|
+
aliases?: Record<string, string>;
|
|
796
|
+
}
|
|
797
|
+
interface SchemaSnapshotResponse extends SchemaRegistries {
|
|
798
|
+
schemaVersion: number;
|
|
799
|
+
generatedAt: IsoDateString;
|
|
800
|
+
itemCount: number;
|
|
801
|
+
items: Record<string, SchemaItem>;
|
|
802
|
+
}
|
|
803
|
+
interface SchemaItemResponse {
|
|
804
|
+
schemaVersion: number;
|
|
805
|
+
item: SchemaItem;
|
|
806
|
+
registries?: SchemaRegistries;
|
|
807
|
+
}
|
|
808
|
+
interface SchemaSnapshotParams {
|
|
809
|
+
/** ETag from the preceding snapshot. HTTP 304 returns null. */
|
|
810
|
+
ifNoneMatch?: string;
|
|
811
|
+
}
|
|
812
|
+
interface SchemaChangesParams {
|
|
813
|
+
/** Schema version or ISO timestamp. Keep this value unchanged while paging. */
|
|
814
|
+
since: number | string | Date;
|
|
815
|
+
/** Opaque cursor returned by this game's previous delta page. */
|
|
816
|
+
cursor?: string;
|
|
817
|
+
/** Items per page, from 1 to 5000. */
|
|
818
|
+
limit?: number;
|
|
819
|
+
}
|
|
820
|
+
interface SchemaChangesResponse {
|
|
821
|
+
schemaVersion: number;
|
|
822
|
+
since: number;
|
|
823
|
+
count: number;
|
|
824
|
+
hasMore: boolean;
|
|
825
|
+
nextCursor: string | null;
|
|
826
|
+
items: SchemaItem[];
|
|
827
|
+
registries?: SchemaRegistries;
|
|
594
828
|
}
|
|
595
829
|
|
|
596
|
-
/**
|
|
597
|
-
declare class
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
|
|
830
|
+
/** Item catalog snapshots, single-item lookup, and incremental changes. */
|
|
831
|
+
declare class SchemaResource extends BaseResource {
|
|
832
|
+
snapshot(params?: undefined, options?: RequestOptions): Promise<SchemaSnapshotResponse>;
|
|
833
|
+
snapshot(params: SchemaSnapshotParams, options?: RequestOptions): Promise<SchemaSnapshotResponse | null>;
|
|
834
|
+
/** Look up one item by canonical id or exact name; v2 also accepts its game-scoped slug. */
|
|
835
|
+
get(idOrName: string, options?: RequestOptions): Promise<SchemaItemResponse>;
|
|
836
|
+
/** One page of items changed after a catalog version or timestamp. */
|
|
837
|
+
changes(params: SchemaChangesParams, options?: RequestOptions): Promise<SchemaChangesResponse>;
|
|
838
|
+
/** Iterate changes without moving the original version boundary while paging. */
|
|
839
|
+
changesEach(params: SchemaChangesParams, options?: RequestOptions): AsyncGenerator<SchemaItem>;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/** Game-scoped v2 resources. Construct with `client.forGame(game)`. */
|
|
843
|
+
declare class GameClient<G extends Game> {
|
|
844
|
+
readonly game: G;
|
|
845
|
+
readonly pricing: PricingResource;
|
|
846
|
+
readonly history: HistoryResource;
|
|
847
|
+
readonly items: ItemSearchResource;
|
|
848
|
+
readonly nbbo: NbboResource;
|
|
849
|
+
readonly liquidity: ItemLiquidityResource<LiquidityMarketForGame<G>>;
|
|
850
|
+
readonly schema: SchemaResource;
|
|
851
|
+
readonly markets: MarketsResource;
|
|
852
|
+
constructor(http: HttpClient, game: G);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
interface AggregationsParams {
|
|
856
|
+
/** Canonical item ids (1–100). Provide this or {@link AggregationsParams.marketHashNames}. */
|
|
857
|
+
ids?: string[];
|
|
858
|
+
/** Market hash names (1–100). Provide this or {@link AggregationsParams.ids}. */
|
|
859
|
+
marketHashNames?: string[];
|
|
860
|
+
markets?: KnownMarket[];
|
|
861
|
+
}
|
|
862
|
+
/** Per-market minimum sell price (snake_case). */
|
|
863
|
+
interface MarketMinPrice {
|
|
864
|
+
market_name: string;
|
|
865
|
+
offers: number;
|
|
866
|
+
price: Cents;
|
|
867
|
+
updated_at: IsoDateString;
|
|
868
|
+
is_stale?: boolean;
|
|
869
|
+
ingested_at?: IsoDateString;
|
|
870
|
+
ingest_latency_ms?: number;
|
|
871
|
+
}
|
|
872
|
+
interface ItemMinPrices {
|
|
873
|
+
canonical_item_id: string;
|
|
874
|
+
market_hash_name: string;
|
|
875
|
+
prices: MarketMinPrice[];
|
|
876
|
+
}
|
|
877
|
+
/** `GET /v1/aggregations/min-prices` (snake_case). */
|
|
878
|
+
interface MinPricesResponse {
|
|
879
|
+
items: ItemMinPrices[];
|
|
880
|
+
}
|
|
881
|
+
/** Per-market maximum buy order (snake_case). */
|
|
882
|
+
interface MarketMaxOrder {
|
|
883
|
+
market_name: string;
|
|
884
|
+
offers: number;
|
|
885
|
+
price: Cents;
|
|
886
|
+
updated_at: IsoDateString;
|
|
887
|
+
is_stale: boolean;
|
|
888
|
+
total_quantity?: number;
|
|
889
|
+
ingested_at?: IsoDateString;
|
|
890
|
+
ingest_latency_ms?: number;
|
|
891
|
+
}
|
|
892
|
+
interface ItemMaxOrders {
|
|
893
|
+
canonical_item_id: string;
|
|
894
|
+
market_hash_name: string;
|
|
895
|
+
orders: MarketMaxOrder[];
|
|
896
|
+
}
|
|
897
|
+
/** `GET /v1/aggregations/max-orders` (snake_case). */
|
|
898
|
+
interface MaxOrdersResponse {
|
|
899
|
+
items: ItemMaxOrders[];
|
|
602
900
|
}
|
|
603
901
|
|
|
604
|
-
interface
|
|
605
|
-
/** Restrict the response to these market ids. */
|
|
902
|
+
interface AggregationsBatchParams {
|
|
606
903
|
markets?: KnownMarket[];
|
|
904
|
+
concurrency?: number;
|
|
607
905
|
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
marketCount?: number;
|
|
619
|
-
freshMarketCount?: number;
|
|
620
|
-
calculatedAt: IsoDateString;
|
|
906
|
+
declare class AggregationsResource extends BaseResource {
|
|
907
|
+
/** GET /v1/aggregations/min-prices — minimum sell price per market. Pass up to 100 `ids` or `marketHashNames`. */
|
|
908
|
+
minPrices(params: AggregationsParams, options?: RequestOptions): Promise<MinPricesResponse>;
|
|
909
|
+
/** GET /v1/aggregations/max-orders — maximum buy order per market. Pass up to 100 `ids` or `marketHashNames`. */
|
|
910
|
+
maxOrders(params: AggregationsParams, options?: RequestOptions): Promise<MaxOrdersResponse>;
|
|
911
|
+
/** Like `minPrices` but splits more than 100 ids into batches and merges them. */
|
|
912
|
+
minPricesAll(ids: string[], params?: AggregationsBatchParams, options?: RequestOptions): Promise<MinPricesResponse>;
|
|
913
|
+
/** Like `maxOrders` but splits more than 100 ids into batches and merges them. */
|
|
914
|
+
maxOrdersAll(ids: string[], params?: AggregationsBatchParams, options?: RequestOptions): Promise<MaxOrdersResponse>;
|
|
915
|
+
private runBatched;
|
|
621
916
|
}
|
|
622
|
-
|
|
623
|
-
|
|
917
|
+
|
|
918
|
+
/** Sorting by spreadBps ranks opportunities by netSpreadBps after seller commission. */
|
|
919
|
+
type ArbitrageSort = "estimatedNetCents" | "spreadBps";
|
|
920
|
+
interface ArbitrageParams {
|
|
921
|
+
/** Max opportunities to return (1–100, default 50). */
|
|
624
922
|
limit?: number;
|
|
923
|
+
/** Minimum spread after estimated seller commission, in basis points (default 200). */
|
|
924
|
+
minSpreadBps?: number;
|
|
925
|
+
/**
|
|
926
|
+
* Minimum verified buy-side notional in integer USD cents (default 1000).
|
|
927
|
+
* Positive values require verified capacity; 0 also includes indicative price pairs.
|
|
928
|
+
*/
|
|
929
|
+
minNotionalCents?: number;
|
|
930
|
+
/** @deprecated Alias for {@link ArbitrageParams.minNotionalCents}. */
|
|
931
|
+
minNotional?: number;
|
|
932
|
+
sort?: ArbitrageSort;
|
|
625
933
|
markets?: KnownMarket[];
|
|
934
|
+
/** Maximum candidate items to consider (50–2000, default 500). */
|
|
935
|
+
candidateLimit?: number;
|
|
626
936
|
}
|
|
627
|
-
interface
|
|
628
|
-
listingId: string | null;
|
|
629
|
-
market: string;
|
|
630
|
-
price: Cents;
|
|
631
|
-
currency: "USD";
|
|
632
|
-
floatValue: number | null;
|
|
633
|
-
paintSeed: number | null;
|
|
634
|
-
paintIndex: number | null;
|
|
635
|
-
inspectLink: string | null;
|
|
636
|
-
stickers: unknown[];
|
|
637
|
-
isStatTrak: boolean;
|
|
638
|
-
fetchedAt: IsoDateString;
|
|
639
|
-
}
|
|
640
|
-
interface PricingListingFloatCoverage {
|
|
641
|
-
coverage: "none" | "partial" | "complete";
|
|
642
|
-
sampledListings: number;
|
|
643
|
-
listingsWithFloat: number;
|
|
644
|
-
marketsWithFloat: string[];
|
|
645
|
-
marketsWithoutFloat: string[];
|
|
646
|
-
}
|
|
647
|
-
interface PricingListingObservedFloatSource {
|
|
937
|
+
interface ArbitrageQuote {
|
|
648
938
|
market: string;
|
|
649
939
|
price: Cents;
|
|
650
|
-
|
|
940
|
+
/** Aggregate quantity reported by the market; it does not verify availability at this price. */
|
|
941
|
+
quoteSize: number;
|
|
942
|
+
/** Verified observed quantity at this quote's price; null when unavailable. */
|
|
943
|
+
priceLevelQuantity: number | null;
|
|
944
|
+
updatedAt: IsoDateString;
|
|
945
|
+
isStale: boolean;
|
|
651
946
|
}
|
|
652
|
-
interface
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
itemMax: number | null;
|
|
656
|
-
observedSource: PricingListingObservedFloatSource;
|
|
947
|
+
interface ArbitrageFreshness {
|
|
948
|
+
buyAgeMs: number;
|
|
949
|
+
sellAgeMs: number;
|
|
657
950
|
}
|
|
658
|
-
|
|
659
|
-
interface PricingListingsResponse {
|
|
660
|
-
marketHashName: string;
|
|
951
|
+
interface ArbitrageOpportunity {
|
|
661
952
|
canonicalItemId: string;
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
953
|
+
marketHashName: string;
|
|
954
|
+
slug: string;
|
|
955
|
+
imageUrl: string | null;
|
|
956
|
+
buy: ArbitrageQuote;
|
|
957
|
+
sell: ArbitrageQuote;
|
|
958
|
+
/** Gross spread relative to the buy price, in basis points, before seller fees. */
|
|
959
|
+
spreadBps: number;
|
|
960
|
+
/** Gross per-unit sell price minus buy price, before seller fees. */
|
|
961
|
+
spreadCents: Cents;
|
|
962
|
+
/** Spread after estimated seller commission, relative to the buy price, in basis points. */
|
|
963
|
+
netSpreadBps: number;
|
|
964
|
+
/** Estimated per-unit proceeds after seller commission minus the buy price; excludes withdrawal and transfer costs. */
|
|
965
|
+
estimatedNetCents: Cents;
|
|
966
|
+
/** Estimated seller commission applied to the sell quote, in basis points. */
|
|
967
|
+
sellerFeeBps: number;
|
|
968
|
+
/** Version identifier of the estimated fee model. */
|
|
969
|
+
feeModelVersion: string;
|
|
970
|
+
/** Whether the seller commission uses an assumed default rate. */
|
|
971
|
+
assumedFees?: boolean;
|
|
972
|
+
/** Matched capacity at the displayed buy and sell prices; null when either leg is unverified. */
|
|
973
|
+
maxTradableQuantity: number | null;
|
|
974
|
+
/** Buy-side notional for verified capacity in USD cents; null when unknown. */
|
|
975
|
+
estimatedNotionalCents: Cents | null;
|
|
976
|
+
feeNotes: string;
|
|
977
|
+
freshness: ArbitrageFreshness;
|
|
667
978
|
calculatedAt: IsoDateString;
|
|
668
979
|
}
|
|
669
|
-
|
|
670
|
-
interface
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
/** 1-based page number (default 1). */
|
|
675
|
-
page?: number;
|
|
676
|
-
/** Items per page (1–100, default 10). */
|
|
677
|
-
perPage?: number;
|
|
678
|
-
}
|
|
679
|
-
/** `GET /v1/items` — paginated (camelCase). */
|
|
680
|
-
interface ItemPriceListResponse {
|
|
681
|
-
data: CurrentPriceResponse[];
|
|
682
|
-
pagination: PaginationMeta;
|
|
683
|
-
}
|
|
684
|
-
interface AllItemsLatestPrice {
|
|
685
|
-
market: string;
|
|
686
|
-
effectiveUsdCents: Cents;
|
|
687
|
-
fetchedAt: IsoDateString;
|
|
688
|
-
originalCurrency: string;
|
|
689
|
-
}
|
|
690
|
-
interface AllItemsPriceAggregates {
|
|
691
|
-
minPrice: Cents | null;
|
|
692
|
-
maxPrice: Cents | null;
|
|
693
|
-
avgPrice: Cents | null;
|
|
694
|
-
medianPrice: Cents | null;
|
|
695
|
-
stdDev: number | null;
|
|
696
|
-
updatedAt: IsoDateString;
|
|
697
|
-
}
|
|
698
|
-
interface AllItemsItem {
|
|
699
|
-
id: string;
|
|
700
|
-
name: string;
|
|
701
|
-
latestPrices: AllItemsLatestPrice[];
|
|
702
|
-
priceAggregates: AllItemsPriceAggregates | null;
|
|
980
|
+
/** `GET /v1/arbitrage/opportunities` (camelCase). */
|
|
981
|
+
interface ArbitrageOpportunitiesResponse {
|
|
982
|
+
opportunities: ArbitrageOpportunity[];
|
|
983
|
+
totalCandidates: number;
|
|
984
|
+
calculatedAt: IsoDateString;
|
|
703
985
|
}
|
|
704
|
-
/** `GET /v1/items/all` — a plain array (camelCase). */
|
|
705
|
-
type AllItemsResponse = AllItemsItem[];
|
|
706
986
|
|
|
707
|
-
/**
|
|
708
|
-
declare class
|
|
709
|
-
/** GET /v1/
|
|
710
|
-
|
|
711
|
-
/** GET /v1/items/all — every tracked item with latest prices (capped, unpaginated). */
|
|
712
|
-
all(options?: RequestOptions): Promise<AllItemsResponse>;
|
|
713
|
-
/** Async iterator over every matching item, walking pages. */
|
|
714
|
-
searchEach(params?: ItemSearchParams, options?: RequestOptions): AsyncGenerator<CurrentPriceResponse>;
|
|
987
|
+
/** Cross-market arbitrage opportunities. */
|
|
988
|
+
declare class ArbitrageResource extends BaseResource {
|
|
989
|
+
/** `GET /v1/arbitrage/opportunities` — ranked cross-market opportunities. */
|
|
990
|
+
opportunities(params?: ArbitrageParams, options?: RequestOptions): Promise<ArbitrageOpportunitiesResponse>;
|
|
715
991
|
}
|
|
716
992
|
|
|
717
|
-
|
|
718
|
-
type
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
type LiquidityLabel = (typeof LIQUIDITY_LABELS)[number];
|
|
725
|
-
declare const SUPPORTED_LIQUIDITY_MARKETS: readonly ["skinport", "marketcsgo", "dmarket", "csdeals", "csfloat"];
|
|
726
|
-
type SupportedLiquidityMarket = (typeof SUPPORTED_LIQUIDITY_MARKETS)[number];
|
|
727
|
-
interface LiquidityParams {
|
|
728
|
-
/** Hypothetical ask (USD cents) to estimate against; defaults to the best ask. */
|
|
729
|
-
askPrice?: Cents;
|
|
730
|
-
market?: SupportedLiquidityMarket;
|
|
993
|
+
type AttributeType = "float" | "fade" | "tag";
|
|
994
|
+
type AttributeGranularity = "10m" | "1h" | "1d";
|
|
995
|
+
interface AttributeRangeDimension {
|
|
996
|
+
min: number;
|
|
997
|
+
max: number;
|
|
998
|
+
minInclusive: boolean;
|
|
999
|
+
maxInclusive: boolean;
|
|
731
1000
|
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
1001
|
+
interface AttributeBucketDimensions {
|
|
1002
|
+
variant: string | null;
|
|
1003
|
+
float: AttributeRangeDimension | null;
|
|
1004
|
+
fade: AttributeRangeDimension | null;
|
|
1005
|
+
pattern: number | null;
|
|
1006
|
+
finishCatalog: number | null;
|
|
1007
|
+
paintSeed: number | null;
|
|
1008
|
+
charmTemplate: number | null;
|
|
1009
|
+
stickerScrape: number | null;
|
|
1010
|
+
sourceTagId: number | null;
|
|
1011
|
+
sourceTagName: string | null;
|
|
1012
|
+
nameTag: string | null;
|
|
742
1013
|
}
|
|
743
|
-
|
|
744
|
-
|
|
1014
|
+
interface AttributePriceBucket {
|
|
1015
|
+
bucketId: string;
|
|
1016
|
+
bucketKey: string;
|
|
1017
|
+
sourceBucketId: string;
|
|
1018
|
+
bucketType: "attribute";
|
|
1019
|
+
attributeType: AttributeType;
|
|
1020
|
+
attributeTypes: AttributeType[];
|
|
1021
|
+
sourceItemId: string;
|
|
1022
|
+
dimensions: AttributeBucketDimensions;
|
|
1023
|
+
askCents: Cents | null;
|
|
1024
|
+
avgAskCents: Cents | null;
|
|
1025
|
+
medianAskCents: Cents | null;
|
|
1026
|
+
bidCents: Cents | null;
|
|
1027
|
+
askListingCount: number | null;
|
|
1028
|
+
bidOrderCount: number | null;
|
|
1029
|
+
sourceUpdatedAt: IsoDateString;
|
|
1030
|
+
collectedAt: IsoDateString;
|
|
1031
|
+
}
|
|
1032
|
+
interface AttributePriceItem {
|
|
745
1033
|
canonicalItemId: string;
|
|
746
1034
|
marketHashName: string;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
1035
|
+
market: string;
|
|
1036
|
+
buckets: AttributePriceBucket[];
|
|
1037
|
+
}
|
|
1038
|
+
interface AttributeHistoryPoint {
|
|
1039
|
+
bucketStart: IsoDateString;
|
|
1040
|
+
openAskCents: Cents | null;
|
|
1041
|
+
highAskCents: Cents | null;
|
|
1042
|
+
lowAskCents: Cents | null;
|
|
1043
|
+
closeAskCents: Cents | null;
|
|
1044
|
+
avgAskCents: Cents | null;
|
|
1045
|
+
closeBidCents: Cents | null;
|
|
1046
|
+
askListingCount: number | null;
|
|
1047
|
+
bidOrderCount: number | null;
|
|
1048
|
+
firstObservedAt: IsoDateString;
|
|
1049
|
+
lastObservedAt: IsoDateString;
|
|
1050
|
+
}
|
|
1051
|
+
interface AttributeHistoryBucket {
|
|
1052
|
+
bucketId: string;
|
|
1053
|
+
bucketKey: string;
|
|
1054
|
+
sourceBucketId: string;
|
|
1055
|
+
bucketType: "attribute";
|
|
1056
|
+
attributeType: AttributeType;
|
|
1057
|
+
attributeTypes: AttributeType[];
|
|
1058
|
+
sourceItemId: string;
|
|
1059
|
+
dimensions: AttributeBucketDimensions;
|
|
1060
|
+
points: AttributeHistoryPoint[];
|
|
767
1061
|
}
|
|
768
|
-
|
|
769
|
-
|
|
1062
|
+
interface AttributeHistoryItem {
|
|
1063
|
+
canonicalItemId: string;
|
|
770
1064
|
marketHashName: string;
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
/** Human time-to-sell, e.g. `"2 - 6 hours"` (`"No recent sales"` when untraded). */
|
|
774
|
-
estimatedSaleTime: string;
|
|
775
|
-
confidence: LiquidityConfidence;
|
|
776
|
-
/** 0-100, higher sells faster; null when untraded. */
|
|
777
|
-
score: number | null;
|
|
778
|
-
bestMarketToList: string | null;
|
|
779
|
-
calculatedAt: IsoDateString;
|
|
1065
|
+
market: string;
|
|
1066
|
+
buckets: AttributeHistoryBucket[];
|
|
780
1067
|
}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1068
|
+
interface AttributeLatestParams {
|
|
1069
|
+
canonicalItemId?: string;
|
|
1070
|
+
marketHashName?: string;
|
|
1071
|
+
attributes?: AttributeType[];
|
|
1072
|
+
/** Max attribute buckets to return (1–1000). */
|
|
1073
|
+
limit?: number;
|
|
1074
|
+
/** Opaque pagination cursor from a previous `nextCursor`. */
|
|
1075
|
+
cursor?: string;
|
|
1076
|
+
/** Supported markets to include. */
|
|
1077
|
+
markets?: KnownMarket[];
|
|
785
1078
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
1079
|
+
interface AttributeLatestResponse {
|
|
1080
|
+
bucketSchemaVersion: 1;
|
|
1081
|
+
markets: string[];
|
|
1082
|
+
currency: "USD";
|
|
1083
|
+
asOf: IsoDateString;
|
|
1084
|
+
items: AttributePriceItem[];
|
|
1085
|
+
nextCursor: string | null;
|
|
1086
|
+
sourceGaps: string[];
|
|
792
1087
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
|
|
1088
|
+
interface AttributeHistoryParams {
|
|
1089
|
+
canonicalItemId?: string;
|
|
1090
|
+
marketHashName?: string;
|
|
1091
|
+
bucketId?: string;
|
|
1092
|
+
bucketIds?: string[];
|
|
1093
|
+
attributes?: AttributeType[];
|
|
1094
|
+
from?: Date | string;
|
|
1095
|
+
to?: Date | string;
|
|
1096
|
+
granularity?: AttributeGranularity;
|
|
1097
|
+
/** Max history points across all buckets (1–10000). */
|
|
1098
|
+
limit?: number;
|
|
1099
|
+
markets?: KnownMarket[];
|
|
804
1100
|
}
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
/** Snapshot version / ETag. */
|
|
808
|
-
version: string;
|
|
809
|
-
calculatedAt: IsoDateString;
|
|
810
|
-
/** Recompute cadence as an ISO-8601 duration, e.g. `"PT10M"`. */
|
|
811
|
-
cadence: string;
|
|
1101
|
+
interface AttributeHistoryResponse {
|
|
1102
|
+
bucketSchemaVersion: 1;
|
|
812
1103
|
markets: string[];
|
|
813
|
-
|
|
1104
|
+
currency: "USD";
|
|
1105
|
+
granularity: AttributeGranularity;
|
|
1106
|
+
items: AttributeHistoryItem[];
|
|
1107
|
+
sourceGaps: string[];
|
|
814
1108
|
}
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
1109
|
+
interface Buff163LatestParams {
|
|
1110
|
+
canonicalItemId?: string;
|
|
1111
|
+
marketHashName?: string;
|
|
1112
|
+
attributes?: AttributeType[];
|
|
1113
|
+
limit?: number;
|
|
1114
|
+
cursor?: string;
|
|
1115
|
+
}
|
|
1116
|
+
interface Buff163AttributeLatestResponse {
|
|
1117
|
+
bucketSchemaVersion: 1;
|
|
1118
|
+
market: "buff163";
|
|
1119
|
+
currency: "USD";
|
|
1120
|
+
asOf: IsoDateString;
|
|
1121
|
+
items: AttributePriceItem[];
|
|
1122
|
+
nextCursor: string | null;
|
|
1123
|
+
sourceGaps: string[];
|
|
1124
|
+
}
|
|
1125
|
+
interface Buff163HistoryParams {
|
|
1126
|
+
canonicalItemId?: string;
|
|
1127
|
+
marketHashName?: string;
|
|
1128
|
+
bucketId?: string;
|
|
1129
|
+
bucketIds?: string[];
|
|
1130
|
+
attributes?: AttributeType[];
|
|
1131
|
+
from?: Date | string;
|
|
1132
|
+
to?: Date | string;
|
|
1133
|
+
granularity?: AttributeGranularity;
|
|
1134
|
+
limit?: number;
|
|
1135
|
+
}
|
|
1136
|
+
interface Buff163AttributeHistoryResponse {
|
|
1137
|
+
bucketSchemaVersion: 1;
|
|
1138
|
+
market: "buff163";
|
|
1139
|
+
currency: "USD";
|
|
1140
|
+
granularity: AttributeGranularity;
|
|
1141
|
+
items: AttributeHistoryItem[];
|
|
1142
|
+
sourceGaps: string[];
|
|
818
1143
|
}
|
|
819
1144
|
|
|
820
|
-
/**
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
*/
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
/**
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* `GET /v1/liquidity/items/manifest` — Enterprise: a cheap change-probe for
|
|
840
|
-
* the {@link bulk} map (`version`, `calculatedAt`, `cadence`, `markets`,
|
|
841
|
-
* `itemCount`). Refetch the bulk map only when `version` changes.
|
|
842
|
-
*/
|
|
843
|
-
manifest(options?: RequestOptions): Promise<LiquidityBulkManifest>;
|
|
1145
|
+
/** Cross-market attribute (float/fade/tag) bucket prices. */
|
|
1146
|
+
declare class AttributePricesResource extends BaseResource {
|
|
1147
|
+
/** GET /v1/attribute-prices/latest — latest attribute buckets across markets. */
|
|
1148
|
+
latest(params?: AttributeLatestParams, options?: RequestOptions): Promise<AttributeLatestResponse>;
|
|
1149
|
+
/** GET /v1/attribute-prices/history — OHLC attribute bucket history. */
|
|
1150
|
+
history(params?: AttributeHistoryParams, options?: RequestOptions): Promise<AttributeHistoryResponse>;
|
|
1151
|
+
/** Async iterator over every latest attribute item, following `nextCursor`. */
|
|
1152
|
+
latestEach(params?: AttributeLatestParams, options?: RequestOptions): AsyncGenerator<AttributePriceItem>;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
/** Buff163-specific attribute bucket prices. */
|
|
1156
|
+
declare class Buff163Resource extends BaseResource {
|
|
1157
|
+
/** GET /v1/markets/buff163/latest — latest Buff163 attribute buckets. */
|
|
1158
|
+
latest(params?: Buff163LatestParams, options?: RequestOptions): Promise<Buff163AttributeLatestResponse>;
|
|
1159
|
+
/** GET /v1/markets/buff163/history — OHLC Buff163 attribute bucket history. */
|
|
1160
|
+
history(params?: Buff163HistoryParams, options?: RequestOptions): Promise<Buff163AttributeHistoryResponse>;
|
|
1161
|
+
/** Async iterator over every latest Buff163 attribute item, following `nextCursor`. */
|
|
1162
|
+
latestEach(params?: Buff163LatestParams, options?: RequestOptions): AsyncGenerator<AttributePriceItem>;
|
|
844
1163
|
}
|
|
845
1164
|
|
|
846
1165
|
interface MarketAnalyticsParams {
|
|
@@ -883,115 +1202,74 @@ declare class MarketAnalyticsResource extends BaseResource {
|
|
|
883
1202
|
get(marketHashName: string, params?: MarketAnalyticsParams, options?: RequestOptions): Promise<MarketAnalyticsResponse>;
|
|
884
1203
|
}
|
|
885
1204
|
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
|
|
890
|
-
* listing counts for every integrated market. Returns a plain array of
|
|
891
|
-
* {@link import("../types/markets").MarketHealthRow}.
|
|
892
|
-
*/
|
|
893
|
-
health(options?: RequestOptions): Promise<MarketHealthResponse>;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
interface NbboParams {
|
|
897
|
-
/** Canonical item id. Provide this or `marketHashName`. */
|
|
898
|
-
id?: string;
|
|
899
|
-
/** Market hash name. Sent as the `market_hash_name` query param. */
|
|
900
|
-
marketHashName?: string;
|
|
901
|
-
markets?: KnownMarket[];
|
|
1205
|
+
interface LatestPricesParams {
|
|
1206
|
+
game: Game;
|
|
1207
|
+
/** ETag from the preceding snapshot. HTTP 304 returns null. */
|
|
1208
|
+
ifNoneMatch?: string;
|
|
902
1209
|
}
|
|
903
|
-
/**
|
|
904
|
-
interface
|
|
1210
|
+
/** Fields shared by every quote in the all-item snapshot. */
|
|
1211
|
+
interface LatestPricePoint {
|
|
905
1212
|
market: string;
|
|
906
1213
|
price: Cents;
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
executability: number;
|
|
911
|
-
updatedAt: IsoDateString;
|
|
1214
|
+
/** When the price was last read or confirmed still current. Not the age of the data. */
|
|
1215
|
+
fetchedAt: IsoDateString;
|
|
1216
|
+
/** Whether the quote was older than 30 minutes when the snapshot was built. */
|
|
912
1217
|
isStale: boolean;
|
|
913
|
-
|
|
1218
|
+
/** Source price in minor units of `originalCurrency`, before conversion and fees. */
|
|
1219
|
+
originalPriceCents?: number;
|
|
1220
|
+
originalCurrency?: string;
|
|
1221
|
+
/** When the source produced this data. Absent when unknown. */
|
|
1222
|
+
sourceUpdatedAt?: IsoDateString;
|
|
914
1223
|
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
spreadBps: number | null;
|
|
920
|
-
locked: boolean;
|
|
921
|
-
crossed: boolean;
|
|
922
|
-
executableConfidence: number;
|
|
923
|
-
reasons: string[];
|
|
924
|
-
feeModelVersion: string;
|
|
925
|
-
calculatedAt: IsoDateString;
|
|
1224
|
+
interface LatestPriceAskPoint extends LatestPricePoint {
|
|
1225
|
+
quoteSize: number;
|
|
1226
|
+
/** True for a placeholder ask far above the corroborated cheaper asks. It is still a real listing. */
|
|
1227
|
+
outlier?: boolean;
|
|
926
1228
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
1229
|
+
interface LatestPriceBidPoint extends LatestPricePoint {
|
|
1230
|
+
/** Null when unknown, which is not zero. */
|
|
1231
|
+
quoteSize: number | null;
|
|
1232
|
+
/** Quantity across bid price levels. Null when unknown. */
|
|
1233
|
+
totalQuantity: number | null;
|
|
1234
|
+
totalOrdersCount?: number;
|
|
1235
|
+
/** False when the source's book was read only in part, so quantities are lower bounds. */
|
|
1236
|
+
orderBookComplete?: boolean;
|
|
1237
|
+
sourceTimeKind?: SourceTimeKind;
|
|
1238
|
+
/** Age of the source's data when it was read, in seconds. */
|
|
1239
|
+
sourceAgeSeconds?: number;
|
|
1240
|
+
/** Whether the source's data was older than 30 minutes when the snapshot was built. */
|
|
1241
|
+
isSourceStale?: boolean;
|
|
1242
|
+
}
|
|
1243
|
+
interface LatestPriceItem {
|
|
1244
|
+
/** Market hash name. */
|
|
1245
|
+
name: string;
|
|
930
1246
|
canonicalItemId: string;
|
|
931
1247
|
bestAsk: NbboBestPrice | null;
|
|
1248
|
+
/** Best bid among markets that pay out in cash. */
|
|
932
1249
|
bestBid: NbboBestPrice | null;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
depth?: number;
|
|
946
|
-
}
|
|
947
|
-
interface NbboDepthQuote {
|
|
948
|
-
market: string;
|
|
949
|
-
level: number;
|
|
950
|
-
price: Cents;
|
|
951
|
-
quantity: number;
|
|
952
|
-
ordersCount: number;
|
|
953
|
-
updatedAt: IsoDateString;
|
|
954
|
-
isStale: boolean;
|
|
955
|
-
}
|
|
956
|
-
interface NbboDepthLevel {
|
|
957
|
-
rank: number;
|
|
958
|
-
price: Cents;
|
|
959
|
-
quantity: number;
|
|
960
|
-
ordersCount: number;
|
|
961
|
-
marketCount: number;
|
|
962
|
-
cumulativeQuantity: number;
|
|
963
|
-
updatedAt: IsoDateString;
|
|
964
|
-
isStale: boolean;
|
|
965
|
-
quotes: NbboDepthQuote[];
|
|
966
|
-
}
|
|
967
|
-
/** `GET /v1/nbbo/depth` (camelCase). */
|
|
968
|
-
interface NbboDepthResponse {
|
|
969
|
-
marketHashName: string;
|
|
970
|
-
canonicalItemId: string;
|
|
971
|
-
depth: number;
|
|
972
|
-
marketCount: number;
|
|
973
|
-
asks: NbboDepthLevel[];
|
|
974
|
-
bids: NbboDepthLevel[];
|
|
975
|
-
spreadBps: number | null;
|
|
976
|
-
locked: boolean;
|
|
977
|
-
crossed: boolean;
|
|
978
|
-
calculatedAt: IsoDateString;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
/** National Best Bid and Offer (top of book) and aggregated depth. */
|
|
982
|
-
declare class NbboResource extends BaseResource {
|
|
983
|
-
/** `GET /v1/nbbo` — best bid/ask across markets. Pass `id` or `marketHashName`. */
|
|
984
|
-
get(params: NbboParams, options?: RequestOptions): Promise<NbboResponse>;
|
|
985
|
-
/** `GET /v1/nbbo/depth` — aggregated order-book depth per side. */
|
|
986
|
-
depth(params: NbboDepthParams, options?: RequestOptions): Promise<NbboDepthResponse>;
|
|
1250
|
+
markets: LatestPriceAskPoint[];
|
|
1251
|
+
buyOrders: LatestPriceBidPoint[];
|
|
1252
|
+
}
|
|
1253
|
+
/** `GET /v2/prices/latest`: every item of one game that has a servable quote. */
|
|
1254
|
+
interface LatestPricesResponse {
|
|
1255
|
+
/** When the oldest read in the snapshot started. A quote's `fetchedAt` can be later. */
|
|
1256
|
+
generatedAt: IsoDateString;
|
|
1257
|
+
game: Game;
|
|
1258
|
+
currency: "USD";
|
|
1259
|
+
/** Ordered by `canonicalItemId`. */
|
|
1260
|
+
items: LatestPriceItem[];
|
|
1261
|
+
itemCount: number;
|
|
987
1262
|
}
|
|
988
1263
|
|
|
989
|
-
/**
|
|
990
|
-
declare class
|
|
991
|
-
/** `GET /
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1264
|
+
/** All-item price snapshots. */
|
|
1265
|
+
declare class PricesResource extends BaseResource {
|
|
1266
|
+
/** `GET /v2/prices/latest`. Enterprise: every item of one game with each market's ask and bid. */
|
|
1267
|
+
latestAll(params: {
|
|
1268
|
+
game: Game;
|
|
1269
|
+
ifNoneMatch?: undefined;
|
|
1270
|
+
}, options?: RequestOptions): Promise<LatestPricesResponse>;
|
|
1271
|
+
/** A matching conditional ETag returns null. */
|
|
1272
|
+
latestAll(params: LatestPricesParams, options?: RequestOptions): Promise<LatestPricesResponse | null>;
|
|
995
1273
|
}
|
|
996
1274
|
|
|
997
1275
|
interface RecommendationParams {
|
|
@@ -1074,6 +1352,10 @@ declare class SkinpricerClient {
|
|
|
1074
1352
|
readonly buff163: Buff163Resource;
|
|
1075
1353
|
readonly liquidity: LiquidityResource;
|
|
1076
1354
|
readonly markets: MarketsResource;
|
|
1355
|
+
readonly schema: SchemaResource;
|
|
1356
|
+
readonly prices: PricesResource;
|
|
1357
|
+
/** Access the v2 endpoints supported by the selected game. */
|
|
1358
|
+
forGame<G extends Game>(game: G): GameClient<G>;
|
|
1077
1359
|
private readonly httpClient;
|
|
1078
1360
|
constructor(config: ClientConfig);
|
|
1079
1361
|
}
|
|
@@ -1158,6 +1440,6 @@ declare function chunk<T>(items: readonly T[], size: number): T[][];
|
|
|
1158
1440
|
/** Runs `fn` over `items` with at most `limit` concurrent executions, keeping order. */
|
|
1159
1441
|
declare function mapWithConcurrency<T, R>(items: readonly T[], limit: number, fn: (item: T, index: number) => Promise<R>): Promise<R[]>;
|
|
1160
1442
|
|
|
1161
|
-
declare const VERSION = "0.
|
|
1443
|
+
declare const VERSION = "0.4.0";
|
|
1162
1444
|
|
|
1163
|
-
export { APIError, ATTRIBUTE_MARKETS, type AggregatePriceData, type AggregationsBatchParams, type AggregationsParams, AggregationsResource, type AllItemsItem, type AllItemsLatestPrice, type AllItemsPriceAggregates, type AllItemsResponse, type ArbitrageFreshness, type ArbitrageOpportunitiesResponse, type ArbitrageOpportunity, type ArbitrageParams, type ArbitrageQuote, ArbitrageResource, type ArbitrageSort, type AttributeBucketDimensions, type AttributeGranularity, type AttributeHistoryBucket, type AttributeHistoryItem, type AttributeHistoryParams, type AttributeHistoryPoint, type AttributeHistoryResponse, type AttributeLatestParams, type AttributeLatestResponse, type AttributeMarket, type AttributePriceBucket, type AttributePriceItem, AttributePricesResource, type AttributeRangeDimension, type AttributeType, type AuthScheme, AuthenticationError, BaseResource, type BestPrice, type Buff163AttributeHistoryResponse, type Buff163AttributeLatestResponse, type Buff163HistoryParams, type Buff163LatestParams, Buff163Resource, type Cents, type ClientConfig, type ClientHooks, ConfigurationError, type CurrentPriceParams, type CurrentPriceResponse, DEFAULT_BASE_URL, DEFAULT_PUBLIC_BASE_URL, DEFAULT_RETRY, DEFAULT_TIMEOUT_MS, type ErrorResponseInput, type ExecutionAdjustedBestPrice, type ExecutionAdjustedNbbo, FeatureNotAvailableError, type FormatUsdOptions, type FreshnessResponse, type HistoryListingType, type HistoryListingTypeInput, HistoryResource, type IsoDateString, type ItemMaxOrders, type ItemMinPrices, type ItemPriceListResponse, type ItemSearchParams, ItemsResource, KNOWN_MARKETS, type KnownMarket, LIQUIDITY_BADGES, LIQUIDITY_CONFIDENCE, LIQUIDITY_LABELS, type LiquidityBadge, type LiquidityBatchBody, type LiquidityBatchResponse, type LiquidityBulkItem, type LiquidityBulkManifest, type LiquidityBulkResponse, type LiquidityConfidence, type LiquidityCoverage, type LiquidityLabel, type LiquidityMarketMetric, type LiquidityParams, LiquidityResource, type LiquidityResponse, type LiquiditySummaryResponse, type MarketAnalyticsParams, type MarketAnalyticsPoint, MarketAnalyticsResource, type MarketAnalyticsResponse, type MarketFreshness, type MarketHealthResponse, type MarketHealthRow, type MarketHealthStatus, type MarketLatency, type MarketLatencyResponse, type MarketMaxOrder, type MarketMinPrice, type MarketPricePoint, type MarketRegistryStatus, type MarketSeries, MarketsResource, type MaxOrdersResponse, type MinPricesResponse, type NbboBestPrice, type NbboDepthLevel, type NbboDepthParams, type NbboDepthQuote, type NbboDepthResponse, type NbboParams, NbboResource, type NbboResponse, NetworkError, NotFoundError, type PaginationMeta, ParseError, PermissionError, type PriceHistoryByMarketResponse, type PriceHistoryInterval, type PriceHistoryParams, type PriceHistoryPoint, type PriceHistoryResponse, type PricingListing, type PricingListingFloatCoverage, type PricingListingFloatSummary, type PricingListingObservedFloatSource, type PricingListingsParams, type PricingListingsResponse, PricingResource, RESPONSE_META, RateLimitError, type RateLimitErrorOptions, type RateLimitInfo, type RateLimitWindow, type RecommendationParams, type RecommendationResponse, RecommendationsResource, type RequestHookContext, type RequestOptions, type ResolvedConfig, type ResponseHookContext, type ResponseMeta, type RetryConfig, type RetryHookContext, SUPPORTED_LIQUIDITY_MARKETS, type SalesHistoryWindow, ServerError, SkinpricerClient, SkinpricerError, type SkinpricerErrorOptions, StatusResource, type SupportedLiquidityMarket, TimeoutError, VERSION, ValidationError, type ValidationErrorOptions, type WithMeta, centsToUsd, chunk, errorFromResponse, formatUsd, getMeta, mapWithConcurrency, parseIsoDate, resolveConfig };
|
|
1445
|
+
export { APIError, ATTRIBUTE_MARKETS, type AggregatePriceData, type AggregationsBatchParams, type AggregationsParams, AggregationsResource, type AllItemsItem, type AllItemsLatestPrice, type AllItemsPriceAggregates, type AllItemsResponse, type ArbitrageFreshness, type ArbitrageOpportunitiesResponse, type ArbitrageOpportunity, type ArbitrageParams, type ArbitrageQuote, ArbitrageResource, type ArbitrageSort, type AttributeBucketDimensions, type AttributeGranularity, type AttributeHistoryBucket, type AttributeHistoryItem, type AttributeHistoryParams, type AttributeHistoryPoint, type AttributeHistoryResponse, type AttributeLatestParams, type AttributeLatestResponse, type AttributeMarket, type AttributePriceBucket, type AttributePriceItem, AttributePricesResource, type AttributeRangeDimension, type AttributeType, type AuthScheme, AuthenticationError, BaseResource, type BestPrice, type Buff163AttributeHistoryResponse, type Buff163AttributeLatestResponse, type Buff163HistoryParams, type Buff163LatestParams, Buff163Resource, type Cents, type ClientConfig, type ClientHooks, ConfigurationError, type CurrentPriceParams, type CurrentPriceResponse, DEFAULT_BASE_URL, DEFAULT_PUBLIC_BASE_URL, DEFAULT_RETRY, DEFAULT_TIMEOUT_MS, type ErrorResponseInput, type ExecutionAdjustedBestPrice, type ExecutionAdjustedNbbo, FeatureNotAvailableError, type FormatUsdOptions, type FreshnessResponse, type Game, GameClient, type HistoryListingType, type HistoryListingTypeInput, HistoryResource, type IsoDateString, type ItemMaxOrders, type ItemMinPrices, type ItemPriceListResponse, type ItemSearchParams, ItemsResource, KNOWN_MARKETS, type KnownMarket, LIQUIDITY_BADGES, LIQUIDITY_CONFIDENCE, LIQUIDITY_LABELS, type LatestPriceAskPoint, type LatestPriceBidPoint, type LatestPriceItem, type LatestPricePoint, type LatestPricesParams, type LatestPricesResponse, type LiquidityBadge, type LiquidityBatchBody, type LiquidityBatchResponse, type LiquidityBulkItem, type LiquidityBulkManifest, type LiquidityBulkParams, type LiquidityBulkResponse, type LiquidityConfidence, type LiquidityCoverage, type LiquidityLabel, type LiquidityMarketForGame, type LiquidityMarketMetric, type LiquidityParams, LiquidityResource, type LiquidityResponse, type LiquiditySummaryResponse, type MarketAnalyticsParams, type MarketAnalyticsPoint, MarketAnalyticsResource, type MarketAnalyticsResponse, type MarketFreshness, type MarketHealthResponse, type MarketHealthRow, type MarketHealthStatus, type MarketLatency, type MarketLatencyResponse, type MarketMaxOrder, type MarketMinPrice, type MarketPricePoint, type MarketRegistryStatus, type MarketSeries, MarketsResource, type MaxOrdersResponse, type MinPricesResponse, type NbboBestPrice, type NbboDepthLevel, type NbboDepthParams, type NbboDepthQuote, type NbboDepthResponse, type NbboParams, NbboResource, type NbboResponse, NetworkError, NotFoundError, type PaginationMeta, ParseError, PermissionError, type PriceHistoryByMarketResponse, type PriceHistoryInterval, type PriceHistoryParams, type PriceHistoryPoint, type PriceHistoryResponse, PricesResource, type PricingListing, type PricingListingFloatCoverage, type PricingListingFloatSummary, type PricingListingObservedFloatSource, type PricingListingsParams, type PricingListingsResponse, PricingResource, RESPONSE_META, RateLimitError, type RateLimitErrorOptions, type RateLimitInfo, type RateLimitWindow, type RecommendationParams, type RecommendationResponse, RecommendationsResource, type RequestHookContext, type RequestOptions, type ResolvedConfig, type ResponseHookContext, type ResponseMeta, type RetryConfig, type RetryHookContext, SUPPORTED_LIQUIDITY_MARKETS, SUPPORTED_RUST_LIQUIDITY_MARKETS, type SalesHistoryWindow, type SchemaChangesParams, type SchemaChangesResponse, type SchemaCollection, type SchemaContainer, type SchemaItem, type SchemaItemResponse, type SchemaRarity, type SchemaRegistries, SchemaResource, type SchemaSnapshotParams, type SchemaSnapshotResponse, type SchemaVariant, ServerError, SkinpricerClient, SkinpricerError, type SkinpricerErrorOptions, type SourceTimeKind, StatusResource, type SupportedLiquidityMarket, type SupportedRustLiquidityMarket, TimeoutError, VERSION, ValidationError, type ValidationErrorOptions, type WithMeta, centsToUsd, chunk, errorFromResponse, formatUsd, getMeta, mapWithConcurrency, parseIsoDate, resolveConfig };
|