@yuants/vendor-gate 0.4.0 → 0.4.2

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 (120) hide show
  1. package/dist/api/http-client.js +89 -0
  2. package/dist/api/http-client.js.map +1 -0
  3. package/dist/api/private-api.js +108 -0
  4. package/dist/api/private-api.js.map +1 -0
  5. package/dist/api/public-api.js +37 -0
  6. package/dist/api/public-api.js.map +1 -0
  7. package/dist/api/rate-limiter.js +60 -0
  8. package/dist/api/rate-limiter.js.map +1 -0
  9. package/dist/index.js +7 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/services/account-actions-with-credential.js +37 -0
  12. package/dist/services/account-actions-with-credential.js.map +1 -0
  13. package/dist/services/accounts/future.js +56 -0
  14. package/dist/services/accounts/future.js.map +1 -0
  15. package/dist/services/accounts/profile.js +25 -0
  16. package/dist/services/accounts/profile.js.map +1 -0
  17. package/dist/services/accounts/spot.js +19 -0
  18. package/dist/services/accounts/spot.js.map +1 -0
  19. package/dist/services/accounts/unified.js +50 -0
  20. package/dist/services/accounts/unified.js.map +1 -0
  21. package/dist/services/default-credential.js +15 -0
  22. package/dist/services/default-credential.js.map +1 -0
  23. package/dist/services/legacy.js +53 -0
  24. package/dist/services/legacy.js.map +1 -0
  25. package/dist/services/markets/interest-rate.js +30 -0
  26. package/dist/services/markets/interest-rate.js.map +1 -0
  27. package/dist/services/markets/product.js +38 -0
  28. package/dist/services/markets/product.js.map +1 -0
  29. package/dist/services/order-actions-with-credential.js +18 -0
  30. package/dist/services/order-actions-with-credential.js.map +1 -0
  31. package/dist/services/orders/cancelOrder.js +8 -0
  32. package/dist/services/orders/cancelOrder.js.map +1 -0
  33. package/dist/services/orders/listOrders.js +31 -0
  34. package/dist/services/orders/listOrders.js.map +1 -0
  35. package/dist/services/orders/submitOrder.js +50 -0
  36. package/dist/services/orders/submitOrder.js.map +1 -0
  37. package/dist/services/transfer.js +107 -0
  38. package/dist/services/transfer.js.map +1 -0
  39. package/dist/vendor-gate.d.ts +1 -0
  40. package/lib/api/http-client.d.ts +9 -0
  41. package/lib/api/http-client.d.ts.map +1 -0
  42. package/lib/api/http-client.js +97 -0
  43. package/lib/api/http-client.js.map +1 -0
  44. package/lib/api/private-api.d.ts +343 -0
  45. package/lib/api/private-api.d.ts.map +1 -0
  46. package/lib/api/private-api.js +126 -0
  47. package/lib/api/private-api.js.map +1 -0
  48. package/lib/api/public-api.d.ts +149 -0
  49. package/lib/api/public-api.d.ts.map +1 -0
  50. package/lib/api/public-api.js +45 -0
  51. package/lib/api/public-api.js.map +1 -0
  52. package/lib/api/rate-limiter.d.ts +8 -0
  53. package/lib/api/rate-limiter.d.ts.map +1 -0
  54. package/lib/api/rate-limiter.js +64 -0
  55. package/lib/api/rate-limiter.js.map +1 -0
  56. package/lib/index.d.ts +7 -0
  57. package/lib/index.d.ts.map +1 -0
  58. package/lib/index.js +9 -0
  59. package/lib/index.js.map +1 -0
  60. package/lib/services/account-actions-with-credential.d.ts +2 -0
  61. package/lib/services/account-actions-with-credential.d.ts.map +1 -0
  62. package/lib/services/account-actions-with-credential.js +39 -0
  63. package/lib/services/account-actions-with-credential.js.map +1 -0
  64. package/lib/services/accounts/future.d.ts +13 -0
  65. package/lib/services/accounts/future.d.ts.map +1 -0
  66. package/lib/services/accounts/future.js +61 -0
  67. package/lib/services/accounts/future.js.map +1 -0
  68. package/lib/services/accounts/profile.d.ts +10 -0
  69. package/lib/services/accounts/profile.d.ts.map +1 -0
  70. package/lib/services/accounts/profile.js +29 -0
  71. package/lib/services/accounts/profile.js.map +1 -0
  72. package/lib/services/accounts/spot.d.ts +11 -0
  73. package/lib/services/accounts/spot.d.ts.map +1 -0
  74. package/lib/services/accounts/spot.js +23 -0
  75. package/lib/services/accounts/spot.js.map +1 -0
  76. package/lib/services/accounts/unified.d.ts +12 -0
  77. package/lib/services/accounts/unified.d.ts.map +1 -0
  78. package/lib/services/accounts/unified.js +54 -0
  79. package/lib/services/accounts/unified.js.map +1 -0
  80. package/lib/services/default-credential.d.ts +3 -0
  81. package/lib/services/default-credential.d.ts.map +1 -0
  82. package/lib/services/default-credential.js +19 -0
  83. package/lib/services/default-credential.js.map +1 -0
  84. package/lib/services/legacy.d.ts +2 -0
  85. package/lib/services/legacy.d.ts.map +1 -0
  86. package/lib/services/legacy.js +55 -0
  87. package/lib/services/legacy.js.map +1 -0
  88. package/lib/services/markets/interest-rate.d.ts +2 -0
  89. package/lib/services/markets/interest-rate.d.ts.map +1 -0
  90. package/lib/services/markets/interest-rate.js +32 -0
  91. package/lib/services/markets/interest-rate.js.map +1 -0
  92. package/lib/services/markets/product.d.ts +3 -0
  93. package/lib/services/markets/product.d.ts.map +1 -0
  94. package/lib/services/markets/product.js +41 -0
  95. package/lib/services/markets/product.js.map +1 -0
  96. package/lib/services/order-actions-with-credential.d.ts +2 -0
  97. package/lib/services/order-actions-with-credential.d.ts.map +1 -0
  98. package/lib/services/order-actions-with-credential.js +20 -0
  99. package/lib/services/order-actions-with-credential.js.map +1 -0
  100. package/lib/services/orders/cancelOrder.d.ts +4 -0
  101. package/lib/services/orders/cancelOrder.d.ts.map +1 -0
  102. package/lib/services/orders/cancelOrder.js +12 -0
  103. package/lib/services/orders/cancelOrder.js.map +1 -0
  104. package/lib/services/orders/listOrders.d.ts +4 -0
  105. package/lib/services/orders/listOrders.d.ts.map +1 -0
  106. package/lib/services/orders/listOrders.js +35 -0
  107. package/lib/services/orders/listOrders.js.map +1 -0
  108. package/lib/services/orders/submitOrder.d.ts +4 -0
  109. package/lib/services/orders/submitOrder.d.ts.map +1 -0
  110. package/lib/services/orders/submitOrder.js +54 -0
  111. package/lib/services/orders/submitOrder.js.map +1 -0
  112. package/lib/services/transfer.d.ts +2 -0
  113. package/lib/services/transfer.d.ts.map +1 -0
  114. package/lib/services/transfer.js +109 -0
  115. package/lib/services/transfer.js.map +1 -0
  116. package/lib/tsdoc-metadata.json +11 -0
  117. package/package.json +5 -9
  118. package/temp/package-deps.json +46 -0
  119. package/temp/vendor-gate.api.json +177 -0
  120. package/temp/vendor-gate.api.md +9 -0
