@siebly/kraken-api 0.0.9
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/LICENSE.md +7 -0
- package/README.md +624 -0
- package/dist/cjs/DerivativesClient.d.ts +657 -0
- package/dist/cjs/DerivativesClient.js +726 -0
- package/dist/cjs/DerivativesClient.js.map +1 -0
- package/dist/cjs/InstitutionalClient.d.ts +183 -0
- package/dist/cjs/InstitutionalClient.js +266 -0
- package/dist/cjs/InstitutionalClient.js.map +1 -0
- package/dist/cjs/PartnerClient.d.ts +257 -0
- package/dist/cjs/PartnerClient.js +344 -0
- package/dist/cjs/PartnerClient.js.map +1 -0
- package/dist/cjs/SpotClient.d.ts +547 -0
- package/dist/cjs/SpotClient.js +607 -0
- package/dist/cjs/SpotClient.js.map +1 -0
- package/dist/cjs/WebsocketAPIClient.d.ts +95 -0
- package/dist/cjs/WebsocketAPIClient.js +136 -0
- package/dist/cjs/WebsocketAPIClient.js.map +1 -0
- package/dist/cjs/WebsocketClient.d.ts +120 -0
- package/dist/cjs/WebsocketClient.js +669 -0
- package/dist/cjs/WebsocketClient.js.map +1 -0
- package/dist/cjs/index.d.ts +24 -0
- package/dist/cjs/index.js +41 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/lib/BaseRestClient.d.ts +66 -0
- package/dist/cjs/lib/BaseRestClient.js +548 -0
- package/dist/cjs/lib/BaseRestClient.js.map +1 -0
- package/dist/cjs/lib/BaseWSClient.d.ts +230 -0
- package/dist/cjs/lib/BaseWSClient.js +935 -0
- package/dist/cjs/lib/BaseWSClient.js.map +1 -0
- package/dist/cjs/lib/misc-util.d.ts +1 -0
- package/dist/cjs/lib/misc-util.js +7 -0
- package/dist/cjs/lib/misc-util.js.map +1 -0
- package/dist/cjs/lib/requestUtils.d.ts +68 -0
- package/dist/cjs/lib/requestUtils.js +82 -0
- package/dist/cjs/lib/requestUtils.js.map +1 -0
- package/dist/cjs/lib/webCryptoAPI.d.ts +15 -0
- package/dist/cjs/lib/webCryptoAPI.js +85 -0
- package/dist/cjs/lib/webCryptoAPI.js.map +1 -0
- package/dist/cjs/lib/websocket/WsStore.d.ts +75 -0
- package/dist/cjs/lib/websocket/WsStore.js +303 -0
- package/dist/cjs/lib/websocket/WsStore.js.map +1 -0
- package/dist/cjs/lib/websocket/WsStore.types.d.ts +51 -0
- package/dist/cjs/lib/websocket/WsStore.types.js +14 -0
- package/dist/cjs/lib/websocket/WsStore.types.js.map +1 -0
- package/dist/cjs/lib/websocket/logger.d.ts +7 -0
- package/dist/cjs/lib/websocket/logger.js +16 -0
- package/dist/cjs/lib/websocket/logger.js.map +1 -0
- package/dist/cjs/lib/websocket/rest-client-cache.d.ts +22 -0
- package/dist/cjs/lib/websocket/rest-client-cache.js +66 -0
- package/dist/cjs/lib/websocket/rest-client-cache.js.map +1 -0
- package/dist/cjs/lib/websocket/websocket-util.d.ts +76 -0
- package/dist/cjs/lib/websocket/websocket-util.js +59 -0
- package/dist/cjs/lib/websocket/websocket-util.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/types/request/derivatives.types.d.ts +186 -0
- package/dist/cjs/types/request/derivatives.types.js +6 -0
- package/dist/cjs/types/request/derivatives.types.js.map +1 -0
- package/dist/cjs/types/request/institutional.types.d.ts +313 -0
- package/dist/cjs/types/request/institutional.types.js +4 -0
- package/dist/cjs/types/request/institutional.types.js.map +1 -0
- package/dist/cjs/types/request/partner.types.d.ts +291 -0
- package/dist/cjs/types/request/partner.types.js +4 -0
- package/dist/cjs/types/request/partner.types.js.map +1 -0
- package/dist/cjs/types/request/spot.types.d.ts +324 -0
- package/dist/cjs/types/request/spot.types.js +6 -0
- package/dist/cjs/types/request/spot.types.js.map +1 -0
- package/dist/cjs/types/request/wsapi.types.d.ts +90 -0
- package/dist/cjs/types/request/wsapi.types.js +6 -0
- package/dist/cjs/types/request/wsapi.types.js.map +1 -0
- package/dist/cjs/types/response/derivatives.types.d.ts +712 -0
- package/dist/cjs/types/response/derivatives.types.js +6 -0
- package/dist/cjs/types/response/derivatives.types.js.map +1 -0
- package/dist/cjs/types/response/institutional.types.d.ts +318 -0
- package/dist/cjs/types/response/institutional.types.js +4 -0
- package/dist/cjs/types/response/institutional.types.js.map +1 -0
- package/dist/cjs/types/response/partner.types.d.ts +332 -0
- package/dist/cjs/types/response/partner.types.js +4 -0
- package/dist/cjs/types/response/partner.types.js.map +1 -0
- package/dist/cjs/types/response/shared.types.d.ts +27 -0
- package/dist/cjs/types/response/shared.types.js +3 -0
- package/dist/cjs/types/response/shared.types.js.map +1 -0
- package/dist/cjs/types/response/spot.types.d.ts +590 -0
- package/dist/cjs/types/response/spot.types.js +6 -0
- package/dist/cjs/types/response/spot.types.js.map +1 -0
- package/dist/cjs/types/response/ws.d.ts +11 -0
- package/dist/cjs/types/response/ws.js +3 -0
- package/dist/cjs/types/response/ws.js.map +1 -0
- package/dist/cjs/types/response/wsapi.types.d.ts +44 -0
- package/dist/cjs/types/response/wsapi.types.js +6 -0
- package/dist/cjs/types/response/wsapi.types.js.map +1 -0
- package/dist/cjs/types/websockets/ws-api.d.ts +71 -0
- package/dist/cjs/types/websockets/ws-api.js +18 -0
- package/dist/cjs/types/websockets/ws-api.js.map +1 -0
- package/dist/cjs/types/websockets/ws-events.d.ts +11 -0
- package/dist/cjs/types/websockets/ws-events.js +11 -0
- package/dist/cjs/types/websockets/ws-events.js.map +1 -0
- package/dist/cjs/types/websockets/ws-general.d.ts +67 -0
- package/dist/cjs/types/websockets/ws-general.js +3 -0
- package/dist/cjs/types/websockets/ws-general.js.map +1 -0
- package/dist/cjs/types/websockets/ws-subscriptions.d.ts +11 -0
- package/dist/cjs/types/websockets/ws-subscriptions.js +31 -0
- package/dist/cjs/types/websockets/ws-subscriptions.js.map +1 -0
- package/dist/mjs/DerivativesClient.d.ts +657 -0
- package/dist/mjs/DerivativesClient.js +722 -0
- package/dist/mjs/DerivativesClient.js.map +1 -0
- package/dist/mjs/InstitutionalClient.d.ts +183 -0
- package/dist/mjs/InstitutionalClient.js +262 -0
- package/dist/mjs/InstitutionalClient.js.map +1 -0
- package/dist/mjs/PartnerClient.d.ts +257 -0
- package/dist/mjs/PartnerClient.js +340 -0
- package/dist/mjs/PartnerClient.js.map +1 -0
- package/dist/mjs/SpotClient.d.ts +547 -0
- package/dist/mjs/SpotClient.js +603 -0
- package/dist/mjs/SpotClient.js.map +1 -0
- package/dist/mjs/WebsocketAPIClient.d.ts +95 -0
- package/dist/mjs/WebsocketAPIClient.js +132 -0
- package/dist/mjs/WebsocketAPIClient.js.map +1 -0
- package/dist/mjs/WebsocketClient.d.ts +120 -0
- package/dist/mjs/WebsocketClient.js +665 -0
- package/dist/mjs/WebsocketClient.js.map +1 -0
- package/dist/mjs/index.d.ts +24 -0
- package/dist/mjs/index.js +25 -0
- package/dist/mjs/index.js.map +1 -0
- package/dist/mjs/lib/BaseRestClient.d.ts +66 -0
- package/dist/mjs/lib/BaseRestClient.js +541 -0
- package/dist/mjs/lib/BaseRestClient.js.map +1 -0
- package/dist/mjs/lib/BaseWSClient.d.ts +230 -0
- package/dist/mjs/lib/BaseWSClient.js +928 -0
- package/dist/mjs/lib/BaseWSClient.js.map +1 -0
- package/dist/mjs/lib/misc-util.d.ts +1 -0
- package/dist/mjs/lib/misc-util.js +4 -0
- package/dist/mjs/lib/misc-util.js.map +1 -0
- package/dist/mjs/lib/requestUtils.d.ts +68 -0
- package/dist/mjs/lib/requestUtils.js +76 -0
- package/dist/mjs/lib/requestUtils.js.map +1 -0
- package/dist/mjs/lib/webCryptoAPI.d.ts +15 -0
- package/dist/mjs/lib/webCryptoAPI.js +80 -0
- package/dist/mjs/lib/webCryptoAPI.js.map +1 -0
- package/dist/mjs/lib/websocket/WsStore.d.ts +75 -0
- package/dist/mjs/lib/websocket/WsStore.js +298 -0
- package/dist/mjs/lib/websocket/WsStore.js.map +1 -0
- package/dist/mjs/lib/websocket/WsStore.types.d.ts +51 -0
- package/dist/mjs/lib/websocket/WsStore.types.js +11 -0
- package/dist/mjs/lib/websocket/WsStore.types.js.map +1 -0
- package/dist/mjs/lib/websocket/logger.d.ts +7 -0
- package/dist/mjs/lib/websocket/logger.js +13 -0
- package/dist/mjs/lib/websocket/logger.js.map +1 -0
- package/dist/mjs/lib/websocket/rest-client-cache.d.ts +22 -0
- package/dist/mjs/lib/websocket/rest-client-cache.js +62 -0
- package/dist/mjs/lib/websocket/rest-client-cache.js.map +1 -0
- package/dist/mjs/lib/websocket/websocket-util.d.ts +76 -0
- package/dist/mjs/lib/websocket/websocket-util.js +54 -0
- package/dist/mjs/lib/websocket/websocket-util.js.map +1 -0
- package/dist/mjs/package.json +3 -0
- package/dist/mjs/types/request/derivatives.types.d.ts +186 -0
- package/dist/mjs/types/request/derivatives.types.js +5 -0
- package/dist/mjs/types/request/derivatives.types.js.map +1 -0
- package/dist/mjs/types/request/institutional.types.d.ts +313 -0
- package/dist/mjs/types/request/institutional.types.js +3 -0
- package/dist/mjs/types/request/institutional.types.js.map +1 -0
- package/dist/mjs/types/request/partner.types.d.ts +291 -0
- package/dist/mjs/types/request/partner.types.js +3 -0
- package/dist/mjs/types/request/partner.types.js.map +1 -0
- package/dist/mjs/types/request/spot.types.d.ts +324 -0
- package/dist/mjs/types/request/spot.types.js +5 -0
- package/dist/mjs/types/request/spot.types.js.map +1 -0
- package/dist/mjs/types/request/wsapi.types.d.ts +90 -0
- package/dist/mjs/types/request/wsapi.types.js +5 -0
- package/dist/mjs/types/request/wsapi.types.js.map +1 -0
- package/dist/mjs/types/response/derivatives.types.d.ts +712 -0
- package/dist/mjs/types/response/derivatives.types.js +5 -0
- package/dist/mjs/types/response/derivatives.types.js.map +1 -0
- package/dist/mjs/types/response/institutional.types.d.ts +318 -0
- package/dist/mjs/types/response/institutional.types.js +3 -0
- package/dist/mjs/types/response/institutional.types.js.map +1 -0
- package/dist/mjs/types/response/partner.types.d.ts +332 -0
- package/dist/mjs/types/response/partner.types.js +3 -0
- package/dist/mjs/types/response/partner.types.js.map +1 -0
- package/dist/mjs/types/response/shared.types.d.ts +27 -0
- package/dist/mjs/types/response/shared.types.js +2 -0
- package/dist/mjs/types/response/shared.types.js.map +1 -0
- package/dist/mjs/types/response/spot.types.d.ts +590 -0
- package/dist/mjs/types/response/spot.types.js +5 -0
- package/dist/mjs/types/response/spot.types.js.map +1 -0
- package/dist/mjs/types/response/ws.d.ts +11 -0
- package/dist/mjs/types/response/ws.js +2 -0
- package/dist/mjs/types/response/ws.js.map +1 -0
- package/dist/mjs/types/response/wsapi.types.d.ts +44 -0
- package/dist/mjs/types/response/wsapi.types.js +5 -0
- package/dist/mjs/types/response/wsapi.types.js.map +1 -0
- package/dist/mjs/types/websockets/ws-api.d.ts +71 -0
- package/dist/mjs/types/websockets/ws-api.js +15 -0
- package/dist/mjs/types/websockets/ws-api.js.map +1 -0
- package/dist/mjs/types/websockets/ws-events.d.ts +11 -0
- package/dist/mjs/types/websockets/ws-events.js +8 -0
- package/dist/mjs/types/websockets/ws-events.js.map +1 -0
- package/dist/mjs/types/websockets/ws-general.d.ts +67 -0
- package/dist/mjs/types/websockets/ws-general.js +2 -0
- package/dist/mjs/types/websockets/ws-general.js.map +1 -0
- package/dist/mjs/types/websockets/ws-subscriptions.d.ts +11 -0
- package/dist/mjs/types/websockets/ws-subscriptions.js +28 -0
- package/dist/mjs/types/websockets/ws-subscriptions.js.map +1 -0
- package/llms.txt +10925 -0
- package/package.json +89 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"derivatives.types.js","sourceRoot":"","sources":["../../../../src/types/response/derivatives.types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
export type CustodyVaultStatus = 'pending' | 'created' | 'failed' | 'disabled';
|
|
2
|
+
export interface CustodyVault {
|
|
3
|
+
id: string;
|
|
4
|
+
created_at: string;
|
|
5
|
+
updated_at: string;
|
|
6
|
+
count_assets: number;
|
|
7
|
+
status: CustodyVaultStatus;
|
|
8
|
+
iiban: string;
|
|
9
|
+
deposit_lock_rekeying_only?: boolean | null;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
balance_fiat?: string | null;
|
|
13
|
+
balance_diff?: string | null;
|
|
14
|
+
available_balance_fiat?: string | null;
|
|
15
|
+
otc_enabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface CustodyApiError {
|
|
18
|
+
severity: 'E' | 'W';
|
|
19
|
+
errorClass: string;
|
|
20
|
+
type: string;
|
|
21
|
+
errorMessage?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface CustodyListVaultsResponse {
|
|
24
|
+
result?: CustodyVault[] | null;
|
|
25
|
+
errors?: CustodyApiError[];
|
|
26
|
+
start?: number;
|
|
27
|
+
total?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface CustodyAssetBalance {
|
|
30
|
+
current_usd_value?: string | null;
|
|
31
|
+
quantity: string;
|
|
32
|
+
}
|
|
33
|
+
export interface CustodyVaultAssetDetail {
|
|
34
|
+
asset: string;
|
|
35
|
+
current_usd_price?: string | null;
|
|
36
|
+
available_balance: CustodyAssetBalance;
|
|
37
|
+
total_balance: CustodyAssetBalance;
|
|
38
|
+
}
|
|
39
|
+
export interface CustodyVaultWithAssets extends CustodyVault {
|
|
40
|
+
asset_details: CustodyVaultAssetDetail[];
|
|
41
|
+
}
|
|
42
|
+
export interface CustodyGetVaultResponse {
|
|
43
|
+
result?: CustodyVaultWithAssets | null;
|
|
44
|
+
errors: CustodyApiError[];
|
|
45
|
+
}
|
|
46
|
+
export interface CustodyDepositMethod {
|
|
47
|
+
method?: string;
|
|
48
|
+
limit?: string | boolean;
|
|
49
|
+
fee?: string;
|
|
50
|
+
'fee-percentage'?: string | null;
|
|
51
|
+
'address-setup-fee'?: string | null;
|
|
52
|
+
'gen-address'?: boolean | null;
|
|
53
|
+
minimum?: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface CustodyDepositMethodsResponse {
|
|
56
|
+
result?: CustodyDepositMethod[] | null;
|
|
57
|
+
error: CustodyApiError[];
|
|
58
|
+
}
|
|
59
|
+
export interface CustodyDepositAddress {
|
|
60
|
+
address: string;
|
|
61
|
+
expiretm?: string;
|
|
62
|
+
memo?: string | null;
|
|
63
|
+
new?: boolean | null;
|
|
64
|
+
tag?: string | null;
|
|
65
|
+
}
|
|
66
|
+
export interface CustodyDepositAddressesResponse {
|
|
67
|
+
error: CustodyApiError[];
|
|
68
|
+
result?: CustodyDepositAddress[] | null;
|
|
69
|
+
}
|
|
70
|
+
export type CustodyTransactionType = 'unspecified' | 'deposit' | 'withdrawal' | 'trade' | 'margin' | 'adjustment' | 'rollover' | 'interest' | 'credit' | 'transfer' | 'transfer_peer_to_peer' | 'settle' | 'dividend' | 'nft_trade' | 'reward' | 'nft_creator_fee' | 'nft_rebate' | 'nft_airdrop' | 'simple_order' | 'simple_order_with_deposit' | 'simple_order_failed' | 'custom_simple_order' | 'custom_simple_order_with_deposit' | 'custom_simple_order_failed' | 'recurring_simple_order' | 'recurring_simple_order_with_deposit' | 'recurring_simple_order_failed' | 'simple_order_opposite_side' | 'reserved_fee' | 'fee_sweep' | 'ic_settlement' | 'fee_sweep_dlt' | 'reward_sweep' | 'reward_sweep_old' | 'interest_sweep' | 'conversion' | 'dust_sweep' | 'futures_transfer' | 'custody_transfer' | 'deposit_action' | 'withdrawal_action' | 'legacy_staking_allocation' | 'legacy_staking_deallocation' | 'legacy_staking_reward' | 'earn_legacy_migration' | 'block_trade' | 'equity_trade' | 'equity_acats' | 'earn_staking_allocation' | 'earn_staking_deallocation' | 'earn_staking_reward' | 'earn_staking_auto_allocation' | 'earn_oir_allocation' | 'earn_oir_deallocation' | 'earn_oir_reward' | 'earn_oir_auto_allocation' | 'earn_base_reward' | 'earn_base_auto_allocation' | 'earn_base_auto_deallocation' | 'custody_staking' | 'custody_unstaking' | 'custody_staking_reward' | 'custody_staking_reward_aggregated' | 'credit_rollover' | 'airdrop' | 'earn_oir_auto_deallocation' | 'earn_staking_auto_deallocation' | 'bridge_deposit' | 'bridge_simple_order' | 'simple_order_deposit_action' | 'otc_buy' | 'otc_sell' | 'bundle_trade' | 'equity_fee' | 'equity_journal' | 'corporate_action' | 'user_account_transfer' | 'earn_restaking' | 'subscription' | 'custody_otc_loan_pledge' | 'custody_otc_collateral_liquidation' | 'paytag_transfer' | 'paylink_transfer' | 'paytag_request_transfer' | 'paylink_request_transfer' | 'kard_transfer' | 'krak_card' | 'custody_otc_loan_release' | 'fpsl_reward' | 'fcm_trade' | 'boost' | 'fcm_misc';
|
|
71
|
+
export type CustodyTransactionCategory = 'unspecified' | 'deposit' | 'withdrawal' | 'transfer' | 'krak_card' | 'trade' | 'margin_trade' | 'margin_rollover' | 'margin_settle' | 'earn' | 'earn_rewards' | 'simple_trading' | 'nft' | 'block_trade' | 'credit' | 'equity_trade' | 'equity_acats' | 'equity_dividend' | 'reward_bonus' | 'conversion' | 'reward' | 'custody' | 'legacy_staking' | 'legacy_staking_rewards' | 'equity_fee' | 'equity_journal' | 'corporate_action' | 'fpsl_reward' | 'subscription' | 'other';
|
|
72
|
+
export type CustodyTransactionArea = 'unspecified' | 'funding' | 'transfer' | 'krak_card' | 'spot_margin' | 'equity' | 'earn' | 'simple_trading' | 'custody' | 'staking' | 'nft' | 'other';
|
|
73
|
+
export type CustodyTransactionStatus = 'unspecified' | 'in_progress' | 'successful' | 'failed';
|
|
74
|
+
export type CustodyTransactionAssetClass = 'currency' | 'forex' | 'equity' | 'equity_pair' | 'nft' | 'derivatives' | 'tokenized_asset' | 'futures_contract';
|
|
75
|
+
export interface CustodyTransactionAmount {
|
|
76
|
+
amount: string;
|
|
77
|
+
asset: string;
|
|
78
|
+
class: CustodyTransactionAssetClass;
|
|
79
|
+
}
|
|
80
|
+
export interface CustodyTransactionSide {
|
|
81
|
+
ledger_id?: string | null;
|
|
82
|
+
time?: string | null;
|
|
83
|
+
subtype?: string | null;
|
|
84
|
+
amount: CustodyTransactionAmount;
|
|
85
|
+
quoted_amount?: CustodyTransactionAmount | null;
|
|
86
|
+
fee?: CustodyTransactionAmount | null;
|
|
87
|
+
quoted_fee?: CustodyTransactionAmount | null;
|
|
88
|
+
total?: CustodyTransactionAmount | null;
|
|
89
|
+
quoted_total?: CustodyTransactionAmount | null;
|
|
90
|
+
balance?: CustodyTransactionAmount | null;
|
|
91
|
+
wallet?: Record<string, any> | null;
|
|
92
|
+
}
|
|
93
|
+
export interface CustodyTransaction {
|
|
94
|
+
id: string;
|
|
95
|
+
time: string;
|
|
96
|
+
type: CustodyTransactionType;
|
|
97
|
+
category: CustodyTransactionCategory;
|
|
98
|
+
area: CustodyTransactionArea;
|
|
99
|
+
status?: CustodyTransactionStatus | null;
|
|
100
|
+
ref_id: string;
|
|
101
|
+
ref_id2?: string | null;
|
|
102
|
+
spend?: CustodyTransactionSide | null;
|
|
103
|
+
receive?: CustodyTransactionSide | null;
|
|
104
|
+
details?: Record<string, any> | null;
|
|
105
|
+
}
|
|
106
|
+
export interface CustodyTransactionStats {
|
|
107
|
+
transactions_seen?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface CustodyListTransactionsResponse {
|
|
110
|
+
result?: {
|
|
111
|
+
transactions: CustodyTransaction[];
|
|
112
|
+
stats?: CustodyTransactionStats | null;
|
|
113
|
+
next_cursor?: string | null;
|
|
114
|
+
} | null;
|
|
115
|
+
errors: CustodyApiError[];
|
|
116
|
+
}
|
|
117
|
+
export type CustodyTransactionResultType = 'complete' | 'incomplete_requires_long_timeout' | 'incomplete';
|
|
118
|
+
export interface CustodyGetTransactionResponse {
|
|
119
|
+
error: CustodyApiError[];
|
|
120
|
+
result?: {
|
|
121
|
+
transaction: CustodyTransaction;
|
|
122
|
+
result_type: CustodyTransactionResultType;
|
|
123
|
+
} | null;
|
|
124
|
+
}
|
|
125
|
+
export interface CustodyWithdrawMethodLimit {
|
|
126
|
+
remaining: string | number;
|
|
127
|
+
maximum: string | number;
|
|
128
|
+
}
|
|
129
|
+
export interface CustodyWithdrawMethodLimitInfo {
|
|
130
|
+
limit_type: string;
|
|
131
|
+
description?: string | null;
|
|
132
|
+
limits: Record<string, CustodyWithdrawMethodLimit>;
|
|
133
|
+
}
|
|
134
|
+
export interface CustodyWithdrawMethodFee {
|
|
135
|
+
aclass: string;
|
|
136
|
+
asset: string;
|
|
137
|
+
fee: string;
|
|
138
|
+
fee_percentage?: string | null;
|
|
139
|
+
}
|
|
140
|
+
export interface CustodyWithdrawMethod {
|
|
141
|
+
asset: string;
|
|
142
|
+
method_id?: string | null;
|
|
143
|
+
method?: string | null;
|
|
144
|
+
network_id?: string | null;
|
|
145
|
+
network?: string | null;
|
|
146
|
+
minimum?: string | null;
|
|
147
|
+
limits?: CustodyWithdrawMethodLimitInfo[] | null;
|
|
148
|
+
fee?: CustodyWithdrawMethodFee | null;
|
|
149
|
+
}
|
|
150
|
+
export interface CustodyWithdrawMethodsResponse {
|
|
151
|
+
error: CustodyApiError[];
|
|
152
|
+
result?: CustodyWithdrawMethod[] | null;
|
|
153
|
+
}
|
|
154
|
+
export interface CustodyWithdrawAddress {
|
|
155
|
+
address?: string | null;
|
|
156
|
+
asset?: string | null;
|
|
157
|
+
method?: string | null;
|
|
158
|
+
key?: string | null;
|
|
159
|
+
verified: boolean;
|
|
160
|
+
memo?: string | null;
|
|
161
|
+
tag?: string | null;
|
|
162
|
+
networks?: string[] | null;
|
|
163
|
+
}
|
|
164
|
+
export interface CustodyWithdrawAddressesResponse {
|
|
165
|
+
error: CustodyApiError[];
|
|
166
|
+
result?: CustodyWithdrawAddress[] | null;
|
|
167
|
+
}
|
|
168
|
+
export type CustodyUserRole = 'admin' | 'initiator' | 'reviewer' | 'auditor';
|
|
169
|
+
export interface CustodyTaskUser {
|
|
170
|
+
full_name?: string | null;
|
|
171
|
+
role?: CustodyUserRole | null;
|
|
172
|
+
ip_address?: string | null;
|
|
173
|
+
iiban?: string | null;
|
|
174
|
+
}
|
|
175
|
+
export interface CustodyTaskReviewerStatistics {
|
|
176
|
+
current_count: number;
|
|
177
|
+
approved: number;
|
|
178
|
+
denied: number;
|
|
179
|
+
undecided: number;
|
|
180
|
+
}
|
|
181
|
+
export type CustodyTaskState = 'pending' | 'approved' | 'denied' | 'canceled' | 'expired' | 'executed' | 'failed';
|
|
182
|
+
export type CustodyTaskUserDecision = 'approved' | 'denied' | 'undecided';
|
|
183
|
+
export interface CustodyTask {
|
|
184
|
+
can_review: boolean;
|
|
185
|
+
reviewer_statistics: CustodyTaskReviewerStatistics;
|
|
186
|
+
current_user_decision: CustodyTaskUserDecision;
|
|
187
|
+
id: string;
|
|
188
|
+
approval_id: string;
|
|
189
|
+
created_at: string;
|
|
190
|
+
updated_at: string;
|
|
191
|
+
expires_at: string;
|
|
192
|
+
initiator: CustodyTaskUser;
|
|
193
|
+
}
|
|
194
|
+
export interface CustodyListTasksResponse {
|
|
195
|
+
result?: CustodyTask[] | null;
|
|
196
|
+
errors: CustodyApiError[];
|
|
197
|
+
start: number;
|
|
198
|
+
total: number;
|
|
199
|
+
}
|
|
200
|
+
export interface CustodyTaskDetails {
|
|
201
|
+
state: CustodyTaskState;
|
|
202
|
+
[key: string]: any;
|
|
203
|
+
}
|
|
204
|
+
export interface CustodyGetTaskResponse {
|
|
205
|
+
result?: CustodyTaskDetails | null;
|
|
206
|
+
errors: CustodyApiError[];
|
|
207
|
+
}
|
|
208
|
+
export type CustodyActivityAction = 'created' | 'review_approved' | 'review_denied' | 'canceled' | 'executed' | 'failed' | 'expired';
|
|
209
|
+
export interface CustodyActivity {
|
|
210
|
+
task: CustodyTaskDetails;
|
|
211
|
+
id: string;
|
|
212
|
+
created_at: string;
|
|
213
|
+
}
|
|
214
|
+
export interface CustodyListActivitiesResponse {
|
|
215
|
+
result?: CustodyActivity[] | null;
|
|
216
|
+
errors: CustodyApiError[];
|
|
217
|
+
start: number;
|
|
218
|
+
total: number;
|
|
219
|
+
}
|
|
220
|
+
export interface CustodyActivityDetails {
|
|
221
|
+
type: CustodyActivityAction;
|
|
222
|
+
comment?: string | null;
|
|
223
|
+
user: CustodyTaskUser;
|
|
224
|
+
[key: string]: any;
|
|
225
|
+
}
|
|
226
|
+
export interface CustodyGetActivityResponse {
|
|
227
|
+
result?: CustodyActivityDetails | null;
|
|
228
|
+
errors: CustodyApiError[];
|
|
229
|
+
}
|
|
230
|
+
export interface OtcQuote {
|
|
231
|
+
[key: string]: any;
|
|
232
|
+
}
|
|
233
|
+
export interface OTCCreateQuoteResponse {
|
|
234
|
+
result?: {
|
|
235
|
+
quote: OtcQuote;
|
|
236
|
+
};
|
|
237
|
+
error: string[];
|
|
238
|
+
}
|
|
239
|
+
export interface OTCUpdateQuoteResponse {
|
|
240
|
+
result?: {
|
|
241
|
+
quote_id?: string;
|
|
242
|
+
};
|
|
243
|
+
error: string[];
|
|
244
|
+
}
|
|
245
|
+
export interface OtcPair {
|
|
246
|
+
base: string;
|
|
247
|
+
quote: string;
|
|
248
|
+
pair_name: string;
|
|
249
|
+
pair_decimals: number;
|
|
250
|
+
lot_decimals: number;
|
|
251
|
+
cost_decimals: number;
|
|
252
|
+
max_base_amount: string;
|
|
253
|
+
max_notional?: string;
|
|
254
|
+
min_base_amount?: string;
|
|
255
|
+
min_notional?: string;
|
|
256
|
+
}
|
|
257
|
+
export interface OTCGetPairsResponse {
|
|
258
|
+
result: {
|
|
259
|
+
spot_pairs: OtcPair[];
|
|
260
|
+
};
|
|
261
|
+
error: string[];
|
|
262
|
+
}
|
|
263
|
+
export interface OtcActiveQuote {
|
|
264
|
+
expires: {
|
|
265
|
+
time: number;
|
|
266
|
+
};
|
|
267
|
+
quote_id: string;
|
|
268
|
+
client_order_id?: string | null;
|
|
269
|
+
base: string;
|
|
270
|
+
quote: string;
|
|
271
|
+
type: string;
|
|
272
|
+
price?: string;
|
|
273
|
+
amount: string;
|
|
274
|
+
total?: string;
|
|
275
|
+
settlement: string;
|
|
276
|
+
}
|
|
277
|
+
export interface OTCGetActiveQuotesResponse {
|
|
278
|
+
result?: OtcActiveQuote[];
|
|
279
|
+
error: string[];
|
|
280
|
+
}
|
|
281
|
+
export interface OtcHistoricalQuote {
|
|
282
|
+
trade_id?: string | null;
|
|
283
|
+
status?: string | null;
|
|
284
|
+
acceptance: {
|
|
285
|
+
status: string;
|
|
286
|
+
time: number;
|
|
287
|
+
};
|
|
288
|
+
settlement_status: string;
|
|
289
|
+
quote_id: string;
|
|
290
|
+
client_order_id?: string | null;
|
|
291
|
+
base: string;
|
|
292
|
+
quote: string;
|
|
293
|
+
type: string;
|
|
294
|
+
price: string;
|
|
295
|
+
amount: string;
|
|
296
|
+
total: string;
|
|
297
|
+
settlement: string;
|
|
298
|
+
}
|
|
299
|
+
export interface OTCGetHistoricalQuotesResponse {
|
|
300
|
+
result?: OtcHistoricalQuote[];
|
|
301
|
+
error: string[];
|
|
302
|
+
}
|
|
303
|
+
export interface OtcExposures {
|
|
304
|
+
max_otc: string;
|
|
305
|
+
max_rfq: string;
|
|
306
|
+
used_otc: string;
|
|
307
|
+
used_rfq: string;
|
|
308
|
+
}
|
|
309
|
+
export interface OTCGetExposuresResponse {
|
|
310
|
+
result?: OtcExposures;
|
|
311
|
+
error: string[];
|
|
312
|
+
}
|
|
313
|
+
export interface OTCCheckClientResponse {
|
|
314
|
+
result?: {
|
|
315
|
+
permissions: string[];
|
|
316
|
+
};
|
|
317
|
+
error: string[];
|
|
318
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"institutional.types.js","sourceRoot":"","sources":["../../../../src/types/response/institutional.types.ts"],"names":[],"mappings":"AAAA,+BAA+B"}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create User response
|
|
3
|
+
*/
|
|
4
|
+
export interface PartnerCreateUserResponse {
|
|
5
|
+
result: {
|
|
6
|
+
user: {
|
|
7
|
+
iiban: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get User response
|
|
13
|
+
*/
|
|
14
|
+
export interface PartnerGetUserResponse {
|
|
15
|
+
result?: {
|
|
16
|
+
user: string;
|
|
17
|
+
external_id?: string;
|
|
18
|
+
user_type: 'individual' | 'corporate';
|
|
19
|
+
status: {
|
|
20
|
+
state: string;
|
|
21
|
+
required_actions?: any[];
|
|
22
|
+
};
|
|
23
|
+
created_at: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Update User response
|
|
28
|
+
*/
|
|
29
|
+
export interface PartnerUpdateUserResponse {
|
|
30
|
+
result?: 'success';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Submit Verification response
|
|
34
|
+
*/
|
|
35
|
+
export interface PartnerSubmitVerificationResponse {
|
|
36
|
+
result?: {
|
|
37
|
+
verification_id: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* List Assets response
|
|
42
|
+
*/
|
|
43
|
+
export interface PartnerListAssetsResponse {
|
|
44
|
+
result: {
|
|
45
|
+
assets: any[];
|
|
46
|
+
links: any;
|
|
47
|
+
meta: {
|
|
48
|
+
total_items?: number;
|
|
49
|
+
total_pages?: number;
|
|
50
|
+
page_size?: number;
|
|
51
|
+
page_number?: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get Asset response
|
|
57
|
+
*/
|
|
58
|
+
export interface PartnerGetAssetResponse {
|
|
59
|
+
result: any;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* List Asset Rates response
|
|
63
|
+
*/
|
|
64
|
+
export interface PartnerListAssetRatesResponse {
|
|
65
|
+
result: {
|
|
66
|
+
rates: Array<{
|
|
67
|
+
timestamp: string;
|
|
68
|
+
price: string;
|
|
69
|
+
}>;
|
|
70
|
+
meta: any;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Request Quote response
|
|
75
|
+
*/
|
|
76
|
+
export interface PartnerRequestQuoteResponse {
|
|
77
|
+
result: {
|
|
78
|
+
quote_id: string;
|
|
79
|
+
type: 'receive' | 'spend';
|
|
80
|
+
status: any;
|
|
81
|
+
expires: string;
|
|
82
|
+
spend: any;
|
|
83
|
+
quoted_spend?: any;
|
|
84
|
+
receive: any;
|
|
85
|
+
quoted_receive?: any;
|
|
86
|
+
unit_price: any;
|
|
87
|
+
quoted_unit_price?: any;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get Quote response
|
|
92
|
+
*/
|
|
93
|
+
export interface PartnerGetQuoteResponse {
|
|
94
|
+
result?: {
|
|
95
|
+
quote_id: string;
|
|
96
|
+
transaction_id?: string;
|
|
97
|
+
type: 'receive' | 'spend';
|
|
98
|
+
status: any;
|
|
99
|
+
expires: string;
|
|
100
|
+
spend: any;
|
|
101
|
+
quoted_spend?: any;
|
|
102
|
+
receive: any;
|
|
103
|
+
quoted_receive?: any;
|
|
104
|
+
unit_price: any;
|
|
105
|
+
quoted_unit_price?: any;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Execute Quote response
|
|
110
|
+
*/
|
|
111
|
+
export interface PartnerExecuteQuoteResponse {
|
|
112
|
+
result?: {
|
|
113
|
+
quote_id: string;
|
|
114
|
+
status: any;
|
|
115
|
+
transaction_id?: string;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Get Portfolio Summary response
|
|
120
|
+
*/
|
|
121
|
+
export interface PartnerGetPortfolioSummaryResponse {
|
|
122
|
+
result: {
|
|
123
|
+
timestamp: string;
|
|
124
|
+
currency: string;
|
|
125
|
+
portfolio_value: string;
|
|
126
|
+
withheld_value: string;
|
|
127
|
+
open_orders: string;
|
|
128
|
+
available_balance: string;
|
|
129
|
+
lots_upnl?: string;
|
|
130
|
+
cost_basis?: string;
|
|
131
|
+
current_day_pnl?: {
|
|
132
|
+
since: string;
|
|
133
|
+
pnl: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Get Portfolio History response
|
|
139
|
+
*/
|
|
140
|
+
export interface PartnerGetPortfolioHistoryResponse {
|
|
141
|
+
result: {
|
|
142
|
+
start_date: string;
|
|
143
|
+
end_date: string;
|
|
144
|
+
next_cursor?: string;
|
|
145
|
+
currency?: string;
|
|
146
|
+
total_pnl?: string;
|
|
147
|
+
total_pnl_pct?: string;
|
|
148
|
+
history: any[];
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* List Portfolio Details response
|
|
153
|
+
*/
|
|
154
|
+
export interface PartnerListPortfolioDetailsResponse {
|
|
155
|
+
result?: {
|
|
156
|
+
timestamp: string;
|
|
157
|
+
currency: string;
|
|
158
|
+
assets: any[];
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* List Portfolio Transactions response
|
|
163
|
+
*/
|
|
164
|
+
export interface PartnerListPortfolioTransactionsResponse {
|
|
165
|
+
result?: {
|
|
166
|
+
transactions: any[];
|
|
167
|
+
stats?: {
|
|
168
|
+
transactions_seen?: number;
|
|
169
|
+
};
|
|
170
|
+
next_cursor?: string;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Get Earn Summary response
|
|
175
|
+
*/
|
|
176
|
+
export interface PartnerGetEarnSummaryResponse {
|
|
177
|
+
result: {
|
|
178
|
+
auto_earn_eligible: boolean;
|
|
179
|
+
auto_earn_enabled: boolean;
|
|
180
|
+
auto_earn_last_changed?: string;
|
|
181
|
+
payout_period: string;
|
|
182
|
+
total_allocated_converted: string;
|
|
183
|
+
total_rewarded_converted_true_rates: string;
|
|
184
|
+
total_rewarded_converted_current_rate: string;
|
|
185
|
+
num_earning_assets: number;
|
|
186
|
+
upcoming_rewards: any[];
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* List Earn Assets response
|
|
191
|
+
*/
|
|
192
|
+
export interface PartnerListEarnAssetsResponse {
|
|
193
|
+
result: {
|
|
194
|
+
assets: Record<string, any>;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Toggle Auto-Earn response
|
|
199
|
+
*/
|
|
200
|
+
export interface PartnerToggleAutoEarnResponse {
|
|
201
|
+
result?: any;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Withdraw Funds response
|
|
205
|
+
*/
|
|
206
|
+
export interface PartnerWithdrawFundsResponse {
|
|
207
|
+
result?: {
|
|
208
|
+
reference_id: string;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* List Funding Transactions response
|
|
213
|
+
*/
|
|
214
|
+
export interface PartnerListFundingTransactionsResponse {
|
|
215
|
+
result: {
|
|
216
|
+
transactions: Array<{
|
|
217
|
+
type: 'withdrawal' | 'deposit';
|
|
218
|
+
date: string;
|
|
219
|
+
asset: string;
|
|
220
|
+
amount: string;
|
|
221
|
+
status: 'initial' | 'pending' | 'settled' | 'success' | 'partial' | 'failure';
|
|
222
|
+
ref_id: string;
|
|
223
|
+
}>;
|
|
224
|
+
next_cursor?: string;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* List Settlement Reports response
|
|
229
|
+
*/
|
|
230
|
+
export interface PartnerListSettlementReportsResponse {
|
|
231
|
+
result?: {
|
|
232
|
+
reports: Array<{
|
|
233
|
+
id: string;
|
|
234
|
+
date: string;
|
|
235
|
+
type: 'trades' | 'transfers' | 'earn_rewards';
|
|
236
|
+
size: number;
|
|
237
|
+
name: string;
|
|
238
|
+
}>;
|
|
239
|
+
links: {
|
|
240
|
+
self?: string;
|
|
241
|
+
first?: string;
|
|
242
|
+
last?: string;
|
|
243
|
+
prev?: string;
|
|
244
|
+
next?: string;
|
|
245
|
+
};
|
|
246
|
+
meta: {
|
|
247
|
+
total_items?: number;
|
|
248
|
+
total_pages?: number;
|
|
249
|
+
page_size?: number;
|
|
250
|
+
page_number?: number;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Get Settlement Report response
|
|
256
|
+
*/
|
|
257
|
+
export interface PartnerGetSettlementReportResponse {
|
|
258
|
+
result?: {
|
|
259
|
+
id: string;
|
|
260
|
+
date: string;
|
|
261
|
+
type: 'trades' | 'transfers' | 'earn_rewards';
|
|
262
|
+
size: number;
|
|
263
|
+
name: string;
|
|
264
|
+
download_url: string;
|
|
265
|
+
expires_at: string;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* List Ramp Buy Crypto Assets response
|
|
270
|
+
*/
|
|
271
|
+
export interface PartnerListRampBuyCryptoAssetsResponse {
|
|
272
|
+
result: {
|
|
273
|
+
assets: any[];
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* List Ramp Fiat Currencies response
|
|
278
|
+
*/
|
|
279
|
+
export interface PartnerListRampFiatCurrenciesResponse {
|
|
280
|
+
result: {
|
|
281
|
+
currencies: Array<{
|
|
282
|
+
asset: string;
|
|
283
|
+
asset_class?: 'currency';
|
|
284
|
+
}>;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* List Ramp Payment Methods response
|
|
289
|
+
*/
|
|
290
|
+
export interface PartnerListRampPaymentMethodsResponse {
|
|
291
|
+
result: {
|
|
292
|
+
methods: Array<{
|
|
293
|
+
funding_type: string;
|
|
294
|
+
external_id?: string;
|
|
295
|
+
}>;
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* List Ramp Countries response
|
|
300
|
+
*/
|
|
301
|
+
export interface PartnerListRampCountriesResponse {
|
|
302
|
+
result: {
|
|
303
|
+
countries: any[];
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Get Ramp Limits response
|
|
308
|
+
*/
|
|
309
|
+
export interface PartnerGetRampLimitsResponse {
|
|
310
|
+
result: {
|
|
311
|
+
limits: any;
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Get Ramp Prospective Quote response
|
|
316
|
+
*/
|
|
317
|
+
export interface PartnerGetRampProspectiveQuoteResponse {
|
|
318
|
+
result: {
|
|
319
|
+
spend: any;
|
|
320
|
+
receive: any;
|
|
321
|
+
unit_price: any;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Get Ramp Checkout URL response
|
|
326
|
+
*/
|
|
327
|
+
export interface PartnerGetRampCheckoutUrlResponse {
|
|
328
|
+
result: {
|
|
329
|
+
checkout_url: string;
|
|
330
|
+
request_data: any;
|
|
331
|
+
};
|
|
332
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner.types.js","sourceRoot":"","sources":["../../../../src/types/response/partner.types.ts"],"names":[],"mappings":"AAAA,6BAA6B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RestClientOptions } from '../../lib/requestUtils.js';
|
|
2
|
+
export type DerivativesAPISuccessResponse<TData> = {
|
|
3
|
+
result: 'success';
|
|
4
|
+
serverTime: string;
|
|
5
|
+
} & TData;
|
|
6
|
+
export interface DerivativesAPIErrorResponse {
|
|
7
|
+
result: 'error';
|
|
8
|
+
error: string;
|
|
9
|
+
serverTime: string;
|
|
10
|
+
}
|
|
11
|
+
export type DerivativesAPIResponse<TData> = DerivativesAPISuccessResponse<TData> | DerivativesAPIErrorResponse;
|
|
12
|
+
export type SpotAPISuccessResponse<TData> = {
|
|
13
|
+
error: string[];
|
|
14
|
+
result: TData;
|
|
15
|
+
};
|
|
16
|
+
export interface SpotAPIErrorResponse {
|
|
17
|
+
error: string[];
|
|
18
|
+
}
|
|
19
|
+
export type SpotAPIResponse<TData> = SpotAPISuccessResponse<TData> | SpotAPIErrorResponse;
|
|
20
|
+
export interface GenericAPIError<TBody = any> {
|
|
21
|
+
code: number;
|
|
22
|
+
message: string;
|
|
23
|
+
body: TBody;
|
|
24
|
+
headers: Record<string, string>;
|
|
25
|
+
requestOptions: RestClientOptions;
|
|
26
|
+
requestParams: Record<string, any>;
|
|
27
|
+
}
|