ccxt 4.4.78 → 4.4.82
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/README.md +8 -12
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/apex.js +21 -31
- package/dist/cjs/src/ascendex.js +26 -5
- package/dist/cjs/src/base/Exchange.js +26 -3
- package/dist/cjs/src/base/functions/encode.js +1 -1
- package/dist/cjs/src/bigone.js +22 -14
- package/dist/cjs/src/binance.js +8 -0
- package/dist/cjs/src/bingx.js +16 -40
- package/dist/cjs/src/bitfinex.js +128 -88
- package/dist/cjs/src/bitget.js +60 -71
- package/dist/cjs/src/bitmart.js +7 -2
- package/dist/cjs/src/bitmex.js +12 -4
- package/dist/cjs/src/bitopro.js +5 -1
- package/dist/cjs/src/bitrue.js +2 -1
- package/dist/cjs/src/bitso.js +1 -1
- package/dist/cjs/src/bitteam.js +2 -0
- package/dist/cjs/src/bitvavo.js +28 -10
- package/dist/cjs/src/btcalpha.js +1 -1
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bybit.js +34 -16
- package/dist/cjs/src/coinbase.js +4 -17
- package/dist/cjs/src/coinex.js +1 -0
- package/dist/cjs/src/coinlist.js +1 -0
- package/dist/cjs/src/coinone.js +1 -0
- package/dist/cjs/src/delta.js +4 -0
- package/dist/cjs/src/deribit.js +1 -0
- package/dist/cjs/src/hollaex.js +1 -0
- package/dist/cjs/src/htx.js +9 -5
- package/dist/cjs/src/huobijp.js +1 -0
- package/dist/cjs/src/hyperliquid.js +16 -0
- package/dist/cjs/src/kraken.js +2 -0
- package/dist/cjs/src/okx.js +2 -3
- package/dist/cjs/src/oxfun.js +21 -1
- package/dist/cjs/src/poloniex.js +1 -0
- package/dist/cjs/src/pro/binance.js +3 -3
- package/dist/cjs/src/pro/coinbase.js +43 -62
- package/dist/cjs/src/pro/hyperliquid.js +10 -2
- package/dist/cjs/src/pro/upbit.js +43 -0
- package/dist/cjs/src/timex.js +2 -2
- package/dist/cjs/src/upbit.js +43 -21
- package/dist/cjs/src/whitebit.js +65 -12
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +1 -0
- package/js/src/apex.js +21 -31
- package/js/src/ascendex.js +26 -5
- package/js/src/base/Exchange.d.ts +2 -1
- package/js/src/base/Exchange.js +26 -3
- package/js/src/base/functions/encode.d.ts +1 -1
- package/js/src/base/functions/encode.js +1 -1
- package/js/src/bigone.js +22 -14
- package/js/src/binance.js +8 -0
- package/js/src/bingx.d.ts +1 -1
- package/js/src/bingx.js +16 -40
- package/js/src/bitfinex.js +128 -88
- package/js/src/bitget.d.ts +1 -0
- package/js/src/bitget.js +60 -71
- package/js/src/bitmart.d.ts +1 -0
- package/js/src/bitmart.js +7 -2
- package/js/src/bitmex.js +12 -4
- package/js/src/bitopro.js +5 -1
- package/js/src/bitrue.js +2 -1
- package/js/src/bitso.js +1 -1
- package/js/src/bitteam.js +2 -0
- package/js/src/bitvavo.js +28 -10
- package/js/src/btcalpha.js +1 -1
- package/js/src/btcmarkets.js +1 -1
- package/js/src/btcturk.js +1 -1
- package/js/src/bybit.js +34 -16
- package/js/src/coinbase.d.ts +0 -2
- package/js/src/coinbase.js +4 -17
- package/js/src/coinex.js +1 -0
- package/js/src/coinlist.js +1 -0
- package/js/src/coinone.js +1 -0
- package/js/src/delta.js +4 -0
- package/js/src/deribit.js +1 -0
- package/js/src/hollaex.js +1 -0
- package/js/src/htx.js +9 -5
- package/js/src/huobijp.js +1 -0
- package/js/src/hyperliquid.js +16 -0
- package/js/src/kraken.js +2 -0
- package/js/src/okx.js +2 -3
- package/js/src/oxfun.d.ts +10 -0
- package/js/src/oxfun.js +21 -1
- package/js/src/poloniex.js +1 -0
- package/js/src/pro/binance.js +3 -3
- package/js/src/pro/coinbase.d.ts +4 -3
- package/js/src/pro/coinbase.js +43 -60
- package/js/src/pro/hyperliquid.js +10 -2
- package/js/src/pro/upbit.d.ts +16 -1
- package/js/src/pro/upbit.js +43 -0
- package/js/src/timex.js +2 -2
- package/js/src/upbit.d.ts +42 -20
- package/js/src/upbit.js +43 -21
- package/js/src/whitebit.js +65 -12
- package/package.json +1 -1
package/js/src/upbit.d.ts
CHANGED
|
@@ -41,7 +41,8 @@ export default class upbit extends Exchange {
|
|
|
41
41
|
/**
|
|
42
42
|
* @method
|
|
43
43
|
* @name upbit#fetchMarkets
|
|
44
|
-
* @see https://docs.upbit.com/reference
|
|
44
|
+
* @see https://docs.upbit.com/kr/reference/마켓-코드-조회
|
|
45
|
+
* @see https://global-docs.upbit.com/reference/listing-market-list
|
|
45
46
|
* @description retrieves data on all markets for upbit
|
|
46
47
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
47
48
|
* @returns {object[]} an array of objects representing market data
|
|
@@ -52,7 +53,8 @@ export default class upbit extends Exchange {
|
|
|
52
53
|
/**
|
|
53
54
|
* @method
|
|
54
55
|
* @name upbit#fetchBalance
|
|
55
|
-
* @see https://docs.upbit.com/reference
|
|
56
|
+
* @see https://docs.upbit.com/kr/reference/전체-계좌-조회
|
|
57
|
+
* @see https://global-docs.upbit.com/reference/overall-account-inquiry
|
|
56
58
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
57
59
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
60
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
@@ -61,7 +63,8 @@ export default class upbit extends Exchange {
|
|
|
61
63
|
/**
|
|
62
64
|
* @method
|
|
63
65
|
* @name upbit#fetchOrderBooks
|
|
64
|
-
* @see https://docs.upbit.com/reference
|
|
66
|
+
* @see https://docs.upbit.com/kr/reference/호가-정보-조회
|
|
67
|
+
* @see https://global-docs.upbit.com/reference/order-book-list
|
|
65
68
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
66
69
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
67
70
|
* @param {int} [limit] not used by upbit fetchOrderBooks ()
|
|
@@ -72,7 +75,8 @@ export default class upbit extends Exchange {
|
|
|
72
75
|
/**
|
|
73
76
|
* @method
|
|
74
77
|
* @name upbit#fetchOrderBook
|
|
75
|
-
* @see https://docs.upbit.com/reference
|
|
78
|
+
* @see https://docs.upbit.com/kr/reference/호가-정보-조회
|
|
79
|
+
* @see https://global-docs.upbit.com/reference/order-book-list
|
|
76
80
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
77
81
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
78
82
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -84,7 +88,8 @@ export default class upbit extends Exchange {
|
|
|
84
88
|
/**
|
|
85
89
|
* @method
|
|
86
90
|
* @name upbit#fetchTickers
|
|
87
|
-
* @see https://docs.upbit.com/reference/ticker
|
|
91
|
+
* @see https://docs.upbit.com/kr/reference/ticker현재가-정보
|
|
92
|
+
* @see https://global-docs.upbit.com/reference/tickers
|
|
88
93
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
89
94
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
90
95
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -94,7 +99,8 @@ export default class upbit extends Exchange {
|
|
|
94
99
|
/**
|
|
95
100
|
* @method
|
|
96
101
|
* @name upbit#fetchTicker
|
|
97
|
-
* @see https://docs.upbit.com/reference/ticker
|
|
102
|
+
* @see https://docs.upbit.com/kr/reference/ticker현재가-정보
|
|
103
|
+
* @see https://global-docs.upbit.com/reference/tickers
|
|
98
104
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
99
105
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
100
106
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -105,7 +111,8 @@ export default class upbit extends Exchange {
|
|
|
105
111
|
/**
|
|
106
112
|
* @method
|
|
107
113
|
* @name upbit#fetchTrades
|
|
108
|
-
* @see https://docs.upbit.com/reference
|
|
114
|
+
* @see https://docs.upbit.com/kr/reference/최근-체결-내역
|
|
115
|
+
* @see https://global-docs.upbit.com/reference/today-trades-history
|
|
109
116
|
* @description get the list of most recent trades for a particular symbol
|
|
110
117
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
111
118
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
@@ -117,7 +124,8 @@ export default class upbit extends Exchange {
|
|
|
117
124
|
/**
|
|
118
125
|
* @method
|
|
119
126
|
* @name upbit#fetchTradingFee
|
|
120
|
-
* @see https://docs.upbit.com/reference
|
|
127
|
+
* @see https://docs.upbit.com/kr/reference/주문-가능-정보
|
|
128
|
+
* @see https://global-docs.upbit.com/reference/available-order-information
|
|
121
129
|
* @description fetch the trading fees for a market
|
|
122
130
|
* @param {string} symbol unified market symbol
|
|
123
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -136,7 +144,8 @@ export default class upbit extends Exchange {
|
|
|
136
144
|
/**
|
|
137
145
|
* @method
|
|
138
146
|
* @name upbit#fetchOHLCV
|
|
139
|
-
* @see https://docs.upbit.com/reference
|
|
147
|
+
* @see https://docs.upbit.com/kr/reference/분minute-캔들-1
|
|
148
|
+
* @see https://global-docs.upbit.com/reference/minutes
|
|
140
149
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
141
150
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
142
151
|
* @param {string} timeframe the length of time each candle represents
|
|
@@ -151,7 +160,7 @@ export default class upbit extends Exchange {
|
|
|
151
160
|
* @method
|
|
152
161
|
* @name upbit#createOrder
|
|
153
162
|
* @description create a trade order
|
|
154
|
-
* @see https://docs.upbit.com/reference
|
|
163
|
+
* @see https://docs.upbit.com/kr/reference/주문하기
|
|
155
164
|
* @see https://global-docs.upbit.com/reference/order
|
|
156
165
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
157
166
|
* @param {string} type supports 'market' and 'limit'. if params.ordType is set to best, a best-type order will be created regardless of the value of type.
|
|
@@ -168,7 +177,8 @@ export default class upbit extends Exchange {
|
|
|
168
177
|
/**
|
|
169
178
|
* @method
|
|
170
179
|
* @name upbit#cancelOrder
|
|
171
|
-
* @see https://docs.upbit.com/reference
|
|
180
|
+
* @see https://docs.upbit.com/kr/reference/주문-취소
|
|
181
|
+
* @see https://global-docs.upbit.com/reference/order-cancel
|
|
172
182
|
* @description cancels an open order
|
|
173
183
|
* @param {string} id order id
|
|
174
184
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
@@ -179,7 +189,8 @@ export default class upbit extends Exchange {
|
|
|
179
189
|
/**
|
|
180
190
|
* @method
|
|
181
191
|
* @name upbit#editOrder
|
|
182
|
-
* @see https://docs.upbit.com/reference
|
|
192
|
+
* @see https://docs.upbit.com/kr/reference/취소-후-재주문
|
|
193
|
+
* @see https://global-docs.upbit.com/reference/cancel-and-new
|
|
183
194
|
* @description canceled existing order and create new order. It's only generated same side and symbol as the canceled order. it returns the data of the canceled order, except for `new_order_uuid` and `new_identifier`. to get the details of the new order, use `fetchOrder(new_order_uuid)`.
|
|
184
195
|
* @param {string} id the uuid of the previous order you want to edit.
|
|
185
196
|
* @param {string} symbol the symbol of the new order. it must be the same as the symbol of the previous order.
|
|
@@ -199,7 +210,8 @@ export default class upbit extends Exchange {
|
|
|
199
210
|
/**
|
|
200
211
|
* @method
|
|
201
212
|
* @name upbit#fetchDeposits
|
|
202
|
-
* @see https://docs.upbit.com/reference
|
|
213
|
+
* @see https://docs.upbit.com/kr/reference/입금-리스트-조회
|
|
214
|
+
* @see https://global-docs.upbit.com/reference/deposit-list-inquiry
|
|
203
215
|
* @description fetch all deposits made to an account
|
|
204
216
|
* @param {string} code unified currency code
|
|
205
217
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
@@ -212,6 +224,7 @@ export default class upbit extends Exchange {
|
|
|
212
224
|
* @method
|
|
213
225
|
* @name upbit#fetchDeposit
|
|
214
226
|
* @description fetch information on a deposit
|
|
227
|
+
* @see https://docs.upbit.com/kr/reference/개별-입금-조회
|
|
215
228
|
* @see https://global-docs.upbit.com/reference/individual-deposit-inquiry
|
|
216
229
|
* @param {string} id the unique id for the deposit
|
|
217
230
|
* @param {string} [code] unified currency code of the currency deposited
|
|
@@ -223,7 +236,8 @@ export default class upbit extends Exchange {
|
|
|
223
236
|
/**
|
|
224
237
|
* @method
|
|
225
238
|
* @name upbit#fetchWithdrawals
|
|
226
|
-
* @see https://docs.upbit.com/reference
|
|
239
|
+
* @see https://docs.upbit.com/kr/reference/전체-출금-조회
|
|
240
|
+
* @see https://global-docs.upbit.com/reference/withdrawal-list-inquiry
|
|
227
241
|
* @description fetch all withdrawals made from an account
|
|
228
242
|
* @param {string} code unified currency code
|
|
229
243
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
@@ -236,6 +250,7 @@ export default class upbit extends Exchange {
|
|
|
236
250
|
* @method
|
|
237
251
|
* @name upbit#fetchWithdrawal
|
|
238
252
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
253
|
+
* @see https://docs.upbit.com/kr/reference/개별-출금-조회
|
|
239
254
|
* @see https://global-docs.upbit.com/reference/individual-withdrawal-inquiry
|
|
240
255
|
* @param {string} id the unique id for the withdrawal
|
|
241
256
|
* @param {string} [code] unified currency code of the currency withdrawn
|
|
@@ -252,6 +267,7 @@ export default class upbit extends Exchange {
|
|
|
252
267
|
* @method
|
|
253
268
|
* @name upbit#fetchOpenOrders
|
|
254
269
|
* @description fetch all unfilled currently open orders
|
|
270
|
+
* @see https://docs.upbit.com/kr/reference/대기-주문-조회
|
|
255
271
|
* @see https://global-docs.upbit.com/reference/open-order
|
|
256
272
|
* @param {string} symbol unified market symbol
|
|
257
273
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
@@ -265,6 +281,7 @@ export default class upbit extends Exchange {
|
|
|
265
281
|
* @method
|
|
266
282
|
* @name upbit#fetchClosedOrders
|
|
267
283
|
* @description fetches information on multiple closed orders made by the user
|
|
284
|
+
* @see https://docs.upbit.com/kr/reference/종료-주문-조회
|
|
268
285
|
* @see https://global-docs.upbit.com/reference/closed-order
|
|
269
286
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
270
287
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
@@ -278,6 +295,7 @@ export default class upbit extends Exchange {
|
|
|
278
295
|
* @method
|
|
279
296
|
* @name upbit#fetchCanceledOrders
|
|
280
297
|
* @description fetches information on multiple canceled orders made by the user
|
|
298
|
+
* @see https://docs.upbit.com/kr/reference/종료-주문-조회
|
|
281
299
|
* @see https://global-docs.upbit.com/reference/closed-order
|
|
282
300
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
283
301
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
@@ -290,7 +308,8 @@ export default class upbit extends Exchange {
|
|
|
290
308
|
/**
|
|
291
309
|
* @method
|
|
292
310
|
* @name upbit#fetchOrder
|
|
293
|
-
* @see https://docs.upbit.com/reference
|
|
311
|
+
* @see https://docs.upbit.com/kr/reference/개별-주문-조회
|
|
312
|
+
* @see https://global-docs.upbit.com/reference/individual-order-inquiry
|
|
294
313
|
* @description fetches information on an order made by the user
|
|
295
314
|
* @param {string} id order id
|
|
296
315
|
* @param {string} symbol not used by upbit fetchOrder
|
|
@@ -301,7 +320,8 @@ export default class upbit extends Exchange {
|
|
|
301
320
|
/**
|
|
302
321
|
* @method
|
|
303
322
|
* @name upbit#fetchDepositAddresses
|
|
304
|
-
* @see https://docs.upbit.com/reference
|
|
323
|
+
* @see https://docs.upbit.com/kr/reference/전체-입금-주소-조회
|
|
324
|
+
* @see https://global-docs.upbit.com/reference/general-deposit-address-inquiry
|
|
305
325
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
306
326
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
307
327
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -312,7 +332,8 @@ export default class upbit extends Exchange {
|
|
|
312
332
|
/**
|
|
313
333
|
* @method
|
|
314
334
|
* @name upbit#fetchDepositAddress
|
|
315
|
-
* @see https://docs.upbit.com/reference
|
|
335
|
+
* @see https://docs.upbit.com/kr/reference/개별-입금-주소-조회
|
|
336
|
+
* @see https://global-docs.upbit.com/reference/individual-deposit-address-inquiry
|
|
316
337
|
* @description fetch the deposit address for a currency associated with this account
|
|
317
338
|
* @param {string} code unified currency code
|
|
318
339
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -323,7 +344,8 @@ export default class upbit extends Exchange {
|
|
|
323
344
|
/**
|
|
324
345
|
* @method
|
|
325
346
|
* @name upbit#createDepositAddress
|
|
326
|
-
* @see https://docs.upbit.com/reference
|
|
347
|
+
* @see https://docs.upbit.com/kr/reference/입금-주소-생성-요청
|
|
348
|
+
* @see https://global-docs.upbit.com/reference/deposit-address-generation
|
|
327
349
|
* @description create a currency deposit address
|
|
328
350
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
329
351
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -333,8 +355,8 @@ export default class upbit extends Exchange {
|
|
|
333
355
|
/**
|
|
334
356
|
* @method
|
|
335
357
|
* @name upbit#withdraw
|
|
336
|
-
* @see https://docs.upbit.com/reference/디지털자산-출금하기
|
|
337
|
-
* @see https://docs.upbit.com/reference
|
|
358
|
+
* @see https://docs.upbit.com/kr/reference/디지털자산-출금하기
|
|
359
|
+
* @see https://global-docs.upbit.com/reference/withdrawal-digital-assets
|
|
338
360
|
* @description make a withdrawal
|
|
339
361
|
* @param {string} code unified currency code
|
|
340
362
|
* @param {float} amount the amount to withdraw
|
package/js/src/upbit.js
CHANGED
|
@@ -493,7 +493,8 @@ export default class upbit extends Exchange {
|
|
|
493
493
|
/**
|
|
494
494
|
* @method
|
|
495
495
|
* @name upbit#fetchMarkets
|
|
496
|
-
* @see https://docs.upbit.com/reference
|
|
496
|
+
* @see https://docs.upbit.com/kr/reference/마켓-코드-조회
|
|
497
|
+
* @see https://global-docs.upbit.com/reference/listing-market-list
|
|
497
498
|
* @description retrieves data on all markets for upbit
|
|
498
499
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
499
500
|
* @returns {object[]} an array of objects representing market data
|
|
@@ -589,7 +590,8 @@ export default class upbit extends Exchange {
|
|
|
589
590
|
/**
|
|
590
591
|
* @method
|
|
591
592
|
* @name upbit#fetchBalance
|
|
592
|
-
* @see https://docs.upbit.com/reference
|
|
593
|
+
* @see https://docs.upbit.com/kr/reference/전체-계좌-조회
|
|
594
|
+
* @see https://global-docs.upbit.com/reference/overall-account-inquiry
|
|
593
595
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
594
596
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
597
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
@@ -614,7 +616,8 @@ export default class upbit extends Exchange {
|
|
|
614
616
|
/**
|
|
615
617
|
* @method
|
|
616
618
|
* @name upbit#fetchOrderBooks
|
|
617
|
-
* @see https://docs.upbit.com/reference
|
|
619
|
+
* @see https://docs.upbit.com/kr/reference/호가-정보-조회
|
|
620
|
+
* @see https://global-docs.upbit.com/reference/order-book-list
|
|
618
621
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
619
622
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
620
623
|
* @param {int} [limit] not used by upbit fetchOrderBooks ()
|
|
@@ -683,7 +686,8 @@ export default class upbit extends Exchange {
|
|
|
683
686
|
/**
|
|
684
687
|
* @method
|
|
685
688
|
* @name upbit#fetchOrderBook
|
|
686
|
-
* @see https://docs.upbit.com/reference
|
|
689
|
+
* @see https://docs.upbit.com/kr/reference/호가-정보-조회
|
|
690
|
+
* @see https://global-docs.upbit.com/reference/order-book-list
|
|
687
691
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
688
692
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
689
693
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -753,7 +757,8 @@ export default class upbit extends Exchange {
|
|
|
753
757
|
/**
|
|
754
758
|
* @method
|
|
755
759
|
* @name upbit#fetchTickers
|
|
756
|
-
* @see https://docs.upbit.com/reference/ticker
|
|
760
|
+
* @see https://docs.upbit.com/kr/reference/ticker현재가-정보
|
|
761
|
+
* @see https://global-docs.upbit.com/reference/tickers
|
|
757
762
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
758
763
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
759
764
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -813,7 +818,8 @@ export default class upbit extends Exchange {
|
|
|
813
818
|
/**
|
|
814
819
|
* @method
|
|
815
820
|
* @name upbit#fetchTicker
|
|
816
|
-
* @see https://docs.upbit.com/reference/ticker
|
|
821
|
+
* @see https://docs.upbit.com/kr/reference/ticker현재가-정보
|
|
822
|
+
* @see https://global-docs.upbit.com/reference/tickers
|
|
817
823
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
818
824
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
819
825
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -898,7 +904,8 @@ export default class upbit extends Exchange {
|
|
|
898
904
|
/**
|
|
899
905
|
* @method
|
|
900
906
|
* @name upbit#fetchTrades
|
|
901
|
-
* @see https://docs.upbit.com/reference
|
|
907
|
+
* @see https://docs.upbit.com/kr/reference/최근-체결-내역
|
|
908
|
+
* @see https://global-docs.upbit.com/reference/today-trades-history
|
|
902
909
|
* @description get the list of most recent trades for a particular symbol
|
|
903
910
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
904
911
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
@@ -944,7 +951,8 @@ export default class upbit extends Exchange {
|
|
|
944
951
|
/**
|
|
945
952
|
* @method
|
|
946
953
|
* @name upbit#fetchTradingFee
|
|
947
|
-
* @see https://docs.upbit.com/reference
|
|
954
|
+
* @see https://docs.upbit.com/kr/reference/주문-가능-정보
|
|
955
|
+
* @see https://global-docs.upbit.com/reference/available-order-information
|
|
948
956
|
* @description fetch the trading fees for a market
|
|
949
957
|
* @param {string} symbol unified market symbol
|
|
950
958
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -975,7 +983,7 @@ export default class upbit extends Exchange {
|
|
|
975
983
|
// },
|
|
976
984
|
// "bid_account": {
|
|
977
985
|
// "currency": "KRW",
|
|
978
|
-
// "balance": "0.
|
|
986
|
+
// "balance": "0.34202415",
|
|
979
987
|
// "locked": "4999.99999922",
|
|
980
988
|
// "avg_buy_price": "0",
|
|
981
989
|
// "avg_buy_price_modified": true,
|
|
@@ -1057,7 +1065,8 @@ export default class upbit extends Exchange {
|
|
|
1057
1065
|
/**
|
|
1058
1066
|
* @method
|
|
1059
1067
|
* @name upbit#fetchOHLCV
|
|
1060
|
-
* @see https://docs.upbit.com/reference
|
|
1068
|
+
* @see https://docs.upbit.com/kr/reference/분minute-캔들-1
|
|
1069
|
+
* @see https://global-docs.upbit.com/reference/minutes
|
|
1061
1070
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1062
1071
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1063
1072
|
* @param {string} timeframe the length of time each candle represents
|
|
@@ -1152,7 +1161,7 @@ export default class upbit extends Exchange {
|
|
|
1152
1161
|
* @method
|
|
1153
1162
|
* @name upbit#createOrder
|
|
1154
1163
|
* @description create a trade order
|
|
1155
|
-
* @see https://docs.upbit.com/reference
|
|
1164
|
+
* @see https://docs.upbit.com/kr/reference/주문하기
|
|
1156
1165
|
* @see https://global-docs.upbit.com/reference/order
|
|
1157
1166
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1158
1167
|
* @param {string} type supports 'market' and 'limit'. if params.ordType is set to best, a best-type order will be created regardless of the value of type.
|
|
@@ -1265,7 +1274,8 @@ export default class upbit extends Exchange {
|
|
|
1265
1274
|
/**
|
|
1266
1275
|
* @method
|
|
1267
1276
|
* @name upbit#cancelOrder
|
|
1268
|
-
* @see https://docs.upbit.com/reference
|
|
1277
|
+
* @see https://docs.upbit.com/kr/reference/주문-취소
|
|
1278
|
+
* @see https://global-docs.upbit.com/reference/order-cancel
|
|
1269
1279
|
* @description cancels an open order
|
|
1270
1280
|
* @param {string} id order id
|
|
1271
1281
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
@@ -1302,7 +1312,8 @@ export default class upbit extends Exchange {
|
|
|
1302
1312
|
/**
|
|
1303
1313
|
* @method
|
|
1304
1314
|
* @name upbit#editOrder
|
|
1305
|
-
* @see https://docs.upbit.com/reference
|
|
1315
|
+
* @see https://docs.upbit.com/kr/reference/취소-후-재주문
|
|
1316
|
+
* @see https://global-docs.upbit.com/reference/cancel-and-new
|
|
1306
1317
|
* @description canceled existing order and create new order. It's only generated same side and symbol as the canceled order. it returns the data of the canceled order, except for `new_order_uuid` and `new_identifier`. to get the details of the new order, use `fetchOrder(new_order_uuid)`.
|
|
1307
1318
|
* @param {string} id the uuid of the previous order you want to edit.
|
|
1308
1319
|
* @param {string} symbol the symbol of the new order. it must be the same as the symbol of the previous order.
|
|
@@ -1421,7 +1432,8 @@ export default class upbit extends Exchange {
|
|
|
1421
1432
|
/**
|
|
1422
1433
|
* @method
|
|
1423
1434
|
* @name upbit#fetchDeposits
|
|
1424
|
-
* @see https://docs.upbit.com/reference
|
|
1435
|
+
* @see https://docs.upbit.com/kr/reference/입금-리스트-조회
|
|
1436
|
+
* @see https://global-docs.upbit.com/reference/deposit-list-inquiry
|
|
1425
1437
|
* @description fetch all deposits made to an account
|
|
1426
1438
|
* @param {string} code unified currency code
|
|
1427
1439
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
@@ -1466,6 +1478,7 @@ export default class upbit extends Exchange {
|
|
|
1466
1478
|
* @method
|
|
1467
1479
|
* @name upbit#fetchDeposit
|
|
1468
1480
|
* @description fetch information on a deposit
|
|
1481
|
+
* @see https://docs.upbit.com/kr/reference/개별-입금-조회
|
|
1469
1482
|
* @see https://global-docs.upbit.com/reference/individual-deposit-inquiry
|
|
1470
1483
|
* @param {string} id the unique id for the deposit
|
|
1471
1484
|
* @param {string} [code] unified currency code of the currency deposited
|
|
@@ -1504,7 +1517,8 @@ export default class upbit extends Exchange {
|
|
|
1504
1517
|
/**
|
|
1505
1518
|
* @method
|
|
1506
1519
|
* @name upbit#fetchWithdrawals
|
|
1507
|
-
* @see https://docs.upbit.com/reference
|
|
1520
|
+
* @see https://docs.upbit.com/kr/reference/전체-출금-조회
|
|
1521
|
+
* @see https://global-docs.upbit.com/reference/withdrawal-list-inquiry
|
|
1508
1522
|
* @description fetch all withdrawals made from an account
|
|
1509
1523
|
* @param {string} code unified currency code
|
|
1510
1524
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
@@ -1549,6 +1563,7 @@ export default class upbit extends Exchange {
|
|
|
1549
1563
|
* @method
|
|
1550
1564
|
* @name upbit#fetchWithdrawal
|
|
1551
1565
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
1566
|
+
* @see https://docs.upbit.com/kr/reference/개별-출금-조회
|
|
1552
1567
|
* @see https://global-docs.upbit.com/reference/individual-withdrawal-inquiry
|
|
1553
1568
|
* @param {string} id the unique id for the withdrawal
|
|
1554
1569
|
* @param {string} [code] unified currency code of the currency withdrawn
|
|
@@ -1848,6 +1863,7 @@ export default class upbit extends Exchange {
|
|
|
1848
1863
|
* @method
|
|
1849
1864
|
* @name upbit#fetchOpenOrders
|
|
1850
1865
|
* @description fetch all unfilled currently open orders
|
|
1866
|
+
* @see https://docs.upbit.com/kr/reference/대기-주문-조회
|
|
1851
1867
|
* @see https://global-docs.upbit.com/reference/open-order
|
|
1852
1868
|
* @param {string} symbol unified market symbol
|
|
1853
1869
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
@@ -1896,6 +1912,7 @@ export default class upbit extends Exchange {
|
|
|
1896
1912
|
* @method
|
|
1897
1913
|
* @name upbit#fetchClosedOrders
|
|
1898
1914
|
* @description fetches information on multiple closed orders made by the user
|
|
1915
|
+
* @see https://docs.upbit.com/kr/reference/종료-주문-조회
|
|
1899
1916
|
* @see https://global-docs.upbit.com/reference/closed-order
|
|
1900
1917
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1901
1918
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
@@ -1951,6 +1968,7 @@ export default class upbit extends Exchange {
|
|
|
1951
1968
|
* @method
|
|
1952
1969
|
* @name upbit#fetchCanceledOrders
|
|
1953
1970
|
* @description fetches information on multiple canceled orders made by the user
|
|
1971
|
+
* @see https://docs.upbit.com/kr/reference/종료-주문-조회
|
|
1954
1972
|
* @see https://global-docs.upbit.com/reference/closed-order
|
|
1955
1973
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1956
1974
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
@@ -2005,7 +2023,8 @@ export default class upbit extends Exchange {
|
|
|
2005
2023
|
/**
|
|
2006
2024
|
* @method
|
|
2007
2025
|
* @name upbit#fetchOrder
|
|
2008
|
-
* @see https://docs.upbit.com/reference
|
|
2026
|
+
* @see https://docs.upbit.com/kr/reference/개별-주문-조회
|
|
2027
|
+
* @see https://global-docs.upbit.com/reference/individual-order-inquiry
|
|
2009
2028
|
* @description fetches information on an order made by the user
|
|
2010
2029
|
* @param {string} id order id
|
|
2011
2030
|
* @param {string} symbol not used by upbit fetchOrder
|
|
@@ -2066,7 +2085,8 @@ export default class upbit extends Exchange {
|
|
|
2066
2085
|
/**
|
|
2067
2086
|
* @method
|
|
2068
2087
|
* @name upbit#fetchDepositAddresses
|
|
2069
|
-
* @see https://docs.upbit.com/reference
|
|
2088
|
+
* @see https://docs.upbit.com/kr/reference/전체-입금-주소-조회
|
|
2089
|
+
* @see https://global-docs.upbit.com/reference/general-deposit-address-inquiry
|
|
2070
2090
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
2071
2091
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
2072
2092
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2122,7 +2142,8 @@ export default class upbit extends Exchange {
|
|
|
2122
2142
|
/**
|
|
2123
2143
|
* @method
|
|
2124
2144
|
* @name upbit#fetchDepositAddress
|
|
2125
|
-
* @see https://docs.upbit.com/reference
|
|
2145
|
+
* @see https://docs.upbit.com/kr/reference/개별-입금-주소-조회
|
|
2146
|
+
* @see https://global-docs.upbit.com/reference/individual-deposit-address-inquiry
|
|
2126
2147
|
* @description fetch the deposit address for a currency associated with this account
|
|
2127
2148
|
* @param {string} code unified currency code
|
|
2128
2149
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2154,7 +2175,8 @@ export default class upbit extends Exchange {
|
|
|
2154
2175
|
/**
|
|
2155
2176
|
* @method
|
|
2156
2177
|
* @name upbit#createDepositAddress
|
|
2157
|
-
* @see https://docs.upbit.com/reference
|
|
2178
|
+
* @see https://docs.upbit.com/kr/reference/입금-주소-생성-요청
|
|
2179
|
+
* @see https://global-docs.upbit.com/reference/deposit-address-generation
|
|
2158
2180
|
* @description create a currency deposit address
|
|
2159
2181
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2160
2182
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2192,8 +2214,8 @@ export default class upbit extends Exchange {
|
|
|
2192
2214
|
/**
|
|
2193
2215
|
* @method
|
|
2194
2216
|
* @name upbit#withdraw
|
|
2195
|
-
* @see https://docs.upbit.com/reference/디지털자산-출금하기
|
|
2196
|
-
* @see https://docs.upbit.com/reference
|
|
2217
|
+
* @see https://docs.upbit.com/kr/reference/디지털자산-출금하기
|
|
2218
|
+
* @see https://global-docs.upbit.com/reference/withdrawal-digital-assets
|
|
2197
2219
|
* @description make a withdrawal
|
|
2198
2220
|
* @param {string} code unified currency code
|
|
2199
2221
|
* @param {float} amount the amount to withdraw
|
package/js/src/whitebit.js
CHANGED
|
@@ -547,18 +547,69 @@ export default class whitebit extends Exchange {
|
|
|
547
547
|
async fetchCurrencies(params = {}) {
|
|
548
548
|
const response = await this.v4PublicGetAssets(params);
|
|
549
549
|
//
|
|
550
|
-
//
|
|
551
|
-
//
|
|
552
|
-
//
|
|
553
|
-
//
|
|
554
|
-
//
|
|
555
|
-
//
|
|
556
|
-
//
|
|
557
|
-
//
|
|
558
|
-
//
|
|
559
|
-
//
|
|
560
|
-
//
|
|
561
|
-
//
|
|
550
|
+
// {
|
|
551
|
+
// BTC: {
|
|
552
|
+
// name: "Bitcoin",
|
|
553
|
+
// unified_cryptoasset_id: "1",
|
|
554
|
+
// can_withdraw: true,
|
|
555
|
+
// can_deposit: true,
|
|
556
|
+
// min_withdraw: "0.0003",
|
|
557
|
+
// max_withdraw: "0",
|
|
558
|
+
// maker_fee: "0.1",
|
|
559
|
+
// taker_fee: "0.1",
|
|
560
|
+
// min_deposit: "0.0001",
|
|
561
|
+
// max_deposit: "0",
|
|
562
|
+
// networks: {
|
|
563
|
+
// deposits: [ "BTC", ],
|
|
564
|
+
// withdraws: [ "BTC", ],
|
|
565
|
+
// default: "BTC",
|
|
566
|
+
// },
|
|
567
|
+
// confirmations: {
|
|
568
|
+
// BTC: "2",
|
|
569
|
+
// },
|
|
570
|
+
// limits: {
|
|
571
|
+
// deposit: {
|
|
572
|
+
// BTC: { min: "0.0001", },
|
|
573
|
+
// },
|
|
574
|
+
// withdraw: {
|
|
575
|
+
// BTC: { min: "0.0003", },
|
|
576
|
+
// },
|
|
577
|
+
// },
|
|
578
|
+
// currency_precision: "8",
|
|
579
|
+
// is_memo: false,
|
|
580
|
+
// },
|
|
581
|
+
// USD: {
|
|
582
|
+
// name: "United States Dollar",
|
|
583
|
+
// unified_cryptoasset_id: "6955",
|
|
584
|
+
// can_withdraw: true,
|
|
585
|
+
// can_deposit: true,
|
|
586
|
+
// min_withdraw: "10",
|
|
587
|
+
// max_withdraw: "10000",
|
|
588
|
+
// maker_fee: "0.1",
|
|
589
|
+
// taker_fee: "0.1",
|
|
590
|
+
// min_deposit: "10",
|
|
591
|
+
// max_deposit: "10000",
|
|
592
|
+
// networks: {
|
|
593
|
+
// deposits: [ "USD", ],
|
|
594
|
+
// withdraws: [ "USD", ],
|
|
595
|
+
// default: "USD",
|
|
596
|
+
// },
|
|
597
|
+
// providers: {
|
|
598
|
+
// deposits: [ "ADVCASH", ],
|
|
599
|
+
// withdraws: [ "ADVCASH", ],
|
|
600
|
+
// },
|
|
601
|
+
// limits: {
|
|
602
|
+
// deposit: {
|
|
603
|
+
// USD: { max: "10000", min: "10", },
|
|
604
|
+
// },
|
|
605
|
+
// withdraw: {
|
|
606
|
+
// USD: { max: "10000", min: "10", },
|
|
607
|
+
// },
|
|
608
|
+
// },
|
|
609
|
+
// currency_precision: "2",
|
|
610
|
+
// is_memo: false,
|
|
611
|
+
// }
|
|
612
|
+
// }
|
|
562
613
|
//
|
|
563
614
|
const ids = Object.keys(response);
|
|
564
615
|
const result = {};
|
|
@@ -571,6 +622,7 @@ export default class whitebit extends Exchange {
|
|
|
571
622
|
const canWithdraw = this.safeBool(currency, 'can_withdraw', true);
|
|
572
623
|
const active = canDeposit && canWithdraw;
|
|
573
624
|
const code = this.safeCurrencyCode(id);
|
|
625
|
+
const hasProvider = ('providers' in currency);
|
|
574
626
|
result[code] = {
|
|
575
627
|
'id': id,
|
|
576
628
|
'code': code,
|
|
@@ -581,6 +633,7 @@ export default class whitebit extends Exchange {
|
|
|
581
633
|
'withdraw': canWithdraw,
|
|
582
634
|
'fee': undefined,
|
|
583
635
|
'networks': undefined,
|
|
636
|
+
'type': hasProvider ? 'fiat' : 'crypto',
|
|
584
637
|
'precision': undefined,
|
|
585
638
|
'limits': {
|
|
586
639
|
'amount': {
|
package/package.json
CHANGED