valr-typescript-client 1.0.6 → 1.0.8

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/index.d.mts CHANGED
@@ -1044,6 +1044,21 @@ interface DepositAddress {
1044
1044
  tag?: string;
1045
1045
  };
1046
1046
  }
1047
+ /**
1048
+ * Crypto deposit history params
1049
+ */
1050
+ interface CryptoDepositHistoryParams {
1051
+ /** Number of records to skip */
1052
+ skip?: number;
1053
+ /** Maximum number of records to return */
1054
+ limit?: number;
1055
+ /** Start time (ISO 8601) */
1056
+ startTime?: ISOTimestamp;
1057
+ /** End time (ISO 8601) */
1058
+ endTime?: ISOTimestamp;
1059
+ /** Filter by currency code */
1060
+ currency?: CurrencyCode;
1061
+ }
1047
1062
  /**
1048
1063
  * Crypto deposit history item
1049
1064
  */
@@ -1094,36 +1109,45 @@ interface WhitelistedAddress {
1094
1109
  * Withdrawal configuration info
1095
1110
  */
1096
1111
  interface WithdrawalConfigInfo {
1112
+ /** Currency code */
1113
+ currency: CurrencyCode;
1114
+ /** Whether withdrawals are active */
1115
+ isActive: boolean;
1097
1116
  /** Minimum withdrawal amount */
1098
1117
  minimumWithdrawAmount: string;
1099
- /** Maximum withdrawal amount */
1100
- maximumWithdrawAmount: string;
1101
- /** Withdrawal fee */
1102
- withdrawalFee: string;
1103
- /** Whether withdrawals are enabled */
1104
- withdrawalsEnabled: boolean;
1105
- /** Available networks for withdrawal */
1106
- networks?: Array<{
1107
- networkType: string;
1108
- minimumWithdrawAmount: string;
1109
- maximumWithdrawAmount: string;
1110
- withdrawalFee: string;
1111
- }>;
1118
+ /** Network type */
1119
+ networkType: string;
1120
+ /** Whether payment reference is supported */
1121
+ supportsPaymentReference: boolean;
1122
+ /** Withdrawal cost/fee */
1123
+ withdrawCost: string;
1124
+ /** Withdrawal decimal places */
1125
+ withdrawalDecimalPlaces: number;
1112
1126
  }
1113
1127
  /**
1114
1128
  * Crypto withdrawal request
1115
1129
  */
1116
1130
  interface CryptoWithdrawalRequest {
1117
- /** Currency code */
1131
+ /** Currency code (not in body, used in path) */
1118
1132
  currency: CurrencyCode;
1119
- /** Withdrawal amount */
1120
- amount: string;
1121
1133
  /** Destination address */
1122
1134
  address: string;
1135
+ /** Withdrawal amount */
1136
+ amount: string;
1123
1137
  /** Network type */
1124
1138
  networkType?: NetworkType;
1125
1139
  /** Payment reference/memo (optional) */
1126
1140
  paymentReference?: string;
1141
+ /** Allow borrowing to fulfill withdrawal */
1142
+ allowBorrow?: boolean;
1143
+ /** Beneficiary name (Travel Rule requirement) */
1144
+ beneficiaryName?: string;
1145
+ /** Whether beneficiary is a corporate entity (Travel Rule) */
1146
+ isCorporate?: boolean;
1147
+ /** Whether address is self-hosted (Travel Rule) */
1148
+ isSelfHosted?: boolean;
1149
+ /** Service provider ID */
1150
+ serviceProviderId?: string;
1127
1151
  }
1128
1152
  /**
1129
1153
  * Crypto withdrawal response
@@ -1131,14 +1155,6 @@ interface CryptoWithdrawalRequest {
1131
1155
  interface CryptoWithdrawalResponse {
1132
1156
  /** Unique withdrawal ID */
1133
1157
  id: string;
1134
- /** Currency code */
1135
- currency: CurrencyCode;
1136
- /** Withdrawal amount */
1137
- amount: string;
1138
- /** Fee amount */
1139
- feeAmount: string;
1140
- /** When withdrawal was created */
1141
- createdAt: ISOTimestamp;
1142
1158
  }
1143
1159
  /**
1144
1160
  * Crypto withdrawal status
@@ -1173,10 +1189,10 @@ interface CryptoWithdrawalStatus {
1173
1189
  * Service provider information
1174
1190
  */
