ccxt 4.4.49 → 4.4.50

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 (122) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/alpaca.js +64 -1
  5. package/dist/cjs/src/base/Exchange.js +75 -0
  6. package/dist/cjs/src/binance.js +8 -4
  7. package/dist/cjs/src/bitfinex1.js +22 -22
  8. package/dist/cjs/src/blofin.js +2 -2
  9. package/dist/cjs/src/bybit.js +2 -2
  10. package/dist/cjs/src/coinex.js +4 -4
  11. package/dist/cjs/src/coinmetro.js +1 -1
  12. package/dist/cjs/src/defx.js +1 -1
  13. package/dist/cjs/src/ellipx.js +1 -0
  14. package/dist/cjs/src/gate.js +1 -1
  15. package/dist/cjs/src/hollaex.js +13 -19
  16. package/dist/cjs/src/hyperliquid.js +4 -4
  17. package/dist/cjs/src/krakenfutures.js +1 -1
  18. package/dist/cjs/src/kucoin.js +49 -71
  19. package/dist/cjs/src/kuna.js +1 -1
  20. package/dist/cjs/src/mexc.js +3 -2
  21. package/dist/cjs/src/okcoin.js +13 -5
  22. package/dist/cjs/src/okx.js +1 -1
  23. package/dist/cjs/src/paradex.js +1 -1
  24. package/dist/cjs/src/paymium.js +42 -0
  25. package/dist/cjs/src/pro/bitfinex1.js +4 -4
  26. package/dist/cjs/src/pro/bitvavo.js +1 -1
  27. package/dist/cjs/src/pro/blofin.js +1 -1
  28. package/dist/cjs/src/pro/bybit.js +1 -1
  29. package/dist/cjs/src/pro/coincatch.js +2 -2
  30. package/dist/cjs/src/pro/cryptocom.js +2 -2
  31. package/dist/cjs/src/pro/defx.js +1 -1
  32. package/dist/cjs/src/pro/exmo.js +1 -1
  33. package/dist/cjs/src/pro/gemini.js +1 -1
  34. package/dist/cjs/src/pro/hashkey.js +2 -2
  35. package/dist/cjs/src/pro/hyperliquid.js +2 -2
  36. package/dist/cjs/src/pro/kucoin.js +1 -1
  37. package/dist/cjs/src/pro/okx.js +1 -1
  38. package/dist/cjs/src/pro/oxfun.js +1 -1
  39. package/dist/cjs/src/probit.js +68 -1
  40. package/dist/cjs/src/timex.js +67 -0
  41. package/dist/cjs/src/tokocrypto.js +82 -5
  42. package/dist/cjs/src/tradeogre.js +55 -2
  43. package/dist/cjs/src/whitebit.js +11 -4
  44. package/examples/README.md +6 -0
  45. package/js/ccxt.d.ts +1 -1
  46. package/js/ccxt.js +1 -1
  47. package/js/src/abstract/binance.d.ts +1 -0
  48. package/js/src/abstract/binancecoinm.d.ts +1 -0
  49. package/js/src/abstract/binanceus.d.ts +1 -0
  50. package/js/src/abstract/binanceusdm.d.ts +1 -0
  51. package/js/src/alpaca.d.ts +35 -0
  52. package/js/src/alpaca.js +64 -1
  53. package/js/src/base/Exchange.js +75 -0
  54. package/js/src/binance.d.ts +1 -0
  55. package/js/src/binance.js +8 -4
  56. package/js/src/bitfinex1.d.ts +22 -22
  57. package/js/src/bitfinex1.js +22 -22
  58. package/js/src/blofin.d.ts +1 -1
  59. package/js/src/blofin.js +2 -2
  60. package/js/src/bybit.d.ts +2 -2
  61. package/js/src/bybit.js +2 -2
  62. package/js/src/coinex.js +4 -4
  63. package/js/src/coinmetro.d.ts +1 -1
  64. package/js/src/coinmetro.js +1 -1
  65. package/js/src/defx.d.ts +1 -1
  66. package/js/src/defx.js +1 -1
  67. package/js/src/ellipx.d.ts +1 -0
  68. package/js/src/ellipx.js +1 -0
  69. package/js/src/gate.d.ts +1 -1
  70. package/js/src/gate.js +1 -1
  71. package/js/src/hollaex.d.ts +2 -1
  72. package/js/src/hollaex.js +13 -19
  73. package/js/src/hyperliquid.d.ts +3 -3
  74. package/js/src/hyperliquid.js +4 -4
  75. package/js/src/krakenfutures.d.ts +1 -1
  76. package/js/src/krakenfutures.js +1 -1
  77. package/js/src/kucoin.js +49 -71
  78. package/js/src/kuna.d.ts +1 -1
  79. package/js/src/kuna.js +1 -1
  80. package/js/src/mexc.js +3 -2
  81. package/js/src/okcoin.js +13 -5
  82. package/js/src/okx.d.ts +1 -1
  83. package/js/src/okx.js +1 -1
  84. package/js/src/paradex.d.ts +1 -1
  85. package/js/src/paradex.js +1 -1
  86. package/js/src/paymium.js +42 -0
  87. package/js/src/pro/bitfinex1.d.ts +4 -4
  88. package/js/src/pro/bitfinex1.js +4 -4
  89. package/js/src/pro/bitvavo.d.ts +1 -1
  90. package/js/src/pro/bitvavo.js +1 -1
  91. package/js/src/pro/blofin.d.ts +1 -1
  92. package/js/src/pro/blofin.js +1 -1
  93. package/js/src/pro/bybit.d.ts +1 -1
  94. package/js/src/pro/bybit.js +1 -1
  95. package/js/src/pro/coincatch.d.ts +2 -2
  96. package/js/src/pro/coincatch.js +2 -2
  97. package/js/src/pro/cryptocom.d.ts +2 -2
  98. package/js/src/pro/cryptocom.js +2 -2
  99. package/js/src/pro/defx.d.ts +1 -1
  100. package/js/src/pro/defx.js +1 -1
  101. package/js/src/pro/exmo.d.ts +1 -1
  102. package/js/src/pro/exmo.js +1 -1
  103. package/js/src/pro/gemini.d.ts +1 -1
  104. package/js/src/pro/gemini.js +1 -1
  105. package/js/src/pro/hashkey.d.ts +2 -2
  106. package/js/src/pro/hashkey.js +2 -2
  107. package/js/src/pro/hyperliquid.d.ts +2 -2
  108. package/js/src/pro/hyperliquid.js +2 -2
  109. package/js/src/pro/kucoin.d.ts +1 -1
  110. package/js/src/pro/kucoin.js +1 -1
  111. package/js/src/pro/okx.d.ts +1 -1
  112. package/js/src/pro/okx.js +1 -1
  113. package/js/src/pro/oxfun.d.ts +1 -1
  114. package/js/src/pro/oxfun.js +1 -1
  115. package/js/src/probit.js +68 -1
  116. package/js/src/timex.js +67 -0
  117. package/js/src/tokocrypto.d.ts +2 -3
  118. package/js/src/tokocrypto.js +82 -5
  119. package/js/src/tradeogre.d.ts +4 -2
  120. package/js/src/tradeogre.js +55 -2
  121. package/js/src/whitebit.js +11 -4
  122. package/package.json +1 -1
