gateio-api 1.3.4 → 1.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.
Files changed (65) hide show
  1. package/README.md +66 -8
  2. package/dist/cjs/RestClient.d.ts +448 -0
  3. package/dist/cjs/RestClient.js +540 -0
  4. package/dist/cjs/RestClient.js.map +1 -1
  5. package/dist/cjs/index.d.ts +6 -0
  6. package/dist/cjs/index.js +6 -0
  7. package/dist/cjs/index.js.map +1 -1
  8. package/dist/cjs/lib/BaseRestClient.js +9 -1
  9. package/dist/cjs/lib/BaseRestClient.js.map +1 -1
  10. package/dist/cjs/lib/BaseWSClient.js +2 -1
  11. package/dist/cjs/lib/BaseWSClient.js.map +1 -1
  12. package/dist/cjs/types/request/alpha.d.ts +47 -0
  13. package/dist/cjs/types/request/alpha.js +7 -0
  14. package/dist/cjs/types/request/alpha.js.map +1 -0
  15. package/dist/cjs/types/request/crossex.d.ts +146 -0
  16. package/dist/cjs/types/request/crossex.js +7 -0
  17. package/dist/cjs/types/request/crossex.js.map +1 -0
  18. package/dist/cjs/types/request/otc.d.ts +60 -0
  19. package/dist/cjs/types/request/otc.js +7 -0
  20. package/dist/cjs/types/request/otc.js.map +1 -0
  21. package/dist/cjs/types/response/alpha.d.ts +71 -0
  22. package/dist/cjs/types/response/alpha.js +7 -0
  23. package/dist/cjs/types/response/alpha.js.map +1 -0
  24. package/dist/cjs/types/response/crossex.d.ts +325 -0
  25. package/dist/cjs/types/response/crossex.js +7 -0
  26. package/dist/cjs/types/response/crossex.js.map +1 -0
  27. package/dist/cjs/types/response/otc.d.ts +144 -0
  28. package/dist/cjs/types/response/otc.js +7 -0
  29. package/dist/cjs/types/response/otc.js.map +1 -0
  30. package/dist/cjs/types/websockets/client.d.ts +6 -0
  31. package/dist/cjs/types/websockets/client.js +0 -3
  32. package/dist/cjs/types/websockets/client.js.map +1 -1
  33. package/dist/mjs/RestClient.d.ts +448 -0
  34. package/dist/mjs/RestClient.js +540 -0
  35. package/dist/mjs/RestClient.js.map +1 -1
  36. package/dist/mjs/index.d.ts +6 -0
  37. package/dist/mjs/index.js +6 -0
  38. package/dist/mjs/index.js.map +1 -1
  39. package/dist/mjs/lib/BaseRestClient.js +9 -1
  40. package/dist/mjs/lib/BaseRestClient.js.map +1 -1
  41. package/dist/mjs/lib/BaseWSClient.js +2 -1
  42. package/dist/mjs/lib/BaseWSClient.js.map +1 -1
  43. package/dist/mjs/types/request/alpha.d.ts +47 -0
  44. package/dist/mjs/types/request/alpha.js +6 -0
  45. package/dist/mjs/types/request/alpha.js.map +1 -0
  46. package/dist/mjs/types/request/crossex.d.ts +146 -0
  47. package/dist/mjs/types/request/crossex.js +6 -0
  48. package/dist/mjs/types/request/crossex.js.map +1 -0
  49. package/dist/mjs/types/request/otc.d.ts +60 -0
  50. package/dist/mjs/types/request/otc.js +6 -0
  51. package/dist/mjs/types/request/otc.js.map +1 -0
  52. package/dist/mjs/types/response/alpha.d.ts +71 -0
  53. package/dist/mjs/types/response/alpha.js +6 -0
  54. package/dist/mjs/types/response/alpha.js.map +1 -0
  55. package/dist/mjs/types/response/crossex.d.ts +325 -0
  56. package/dist/mjs/types/response/crossex.js +6 -0
  57. package/dist/mjs/types/response/crossex.js.map +1 -0
  58. package/dist/mjs/types/response/otc.d.ts +144 -0
  59. package/dist/mjs/types/response/otc.js +6 -0
  60. package/dist/mjs/types/response/otc.js.map +1 -0
  61. package/dist/mjs/types/websockets/client.d.ts +6 -0
  62. package/dist/mjs/types/websockets/client.js +0 -3
  63. package/dist/mjs/types/websockets/client.js.map +1 -1
  64. package/llms.txt +8131 -5712
  65. package/package.json +9 -2
