@siebly/kraken-api 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DerivativesClient.d.ts +4 -0
- package/dist/cjs/DerivativesClient.js +4 -0
- package/dist/cjs/DerivativesClient.js.map +1 -1
- package/dist/cjs/PartnerClient.d.ts +43 -2
- package/dist/cjs/PartnerClient.js +65 -0
- package/dist/cjs/PartnerClient.js.map +1 -1
- package/dist/cjs/SpotClient.d.ts +1 -0
- package/dist/cjs/SpotClient.js +1 -0
- package/dist/cjs/SpotClient.js.map +1 -1
- package/dist/cjs/lib/BaseWSClient.js +3 -25
- package/dist/cjs/lib/BaseWSClient.js.map +1 -1
- package/dist/cjs/lib/websocket/WsStore.js +4 -1
- package/dist/cjs/lib/websocket/WsStore.js.map +1 -1
- package/dist/cjs/lib/websocket/websocket-util.d.ts +6 -0
- package/dist/cjs/lib/websocket/websocket-util.js +23 -0
- package/dist/cjs/lib/websocket/websocket-util.js.map +1 -1
- package/dist/cjs/types/request/partner.types.d.ts +87 -0
- package/dist/cjs/types/request/spot.types.d.ts +4 -2
- package/dist/cjs/types/response/derivatives.types.d.ts +19 -16
- package/dist/cjs/types/response/partner.types.d.ts +123 -0
- package/dist/cjs/types/response/spot.types.d.ts +1 -0
- package/dist/mjs/DerivativesClient.d.ts +4 -0
- package/dist/mjs/DerivativesClient.js +4 -0
- package/dist/mjs/DerivativesClient.js.map +1 -1
- package/dist/mjs/PartnerClient.d.ts +43 -2
- package/dist/mjs/PartnerClient.js +65 -0
- package/dist/mjs/PartnerClient.js.map +1 -1
- package/dist/mjs/SpotClient.d.ts +1 -0
- package/dist/mjs/SpotClient.js +1 -0
- package/dist/mjs/SpotClient.js.map +1 -1
- package/dist/mjs/lib/BaseWSClient.js +2 -24
- package/dist/mjs/lib/BaseWSClient.js.map +1 -1
- package/dist/mjs/lib/websocket/WsStore.js +4 -1
- package/dist/mjs/lib/websocket/WsStore.js.map +1 -1
- package/dist/mjs/lib/websocket/websocket-util.d.ts +6 -0
- package/dist/mjs/lib/websocket/websocket-util.js +22 -0
- package/dist/mjs/lib/websocket/websocket-util.js.map +1 -1
- package/dist/mjs/types/request/partner.types.d.ts +87 -0
- package/dist/mjs/types/request/spot.types.d.ts +4 -2
- package/dist/mjs/types/response/derivatives.types.d.ts +19 -16
- package/dist/mjs/types/response/partner.types.d.ts +123 -0
- package/dist/mjs/types/response/spot.types.d.ts +1 -0
- package/llms.txt +10020 -8666
- package/package.json +2 -4
|
@@ -330,3 +330,126 @@ export interface PartnerGetRampCheckoutUrlResponse {
|
|
|
330
330
|
request_data: any;
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
+
/** Shared price trigger for custom orders (Embed) */
|
|
334
|
+
export interface PartnerCustomOrderPriceTrigger {
|
|
335
|
+
type: 'price';
|
|
336
|
+
base_asset: string;
|
|
337
|
+
quote_asset: string;
|
|
338
|
+
target_price: string;
|
|
339
|
+
condition: 'gte' | 'lte';
|
|
340
|
+
}
|
|
341
|
+
/** Shared action object for custom orders (Embed) */
|
|
342
|
+
export interface PartnerCustomOrderAction {
|
|
343
|
+
type: 'receive' | 'spend';
|
|
344
|
+
amount: {
|
|
345
|
+
asset_class?: 'currency';
|
|
346
|
+
asset: string;
|
|
347
|
+
amount: string;
|
|
348
|
+
};
|
|
349
|
+
quote: {
|
|
350
|
+
asset: string;
|
|
351
|
+
fee_bps: string;
|
|
352
|
+
spread_bps: string;
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
/** Single custom order in responses */
|
|
356
|
+
export interface PartnerCustomOrder {
|
|
357
|
+
id: string;
|
|
358
|
+
name: string;
|
|
359
|
+
action: PartnerCustomOrderAction;
|
|
360
|
+
trigger: PartnerCustomOrderPriceTrigger;
|
|
361
|
+
created_at: string;
|
|
362
|
+
updated_at: string;
|
|
363
|
+
status: {
|
|
364
|
+
status: 'active';
|
|
365
|
+
} | {
|
|
366
|
+
status: 'completed';
|
|
367
|
+
} | {
|
|
368
|
+
status: 'cancelled';
|
|
369
|
+
} | {
|
|
370
|
+
status: 'paused';
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Create Custom Order response
|
|
375
|
+
*/
|
|
376
|
+
export interface PartnerCreateCustomOrderResponse {
|
|
377
|
+
result?: {
|
|
378
|
+
order: PartnerCustomOrder;
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* List Custom Orders response
|
|
383
|
+
*/
|
|
384
|
+
export interface PartnerListCustomOrdersResponse {
|
|
385
|
+
result?: {
|
|
386
|
+
orders: PartnerCustomOrder[];
|
|
387
|
+
next_cursor?: string;
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Get Custom Order response
|
|
392
|
+
*/
|
|
393
|
+
export interface PartnerGetCustomOrderResponse {
|
|
394
|
+
result?: {
|
|
395
|
+
order: PartnerCustomOrder;
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Cancel Custom Order response
|
|
400
|
+
*/
|
|
401
|
+
export interface PartnerCancelCustomOrderResponse {
|
|
402
|
+
result?: {
|
|
403
|
+
order: PartnerCustomOrder;
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
/** Asset amount object used in quote limits/limits response */
|
|
407
|
+
export interface PartnerQuoteLimitAmount {
|
|
408
|
+
asset: string;
|
|
409
|
+
amount: string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Get Quote Limits response (RFQ)
|
|
413
|
+
*/
|
|
414
|
+
export interface PartnerGetQuoteLimitsResponse {
|
|
415
|
+
result?: {
|
|
416
|
+
asset: string;
|
|
417
|
+
minimum: string;
|
|
418
|
+
maximum: string;
|
|
419
|
+
precision: number;
|
|
420
|
+
minimum_tradable_amount?: string | null;
|
|
421
|
+
minimum_in_display?: PartnerQuoteLimitAmount | null;
|
|
422
|
+
maximum_in_display?: PartnerQuoteLimitAmount | null;
|
|
423
|
+
minimum_tradable_amount_in_display?: PartnerQuoteLimitAmount | null;
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
/** Spend/receive breakdown in prospective quote */
|
|
427
|
+
export interface PartnerProspectiveQuoteBreakdown {
|
|
428
|
+
asset: string;
|
|
429
|
+
asset_class?: 'currency' | null;
|
|
430
|
+
total: string;
|
|
431
|
+
fee: string;
|
|
432
|
+
subtotal: string;
|
|
433
|
+
}
|
|
434
|
+
/** Unit price in prospective quote */
|
|
435
|
+
export interface PartnerProspectiveQuoteUnitPrice {
|
|
436
|
+
asset: string;
|
|
437
|
+
asset_class?: 'currency' | null;
|
|
438
|
+
unit_price: string;
|
|
439
|
+
denomination_asset: string;
|
|
440
|
+
denomination_asset_class?: 'currency' | null;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Request Prospective Quote response (RFQ)
|
|
444
|
+
*/
|
|
445
|
+
export interface PartnerRequestProspectiveQuoteResponse {
|
|
446
|
+
result?: {
|
|
447
|
+
type: 'receive' | 'spend';
|
|
448
|
+
spend: PartnerProspectiveQuoteBreakdown;
|
|
449
|
+
receive: PartnerProspectiveQuoteBreakdown;
|
|
450
|
+
unit_price: PartnerProspectiveQuoteUnitPrice;
|
|
451
|
+
quoted_spend?: PartnerProspectiveQuoteBreakdown | null;
|
|
452
|
+
quoted_receive?: PartnerProspectiveQuoteBreakdown | null;
|
|
453
|
+
quoted_unit_price?: PartnerProspectiveQuoteUnitPrice | null;
|
|
454
|
+
};
|
|
455
|
+
}
|