@@ -561,7 +561,7 @@ export default class coincatch extends coincatchRest {
561
561
  }
562
562
  /**
563
563
  * @method
564
- * @name coincatch#watchOrderBook
564
+ * @name coincatch#watchOrderBookForSymbols
565
565
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
566
566
  * @see https://coincatch.github.io/github.io/en/spot/#depth-channel
567
567
  * @param symbols
@@ -699,7 +699,7 @@ export default class coincatch extends coincatchRest {
699
699
  }
700
700
  /**
701
701
  * @method
702
- * @name coincatch#watchTrades
702
+ * @name coincatch#watchTradesForSymbols
703
703
  * @description watches information on multiple trades made in a market
704
704
  * @see https://coincatch.github.io/github.io/en/spot/#trades-channel
705
705
  * @param symbols
@@ -31,7 +31,7 @@ export default class cryptocom extends cryptocomRest {
31
31
  unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
32
32
  /**
33
33
  * @method
34
- * @name cryptocom#watchOrderBook
34
+ * @name cryptocom#watchOrderBookForSymbols
35
35
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
36
36
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
37
37
  * @param {string[]} symbols unified array of symbols
@@ -249,7 +249,7 @@ export default class cryptocom extends cryptocomRest {
249
249
  handleOrder(client: Client, message: any): void;
250
250
  /**
251
251
  * @method
252
- * @name cryptocom#cancelOrder
252
+ * @name cryptocom#cancelOrderWs
253
253
  * @description cancels an open order
254
254
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
255
255
  * @param {string} id the order id of the order to cancel
@@ -100,7 +100,7 @@ export default class cryptocom extends cryptocomRest {
100
100
  }
101
101
  /**
102
102
  * @method
103
- * @name cryptocom#watchOrderBook
103
+ * @name cryptocom#watchOrderBookForSymbols
104
104
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
105
105
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name
106
106
  * @param {string[]} symbols unified array of symbols
@@ -1081,7 +1081,7 @@ export default class cryptocom extends cryptocomRest {
1081
1081
  }
1082
1082
  /**
1083
1083
  * @method
1084
- * @name cryptocom#cancelOrder
1084
+ * @name cryptocom#cancelOrderWs
1085
1085
  * @description cancels an open order
1086
1086
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
1087
1087
  * @param {string} id the order id of the order to cancel
@@ -120,7 +120,7 @@ export default class defx extends defxRest {
120
120
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
121
121
  /**
122
122
  * @method
123
- * @name defx#unWatchTradesForSymbols
123
+ * @name defx#unWatchTrades
124
124
  * @description unWatches from the stream channel
125
125
  * @see https://www.postman.com/defxcode/defx-public-apis/collection/667939a1b5d8069c13d614e9
126
126
  * @param {string} symbol unified symbol of the market to fetch trades for
@@ -399,7 +399,7 @@ export default class defx extends defxRest {
399
399
  }
400
400
  /**
401
401
  * @method
402
- * @name defx#unWatchTradesForSymbols
402
+ * @name defx#unWatchTrades
403
403
  * @description unWatches from the stream channel
404
404
  * @see https://www.postman.com/defxcode/defx-public-apis/collection/667939a1b5d8069c13d614e9
405
405
  * @param {string} symbol unified symbol of the market to fetch trades for
@@ -50,7 +50,7 @@ export default class exmo extends exmoRest {
50
50
  handleTrades(client: Client, message: any): void;
51
51
  /**
52
52
  * @method
53
- * @name exmo#watchTrades
53
+ * @name exmo#watchMyTrades
54
54
  * @description get the list of trades associated with the user
55
55
  * @param {string} symbol unified symbol of the market to fetch trades for
56
56
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
@@ -349,7 +349,7 @@ export default class exmo extends exmoRest {
349
349
  }
350
350
  /**
351
351
  * @method
352
- * @name exmo#watchTrades
352
+ * @name exmo#watchMyTrades
353
353
  * @description get the list of trades associated with the user
354
354
  * @param {string} symbol unified symbol of the market to fetch trades for
355
355
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
@@ -33,7 +33,7 @@ export default class gemini extends geminiRest {
33
33
  handleTradesForMultidata(client: Client, trades: any, timestamp: Int): void;
34
34
  /**
35
35
  * @method
36
- * @name gemini#fetchOHLCV
36
+ * @name gemini#watchOHLCV
37
37
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
38
38
  * @see https://docs.gemini.com/websocket-api/#candles-data-feed
39
39
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
@@ -262,7 +262,7 @@ export default class gemini extends geminiRest {
262
262
  }
263
263
  /**
264
264
  * @method
265
- * @name gemini#fetchOHLCV
265
+ * @name gemini#watchOHLCV
266
266
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
267
267
  * @see https://docs.gemini.com/websocket-api/#candles-data-feed
268
268
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
@@ -50,7 +50,7 @@ export default class hashkey extends hashkeyRest {
50
50
  handleTrades(client: Client, message: any): void;
51
51
  /**
52
52
  * @method
53
- * @name alpaca#watchOrderBook
53
+ * @name hashkey#watchOrderBook
54
54
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
55
55
  * @see https://hashkeyglobal-apidoc.readme.io/reference/websocket-api#public-stream
56
56
  * @param {string} symbol unified symbol of the market to fetch the order book for
@@ -104,7 +104,7 @@ export default class hashkey extends hashkeyRest {
104
104
  parseWsPosition(position: any, market?: Market): Position;
105
105
  /**
106
106
  * @method
107
- * @name bitmart#watchBalance
107
+ * @name hashkey#watchBalance
108
108
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
109
109
  * @see https://hashkeyglobal-apidoc.readme.io/reference/websocket-api#private-stream
110
110
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -290,7 +290,7 @@ export default class hashkey extends hashkeyRest {
290
290
  }
291
291
  /**
292
292
  * @method
293
- * @name alpaca#watchOrderBook
293
+ * @name hashkey#watchOrderBook
294
294
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
295
295
  * @see https://hashkeyglobal-apidoc.readme.io/reference/websocket-api#public-stream
296
296
  * @param {string} symbol unified symbol of the market to fetch the order book for
@@ -686,7 +686,7 @@ export default class hashkey extends hashkeyRest {
686
686
  }
687
687
  /**
688
688
  * @method
689
- * @name bitmart#watchBalance
689
+ * @name hashkey#watchBalance
690
690
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
691
691
  * @see https://hashkeyglobal-apidoc.readme.io/reference/websocket-api#private-stream
692
692
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -15,7 +15,7 @@ export default class hyperliquid extends hyperliquidRest {
15
15
  createOrdersWs(orders: OrderRequest[], params?: {}): Promise<Order[]>;
16
16
  /**
17
17
  * @method
18
- * @name hyperliquid#createOrder
18
+ * @name hyperliquid#createOrderWs
19
19
  * @description create a trade order using WebSocket post request
20
20
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
21
21
  * @param {string} symbol unified symbol of the market to create an order in
@@ -36,7 +36,7 @@ export default class hyperliquid extends hyperliquidRest {
36
36
  createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
37
37
  /**
38
38
  * @method
39
- * @name hyperliquid#editOrder
39
+ * @name hyperliquid#editOrderWs
40
40
  * @description edit a trade order
41
41
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-an-order
42
42
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
@@ -76,7 +76,7 @@ export default class hyperliquid extends hyperliquidRest {
76
76
  }
77
77
  /**
78
78
  * @method
79
- * @name hyperliquid#createOrder
79
+ * @name hyperliquid#createOrderWs
80
80
  * @description create a trade order using WebSocket post request
81
81
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
82
82
  * @param {string} symbol unified symbol of the market to create an order in
@@ -102,7 +102,7 @@ export default class hyperliquid extends hyperliquidRest {
102
102
  }
103
103
  /**
104
104
  * @method
105
- * @name hyperliquid#editOrder
105
+ * @name hyperliquid#editOrderWs
106
106
  * @description edit a trade order
107
107
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-an-order
108
108
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
@@ -72,7 +72,7 @@ export default class kucoin extends kucoinRest {
72
72
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
73
73
  /**
74
74
  * @method
75
- * @name kucoin#watchTrades
75
+ * @name kucoin#watchTradesForSymbols
76
76
  * @description get the list of most recent trades for a particular symbol
77
77
  * @see https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
78
78
  * @param {string[]} symbols
@@ -496,7 +496,7 @@ export default class kucoin extends kucoinRest {
496
496
  }
497
497
  /**
498
498
  * @method
499
- * @name kucoin#watchTrades
499
+ * @name kucoin#watchTradesForSymbols
500
500
  * @description get the list of most recent trades for a particular symbol
501
501
  * @see https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data
502
502
  * @param {string[]} symbols
@@ -39,7 +39,7 @@ export default class okx extends okxRest {
39
39
  unWatchTradesForSymbols(symbols: string[], params?: {}): Promise<any>;
40
40
  /**
41
41
  * @method
42
- * @name okx#unWatchTradesForSymbols
42
+ * @name okx#unWatchTrades
43
43
  * @description unWatches from the stream channel
44
44
  * @param {string} symbol unified symbol of the market to fetch trades for
45
45
  * @param {object} [params] extra parameters specific to the exchange API endpoint
package/js/src/pro/okx.js CHANGED
@@ -256,7 +256,7 @@ export default class okx extends okxRest {
256
256
  }
257
257
  /**
258
258
  * @method
259
- * @name okx#unWatchTradesForSymbols
259
+ * @name okx#unWatchTrades
260
260
  * @description unWatches from the stream channel
261
261
  * @param {string} symbol unified symbol of the market to fetch trades for
262
262
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -217,7 +217,7 @@ export default class oxfun extends oxfunRest {
217
217
  cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
218
218
  /**
219
219
  * @method
220
- * @name okx#cancelOrdersWs
220
+ * @name oxfun#cancelOrdersWs
221
221
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-mass-cancel-order
222
222
  * @description cancel multiple orders
223
223
  * @param {string[]} ids order ids
@@ -983,7 +983,7 @@ export default class oxfun extends oxfunRest {
983
983
  }
984
984
  /**
985
985
  * @method
986
- * @name okx#cancelOrdersWs
986
+ * @name oxfun#cancelOrdersWs
987
987
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-mass-cancel-order
988
988
  * @description cancel multiple orders
989
989
  * @param {string[]} ids order ids
package/js/src/probit.js CHANGED
@@ -90,7 +90,7 @@ export default class probit extends Exchange {
90
90
  'fetchWithdrawal': false,
91
91
  'fetchWithdrawals': true,
92
92
  'reduceMargin': false,
93
- 'sandbox': true,
93
+ 'sandbox': false,
94
94
  'setLeverage': false,
95
95
  'setMarginMode': false,
96
96
  'setPositionMode': false,
@@ -172,6 +172,73 @@ export default class probit extends Exchange {
172
172
  'taker': this.parseNumber('0.002'),
173
173
  },
174
174
  },
175
+ 'features': {
176
+ 'spot': {
177
+ 'sandbox': false,
178
+ 'createOrder': {
179
+ 'marginMode': false,
180
+ 'triggerPrice': false,
181
+ 'triggerDirection': false,
182
+ 'triggerPriceType': undefined,
183
+ 'stopLossPrice': false,
184
+ 'takeProfitPrice': false,
185
+ 'attachedStopLossTakeProfit': undefined,
186
+ // todo
187
+ 'timeInForce': {
188
+ 'IOC': true,
189
+ 'FOK': true,
190
+ 'PO': false,
191
+ 'GTD': false,
192
+ },
193
+ 'hedged': false,
194
+ 'trailing': false,
195
+ 'leverage': false,
196
+ 'marketBuyByCost': true,
197
+ 'marketBuyRequiresPrice': false,
198
+ 'selfTradePrevention': false,
199
+ 'iceberg': false,
200
+ },
201
+ 'createOrders': undefined,
202
+ 'fetchMyTrades': {
203
+ 'marginMode': false,
204
+ 'limit': 1000,
205
+ 'daysBack': 100000,
206
+ 'untilDays': 100000, // todo
207
+ },
208
+ 'fetchOrder': {
209
+ 'marginMode': false,
210
+ 'trigger': false,
211
+ 'trailing': false,
212
+ },
213
+ 'fetchOpenOrders': {
214
+ 'marginMode': false,
215
+ 'limit': undefined,
216
+ 'trigger': false,
217
+ 'trailing': false,
218
+ },
219
+ 'fetchOrders': undefined,
220
+ 'fetchClosedOrders': {
221
+ 'marginMode': false,
222
+ 'limit': 1000,
223
+ 'daysBack': 100000,
224
+ 'daysBackCanceled': 1,
225
+ 'untilDays': 90,
226
+ 'trigger': false,
227
+ 'trailing': false,
228
+ },
229
+ 'fetchOHLCV': {
230
+ 'limit': 4000,
231
+ },
232
+ },
233
+ 'swap': {
234
+ 'linear': undefined,
235
+ 'inverse': undefined,
236
+ },
237
+ 'future': {
238
+ 'linear': undefined,
239
+ 'inverse': undefined,
240
+ },
241
+ },
175
242
  'exceptions': {
176
243
  'exact': {
177
244
  'UNAUTHORIZED': AuthenticationError,
package/js/src/timex.js CHANGED
@@ -270,6 +270,73 @@ export default class timex extends Exchange {
270
270
  'defaultSort': 'timestamp,asc',
271
271
  'defaultSortOrders': 'createdAt,asc',
272
272
  },
273
+ 'features': {
274
+ 'spot': {
275
+ 'sandbox': false,
276
+ 'createOrder': {
277
+ 'marginMode': false,
278
+ 'triggerPrice': false,
279
+ 'triggerDirection': false,
280
+ 'triggerPriceType': undefined,
281
+ 'stopLossPrice': false,
282
+ 'takeProfitPrice': false,
283
+ 'attachedStopLossTakeProfit': undefined,
284
+ // todo
285
+ 'timeInForce': {
286
+ 'IOC': true,
287
+ 'FOK': true,
288
+ 'PO': false,
289
+ 'GTD': true,
290
+ },
291
+ 'hedged': false,
292
+ 'trailing': false,
293
+ 'leverage': false,
294
+ 'marketBuyByCost': false,
295
+ 'marketBuyRequiresPrice': false,
296
+ 'selfTradePrevention': false,
297
+ 'iceberg': false,
298
+ },
299
+ 'createOrders': undefined,
300
+ 'fetchMyTrades': {
301
+ 'marginMode': false,
302
+ 'limit': 100,
303
+ 'daysBack': 100000,
304
+ 'untilDays': 100000, // todo
305
+ },
306
+ 'fetchOrder': {
307
+ 'marginMode': false,
308
+ 'trigger': false,
309
+ 'trailing': false,
310
+ },
311
+ 'fetchOpenOrders': {
312
+ 'marginMode': false,
313
+ 'limit': 100,
314
+ 'trigger': false,
315
+ 'trailing': false,
316
+ },
317
+ 'fetchOrders': undefined,
318
+ 'fetchClosedOrders': {
319
+ 'marginMode': false,
320
+ 'limit': 100,
321
+ 'daysBack': 100000,
322
+ 'daysBackCanceled': 1,
323
+ 'untilDays': 100000,
324
+ 'trigger': false,
325
+ 'trailing': false,
326
+ },
327
+ 'fetchOHLCV': {
328
+ 'limit': undefined,
329
+ },
330
+ },
331
+ 'swap': {
332
+ 'linear': undefined,
333
+ 'inverse': undefined,
334
+ },
335
+ 'future': {
336
+ 'linear': undefined,
337
+ 'inverse': undefined,
338
+ },
339
+ },
273
340
  });
274
341
  }
275
342
  /**
@@ -119,7 +119,6 @@ export default class tokocrypto extends Exchange {
119
119
  * @name tokocrypto#createOrder
120
120
  * @description create a trade order
121
121
  * @see https://www.tokocrypto.com/apidocs/#new-order--signed
122
- * @see https://www.tokocrypto.com/apidocs/#account-trade-list-signed
123
122
  * @param {string} symbol unified symbol of the market to create an order in
124
123
  * @param {string} type 'market' or 'limit'
125
124
  * @param {string} side 'buy' or 'sell'
@@ -134,7 +133,7 @@ export default class tokocrypto extends Exchange {
134
133
  /**
135
134
  * @method
136
135
  * @name tokocrypto#fetchOrder
137
- * @see https://www.tokocrypto.com/apidocs/#all-orders-signed
136
+ * @see https://www.tokocrypto.com/apidocs/#query-order-signed
138
137
  * @description fetches information on an order made by the user
139
138
  * @param {string} id order id
140
139
  * @param {string} symbol unified symbol of the market the order was made in
@@ -240,7 +239,7 @@ export default class tokocrypto extends Exchange {
240
239
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
241
240
  /**
242
241
  * @method
243
- * @name bybit#withdraw
242
+ * @name tokocrypto#withdraw
244
243
  * @see https://www.tokocrypto.com/apidocs/#withdraw-signed
245
244
  * @description make a withdrawal
246
245
  * @param {string} code unified currency code
@@ -598,6 +598,79 @@ export default class tokocrypto extends Exchange {
598
598
  'MAX_POSITION': InvalidOrder, // {"code":-2010,"msg":"Filter failure: MAX_POSITION"}
599
599
  },
600
600
  },
601
+ 'features': {
602
+ 'spot': {
603
+ 'sandbox': false,
604
+ 'createOrder': {
605
+ 'marginMode': false,
606
+ 'triggerPrice': true,
607
+ 'triggerDirection': false,
608
+ 'triggerPriceType': undefined,
609
+ 'stopLossPrice': false,
610
+ 'takeProfitPrice': false,
611
+ 'attachedStopLossTakeProfit': undefined,
612
+ 'timeInForce': {
613
+ 'IOC': true,
614
+ 'FOK': true,
615
+ 'PO': true,
616
+ 'GTD': false,
617
+ },
618
+ 'hedged': false,
619
+ 'trailing': false,
620
+ 'leverage': false,
621
+ 'marketBuyByCost': true,
622
+ 'marketBuyRequiresPrice': true,
623
+ 'selfTradePrevention': true,
624
+ 'iceberg': true, // todo
625
+ },
626
+ 'createOrders': undefined,
627
+ 'fetchMyTrades': {
628
+ 'marginMode': false,
629
+ 'limit': 1000,
630
+ 'daysBack': 100000,
631
+ 'untilDays': 100000, // todo
632
+ },
633
+ 'fetchOrder': {
634
+ 'marginMode': false,
635
+ 'trigger': false,
636
+ 'trailing': false,
637
+ },
638
+ 'fetchOpenOrders': {
639
+ 'marginMode': false,
640
+ 'limit': 1000,
641
+ 'trigger': false,
642
+ 'trailing': false,
643
+ },
644
+ 'fetchOrders': {
645
+ 'marginMode': false,
646
+ 'limit': 1000,
647
+ 'daysBack': 100000,
648
+ 'untilDays': 100000,
649
+ 'trigger': false,
650
+ 'trailing': false,
651
+ },
652
+ 'fetchClosedOrders': {
653
+ 'marginMode': false,
654
+ 'limit': 1000,
655
+ 'daysBack': 100000,
656
+ 'daysBackCanceled': 1,
657
+ 'untilDays': 100000,
658
+ 'trigger': false,
659
+ 'trailing': false,
660
+ },
661
+ 'fetchOHLCV': {
662
+ 'limit': 1000,
663
+ },
664
+ },
665
+ 'swap': {
666
+ 'linear': undefined,
667
+ 'inverse': undefined,
668
+ },
669
+ 'future': {
670
+ 'linear': undefined,
671
+ 'inverse': undefined,
672
+ },
673
+ },
601
674
  });
602
675
  }
603
676
  nonce() {
@@ -614,9 +687,14 @@ export default class tokocrypto extends Exchange {
614
687
  async fetchTime(params = {}) {
615
688
  const response = await this.publicGetOpenV1CommonTime(params);
616
689
  //
690
+ // {
691
+ // "code": 0,
692
+ // "msg": "Success",
693
+ // "data": null,
694
+ // "timestamp": 1737378074159
695
+ // }
617
696
  //
618
- //
619
- return this.safeInteger(response, 'serverTime');
697
+ return this.safeInteger(response, 'timestamp');
620
698
  }
621
699
  /**
622
700
  * @method
@@ -1591,7 +1669,6 @@ export default class tokocrypto extends Exchange {
1591
1669
  * @name tokocrypto#createOrder
1592
1670
  * @description create a trade order
1593
1671
  * @see https://www.tokocrypto.com/apidocs/#new-order--signed
1594
- * @see https://www.tokocrypto.com/apidocs/#account-trade-list-signed
1595
1672
  * @param {string} symbol unified symbol of the market to create an order in
1596
1673
  * @param {string} type 'market' or 'limit'
1597
1674
  * @param {string} side 'buy' or 'sell'
@@ -1781,7 +1858,7 @@ export default class tokocrypto extends Exchange {
1781
1858
  /**
1782
1859
  * @method
1783
1860
  * @name tokocrypto#fetchOrder
1784
- * @see https://www.tokocrypto.com/apidocs/#all-orders-signed
1861
+ * @see https://www.tokocrypto.com/apidocs/#query-order-signed
1785
1862
  * @description fetches information on an order made by the user
1786
1863
  * @param {string} id order id
1787
1864
  * @param {string} symbol unified symbol of the market the order was made in
@@ -2346,7 +2423,7 @@ export default class tokocrypto extends Exchange {
2346
2423
  }
2347
2424
  /**
2348
2425
  * @method
2349
- * @name bybit#withdraw
2426
+ * @name tokocrypto#withdraw
2350
2427
  * @see https://www.tokocrypto.com/apidocs/#withdraw-signed
2351
2428
  * @description make a withdrawal
2352
2429
  * @param {string} code unified currency code
@@ -63,6 +63,7 @@ export default class tradeogre extends Exchange {
63
63
  * @method
64
64
  * @name tradeogre#createOrder
65
65
  * @description create a trade order
66
+ * @see https://tradeogre.com/help/api#:~:text=u%20%27%7Bpublic%7D%3A%7Bprivate%7D%27-,Submit%20Buy%20Order
66
67
  * @param {string} symbol unified symbol of the market to create an order in
67
68
  * @param {string} type must be 'limit'
68
69
  * @param {string} side 'buy' or 'sell'
@@ -95,6 +96,7 @@ export default class tradeogre extends Exchange {
95
96
  * @method
96
97
  * @name tradeogre#fetchOpenOrders
97
98
  * @description fetch all unfilled currently open orders
99
+ * @see https://tradeogre.com/help/api#:~:text=%7B%22success%22%3Atrue%7D-,Get%20Orders,-Method%20(POST)
98
100
  * @param {string} symbol unified market symbol of the market orders were made in
99
101
  * @param {int} [since] the earliest time in ms to fetch orders for
100
102
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -104,9 +106,9 @@ export default class tradeogre extends Exchange {
104
106
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
105
107
  /**
106
108
  * @method
107
- * @name ace#fetchOrder
109
+ * @name tradeogre#fetchOrder
108
110
  * @description fetches information on an order made by the user
109
- * @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
111
+ * @see https://tradeogre.com/help/api#:~:text=market%22%3A%22XMR%2DBTC%22%7D%5D-,Get%20Order,-Method%20(GET)
110
112
  * @param {string} id order id
111
113
  * @param {string} symbol unified symbol of the market the order was made in
112
114
  * @param {object} [params] extra parameters specific to the exchange API endpoint