@@ -0,0 +1,144 @@
1
+ /**==========================================================================================================================
2
+ * OTC
3
+ * ==========================================================================================================================
4
+ */
5
+ export interface CreateOTCQuoteResp {
6
+ code: number;
7
+ message: string;
8
+ data: {
9
+ type: string;
10
+ pay_coin: string;
11
+ get_coin: string;
12
+ pay_amount: string;
13
+ get_amount: string;
14
+ rate: string;
15
+ rate_reci: string;
16
+ promotion_code: string;
17
+ side: string;
18
+ order_type: string;
19
+ quote_token: string;
20
+ validity_period?: string;
21
+ ex_rate?: string;
22
+ usdc_rate?: string;
23
+ refresh_limit?: number;
24
+ refresh_limit_msg?: string;
25
+ };
26
+ timestamp: number;
27
+ }
28
+ export interface CreateOTCFiatOrderResp {
29
+ code: number;
30
+ message: string;
31
+ timestamp: number;
32
+ }
33
+ export interface CreateOTCStablecoinOrderResp {
34
+ code: number;
35
+ message: string;
36
+ }
37
+ export interface OTCBankInfo {
38
+ id: string;
39
+ bank_account_name: string;
40
+ bank_name: string;
41
+ bank_country: string;
42
+ bank_address: string;
43
+ bank_code: string;
44
+ branch_code: string;
45
+ }
46
+ export interface GetOTCUserDefaultBankResp {
47
+ code: number;
48
+ message: string;
49
+ data: OTCBankInfo;
50
+ timestamp: number;
51
+ }
52
+ export interface MarkOTCOrderAsPaidResp {
53
+ code: number;
54
+ message: string;
55
+ timestamp: number;
56
+ }
57
+ export interface CancelOTCOrderResp {
58
+ code: number;
59
+ message: string;
60
+ timestamp: number;
61
+ }
62
+ export interface OTCFiatOrderListItem {
63
+ time: string;
64
+ timestamp: number;
65
+ order_id: string;
66
+ trade_no: string;
67
+ type: string;
68
+ status: string;
69
+ db_status: string;
70
+ fiat_currency: string;
71
+ fiat_currency_info: {
72
+ name: string;
73
+ icon: string;
74
+ };
75
+ fiat_amount: string;
76
+ crypto_currency: string;
77
+ crypto_currency_info: {
78
+ name: string;
79
+ icon: string;
80
+ };
81
+ crypto_amount: string;
82
+ rate: string;
83
+ transfer_remark: string;
84
+ gate_bank_account_iban: string;
85
+ promotion_code: string;
86
+ }
87
+ export interface GetOTCFiatOrderListResp {
88
+ code: number;
89
+ message: string;
90
+ data: {
91
+ pn: number;
92
+ ps: number;
93
+ total_pn: number;
94
+ count: number;
95
+ list: OTCFiatOrderListItem[];
96
+ };
97
+ }
98
+ export interface OTCStablecoinOrderListItem {
99
+ id: number;
100
+ trade_no: string;
101
+ pay_coin: string;
102
+ pay_amount: string;
103
+ get_coin: string;
104
+ get_amount: string;
105
+ rate: string;
106
+ rate_reci: string;
107
+ status: string;
108
+ create_timest: number;
109
+ create_time: string;
110
+ }
111
+ export interface GetOTCStablecoinOrderListResp {
112
+ code: number;
113
+ message: string;
114
+ data: {
115
+ total: number;
116
+ page_size: number;
117
+ page_number: number;
118
+ total_page: number;
119
+ list: OTCStablecoinOrderListItem[];
120
+ };
121
+ }
122
+ export interface OTCFiatOrderDetail {
123
+ order_id: string;
124
+ uid: string;
125
+ type: string;
126
+ fiat_currency: string;
127
+ fiat_amount: string;
128
+ crypto_currency: string;
129
+ crypto_amount: string;
130
+ rate: string;
131
+ transfer_remark: string;
132
+ status: string;
133
+ db_status: string;
134
+ create_time: string;
135
+ memo: string;
136
+ side: string;
137
+ promotion_code: string;
138
+ trade_no: string;
139
+ }
140
+ export interface GetOTCFiatOrderDetailResp {
141
+ message: string;
142
+ code: number;
143
+ data: OTCFiatOrderDetail;
144
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**==========================================================================================================================
3
+ * OTC
4
+ * ==========================================================================================================================
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=otc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otc.js","sourceRoot":"","sources":["../../../../src/types/response/otc.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -1,3 +1,5 @@
1
+ import type { ClientRequestArgs } from 'http';
2
+ import WebSocket from 'isomorphic-ws';
1
3
  /**
2
4
  * Event args for subscribing/unsubscribing
3
5
  */
@@ -18,6 +20,10 @@ export interface WSClientConfigurableOptions {
18
20
  reconnectTimeout?: number;
19
21
  requestOptions?: {};
20
22
  wsUrl?: string;
23
+ wsOptions?: {
24
+ protocols?: string[];
25
+ agent?: any;
26
+ } & Partial<WebSocket.ClientOptions | ClientRequestArgs>;
21
27
  /**
22
28
  * Allows you to provide a custom "signMessage" function, e.g. to use node's much faster createHmac method
23
29
  *
@@ -1,6 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * Event args for subscribing/unsubscribing
4
- */
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/types/websockets/client.ts"],"names":[],"mappings":";AAAA;;GAEG"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/types/websockets/client.ts"],"names":[],"mappings":""}
@@ -2,7 +2,9 @@ import { AxiosRequestConfig } from 'axios';
2
2
  import { BaseRestClient, RestClientType } from './lib/BaseRestClient.js';
3
3
  import { RestClientOptions } from './lib/requestUtils.js';