1175
1191
  interface ServiceProvider {
1192
+ /** Service provider ID */
1193
+ id: string;
1176
1194
  /** Provider name */
1177
1195
  name: string;
1178
- /** Supported currencies */
1179
- supportedCurrencies: CurrencyCode[];
1180
1196
  }
1181
1197
  /**
1182
1198
  * Crypto withdrawal history params
@@ -1186,6 +1202,12 @@ interface CryptoWithdrawalHistoryParams {
1186
1202
  skip?: number;
1187
1203
  /** Maximum number of records to return */
1188
1204
  limit?: number;
1205
+ /** Filter by currency code */
1206
+ currency?: CurrencyCode;
1207
+ /** Start time (ISO 8601) */
1208
+ startTime?: ISOTimestamp;
1209
+ /** End time (ISO 8601) */
1210
+ endTime?: ISOTimestamp;
1189
1211
  }
1190
1212
  /**
1191
1213
  * Crypto withdrawal history item
@@ -1268,41 +1290,22 @@ interface LinkBankAccountRequest {
1268
1290
  branchCode: string;
1269
1291
  /** Account type */
1270
1292
  accountType: string;
1293
+ /** Country code */
1294
+ country: string;
1271
1295
  }
1272
1296
  /**
1273
1297
  * Fiat deposit reference
1274
1298
  */
1275
1299
  interface FiatDepositReference {
1276
- /** Currency code */
1277
- currency: CurrencyCode;
1278
1300
  /** Reference code to use when depositing */
1279
1301
  reference: string;
1280
- /** Deposit instructions */
1281
- depositInstructions?: string;
1282
1302
  }
1283
1303
  /**
1284
1304
  * Auto-buy deposit reference
1285
1305
  */
1286
1306
  interface AutoBuyDepositReference {
1287
- /** Fiat currency code */
1288
- currency: CurrencyCode;
1289
- /** Crypto currency to auto-buy */
1290
- buyCurrencySymbol: CurrencyCode;
1291
1307
  /** Reference code to use when depositing */
1292
1308
  reference: string;
1293
- /** Deposit instructions */
1294
- depositInstructions?: string;
1295
- }
1296
- /**
1297
- * Supported auto-buy currency
1298
- */
1299
- interface AutoBuyCurrency {
1300
- /** Currency code */
1301
- currencySymbol: CurrencyCode;
1302
- /** Currency name */
1303
- currencyName: string;
1304
- /** Whether auto-buy is enabled */
1305
- enabled: boolean;
1306
1309
  }
1307
1310
  /**
1308
1311
  * Fiat withdrawal request
@@ -1316,6 +1319,8 @@ interface FiatWithdrawalRequest {
1316
1319
  linkedBankAccountId: string;
1317
1320
  /** Whether withdrawal is fast */
1318
1321
  fast?: boolean;
1322
+ /** Allow borrowing to fulfill withdrawal */
1323
+ allowBorrow?: boolean;
1319
1324
  }
1320
1325
  /**
1321
1326
  * Fiat withdrawal response
@@ -1323,12 +1328,6 @@ interface FiatWithdrawalRequest {
1323
1328
  interface FiatWithdrawalResponse {
1324
1329
  /** Unique withdrawal ID */
1325
1330
  id: string;
1326
- /** Currency code */
1327
- currency: CurrencyCode;
1328
- /** Withdrawal amount */
1329
- amount: string;
1330
- /** When withdrawal was created */
1331
- createdAt: ISOTimestamp;
1332
1331
  }
1333
1332
 
1334
1333
  /**
@@ -1947,18 +1946,60 @@ interface OrderStatusUpdate extends BaseWebSocketMessage {
1947
1946
  customerOrderId?: CustomerOrderId;
1948
1947
  }
1949
1948
  /**
1950
- * Balance update (WebSocket)
1949
+ * Currency info in balance update
1951
1950
  */