@@ -0,0 +1,343 @@
1
+ export declare type ICredential = {
2
+ access_key: string;
3
+ secret_key: string;
4
+ };
5
+ /**
6
+ * 获取用户账户信息
7
+ *
8
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%B4%A6%E6%88%B7%E4%BF%A1%E6%81%AF
9
+ */
10
+ export declare const getAccountDetail: (credential: ICredential) => Promise<{
11
+ user_id: number;
12
+ ip_whitelist: string[];
13
+ currency_pairs: string[];
14
+ key: {
15
+ mode: number;
16
+ };
17
+ tier: number;
18
+ }>;
19
+ export declare const getUnifiedAccounts: (credential: ICredential, params?: {
20
+ currency?: string;
21
+ }) => Promise<{
22
+ user_id: string;
23
+ refresh_time: number;
24
+ locket: boolean;
25
+ balances: Record<string, {
26
+ available: string;
27
+ freeze: string;
28
+ borrowed: string;
29
+ negative_liab: string;
30
+ futures_pos_liab: string;
31
+ equity: string;
32
+ total_freeze: string;
33
+ total_liab: string;
34
+ spot_in_use: string;
35
+ }>;
36
+ total: string;
37
+ borrowed: string;
38
+ total_initial_margin: string;
39
+ total_margin_balance: string;
40
+ total_maintenance_margin: string;
41
+ total_initial_margin_rate: string;
42
+ total_maintenance_margin_rate: string;
43
+ total_avail_margin: string;
44
+ unified_account_total: string;
45
+ unified_account_total_liab: string;
46
+ unified_account_total_equity: string;
47
+ leverage: string;
48
+ spot_order_loss: string;
49
+ spot_hedge: boolean;
50
+ }>;
51
+ /**
52
+ * 获取用户仓位列表
53
+ *
54
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E4%BB%93%E4%BD%8D%E5%88%97%E8%A1%A8
55
+ */
56
+ export declare const getFuturePositions: (credential: ICredential, quote_currency: string, params?: {
57
+ holding?: boolean;
58
+ limit?: number;
59
+ offset?: number;
60
+ }) => Promise<{
61
+ user: number;
62
+ contract: string;
63
+ size: number;
64
+ leverage: string;
65
+ risk_limit: string;
66
+ leverage_max: string;
67
+ maintenance_rate: string;
68
+ value: string;
69
+ margin: string;
70
+ entry_price: string;
71
+ mark_price: string;
72
+ unrealised_pnl: string;
73
+ realised_pnl: string;
74
+ mode: string;
75
+ }[]>;
76
+ /**
77
+ * 查询合约订单列表
78
+ *
79
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E5%90%88%E7%BA%A6%E8%AE%A2%E5%8D%95%E5%88%97%E8%A1%A8
80
+ */
81
+ export declare const getFuturesOrders: (credential: ICredential, settle: string, params: {
82
+ contract?: string;
83
+ status: string;
84
+ limit?: number;
85
+ offset?: number;
86
+ last_id?: number;
87
+ }) => Promise<{
88
+ id: string;
89
+ contract: string;
90
+ create_time: number;
91
+ size: number;
92
+ price: string;
93
+ is_close: boolean;
94
+ fill_price: string;
95
+ left?: number;
96
+ status?: string;
97
+ text: string;
98
+ }[]>;
99
+ /**
100
+ * 获取合约账号
101
+ *
102
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%90%88%E7%BA%A6%E8%B4%A6%E5%8F%B7
103
+ */
104
+ export declare const getFuturesAccounts: (credential: ICredential, settle: string) => Promise<{
105
+ user: number;
106
+ currency: string;
107
+ total: string;
108
+ unrealised_pnl: string;
109
+ position_margin: string;
110
+ order_margin: string;
111
+ available: string;
112
+ point: string;
113
+ bonus: string;
114
+ in_dual_mode: boolean;
115
+ enable_evolved_classic: boolean;
116
+ history: {
117
+ dnw: string;
118
+ pnl: string;
119
+ fee: string;
120
+ refr: string;
121
+ fund: string;
122
+ point_dnw: string;
123
+ point_fee: string;
124
+ point_refr: string;
125
+ bonus_dnw: string;
126
+ bonus_offset: string;
127
+ };
128
+ }>;
129
+ /**
130
+ * 合约交易下单
131
+ *
132
+ * 下单时指定的是合约张数 size ,而非币的数量,每一张合约对应的币的数量是合约详情接口里返回的 quanto_multiplier
133
+ *
134
+ * 0 成交的订单在撤单 10 分钟之后无法再获取到,会提到订单不存在
135
+ *
136
+ * 设置 reduce_only 为 true 可以防止在减仓的时候穿仓
137
+ *
138
+ * 单仓模式下,如果需要平仓,需要设置 size 为 0 ,close 为 true
139
+ *
140
+ * 双仓模式下,平仓需要使用 auto_size 来设置平仓方向,并同时设置 reduce_only 为 true,size 为 0
141
+ *
142
+ * 设置 stp_act 决定使用限制用户自成交的策略,详细用法参考body参数stp_act
143
+ *
144
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E5%90%88%E7%BA%A6%E4%BA%A4%E6%98%93%E4%B8%8B%E5%8D%95
145
+ */
146
+ export declare const postFutureOrders: (credential: ICredential, settle: string, params: {
147
+ contract: string;
148
+ size: number;
149
+ iceberg?: number;
150
+ price?: string;
151
+ close?: boolean;
152
+ reduce_only?: boolean;
153
+ tif?: string;
154
+ text?: string;
155
+ auto_size?: string;
156
+ stp_act?: string;
157
+ }) => Promise<{
158
+ label?: string;
159
+ message?: string;
160
+ detail?: string;
161
+ id: number;
162
+ user: number;
163
+ contract: string;
164
+ create_time: number;
165
+ size: number;
166
+ iceberg: number;
167
+ left: number;
168
+ price: string;
169
+ fill_price: string;
170
+ mkfr: string;
171
+ tkfr: string;
172
+ tif: string;
173
+ refu: number;
174
+ is_reduce_only: boolean;
175
+ is_close: boolean;
176
+ is_liq: boolean;
177
+ text: string;
178
+ status: string;
179
+ finish_time: number;
180
+ finish_as: string;
181
+ stp_id: number;
182
+ stp_act: string;
183
+ amend_text: string;
184
+ }>;
185
+ /**
186
+ * 撤销单个订单
187
+ *
188
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%92%A4%E9%94%80%E5%8D%95%E4%B8%AA%E8%AE%A2%E5%8D%95-2
189
+ */
190
+ export declare const deleteFutureOrders: (credential: ICredential, settle: string, order_id: string) => Promise<{}>;
191
+ /**
192
+ * 提现
193
+ *
194
+ * POST /withdrawals
195
+ *
196
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%8F%90%E7%8E%B0
197
+ */
198
+ export declare const postWithdrawals: (credential: ICredential, params: {
199
+ withdraw_order_id?: string;
200
+ amount: string;
201
+ currency: string;
202
+ address?: string;
203
+ memo?: string;
204
+ chain: string;
205
+ }) => Promise<{
206
+ id: string;
207
+ txid: string;
208
+ withdraw_order_id: string;
209
+ timestamp: number;
210
+ amount: string;
211
+ currency: string;
212
+ address: string;
213
+ memo: string;
214
+ status: string;
215
+ chain: string;
216
+ }>;
217
+ /**
218
+ * 获取币种充值地址
219
+ *
220
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%B8%81%E7%A7%8D%E5%85%85%E5%80%BC%E5%9C%B0%E5%9D%80
221
+ */
222
+ export declare const getDepositAddress: (credential: ICredential, params: {
223
+ currency: string;
224
+ }) => Promise<{
225
+ currency: string;
226
+ address: string;
227
+ multichain_addresses: {
228
+ chain: string;
229
+ address: string;
230
+ payment_id: string;
231
+ payment_name: string;
232
+ obtain_failed: boolean;
233
+ }[];
234
+ }>;
235
+ /**
236
+ * 创建新的子账户
237
+ *
238
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E5%88%9B%E5%BB%BA%E6%96%B0%E7%9A%84%E5%AD%90%E8%B4%A6%E6%88%B7
239
+ */
240
+ export declare const getSubAccountList: (credential: ICredential, params?: {
241
+ type?: string;
242
+ }) => Promise<{
243
+ remark: string;
244
+ login_name: string;
245
+ password: string;
246
+ email: string;
247
+ state: number;
248
+ type: number;
249
+ user_id: number;
250
+ create_time: number;
251
+ }[]>;
252
+ /**
253
+ * 获取充值记录
254
+ *
255
+ * 记录查询时间范围不允许超过 30 天
256
+ *
257
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%85%85%E5%80%BC%E8%AE%B0%E5%BD%95
258
+ */
259
+ export declare const getDepositHistory: (credential: ICredential, params?: {
260
+ currency?: string;
261
+ from?: number;
262
+ to?: number;
263
+ limit?: number;
264
+ offset?: number;
265
+ }) => Promise<{
266
+ id: string;
267
+ txid: string;
268
+ withdraw_order_id: string;
269
+ timestamp: number;
270
+ amount: string;
271
+ currency: string;
272
+ address: string;
273
+ memo: string;
274
+ status: string;
275
+ chain: string;
276
+ }[]>;
277
+ /**
278
+ * 获取提现记录
279
+ *
280
+ * 记录查询时间范围不允许超过 30 天
281
+ *
282
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%B8%81%E7%A7%8D%E5%85%85%E5%80%BC%E5%9C%B0%E5%9D%80
283
+ */
284
+ export declare const getWithdrawalHistory: (credential: ICredential, params?: {
285
+ currency?: string;
286
+ from?: number;
287
+ to?: number;
288
+ limit?: number;
289
+ offset?: number;
290
+ }) => Promise<{
291
+ id: string;
292
+ txid: string;
293
+ withdraw_order_id: string;
294
+ timestamp: number;
295
+ amount: string;
296
+ currency: string;
297
+ address: string;
298
+ memo: string;
299
+ status: string;
300
+ chain: string;
301
+ }[]>;
302
+ /**
303
+ * 获取现货交易账户列表
304
+ *
305
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%8E%B0%E8%B4%A7%E4%BA%A4%E6%98%93%E8%B4%A6%E6%88%B7%E5%88%97%E8%A1%A8
306
+ */
307
+ export declare const getSpotAccounts: (credential: ICredential, params?: {
308
+ currency?: string;
309
+ }) => Promise<{
310
+ currency: string;
311
+ available: string;
312
+ locked: string;
313
+ update_id: string;
314
+ }[]>;
315
+ /**
316
+ * 交易账户互转
317
+ *
318
+ * POST /wallet/transfers
319
+ *
320
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E4%BA%A4%E6%98%93%E8%B4%A6%E6%88%B7%E4%BA%92%E8%BD%AC
321
+ */
322
+ export declare const postWalletTransfer: (credential: ICredential, params: {
323
+ currency: string;
324
+ from: string;
325
+ to: string;
326
+ amount: string;
327
+ currency_pair?: string;
328
+ settle?: string;
329
+ }) => Promise<{
330
+ tx_id: string;
331
+ }>;
332
+ /**
333
+ * 获取统一账户最多可转出
334
+ *
335
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E7%BB%9F%E4%B8%80%E8%B4%A6%E6%88%B7%E6%9C%80%E5%A4%9A%E5%8F%AF%E8%BD%AC%E5%87%BA
336
+ */
337
+ export declare const getUnifiedTransferable: (credential: ICredential, params: {
338
+ currency: string;
339
+ }) => Promise<{
340
+ currency: string;
341
+ amount: string;
342
+ }>;
343
+ //# sourceMappingURL=private-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private-api.d.ts","sourceRoot":"","sources":["../../src/api/private-api.ts"],"names":[],"mappings":"AAGA,oBAAY,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AASF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,eACf,WAAW,KACtB,QAAQ;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,GAAG,EAAE;QACH,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;CACd,CAA6D,CAAC;AAE/D,eAAO,MAAM,kBAAkB,eACjB,WAAW,WACd;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAC7B,QAAQ;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OACR,MAAM,EACN;QACE,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,gBAAgB,EAAE,MAAM,CAAC;QACzB,MAAM,EAAE,MAAM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S,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,EAAE,CACoE,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,eAAe,eACd,WAAW,WACd;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,KACA,QACD;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,EAAE,CAC+D,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,eACjB,WAAW,UACf;IACN,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,KACA,QAAQ;IACT,KAAK,EAAE,MAAM,CAAC;CACf,CAAwE,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,eACrB,WAAW,UACf;IACN,QAAQ,EAAE,MAAM,CAAC;CAClB,KACA,QAAQ;IACT,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAA2E,CAAC"}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUnifiedTransferable = exports.postWalletTransfer = exports.getSpotAccounts = exports.getWithdrawalHistory = exports.getDepositHistory = exports.getSubAccountList = exports.getDepositAddress = exports.postWithdrawals = exports.deleteFutureOrders = exports.postFutureOrders = exports.getFuturesAccounts = exports.getFuturesOrders = exports.getFuturePositions = exports.getUnifiedAccounts = exports.getAccountDetail = void 0;
4
+ const http_client_1 = require("./http-client");
5
+ const callPrivate = (credential, method, path, params) => (0, http_client_1.requestPrivate)(credential, method, path, params);
6
+ /**
7
+ * 获取用户账户信息
8
+ *
9
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%B4%A6%E6%88%B7%E4%BF%A1%E6%81%AF
10
+ */
11
+ const getAccountDetail = (credential) => callPrivate(credential, 'GET', '/api/v4/account/detail');
12
+ exports.getAccountDetail = getAccountDetail;
13
+ const getUnifiedAccounts = (credential, params) => callPrivate(credential, 'GET', '/api/v4/unified/accounts', params);
14
+ exports.getUnifiedAccounts = getUnifiedAccounts;
15
+ /**
16
+ * 获取用户仓位列表
17
+ *
18
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E4%BB%93%E4%BD%8D%E5%88%97%E8%A1%A8
19
+ */
20
+ const getFuturePositions = (credential, quote_currency, params) => callPrivate(credential, 'GET', `/api/v4/futures/${quote_currency}/positions`, params);
21
+ exports.getFuturePositions = getFuturePositions;
22
+ /**
23
+ * 查询合约订单列表
24
+ *
25
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E5%90%88%E7%BA%A6%E8%AE%A2%E5%8D%95%E5%88%97%E8%A1%A8
26
+ */
27
+ const getFuturesOrders = (credential, settle, params) => callPrivate(credential, 'GET', `/api/v4/futures/${settle}/orders`, params);
28
+ exports.getFuturesOrders = getFuturesOrders;
29
+ /**
30
+ * 获取合约账号
31
+ *
32
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%90%88%E7%BA%A6%E8%B4%A6%E5%8F%B7
33
+ */
34
+ const getFuturesAccounts = (credential, settle) => callPrivate(credential, 'GET', `/api/v4/futures/${settle}/accounts`);
35
+ exports.getFuturesAccounts = getFuturesAccounts;
36
+ /**
37
+ * 合约交易下单
38
+ *
39
+ * 下单时指定的是合约张数 size ,而非币的数量,每一张合约对应的币的数量是合约详情接口里返回的 quanto_multiplier
40
+ *
41
+ * 0 成交的订单在撤单 10 分钟之后无法再获取到,会提到订单不存在
42
+ *
43
+ * 设置 reduce_only 为 true 可以防止在减仓的时候穿仓
44
+ *
45
+ * 单仓模式下,如果需要平仓,需要设置 size 为 0 ,close 为 true
46
+ *
47
+ * 双仓模式下,平仓需要使用 auto_size 来设置平仓方向,并同时设置 reduce_only 为 true,size 为 0
48
+ *
49
+ * 设置 stp_act 决定使用限制用户自成交的策略,详细用法参考body参数stp_act
50
+ *
51
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E5%90%88%E7%BA%A6%E4%BA%A4%E6%98%93%E4%B8%8B%E5%8D%95
52
+ */
53
+ const postFutureOrders = (credential, settle, params) => callPrivate(credential, 'POST', `/api/v4/futures/${settle}/orders`, params);
54
+ exports.postFutureOrders = postFutureOrders;
55
+ /**
56
+ * 撤销单个订单
57
+ *
58
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%92%A4%E9%94%80%E5%8D%95%E4%B8%AA%E8%AE%A2%E5%8D%95-2
59
+ */
60
+ const deleteFutureOrders = (credential, settle, order_id) => callPrivate(credential, 'DELETE', `/api/v4/futures/${settle}/orders/${order_id}`);
61
+ exports.deleteFutureOrders = deleteFutureOrders;
62
+ /**
63
+ * 提现
64
+ *
65
+ * POST /withdrawals
66
+ *
67
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%8F%90%E7%8E%B0
68
+ */
69
+ const postWithdrawals = (credential, params) => callPrivate(credential, 'POST', '/api/v4/withdrawals', params);
70
+ exports.postWithdrawals = postWithdrawals;
71
+ /**
72
+ * 获取币种充值地址
73
+ *
74
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%B8%81%E7%A7%8D%E5%85%85%E5%80%BC%E5%9C%B0%E5%9D%80
75
+ */
76
+ const getDepositAddress = (credential, params) => callPrivate(credential, 'GET', '/api/v4/wallet/deposit_address', params);
77
+ exports.getDepositAddress = getDepositAddress;
78
+ /**
79
+ * 创建新的子账户
80
+ *
81
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E5%88%9B%E5%BB%BA%E6%96%B0%E7%9A%84%E5%AD%90%E8%B4%A6%E6%88%B7
82
+ */
83
+ const getSubAccountList = (credential, params) => callPrivate(credential, 'GET', '/api/v4/sub_accounts', params);
84
+ exports.getSubAccountList = getSubAccountList;
85
+ /**
86
+ * 获取充值记录
87
+ *
88
+ * 记录查询时间范围不允许超过 30 天
89
+ *
90
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%85%85%E5%80%BC%E8%AE%B0%E5%BD%95
91
+ */
92
+ const getDepositHistory = (credential, params) => callPrivate(credential, 'GET', '/api/v4/wallet/deposits', params);
93
+ exports.getDepositHistory = getDepositHistory;
94
+ /**
95
+ * 获取提现记录
96
+ *
97
+ * 记录查询时间范围不允许超过 30 天
98
+ *
99
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%B8%81%E7%A7%8D%E5%85%85%E5%80%BC%E5%9C%B0%E5%9D%80
100
+ */
101
+ const getWithdrawalHistory = (credential, params) => callPrivate(credential, 'GET', '/api/v4/wallet/withdrawals', params);
102
+ exports.getWithdrawalHistory = getWithdrawalHistory;
103
+ /**
104
+ * 获取现货交易账户列表
105
+ *
106
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%8E%B0%E8%B4%A7%E4%BA%A4%E6%98%93%E8%B4%A6%E6%88%B7%E5%88%97%E8%A1%A8
107
+ */
108
+ const getSpotAccounts = (credential, params) => callPrivate(credential, 'GET', '/api/v4/spot/accounts', params);
109
+ exports.getSpotAccounts = getSpotAccounts;
110
+ /**
111
+ * 交易账户互转
112
+ *
113
+ * POST /wallet/transfers
114
+ *
115
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E4%BA%A4%E6%98%93%E8%B4%A6%E6%88%B7%E4%BA%92%E8%BD%AC
116
+ */
117
+ const postWalletTransfer = (credential, params) => callPrivate(credential, 'POST', '/api/v4/wallet/transfers', params);
118
+ exports.postWalletTransfer = postWalletTransfer;
119
+ /**
120
+ * 获取统一账户最多可转出
121
+ *
122
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E7%BB%9F%E4%B8%80%E8%B4%A6%E6%88%B7%E6%9C%80%E5%A4%9A%E5%8F%AF%E8%BD%AC%E5%87%BA
123
+ */
124
+ const getUnifiedTransferable = (credential, params) => callPrivate(credential, 'GET', `/api/v4/unified/transferable`, params);
125
+ exports.getUnifiedTransferable = getUnifiedTransferable;
126
+ //# sourceMappingURL=private-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private-api.js","sourceRoot":"","sources":["../../src/api/private-api.ts"],"names":[],"mappings":";;;AACA,+CAA+C;AAO/C,MAAM,WAAW,GAAG,CAClB,UAAuB,EACvB,MAAkB,EAClB,IAAY,EACZ,MAAmB,EACnB,EAAE,CAAC,IAAA,4BAAc,EAAY,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEjE;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAC9B,UAAuB,EAStB,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC;AAVlD,QAAA,gBAAgB,oBAUkC;AAExD,MAAM,kBAAkB,GAAG,CAChC,UAAuB,EACvB,MAA8B,EAiC7B,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,EAAE,0BAA0B,EAAE,MAAM,CAAC,CAAC;AAnC5D,QAAA,kBAAkB,sBAmC0C;AAEzE;;;;GAIG;AACI,MAAM,kBAAkB,GAAG,CAChC,UAAuB,EACvB,cAAsB,EACtB,MAA+D,EA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, HttpMethod } from './http-client';\nimport { requestPrivate } from './http-client';\n\nexport type ICredential = {\n access_key: string;\n secret_key: string;\n};\n\nconst callPrivate = <TResponse>(\n credential: ICredential,\n method: HttpMethod,\n path: string,\n params?: GateParams,\n) => requestPrivate<TResponse>(credential, method, path, params);\n\n/**\n * 获取用户账户信息\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%B4%A6%E6%88%B7%E4%BF%A1%E6%81%AF\n */\nexport const getAccountDetail = (\n credential: ICredential,\n): Promise<{\n user_id: number;\n ip_whitelist: string[];\n currency_pairs: string[];\n key: {\n mode: number;\n };\n tier: number;\n}> => callPrivate(credential, 'GET', '/api/v4/account/detail');\n\nexport const getUnifiedAccounts = (\n credential: ICredential,\n params?: { currency?: string },\n): Promise<{\n user_id: string;\n refresh_time: number;\n locket: boolean;\n balances: Record<\n string,\n {\n available: string;\n freeze: string;\n borrowed: string;\n negative_liab: string;\n futures_pos_liab: string;\n equity: string;\n total_freeze: string;\n total_liab: string;\n spot_in_use: string;\n }\n >;\n total: string;\n borrowed: string;\n total_initial_margin: string;\n total_margin_balance: string;\n total_maintenance_margin: string;\n total_initial_margin_rate: string;\n total_maintenance_margin_rate: string;\n total_avail_margin: string;\n unified_account_total: string;\n unified_account_total_liab: string;\n unified_account_total_equity: string;\n leverage: string;\n spot_order_loss: string;\n spot_hedge: boolean;\n}> => callPrivate(credential, 'GET', '/api/v4/unified/accounts', params);\n\n/**\n * 获取用户仓位列表\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E4%BB%93%E4%BD%8D%E5%88%97%E8%A1%A8\n */\nexport const getFuturePositions = (\n credential: ICredential,\n quote_currency: string,\n params?: { holding?: boolean; limit?: number; offset?: number },\n): Promise<\n {\n user: number;\n contract: string;\n size: number;\n leverage: string;\n risk_limit: string;\n leverage_max: string;\n maintenance_rate: string;\n value: string;\n margin: string;\n entry_price: string;\n mark_price: string;\n unrealised_pnl: string;\n realised_pnl: string;\n mode: string;\n }[]\n> => callPrivate(credential, 'GET', `/api/v4/futures/${quote_currency}/positions`, params);\n\n/**\n * 查询合约订单列表\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E5%90%88%E7%BA%A6%E8%AE%A2%E5%8D%95%E5%88%97%E8%A1%A8\n */\nexport const getFuturesOrders = (\n credential: ICredential,\n settle: string,\n params: {\n contract?: string;\n status: string;\n limit?: number;\n offset?: number;\n last_id?: number;\n },\n): Promise<\n {\n id: string;\n contract: string;\n create_time: number;\n size: number;\n price: string;\n is_close: boolean;\n fill_price: string;\n left?: number;\n status?: string;\n text: string;\n }[]\n> => callPrivate(credential, 'GET', `/api/v4/futures/${settle}/orders`, params);\n\n/**\n * 获取合约账号\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%90%88%E7%BA%A6%E8%B4%A6%E5%8F%B7\n */\nexport const getFuturesAccounts = (\n credential: ICredential,\n settle: string,\n): Promise<{\n user: number;\n currency: string;\n total: string;\n unrealised_pnl: string;\n position_margin: string;\n order_margin: string;\n available: string;\n point: string;\n bonus: string;\n in_dual_mode: boolean;\n enable_evolved_classic: boolean;\n history: {\n dnw: string;\n pnl: string;\n fee: string;\n refr: string;\n fund: string;\n point_dnw: string;\n point_fee: string;\n point_refr: string;\n bonus_dnw: string;\n bonus_offset: string;\n };\n}> => callPrivate(credential, 'GET', `/api/v4/futures/${settle}/accounts`);\n\n/**\n * 合约交易下单\n *\n * 下单时指定的是合约张数 size ,而非币的数量,每一张合约对应的币的数量是合约详情接口里返回的 quanto_multiplier\n *\n * 0 成交的订单在撤单 10 分钟之后无法再获取到,会提到订单不存在\n *\n * 设置 reduce_only 为 true 可以防止在减仓的时候穿仓\n *\n * 单仓模式下,如果需要平仓,需要设置 size 为 0 ,close 为 true\n *\n * 双仓模式下,平仓需要使用 auto_size 来设置平仓方向,并同时设置 reduce_only 为 true,size 为 0\n *\n * 设置 stp_act 决定使用限制用户自成交的策略,详细用法参考body参数stp_act\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E5%90%88%E7%BA%A6%E4%BA%A4%E6%98%93%E4%B8%8B%E5%8D%95\n */\nexport const postFutureOrders = (\n credential: ICredential,\n settle: string,\n params: {\n contract: string;\n size: number;\n iceberg?: number;\n price?: string;\n close?: boolean;\n reduce_only?: boolean;\n tif?: string;\n text?: string;\n auto_size?: string;\n stp_act?: string;\n },\n): Promise<{\n label?: string;\n message?: string;\n detail?: string;\n id: number;\n user: number;\n contract: string;\n create_time: number;\n size: number;\n iceberg: number;\n left: number;\n price: string;\n fill_price: string;\n mkfr: string;\n tkfr: string;\n tif: string;\n refu: number;\n is_reduce_only: boolean;\n is_close: boolean;\n is_liq: boolean;\n text: string;\n status: string;\n finish_time: number;\n finish_as: string;\n stp_id: number;\n stp_act: string;\n amend_text: string;\n}> => callPrivate(credential, 'POST', `/api/v4/futures/${settle}/orders`, params);\n\n/**\n * 撤销单个订单\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%92%A4%E9%94%80%E5%8D%95%E4%B8%AA%E8%AE%A2%E5%8D%95-2\n */\nexport const deleteFutureOrders = (credential: ICredential, settle: string, order_id: string): Promise<{}> =>\n callPrivate(credential, 'DELETE', `/api/v4/futures/${settle}/orders/${order_id}`);\n\n/**\n * 提现\n *\n * POST /withdrawals\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%8F%90%E7%8E%B0\n */\nexport const postWithdrawals = (\n credential: ICredential,\n params: {\n withdraw_order_id?: string;\n amount: string;\n currency: string;\n address?: string;\n memo?: string;\n chain: string;\n },\n): Promise<{\n id: string;\n txid: string;\n withdraw_order_id: string;\n timestamp: number;\n amount: string;\n currency: string;\n address: string;\n memo: string;\n status: string;\n chain: string;\n}> => callPrivate(credential, 'POST', '/api/v4/withdrawals', params);\n\n/**\n * 获取币种充值地址\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%B8%81%E7%A7%8D%E5%85%85%E5%80%BC%E5%9C%B0%E5%9D%80\n */\nexport const getDepositAddress = (\n credential: ICredential,\n params: {\n currency: string;\n },\n): Promise<{\n currency: string;\n address: string;\n multichain_addresses: {\n chain: string;\n address: string;\n payment_id: string;\n payment_name: string;\n obtain_failed: boolean;\n }[];\n}> => callPrivate(credential, 'GET', '/api/v4/wallet/deposit_address', params);\n\n/**\n * 创建新的子账户\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E5%88%9B%E5%BB%BA%E6%96%B0%E7%9A%84%E5%AD%90%E8%B4%A6%E6%88%B7\n */\nexport const getSubAccountList = (\n credential: ICredential,\n params?: {\n type?: string;\n },\n): Promise<\n {\n remark: string;\n login_name: string;\n password: string;\n email: string;\n state: number;\n type: number;\n user_id: number;\n create_time: number;\n }[]\n> => callPrivate(credential, 'GET', '/api/v4/sub_accounts', params);\n\n/**\n * 获取充值记录\n *\n * 记录查询时间范围不允许超过 30 天\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%85%85%E5%80%BC%E8%AE%B0%E5%BD%95\n */\nexport const getDepositHistory = (\n credential: ICredential,\n params?: {\n currency?: string;\n from?: number;\n to?: number;\n limit?: number;\n offset?: number;\n },\n): Promise<\n {\n id: string;\n txid: string;\n withdraw_order_id: string;\n timestamp: number;\n amount: string;\n currency: string;\n address: string;\n memo: string;\n status: string;\n chain: string;\n }[]\n> => callPrivate(credential, 'GET', '/api/v4/wallet/deposits', params);\n\n/**\n * 获取提现记录\n *\n * 记录查询时间范围不允许超过 30 天\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E5%B8%81%E7%A7%8D%E5%85%85%E5%80%BC%E5%9C%B0%E5%9D%80\n */\nexport const getWithdrawalHistory = (\n credential: ICredential,\n params?: {\n currency?: string;\n from?: number;\n to?: number;\n limit?: number;\n offset?: number;\n },\n): Promise<\n {\n id: string;\n txid: string;\n withdraw_order_id: string;\n timestamp: number;\n amount: string;\n currency: string;\n address: string;\n memo: string;\n status: string;\n chain: string;\n }[]\n> => callPrivate(credential, 'GET', '/api/v4/wallet/withdrawals', params);\n\n/**\n * 获取现货交易账户列表\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E7%8E%B0%E8%B4%A7%E4%BA%A4%E6%98%93%E8%B4%A6%E6%88%B7%E5%88%97%E8%A1%A8\n */\nexport const getSpotAccounts = (\n credential: ICredential,\n params?: {\n currency?: string;\n },\n): Promise<\n {\n currency: string;\n available: string;\n locked: string;\n update_id: string;\n }[]\n> => callPrivate(credential, 'GET', '/api/v4/spot/accounts', params);\n\n/**\n * 交易账户互转\n *\n * POST /wallet/transfers\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E4%BA%A4%E6%98%93%E8%B4%A6%E6%88%B7%E4%BA%92%E8%BD%AC\n */\nexport const postWalletTransfer = (\n credential: ICredential,\n params: {\n currency: string;\n from: string;\n to: string;\n amount: string;\n currency_pair?: string;\n settle?: string;\n },\n): Promise<{\n tx_id: string;\n}> => callPrivate(credential, 'POST', '/api/v4/wallet/transfers', params);\n\n/**\n * 获取统一账户最多可转出\n *\n * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E7%BB%9F%E4%B8%80%E8%B4%A6%E6%88%B7%E6%9C%80%E5%A4%9A%E5%8F%AF%E8%BD%AC%E5%87%BA\n */\nexport const getUnifiedTransferable = (\n credential: ICredential,\n params: {\n currency: string;\n },\n): Promise<{\n currency: string;\n amount: string;\n}> => callPrivate(credential, 'GET', `/api/v4/unified/transferable`, params);\n"]}
@@ -0,0 +1,149 @@
1
+ /**
2
+ * 查询所有的合约信息
3
+ *
4
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E6%89%80%E6%9C%89%E7%9A%84%E5%90%88%E7%BA%A6%E4%BF%A1%E6%81%AF
5
+ */
6
+ export declare const getFuturesContracts: (settle: string, params?: {
7
+ limit?: number;
8
+ offset?: number;
9
+ }) => Promise<{
10
+ name: string;
11
+ type: string;
12
+ quanto_multiplier: string;
13
+ ref_discount_rate: string;
14
+ order_price_deviate: string;
15
+ maintenance_rate: string;
16
+ mark_type: string;
17
+ last_price: string;
18
+ mark_price: string;
19
+ index_price: string;
20
+ funding_rate_indicative: string;
21
+ mark_price_round: string;
22
+ funding_offset: number;
23
+ in_delisting: boolean;
24
+ risk_limit_base: string;
25
+ interest_rate: string;
26
+ order_price_round: string;
27
+ order_size_min: number;
28
+ ref_rebate_rate: string;
29
+ funding_interval: number;
30
+ risk_limit_step: string;
31
+ leverage_min: string;
32
+ leverage_max: string;
33
+ risk_limit_max: string;
34
+ maker_fee_rate: string;
35
+ taker_fee_rate: string;
36
+ funding_rate: string;
37
+ order_size_max: number;
38
+ funding_next_apply: number;
39
+ short_users: number;
40
+ config_change_time: number;
41
+ trade_size: number;
42
+ position_size: number;
43
+ long_users: number;
44
+ funding_impact_value: string;
45
+ orders_limit: number;
46
+ trade_id: number;
47
+ orderbook_id: number;
48
+ enable_bonus: boolean;
49
+ enable_credit: boolean;
50
+ create_time: number;
51
+ funding_cap_ratio: string;
52
+ }[]>;
53
+ /**
54
+ * 合约市场历史资金费率
55
+ *
56
+ * - Note: 该接口返回的数据是按照时间倒序排列的
57
+ * - Note: limit 参数最大值为 1000
58
+ * - Note: t 字段为秒级时间戳 (Unix Second),r 字段为资金费率 (0-1 单位)
59
+ *
60
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E5%90%88%E7%BA%A6%E5%B8%82%E5%9C%BA%E5%8E%86%E5%8F%B2%E8%B5%84%E9%87%91%E8%B4%B9%E7%8E%87
61
+ */
62
+ export declare const getFutureFundingRate: (settle: string, params: {
63
+ contract: string;
64
+ limit?: number;
65
+ }) => Promise<{
66
+ t: number;
67
+ r: string;
68
+ }[]>;
69
+ /**
70
+ * 查询合约市场深度信息
71
+ *
72
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E5%90%88%E7%BA%A6%E5%B8%82%E5%9C%BA%E6%B7%B1%E5%BA%A6%E4%BF%A1%E6%81%AF
73
+ */
74
+ export declare const getFuturesOrderBook: (settle: string, params: {
75
+ contract: string;
76
+ interval?: string;
77
+ limit?: number;
78
+ with_id?: boolean;
79
+ }) => Promise<{
80
+ id: number;
81
+ current: number;
82
+ update: number;
83
+ asks: {
84
+ p: string;
85
+ s: string;
86
+ }[];
87
+ bids: {
88
+ p: string;
89
+ s: string;
90
+ }[];
91
+ }>;
92
+ /**
93
+ * 获取所有合约交易行情统计
94
+ *
95
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E8%8E%B7%E5%8F%96%E6%89%80%E6%9C%89%E5%90%88%E7%BA%A6%E4%BA%A4%E6%98%93%E8%A1%8C%E6%83%85%E7%BB%9F%E8%AE%A1
96
+ */
97
+ export declare const getFuturesTickers: (settle: string, params?: {
98
+ contract?: string;
99
+ }) => Promise<{
100
+ contract: string;
101
+ last: string;
102
+ change_percentage: string;
103
+ total_size: string;
104
+ low_24h: string;
105
+ high_24h: string;
106
+ volume_24h: string;
107
+ volume_24h_btc: string;
108
+ volume_24h_usd: string;
109
+ volume_24h_base: string;
110
+ volume_24h_quote: string;
111
+ volume_24h_settle: string;
112
+ mark_price: string;
113
+ funding_rate: string;
114
+ funding_rate_indicative: string;
115
+ index_price: string;
116
+ quanto_base_rate: string;
117
+ basis_rate: string;
118
+ basis_value: string;
119
+ lowest_ask: string;
120
+ highest_bid: string;
121
+ }[]>;
122
+ /**
123
+ * 获取交易对 ticker 信息
124
+ *
125
+ * https://www.gate.io/docs/developers/apiv4/zh_CN/#%E6%9F%A5%E8%AF%A2%E5%8D%95%E4%B8%AA%E4%BA%A4%E6%98%93%E5%AF%B9%E8%AF%A6%E6%83%85
126
+ */
127
+ export declare const getSpotTickers: (params: {
128
+ currency_pair?: string;
129
+ timezone?: string;
130
+ }) => Promise<Array<{
131
+ currency_pair: string;
132
+ last: string;
133
+ lowest_ask: string;
134
+ lowest_size: string;
135
+ highest_bid: string;
136
+ highest_size: string;
137
+ change_percentage: string;
138
+ change_utc0: string;
139
+ change_utc8: string;
140
+ base_volume: string;
141
+ quote_volume: string;
142
+ high_24h: string;
143
+ low_24h: string;
144
+ etf_net_value: string;
145
+ etf_pre_net_value: string;
146
+ etf_pre_timestamp: string;
147
+ etf_leverage: string;
148
+ }>>;
149
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../src/api/public-api.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,WACtB,MAAM,WACL;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC3C,QACD;IACE,MAAM,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB,EAAE,MAAM,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,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