4
4
  import { CreateStpGroupReq } from './types/request/account.js';
5
+ import { CreateAlphaOrderReq, CreateAlphaQuoteReq, GetAlphaAccountBookReq, GetAlphaCurrenciesReq, GetAlphaOrderReq, GetAlphaOrdersReq, GetAlphaTickersReq } from './types/request/alpha.js';
5
6
  import { GetLoanCollateralRecordsReq, GetLoanOrdersReq, GetLoanRepaymentHistoryReq, SubmitLoanOrderReq, UpdateLoanCollateralReq } from './types/request/collateralLoan.js';
7
+ import { CloseCrossExPositionReq, CreateCrossExConvertOrderReq, CreateCrossExConvertQuoteReq, CreateCrossExOrderReq, CreateCrossExTransferReq, GetCrossExAccountBookReq, GetCrossExAccountsReq, GetCrossExAdlRankReq, GetCrossExCoinDiscountRateReq, GetCrossExHistoryMarginInterestsReq, GetCrossExHistoryMarginPositionsReq, GetCrossExHistoryOrdersReq, GetCrossExHistoryPositionsReq, GetCrossExHistoryTradesReq, GetCrossExInterestRateReq, GetCrossExMarginPositionLeverageReq, GetCrossExMarginPositionsReq, GetCrossExOpenOrdersReq, GetCrossExPositionLeverageReq, GetCrossExPositionsReq, GetCrossExRiskLimitsReq, GetCrossExSymbolsReq, GetCrossExTransferCoinsReq, GetCrossExTransferHistoryReq, ModifyCrossExOrderReq, SetCrossExMarginPositionLeverageReq, SetCrossExPositionLeverageReq, UpdateCrossExAccountReq } from './types/request/crossex.js';
6
8
  import { GetDeliveryAutoOrdersReq, GetDeliveryBookReq, GetDeliveryCandlesReq, GetDeliveryClosedPositionsReq, GetDeliveryLiquidationHistoryReq, GetDeliveryOrderBookReq, GetDeliveryOrdersReq, GetDeliverySettlementHistoryReq, GetDeliveryTradesReq, GetDeliveryTradingHistoryReq, SubmitDeliveryFuturesOrderReq } from './types/request/delivery.js';
7
9
  import { GetStructuredProductListReq, GetStructuredProductOrdersReq } from './types/request/earn.js';
8
10
  import { GetLendingInterestRecordsReq, GetLendingOrdersReq, GetLendingRecordsReq, SubmitLendOrRedeemReq } from './types/request/earnuni.js';