1952
- interface BalanceUpdate extends BaseWebSocketMessage {
1953
- type: 'BALANCE_UPDATE';
1954
- /** Currency */
1955
- currency: string;
1951
+ interface BalanceCurrency {
1952
+ /** Currency symbol */
1953
+ symbol: string;
1954
+ /** Decimal places */
1955
+ decimalPlaces: number;
1956
+ /** Whether currency is active */
1957
+ isActive: boolean;
1958
+ /** Short name */
1959
+ shortName: string;
1960
+ /** Long name */
1961
+ longName: string;
1962
+ /** Supported withdraw decimal places */
1963
+ supportedWithdrawDecimalPlaces: number;
1964
+ /** Whether currency can be used as collateral */
1965
+ collateral: boolean;
1966
+ /** Collateral weight */
1967
+ collateralWeight: string;
1968
+ }
1969
+ /**
1970
+ * Balance update data
1971
+ */
1972
+ interface BalanceUpdateData {
1973
+ /** Currency info */
1974
+ currency: BalanceCurrency;
1956
1975
  /** Available balance */
1957
1976
  available: string;
1958
1977
  /** Reserved balance */
1959
1978
  reserved: string;
1960
1979
  /** Total balance */
1961
1980
  total: string;
1981
+ /** When balance was updated */
1982
+ updatedAt: ISOTimestamp;
1983
+ /** Lend reserved amount */
1984
+ lendReserved: string;
1985
+ /** Borrow collateral reserved */
1986
+ borrowCollateralReserved: string;
1987
+ /** Borrowed amount */
1988
+ borrowedAmount: string;
1989
+ /** Total in reference currency */
1990
+ totalInReference: string;
1991
+ /** Total in reference currency weighted */
1992
+ totalInReferenceWeighted: string;
1993
+ /** Reference currency */
1994
+ referenceCurrency: string;
1995
+ }
1996
+ /**
1997
+ * Balance update (WebSocket)
1998
+ */
1999
+ interface BalanceUpdate extends BaseWebSocketMessage {
2000
+ type: 'BALANCE_UPDATE';
2001
+ /** Balance data */
2002
+ data: BalanceUpdateData;
1962
2003
  }
1963
2004
  /**
1964
2005
  * Account trade (WebSocket)
@@ -2538,16 +2579,21 @@ declare class WalletsAPI {
2538
2579
  /**
2539
2580
  * Get crypto deposit history
2540
2581
  *
2541
- * @param skip - Number of records to skip
2542
- * @param limit - Maximum number of records to return
2582
+ * @param params - Optional query parameters for filtering
2543
2583
  * @returns Promise resolving to array of deposit history items
2544
2584
  *
2545
2585
  * @example
2546
2586
  * ```typescript
2547
- * const deposits = await client.wallets.getCryptoDepositHistory(0, 100);
2587
+ * const deposits = await client.wallets.getCryptoDepositHistory({
2588
+ * skip: 0,
2589
+ * limit: 100,
2590
+ * currency: 'BTC',
2591
+ * startTime: '2025-01-01T00:00:00Z',
2592
+ * endTime: '2025-01-31T23:59:59Z'
2593
+ * });
2548
2594
  * ```
2549
2595
  */
2550
- getCryptoDepositHistory(skip?: number, limit?: number): Promise<CryptoDepositHistoryItem[]>;
2596
+ getCryptoDepositHistory(params?: CryptoDepositHistoryParams): Promise<CryptoDepositHistoryItem[]>;
2551
2597
  /**
2552
2598
  * Get whitelisted withdrawal address book
2553
2599
  *
@@ -2577,6 +2623,7 @@ declare class WalletsAPI {
2577
2623
  * Returns withdrawal limits and fees.
2578
2624
  *
2579
2625
  * @param currencyCode - Currency code
2626
+ * @param networkType - Optional network type
2580
2627
  * @returns Promise resolving to withdrawal config info
2581
2628
  *
2582
2629
  * @example
@@ -2585,7 +2632,7 @@ declare class WalletsAPI {
2585
2632
  * console.log('Fee:', config.withdrawalFee);
2586
2633
  * ```
2587
2634
  */
2588
- getCryptoWithdrawalInfo(currencyCode: CurrencyCode): Promise<WithdrawalConfigInfo>;
2635
+ getCryptoWithdrawalInfo(currencyCode: CurrencyCode, networkType?: string): Promise<WithdrawalConfigInfo>;
2589
2636
  /**
2590
2637
  * Withdraw cryptocurrency
2591
2638
  *
@@ -2750,17 +2797,17 @@ declare class WalletsAPI {
2750
2797
  * Returns which crypto currencies can be auto-bought with the specified fiat currency.
2751
2798
  *
2752
2799
  * @param currencyCode - Fiat currency code
2753
- * @returns Promise resolving to array of supported auto-buy currencies
2800
+ * @returns Promise resolving to array of supported currency codes
2754
2801
  *
2755
2802
  * @example
2756
2803
  * ```typescript
2757
2804
  * const currencies = await client.wallets.getAutoBuyCurrencies('ZAR');
2758
- * currencies.forEach(c => {
2759
- * console.log(`${c.currencySymbol}: ${c.enabled ? 'enabled' : 'disabled'}`);
2805
+ * currencies.forEach(code => {
2806
+ * console.log(`Supports auto-buy for: ${code}`);
2760
2807
  * });
2761
2808
  * ```
2762
2809
  */
2763
- getAutoBuyCurrencies(currencyCode: CurrencyCode): Promise<AutoBuyCurrency[]>;
2810
+ getAutoBuyCurrencies(currencyCode: CurrencyCode): Promise<CurrencyCode[]>;
2764
2811
  /**
2765
2812
  * Withdraw fiat currency
2766
2813
  *
@@ -3264,6 +3311,8 @@ interface WebSocketClientConfig {
3264
3311
  reconnectDelay?: number;
3265
3312
  /** Maximum reconnect attempts (default: Infinity) */
3266
3313
  maxReconnectAttempts?: number;
3314
+ /** Base URL for WS (defaults to wss://api.valr.com) */
3315
+ baseURL?: string;
3267
3316
  }
3268
3317
  /**
3269
3318
  * WebSocket event types
@@ -3283,13 +3332,14 @@ interface WebSocketEvents {
3283
3332
  declare abstract class ValrWebSocketClient<TEvents extends WebSocketEvents = WebSocketEvents> extends EventEmitter<TEvents> {
3284
3333
  protected ws?: WebSocket;
3285
3334
  protected url: string;
3335
+ protected path: string;
3286
3336
  protected config: Required<WebSocketClientConfig>;
3287
3337
  protected reconnectAttempts: number;
3288
3338
  protected reconnectTimer?: NodeJS.Timeout;
3289
3339
  protected isIntentionalClose: boolean;
3290
3340
  protected isConnected: boolean;
3291
3341
  protected isAuthenticated: boolean;
3292
- constructor(url: string, config?: WebSocketClientConfig);
3342
+ constructor(path: string, config?: WebSocketClientConfig);
3293
3343
  /**
3294
3344
  * Connect to WebSocket
3295
3345
  */
@@ -3310,10 +3360,6 @@ declare abstract class ValrWebSocketClient<TEvents extends WebSocketEvents = Web
3310
3360
  * Handle WebSocket open event
3311
3361
  */
3312
3362
  protected handleOpen(): void;
3313
- /**
3314
- * Authenticate WebSocket connection
3315
- */
3316
- protected authenticate(): void;
3317
3363
  /**
3318
3364
  * Handle incoming WebSocket message
3319
3365
  */