@@ -12,6 +14,7 @@ import { GetCrossMarginAccountHistoryReq, GetCrossMarginBorrowHistoryReq, GetCro
12
14
  import { GetMarginUNIInterestRecordsReq, GetMarginUNILoanRecordsReq, GetMarginUNILoansReq, GetMarginUNIMaxBorrowReq } from './types/request/marginuni.js';
13
15
  import { GetMultiLoanAdjustmentRecordsReq, GetMultiLoanOrdersReq, GetMultiLoanRepayRecordsReq, RepayMultiLoanReq, SubmitMultiLoanOrderReq, UpdateMultiLoanReq } from './types/request/multicollateralLoan.js';
14
16
  import { GetOptionsAccountChangeReq, GetOptionsCandlesReq, GetOptionsMySettlementsReq, GetOptionsOrderBookReq, GetOptionsOrdersReq, GetOptionsPersonalHistoryReq, GetOptionsSettlementHistoryReq, GetOptionsTradesReq, GetOptionsUnderlyingCandlesReq, OptionsMMPSettingsReq, SubmitOptionsOrderReq } from './types/request/options.js';
17
+ import { CancelOTCOrderReq, CreateOTCFiatOrderReq, CreateOTCQuoteReq, CreateOTCStablecoinOrderReq, GetOTCFiatOrderDetailReq, GetOTCFiatOrderListReq, GetOTCStablecoinOrderListReq, MarkOTCOrderAsPaidReq } from './types/request/otc.js';
15
18
  import { GetAgencyCommissionHistoryReq, GetAgencyTransactionHistoryReq, GetBrokerCommissionHistoryReq, GetBrokerTransactionHistoryReq, GetPartnerSubordinateListReq, PartnerTransactionReq } from './types/request/rebate.js';
16
19
  import { CancelSpotBatchOrdersReq, DeleteSpotOrderReq, GetSpotAccountBookReq, GetSpotAutoOrdersReq, GetSpotCandlesReq, GetSpotInsuranceHistoryReq, GetSpotOrderBookReq, GetSpotOrderReq, GetSpotOrdersReq, GetSpotTradesReq, GetSpotTradingHistoryReq, SubmitSpotClosePosCrossDisabledReq, SubmitSpotOrderReq, UpdateSpotBatchOrdersReq, UpdateSpotOrderReq } from './types/request/spot.js';
17
20
  import { CreateSubAccountApiKeyReq, CreateSubAccountReq, UpdateSubAccountApiKeyReq } from './types/request/subaccount.js';
@@ -19,7 +22,9 @@ import { GetUnifiedHistoryLendingRateReq, GetUnifiedInterestRecordsReq, GetUnifi
19
22
  import { GetMainSubTransfersReq, GetSavedAddressReq, GetSmallBalanceHistoryReq, GetWithdrawalDepositRecordsReq, ListPushOrdersReq, SubmitMainSubTransferReq, SubmitSubToSubTransferReq, SubmitTransferReq } from './types/request/wallet.js';
20
23
  import { SubmitWithdrawalReq } from './types/request/withdrawal.js';
21
24
  import { AccountDetail, AccountMainKey, AccountRateLimit, StpGroup, StpGroupUser } from './types/response/account.js';
25
+ import { AlphaAccount, AlphaAccountBook, AlphaCurrency, AlphaOrder, AlphaTicker, CreateAlphaOrderResp, CreateAlphaQuoteResp } from './types/response/alpha.js';
22
26
  import { LoanCollateralRatio, LoanCollateralRecord, LoanOrder, LoanRepaymentHistoryRecord } from './types/response/collateralloan.js';
27
+ import { CancelCrossExOrderResp, CloseCrossExPositionResp, CreateCrossExConvertQuoteResp, CreateCrossExOrderResp, CreateCrossExTransferResp, CrossExAccount, CrossExAccountBook, CrossExAdlRank, CrossExCoinDiscountRate, CrossExFeeRate, CrossExHistoryMarginInterest, CrossExHistoryMarginPosition, CrossExHistoryPosition, CrossExHistoryTrade, CrossExInterestRate, CrossExMarginPosition, CrossExMarginPositionLeverage, CrossExOrder, CrossExPosition, CrossExPositionLeverage, CrossExRiskLimit, CrossExSymbol, CrossExTransferCoin, CrossExTransferHistory, ModifyCrossExOrderResp, SetCrossExMarginPositionLeverageResp, SetCrossExPositionLeverageResp, UpdateCrossExAccountResp } from './types/response/crossex.js';
23
28
  import { DeliveryAccount, DeliveryBook, DeliveryCandle, DeliveryClosedPosition, DeliveryLiquidationHistoryRecord, DeliveryOrderBook, DeliverySettlementHistoryRecord, DeliveryTicker, DeliveryTrade, DeliveryTradingHistoryRecord } from './types/response/delivery.js';
24
29
  import { DualInvestmentOrder, DualInvestmentProduct, StructuredProduct, StructuredProductOrder } from './types/response/earn.js';
25
30
  import { LendingCurrency, LendingInterestRecord, LendingOrder, LendingRecord } from './types/response/earnuni.js';
@@ -29,6 +34,7 @@ import { CrossMarginAccount, CrossMarginAccountHistoryRecord, CrossMarginCurrenc
29
34
  import { LendingMarket, MarginUNIInterestRecord, MarginUNILoan, MarginUNILoanRecord, MarginUNIMaxBorrowable } from './types/response/marginuni.js';
30
35
  import { MultiLoanAdjustmentRecord, MultiLoanCurrencyQuota, MultiLoanFixedRate, MultiLoanOrder, MultiLoanRatio, MultiLoanRepayRecord, MultiLoanSupportedCurrencies, RepayMultiLoanResp, UpdateMultiLoanResp } from './types/response/multicollateralLoan.js';
31
36
  import { GetOptionsLiquidationResp, OptionsAccount, OptionsAccountChangeRecord, OptionsCandle, OptionsContract, OptionsMMPSettings, OptionsOrderBook, OptionsPositionsUnderlying, OptionsSettlementHistoryRecord, OptionsTicker, OptionsTrade, OptionsUnderlyingCandle, OptionsUserHistoryRecord, OptionsUserSettlement, SubmitOptionsOrderResp } from './types/response/options.js';
37
+ import { CancelOTCOrderResp, CreateOTCFiatOrderResp, CreateOTCQuoteResp, CreateOTCStablecoinOrderResp, GetOTCFiatOrderDetailResp, GetOTCFiatOrderListResp, GetOTCStablecoinOrderListResp, GetOTCUserDefaultBankResp, MarkOTCOrderAsPaidResp } from './types/response/otc.js';
32
38
  import { AgencyCommissionHistoryRecord, AgencyTransactionHistoryRecord, BrokerCommissionHistoryRecord, BrokerTransactionHistoryRecord, PartnerCommission, PartnerSubordinate, PartnerTransaction } from './types/response/rebate.js';
33
39
  import { DeleteSpotBatchOrdersResp, GetSpotOpenOrdersResp, SpotAccount, SpotAccountBook, SpotCandle, SpotCurrency, SpotFeeRates, SpotHistoricTradeRecord, SpotInsuranceHistory, SpotOrder, SpotOrderBook, SpotPriceTriggeredOrder, SpotTicker, SpotTrade, SubmitSpotBatchOrdersResp } from './types/response/spot.js';
34
40
  import { CreatedSubAccountAPIKey, SubAccount, SubAccountAPIKey, SubAccountMode } from './types/response/subaccount.js';
@@ -3106,4 +3112,446 @@ export declare class RestClient extends BaseRestClient {
3106
3112
  ref_uid: number;
3107
3113
  }[];
3108
3114
  }>;
3115
+ /**==========================================================================================================================
3116
+ * OTC
3117
+ * ==========================================================================================================================
3118
+ */
3119
+ /**
3120
+ * Fiat and stablecoin quote
3121
+ *
3122
+ * Create fiat and stablecoin quotes, supporting both PAY and GET directions
3123
+ *
3124
+ * @param params Quote parameters
3125
+ * @returns Promise with quote details including rate, amounts, and quote_token
3126
+ */
3127
+ createOTCQuote(params: CreateOTCQuoteReq): Promise<CreateOTCQuoteResp>;
3128
+ /**
3129
+ * Create fiat order
3130
+ *
3131
+ * Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp
3132
+ *
3133
+ * @param params Fiat order parameters
3134
+ * @returns Promise with order creation confirmation
3135
+ */
3136
+ createOTCFiatOrder(params: CreateOTCFiatOrderReq): Promise<CreateOTCFiatOrderResp>;
3137
+ /**
3138
+ * Create stablecoin order
3139
+ *
3140
+ * Create stablecoin order
3141
+ *
3142
+ * @param params Stablecoin order parameters
3143
+ * @returns Promise with order creation confirmation
3144
+ */
3145
+ createOTCStablecoinOrder(params: CreateOTCStablecoinOrderReq): Promise<CreateOTCStablecoinOrderResp>;
3146
+ /**
3147
+ * Get user's default bank account information
3148
+ *
3149
+ * Get user's default bank account information for order placement
3150
+ *
3151
+ * @returns Promise with default bank account details
3152
+ */
3153
+ getOTCUserDefaultBank(): Promise<GetOTCUserDefaultBankResp>;
3154
+ /**
3155
+ * Mark fiat order as paid
3156
+ *
3157
+ * Mark fiat order as paid
3158
+ *
3159
+ * @param params Parameters with order_id
3160
+ * @returns Promise with confirmation
3161
+ */
3162
+ markOTCOrderAsPaid(params: MarkOTCOrderAsPaidReq): Promise<MarkOTCOrderAsPaidResp>;
3163
+ /**
3164
+ * Fiat order cancellation
3165
+ *
3166
+ * Cancel fiat order
3167
+ *
3168
+ * @param params Parameters with order_id
3169
+ * @returns Promise with cancellation confirmation
3170
+ */
3171
+ cancelOTCOrder(params: CancelOTCOrderReq): Promise<CancelOTCOrderResp>;
3172
+ /**
3173
+ * Fiat order list
3174
+ *
3175
+ * Query the fiat order list with filters such as type, currency, time range, and status
3176
+ *
3177
+ * @param params Filter parameters for fiat order list
3178
+ * @returns Promise with paginated fiat order list
3179
+ */
3180
+ getOTCFiatOrderList(params?: GetOTCFiatOrderListReq): Promise<GetOTCFiatOrderListResp>;
3181
+ /**
3182
+ * Stablecoin order list
3183
+ *
3184
+ * Query stablecoin order list with filtering by currency, time range, status, etc.
3185
+ *
3186
+ * @param params Filter parameters for stablecoin order list
3187
+ * @returns Promise with paginated stablecoin order list
3188
+ */
3189
+ getOTCStablecoinOrderList(params?: GetOTCStablecoinOrderListReq): Promise<GetOTCStablecoinOrderListResp>;
3190
+ /**
3191
+ * Fiat order details
3192
+ *
3193
+ * Query fiat order details
3194
+ *
3195
+ * @param params Parameters with order_id
3196
+ * @returns Promise with fiat order details
3197
+ */
3198
+ getOTCFiatOrderDetail(params: GetOTCFiatOrderDetailReq): Promise<GetOTCFiatOrderDetailResp>;
3199
+ /**==========================================================================================================================
3200
+ * CROSSEX
3201
+ * ==========================================================================================================================
3202
+ */
3203
+ /**
3204
+ * Query Trading Pair Information
3205
+ *
3206
+ * Query trading pair information for cross-exchange trading
3207
+ *
3208
+ * @param params Optional parameters to filter symbols
3209
+ * @returns Promise with array of symbol information
3210
+ */
3211
+ getCrossExSymbols(params?: GetCrossExSymbolsReq): Promise<CrossExSymbol[]>;
3212
+ /**
3213
+ * Query Risk Limit Information
3214
+ *
3215
+ * Query risk limit information for futures/margin trading pairs
3216
+ *
3217
+ * @param params Parameters with required symbols
3218
+ * @returns Promise with array of risk limit information
3219
+ */
3220
+ getCrossExRiskLimits(params: GetCrossExRiskLimitsReq): Promise<CrossExRiskLimit[]>;
3221
+ /**
3222
+ * Query Supported Transfer Currencies
3223
+ *
3224
+ * Query supported transfer currencies for cross-exchange
3225
+ *
3226
+ * @param params Optional currency filter
3227
+ * @returns Promise with array of transfer coin information
3228
+ */
3229
+ getCrossExTransferCoins(params?: GetCrossExTransferCoinsReq): Promise<CrossExTransferCoin[]>;
3230
+ /**
3231
+ * Fund Transfer
3232
+ *
3233
+ * Transfer funds between accounts. Rate limit: 10 requests per 10 seconds
3234
+ *
3235
+ * @param params Transfer parameters
3236
+ * @returns Promise with transfer confirmation
3237
+ */
3238
+ createCrossExTransfer(params: CreateCrossExTransferReq): Promise<CreateCrossExTransferResp>;
3239
+ /**
3240
+ * Query Fund Transfer History
3241
+ *
3242
+ * Query fund transfer history. Rate Limit: 200 requests per 10 seconds
3243
+ *
3244
+ * @param params Optional filter parameters
3245
+ * @returns Promise with array of transfer history records
3246
+ */
3247
+ getCrossExTransferHistory(params?: GetCrossExTransferHistoryReq): Promise<CrossExTransferHistory[]>;
3248
+ /**
3249
+ * Create an order
3250
+ *
3251
+ * Create an order for cross-exchange trading. Rate Limit: 100 requests per 10 seconds
3252
+ *
3253
+ * @param params Order parameters
3254
+ * @returns Promise with order creation response
3255
+ */
3256
+ createCrossExOrder(params: CreateCrossExOrderReq): Promise<CreateCrossExOrderResp>;
3257
+ /**
3258
+ * Cancel Order
3259
+ *
3260
+ * Cancel an order. Rate Limit: 100 requests per 10 seconds
3261
+ *
3262
+ * @param order_id Order ID or Text for Cancel Order
3263
+ * @returns Promise with cancellation confirmation
3264
+ */
3265
+ cancelCrossExOrder(order_id: string): Promise<CancelCrossExOrderResp>;
3266
+ /**
3267
+ * Modify Order
3268
+ *
3269
+ * Modify an existing order. Rate Limit: 100 requests per 10 seconds
3270
+ *
3271
+ * @param order_id Order ID or Text for Modify Order
3272
+ * @param params Modification parameters
3273
+ * @returns Promise with modification confirmation
3274
+ */
3275
+ modifyCrossExOrder(order_id: string, params: ModifyCrossExOrderReq): Promise<ModifyCrossExOrderResp>;
3276
+ /**
3277
+ * Query order details
3278
+ *
3279
+ * Query order details by order ID or custom text. Rate Limit: 200 requests per 10 seconds
3280
+ *
3281
+ * @param order_id Order ID or custom text
3282
+ * @returns Promise with order details
3283
+ */
3284
+ getCrossExOrder(order_id: string): Promise<CrossExOrder>;
3285
+ /**
3286
+ * Flash Swap Inquiry
3287
+ *
3288
+ * Create a flash swap quote. Rate Limit: 100 requests per day
3289
+ *
3290
+ * @param params Quote parameters
3291
+ * @returns Promise with quote details
3292
+ */
3293
+ createCrossExConvertQuote(params: CreateCrossExConvertQuoteReq): Promise<CreateCrossExConvertQuoteResp>;
3294
+ /**
3295
+ * Flash Swap Transaction
3296
+ *
3297
+ * Execute a flash swap transaction. Rate limit: 10 requests per 10 seconds
3298
+ *
3299
+ * @param params Parameters with quote_id
3300
+ * @returns Promise with transaction confirmation
3301
+ */
3302
+ createCrossExConvertOrder(params: CreateCrossExConvertOrderReq): Promise<{}>;
3303
+ /**
3304
+ * Modify Account Contract Position Mode and Account Mode
3305
+ *
3306
+ * Modify account settings. Rate Limit: 100 requests per 60 seconds
3307
+ *
3308
+ * @param params Account modification parameters
3309
+ * @returns Promise with update confirmation
3310
+ */
3311
+ updateCrossExAccount(params: UpdateCrossExAccountReq): Promise<UpdateCrossExAccountResp>;
3312
+ /**
3313
+ * Query Account Assets
3314
+ *
3315
+ * Query account assets and balances. Rate Limit: 200 requests per 10 seconds
3316
+ *
3317
+ * @param params Optional exchange_type filter
3318
+ * @returns Promise with account information
3319
+ */
3320
+ getCrossExAccounts(params?: GetCrossExAccountsReq): Promise<CrossExAccount>;
3321
+ /**
3322
+ * Modify Contract Trading Pair Leverage Multiplier
3323
+ *
3324
+ * Modify leverage for contract trading pair. Rate Limit: 100 requests per 10 seconds
3325
+ *
3326
+ * @param params Leverage modification parameters
3327
+ * @returns Promise with leverage update confirmation
3328
+ */
3329
+ setCrossExPositionLeverage(params: SetCrossExPositionLeverageReq): Promise<SetCrossExPositionLeverageResp>;
3330
+ /**
3331
+ * Query Contract Trading Pair Leverage Multiplier
3332
+ *
3333
+ * Query leverage for contract trading pairs. Rate Limit: 200 requests per 10 seconds
3334
+ *
3335
+ * @param params Optional symbols filter
3336
+ * @returns Promise with array of leverage information
3337
+ */
3338
+ getCrossExPositionLeverage(params?: GetCrossExPositionLeverageReq): Promise<CrossExPositionLeverage[]>;
3339
+ /**
3340
+ * Modify Leveraged Trading Pair Leverage Multiplier
3341
+ *
3342
+ * Modify leverage for margin trading pair. Rate Limit: 100 requests per 10 seconds
3343
+ *
3344
+ * @param params Leverage modification parameters
3345
+ * @returns Promise with leverage update confirmation
3346
+ */
3347
+ setCrossExMarginPositionLeverage(params: SetCrossExMarginPositionLeverageReq): Promise<SetCrossExMarginPositionLeverageResp>;
3348
+ /**
3349
+ * Query Leveraged Trading Pair Leverage Multiplier
3350
+ *
3351
+ * Query leverage for margin trading pairs. Rate Limit: 200 requests per 10 seconds
3352
+ *
3353
+ * @param params Optional symbols filter
3354
+ * @returns Promise with array of leverage information
3355
+ */
3356
+ getCrossExMarginPositionLeverage(params?: GetCrossExMarginPositionLeverageReq): Promise<CrossExMarginPositionLeverage[]>;
3357
+ /**
3358
+ * Full Close Position
3359
+ *
3360
+ * Fully close a position. Rate Limit: 100 requests per day
3361
+ *
3362
+ * @param params Position close parameters
3363
+ * @returns Promise with close position confirmation
3364
+ */
3365
+ closeCrossExPosition(params: CloseCrossExPositionReq): Promise<CloseCrossExPositionResp>;
3366
+ /**
3367
+ * Query margin asset interest rates
3368
+ *
3369
+ * Query interest rates for margin assets. Rate Limit: 200 requests per 10 seconds
3370
+ *
3371
+ * @param params Optional filter parameters
3372
+ * @returns Promise with array of interest rates
3373
+ */
3374
+ getCrossExInterestRate(params?: GetCrossExInterestRateReq): Promise<CrossExInterestRate[]>;
3375
+ /**
3376
+ * Query User Fee Rates
3377
+ *
3378
+ * Query user fee rates. Rate Limit: 200 requests per 10 seconds
3379
+ *
3380
+ * @returns Promise with fee rate information
3381
+ */
3382
+ getCrossExFeeRate(): Promise<CrossExFeeRate>;
3383
+ /**
3384
+ * Query Contract Positions
3385
+ *
3386
+ * Query contract positions. Rate Limit: 200 requests per 10 seconds
3387
+ *
3388
+ * @param params Optional filter parameters
3389
+ * @returns Promise with array of positions
3390
+ */
3391
+ getCrossExPositions(params?: GetCrossExPositionsReq): Promise<CrossExPosition[]>;
3392
+ /**
3393
+ * Query Leveraged Positions
3394
+ *
3395
+ * Query margin/leveraged positions. Rate Limit: 200 requests per 10 seconds
3396
+ *
3397
+ * @param params Optional filter parameters
3398
+ * @returns Promise with array of margin positions
3399
+ */
3400
+ getCrossExMarginPositions(params?: GetCrossExMarginPositionsReq): Promise<CrossExMarginPosition[]>;
3401
+ /**
3402
+ * Query ADL Position Reduction Ranking
3403
+ *
3404
+ * Query ADL position reduction ranking. Rate Limit: 200 requests per 10 seconds
3405
+ *
3406
+ * @param params Parameters with required symbol
3407
+ * @returns Promise with array of ADL rankings
3408
+ */
3409
+ getCrossExAdlRank(params: GetCrossExAdlRankReq): Promise<CrossExAdlRank[]>;
3410
+ /**
3411
+ * Query All Current Open Orders
3412
+ *
3413
+ * Query all current open orders. Rate Limit: 200 requests per 10 seconds
3414
+ *
3415
+ * @param params Optional filter parameters
3416
+ * @returns Promise with array of open orders
3417
+ */
3418
+ getCrossExOpenOrders(params?: GetCrossExOpenOrdersReq): Promise<CrossExOrder[]>;
3419
+ /**
3420
+ * Query order history
3421
+ *
3422
+ * Query historical orders. Rate Limit: 200 requests per 10 seconds
3423
+ *
3424
+ * @param params Optional filter parameters
3425
+ * @returns Promise with array of historical orders
3426
+ */
3427
+ getCrossExHistoryOrders(params?: GetCrossExHistoryOrdersReq): Promise<CrossExOrder[]>;
3428
+ /**
3429
+ * Query Contract Position History
3430
+ *
3431
+ * Query contract position history. Rate Limit: 200 requests per 10 seconds
3432
+ *
3433
+ * @param params Optional filter parameters
3434
+ * @returns Promise with array of historical positions
3435
+ */
3436
+ getCrossExHistoryPositions(params?: GetCrossExHistoryPositionsReq): Promise<CrossExHistoryPosition[]>;
3437
+ /**
3438
+ * Query Leveraged Position History
3439
+ *
3440
+ * Query margin position history. Rate Limit: 200 requests per 10 seconds
3441
+ *
3442
+ * @param params Optional filter parameters
3443
+ * @returns Promise with array of historical margin positions
3444
+ */
3445
+ getCrossExHistoryMarginPositions(params?: GetCrossExHistoryMarginPositionsReq): Promise<CrossExHistoryMarginPosition[]>;
3446
+ /**
3447
+ * Query Leveraged Interest Deduction History
3448
+ *
3449
+ * Query margin interest deduction history. Rate Limit: 200 requests per 10 seconds
3450
+ *
3451
+ * @param params Optional filter parameters
3452
+ * @returns Promise with array of interest deduction records
3453
+ */
3454
+ getCrossExHistoryMarginInterests(params?: GetCrossExHistoryMarginInterestsReq): Promise<CrossExHistoryMarginInterest[]>;
3455
+ /**
3456
+ * Query filled history
3457
+ *
3458
+ * Query trade execution history. Rate Limit: 200 requests per 10 seconds
3459
+ *
3460
+ * @param params Optional filter parameters
3461
+ * @returns Promise with array of trade records
3462
+ */
3463
+ getCrossExHistoryTrades(params?: GetCrossExHistoryTradesReq): Promise<CrossExHistoryTrade[]>;
3464
+ /**
3465
+ * Query Account Asset Change History
3466
+ *
3467
+ * Query account balance change history. Rate Limit: 200 requests per 10 seconds
3468
+ *
3469
+ * @param params Optional filter parameters
3470
+ * @returns Promise with array of account book records
3471
+ */
3472
+ getCrossExAccountBook(params?: GetCrossExAccountBookReq): Promise<CrossExAccountBook[]>;
3473
+ /**
3474
+ * Query currency discount rate
3475
+ *
3476
+ * Query currency discount rate (for margin currency in isolated exchange mode). Rate Limit: 200 requests per 10 seconds
3477
+ *
3478
+ * @param params Optional filter parameters
3479
+ * @returns Promise with array of coin discount rates
3480
+ */
3481
+ getCrossExCoinDiscountRate(params?: GetCrossExCoinDiscountRateReq): Promise<CrossExCoinDiscountRate[]>;
3482
+ /**==========================================================================================================================
3483
+ * ALPHA
3484
+ * ==========================================================================================================================
3485
+ */
3486
+ /**
3487
+ * Query position assets
3488
+ *
3489
+ * Query alpha account position assets
3490
+ *
3491
+ * @returns Promise with array of account balances
3492
+ */
3493
+ getAlphaAccounts(): Promise<AlphaAccount[]>;
3494
+ /**
3495
+ * Query asset transactions
3496
+ *
3497
+ * Query alpha account transaction history
3498
+ *
3499
+ * @param params Parameters with required from timestamp
3500
+ * @returns Promise with array of transaction records
3501
+ */
3502
+ getAlphaAccountBook(params: GetAlphaAccountBookReq): Promise<AlphaAccountBook[]>;
3503
+ /**
3504
+ * Alpha Quote API
3505
+ *
3506
+ * Get a quote for alpha trading. Quote is valid for 1 minute. Rate-limited at 10 requests per second per user.
3507
+ *
3508
+ * @param params Quote parameters
3509
+ * @returns Promise with quote details
3510
+ */
3511
+ createAlphaQuote(params: CreateAlphaQuoteReq): Promise<CreateAlphaQuoteResp>;
3512
+ /**
3513
+ * Alpha Order API
3514
+ *
3515
+ * Create an alpha order. Rate-limited at 5 requests per second per user.
3516
+ *
3517
+ * @param params Order parameters including quote_id
3518
+ * @returns Promise with order details
3519
+ */
3520
+ createAlphaOrder(params: CreateAlphaOrderReq): Promise<CreateAlphaOrderResp>;
3521
+ /**
3522
+ * Alpha Order List API
3523
+ *
3524
+ * Query alpha order list with filters
3525
+ *
3526
+ * @param params Filter parameters
3527
+ * @returns Promise with array of orders
3528
+ */
3529
+ getAlphaOrders(params: GetAlphaOrdersReq): Promise<AlphaOrder[]>;
3530
+ /**
3531
+ * Alpha Single Order Query API
3532
+ *
3533
+ * Query a single alpha order by order ID
3534
+ *
3535
+ * @param params Parameters with order_id
3536
+ * @returns Promise with order details
3537
+ */
3538
+ getAlphaOrder(params: GetAlphaOrderReq): Promise<AlphaOrder>;
3539
+ /**
3540
+ * Query currency information
3541
+ *
3542
+ * Query alpha currency information. When currency is provided, returns specific currency info; otherwise returns paginated list.
3543
+ *
3544
+ * @param params Optional filter parameters
3545
+ * @returns Promise with array of currency information
3546
+ */
3547
+ getAlphaCurrencies(params?: GetAlphaCurrenciesReq): Promise<AlphaCurrency[]>;
3548
+ /**
3549
+ * Query currency ticker
3550
+ *
3551
+ * Query alpha currency ticker. When currency is provided, returns specific ticker; otherwise returns paginated list.
3552
+ *
3553
+ * @param params Optional filter parameters
3554
+ * @returns Promise with array of ticker information
3555
+ */
3556
+ getAlphaTickers(params?: GetAlphaTickersReq): Promise<AlphaTicker[]>;
3109
3557
  }