@@ -3620,11 +3666,12 @@ declare class RequestSigner {
3620
3666
  * Base URL for VALR API
3621
3667
  */
3622
3668
  declare const API_BASE_URL = "https://api.valr.com";
3669
+ declare const WS_BASE_URL = "wss://api.valr.com";
3623
3670
  /**
3624
3671
  * WebSocket URLs
3625
3672
  */
3626
- declare const WS_ACCOUNT_URL = "wss://api.valr.com/ws/account";
3627
- declare const WS_TRADE_URL = "wss://api.valr.com/ws/trade";
3673
+ declare const WS_ACCOUNT_URL_PATH = "/ws/account";
3674
+ declare const WS_TRADE_URL_PATH = "/ws/trade";
3628
3675
  /**
3629
3676
  * API rate limits
3630
3677
  */
@@ -3661,4 +3708,4 @@ declare const HEADERS: {
3661
3708
  readonly RATE_LIMITED: "x-valr-ratelimited";
3662
3709
  };
3663
3710
 
3664
- export { API_BASE_URL, AccountAPI, type AccountTrade$1 as AccountTrade, AccountWebSocket, type ApiKey, type AutoBuyCurrency, type AutoBuyDepositReference, type Balance, type BalanceUpdate, type BalancesParams, type Bank, type BankAccount, type BaseOrderRequest, type BaseWebSocketMessage, type BatchOrderRequest, type BatchOrderResponse, type BatchOrderResponseItem, type BatchOrderStatus, type BorrowHistoryItem, type Bundle, type BundleComposition, type BundleOrder, BundlesAPI, type BuyBundleRequest, type CancelOrderRequest, type CancelOrderRequestV2, type ChangeLoanRateRequest, type ClosedPosition, type ClosedPositionSummary, type ConditionalOrderRequest, type ConditionalOrderResponse, type ConditionalOrderStatus, type ConditionalOrderTriggerType, type ConditionalOrderType, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateLoanRequest, type CreatePaymentRequest, type CreateSubaccountRequest, type CryptoAddress, type CryptoDepositHistoryItem, type CryptoWithdrawalHistoryItem, type CryptoWithdrawalHistoryParams, type CryptoWithdrawalRequest, type CryptoWithdrawalResponse, type CryptoWithdrawalStatus, type Currency, type CurrencyCode, type CurrencyLeverageSettings, type CurrencyPair, type CurrencyPairInfo, type CurrencyPairOrderTypes, type CursorPaginationParams, type CustomerOrderId, type DepositAddress, type EarnBalance, type EarnBalancesParams, type EarnHistoryItem, type EarnHistoryParams, type EarnHistoryType, type EarnRate, type EarnRatesParams, type EarnReward, type EarnRewardsParams, type EarnType, type EnableMarginRequest, type FiatDepositReference, type FiatWithdrawalRequest, type FiatWithdrawalResponse, type FundingHistoryParams, type FundingPayment, type FundingRateHistory, FuturesAPI, type FuturesInfo, type FuturesPosition, HEADERS, HealthAPI, type HistoricalOrderDetail, type HistoricalOrderSummary, type ISOTimestamp, type IncreaseLoanRequest, type LeverageInfo, type LeverageOption, type LimitOrderRequest, type LimitOrderRequestV2, type LinkBankAccountRequest, type LoanCreditHistoryItem, type LoanInfo, type LoanRate, LoansAPI, MarginAPI, type MarginStatus, type MarketOrderRequest, type MarketOrderRequestV2, type MarketSummary, type MarketSummaryUpdate, type ModifyOrderRequest, type ModifyOrderRequestV2, type NetworkType, type NewTrade, type OpenLoan, type OpenOrder, type OrderBook, type OrderBookEntry$1 as OrderBookEntry, type OrderBookUpdate, type OrderHistoryParams, type OrderId, type OrderProcessed, type OrderResponse, type OrderSide, type OrderStatus, type OrderStatusDetail, type OrderStatusSummary, type OrderStatusUpdate, type OrderTrade, type OrderType, type OrderTypesParams, type PaginationParams, type PairType, PayAPI, type Payment, type PaymentStatus, type PositionHistoryParams, type PostOnly, type PriceBucket, type PriceBucketsParams, type PriceQuantity, PublicAPI, RATE_LIMITS, RequestSigner, type RequestUnlockRequest, type ServerTime, type ServiceProvider, type SimpleOrderRequest, type SimpleQuoteRequest, type SimpleQuoteResponse, StakeAPI, type StakeRequest, type StopLimitOrderRequest, type StopLimitOrderRequestV2, type Subaccount, type SubaccountId, type Subscription, type SubscriptionRequest, type TimeInForce, type TimeRangeParams, type Trade, type TradeFee, type TradeHistoryParams, TradeWebSocket, TradingAPI, type Transaction, type TransactionHistoryParams, type TransactionType, type TransferRequest, type UnstakeRequest, type UpdateLeverageRequest, ValrApiError, ValrAuthenticationError, ValrClient, type ValrClientConfig, ValrConfigurationError, ValrError, ValrRateLimitError, type ValrStatus, ValrValidationError, ValrWebSocketClient, ValrWebSocketError, WS_ACCOUNT_URL, WS_TRADE_URL, WalletsAPI, type AccountTrade as WebSocketAccountTrade, type WebSocketClientConfig, type WebSocketMessage, type WebSocketMessageType, type WhitelistedAddress, type WithdrawalConfigInfo };
3711
+ export { API_BASE_URL, AccountAPI, type AccountTrade$1 as AccountTrade, AccountWebSocket, type ApiKey, type AutoBuyDepositReference, type Balance, type BalanceUpdate, type BalancesParams, type Bank, type BankAccount, type BaseOrderRequest, type BaseWebSocketMessage, type BatchOrderRequest, type BatchOrderResponse, type BatchOrderResponseItem, type BatchOrderStatus, type BorrowHistoryItem, type Bundle, type BundleComposition, type BundleOrder, BundlesAPI, type BuyBundleRequest, type CancelOrderRequest, type CancelOrderRequestV2, type ChangeLoanRateRequest, type ClosedPosition, type ClosedPositionSummary, type ConditionalOrderRequest, type ConditionalOrderResponse, type ConditionalOrderStatus, type ConditionalOrderTriggerType, type ConditionalOrderType, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateLoanRequest, type CreatePaymentRequest, type CreateSubaccountRequest, type CryptoAddress, type CryptoDepositHistoryItem, type CryptoDepositHistoryParams, type CryptoWithdrawalHistoryItem, type CryptoWithdrawalHistoryParams, type CryptoWithdrawalRequest, type CryptoWithdrawalResponse, type CryptoWithdrawalStatus, type Currency, type CurrencyCode, type CurrencyLeverageSettings, type CurrencyPair, type CurrencyPairInfo, type CurrencyPairOrderTypes, type CursorPaginationParams, type CustomerOrderId, type DepositAddress, type EarnBalance, type EarnBalancesParams, type EarnHistoryItem, type EarnHistoryParams, type EarnHistoryType, type EarnRate, type EarnRatesParams, type EarnReward, type EarnRewardsParams, type EarnType, type EnableMarginRequest, type FiatDepositReference, type FiatWithdrawalRequest, type FiatWithdrawalResponse, type FundingHistoryParams, type FundingPayment, type FundingRateHistory, FuturesAPI, type FuturesInfo, type FuturesPosition, HEADERS, HealthAPI, type HistoricalOrderDetail, type HistoricalOrderSummary, type ISOTimestamp, type IncreaseLoanRequest, type LeverageInfo, type LeverageOption, type LimitOrderRequest, type LimitOrderRequestV2, type LinkBankAccountRequest, type LoanCreditHistoryItem, type LoanInfo, type LoanRate, LoansAPI, MarginAPI, type MarginStatus, type MarketOrderRequest, type MarketOrderRequestV2, type MarketSummary, type MarketSummaryUpdate, type ModifyOrderRequest, type ModifyOrderRequestV2, type NetworkType, type NewTrade, type OpenLoan, type OpenOrder, type OrderBook, type OrderBookEntry$1 as OrderBookEntry, type OrderBookUpdate, type OrderHistoryParams, type OrderId, type OrderProcessed, type OrderResponse, type OrderSide, type OrderStatus, type OrderStatusDetail, type OrderStatusSummary, type OrderStatusUpdate, type OrderTrade, type OrderType, type OrderTypesParams, type PaginationParams, type PairType, PayAPI, type Payment, type PaymentStatus, type PositionHistoryParams, type PostOnly, type PriceBucket, type PriceBucketsParams, type PriceQuantity, PublicAPI, RATE_LIMITS, RequestSigner, type RequestUnlockRequest, type ServerTime, type ServiceProvider, type SimpleOrderRequest, type SimpleQuoteRequest, type SimpleQuoteResponse, StakeAPI, type StakeRequest, type StopLimitOrderRequest, type StopLimitOrderRequestV2, type Subaccount, type SubaccountId, type Subscription, type SubscriptionRequest, type TimeInForce, type TimeRangeParams, type Trade, type TradeFee, type TradeHistoryParams, TradeWebSocket, TradingAPI, type Transaction, type TransactionHistoryParams, type TransactionType, type TransferRequest, type UnstakeRequest, type UpdateLeverageRequest, ValrApiError, ValrAuthenticationError, ValrClient, type ValrClientConfig, ValrConfigurationError, ValrError, ValrRateLimitError, type ValrStatus, ValrValidationError, ValrWebSocketClient, ValrWebSocketError, WS_ACCOUNT_URL_PATH, WS_BASE_URL, WS_TRADE_URL_PATH, WalletsAPI, type AccountTrade as WebSocketAccountTrade, type WebSocketClientConfig, type WebSocketMessage, type WebSocketMessageType, type WhitelistedAddress, type WithdrawalConfigInfo };