ccxt 4.4.48__py2.py3-none-any.whl → 4.4.49__py2.py3-none-any.whl
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.
- ccxt/__init__.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bingx.py +73 -29
- ccxt/async_support/bitget.py +12 -10
- ccxt/async_support/coinsph.py +17 -8
- ccxt/async_support/deribit.py +82 -0
- ccxt/async_support/digifinex.py +125 -10
- ccxt/async_support/ellipx.py +61 -0
- ccxt/async_support/exmo.py +58 -0
- ccxt/async_support/hitbtc.py +99 -0
- ccxt/async_support/hollaex.py +73 -0
- ccxt/async_support/huobijp.py +73 -0
- ccxt/async_support/hyperliquid.py +22 -1
- ccxt/async_support/idex.py +71 -0
- ccxt/async_support/independentreserve.py +64 -0
- ccxt/async_support/indodax.py +61 -0
- ccxt/async_support/kuna.py +60 -1
- ccxt/async_support/latoken.py +64 -0
- ccxt/async_support/lbank.py +70 -0
- ccxt/async_support/luno.py +73 -0
- ccxt/async_support/lykke.py +64 -0
- ccxt/async_support/mercado.py +65 -0
- ccxt/async_support/mexc.py +1 -1
- ccxt/async_support/myokx.py +10 -0
- ccxt/async_support/ndax.py +71 -0
- ccxt/async_support/novadax.py +74 -0
- ccxt/async_support/oceanex.py +69 -0
- ccxt/async_support/okcoin.py +79 -2
- ccxt/async_support/onetrading.py +66 -0
- ccxt/async_support/oxfun.py +66 -0
- ccxt/async_support/p2b.py +63 -1
- ccxt/async_support/paradex.py +68 -0
- ccxt/base/exchange.py +1 -1
- ccxt/bingx.py +73 -29
- ccxt/bitget.py +12 -10
- ccxt/coinsph.py +17 -8
- ccxt/deribit.py +82 -0
- ccxt/digifinex.py +125 -10
- ccxt/ellipx.py +61 -0
- ccxt/exmo.py +58 -0
- ccxt/hitbtc.py +99 -0
- ccxt/hollaex.py +73 -0
- ccxt/huobijp.py +73 -0
- ccxt/hyperliquid.py +22 -1
- ccxt/idex.py +71 -0
- ccxt/independentreserve.py +64 -0
- ccxt/indodax.py +61 -0
- ccxt/kuna.py +60 -1
- ccxt/latoken.py +64 -0
- ccxt/lbank.py +70 -0
- ccxt/luno.py +73 -0
- ccxt/lykke.py +64 -0
- ccxt/mercado.py +65 -0
- ccxt/mexc.py +1 -1
- ccxt/myokx.py +10 -0
- ccxt/ndax.py +71 -0
- ccxt/novadax.py +74 -0
- ccxt/oceanex.py +69 -0
- ccxt/okcoin.py +79 -2
- ccxt/onetrading.py +66 -0
- ccxt/oxfun.py +66 -0
- ccxt/p2b.py +63 -1
- ccxt/paradex.py +68 -0
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/bitmart.py +5 -0
- {ccxt-4.4.48.dist-info → ccxt-4.4.49.dist-info}/METADATA +4 -4
- {ccxt-4.4.48.dist-info → ccxt-4.4.49.dist-info}/RECORD +71 -71
- {ccxt-4.4.48.dist-info → ccxt-4.4.49.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.48.dist-info → ccxt-4.4.49.dist-info}/WHEEL +0 -0
- {ccxt-4.4.48.dist-info → ccxt-4.4.49.dist-info}/top_level.txt +0 -0
ccxt/huobijp.py
CHANGED
@@ -265,6 +265,79 @@ class huobijp(Exchange, ImplicitAPI):
|
|
265
265
|
'taker': self.parse_number('0.002'),
|
266
266
|
},
|
267
267
|
},
|
268
|
+
'features': {
|
269
|
+
'spot': {
|
270
|
+
'sandbox': False,
|
271
|
+
'createOrder': {
|
272
|
+
'marginMode': False,
|
273
|
+
'triggerPrice': True, # todo: implement
|
274
|
+
'triggerPriceType': None,
|
275
|
+
'triggerDirection': False,
|
276
|
+
'stopLossPrice': False, # todo
|
277
|
+
'takeProfitPrice': False, # todo
|
278
|
+
'attachedStopLossTakeProfit': None,
|
279
|
+
'timeInForce': {
|
280
|
+
'IOC': False,
|
281
|
+
'FOK': False,
|
282
|
+
'PO': False,
|
283
|
+
'GTD': False,
|
284
|
+
},
|
285
|
+
'hedged': False,
|
286
|
+
'selfTradePrevention': False,
|
287
|
+
'trailing': False,
|
288
|
+
'leverage': False,
|
289
|
+
'marketBuyByCost': True,
|
290
|
+
'marketBuyRequiresPrice': False,
|
291
|
+
'iceberg': False,
|
292
|
+
},
|
293
|
+
'createOrders': None,
|
294
|
+
'fetchMyTrades': {
|
295
|
+
'marginMode': False,
|
296
|
+
'limit': 100,
|
297
|
+
'daysBack': 120,
|
298
|
+
'untilDays': 2,
|
299
|
+
},
|
300
|
+
'fetchOrder': {
|
301
|
+
'marginMode': False,
|
302
|
+
'trigger': False,
|
303
|
+
'trailing': False,
|
304
|
+
},
|
305
|
+
'fetchOpenOrders': {
|
306
|
+
'marginMode': False,
|
307
|
+
'limit': None, # todo
|
308
|
+
'trigger': False,
|
309
|
+
'trailing': False,
|
310
|
+
},
|
311
|
+
'fetchOrders': {
|
312
|
+
'marginMode': False,
|
313
|
+
'limit': None,
|
314
|
+
'daysBack': None, # todo
|
315
|
+
'untilDays': None, # todo
|
316
|
+
'trigger': False,
|
317
|
+
'trailing': False,
|
318
|
+
},
|
319
|
+
'fetchClosedOrders': {
|
320
|
+
'marginMode': False,
|
321
|
+
'limit': None,
|
322
|
+
'daysBack': None, # todo
|
323
|
+
'daysBackCanceled': None, # todo
|
324
|
+
'untilDays': None, # todo
|
325
|
+
'trigger': False,
|
326
|
+
'trailing': False,
|
327
|
+
},
|
328
|
+
'fetchOHLCV': {
|
329
|
+
'limit': 2000,
|
330
|
+
},
|
331
|
+
},
|
332
|
+
'swap': {
|
333
|
+
'linear': None,
|
334
|
+
'inverse': None,
|
335
|
+
},
|
336
|
+
'future': {
|
337
|
+
'linear': None,
|
338
|
+
'inverse': None,
|
339
|
+
},
|
340
|
+
},
|
268
341
|
'precisionMode': TICK_SIZE,
|
269
342
|
'exceptions': {
|
270
343
|
'broad': {
|
ccxt/hyperliquid.py
CHANGED
@@ -215,6 +215,8 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
215
215
|
'Order price cannot be more than 80% away from the reference price': InvalidOrder,
|
216
216
|
'Order has zero size.': InvalidOrder,
|
217
217
|
'Insufficient spot balance asset': InsufficientFunds,
|
218
|
+
'Insufficient balance for withdrawal': InsufficientFunds,
|
219
|
+
'Insufficient balance for token transfer': InsufficientFunds,
|
218
220
|
},
|
219
221
|
},
|
220
222
|
'precisionMode': TICK_SIZE,
|
@@ -2755,7 +2757,26 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
2755
2757
|
'signature': sig,
|
2756
2758
|
}
|
2757
2759
|
response = self.privatePostExchange(request)
|
2758
|
-
|
2760
|
+
#
|
2761
|
+
# {'response': {'type': 'default'}, 'status': 'ok'}
|
2762
|
+
#
|
2763
|
+
return self.parse_transfer(response)
|
2764
|
+
|
2765
|
+
def parse_transfer(self, transfer: dict, currency: Currency = None) -> TransferEntry:
|
2766
|
+
#
|
2767
|
+
# {'response': {'type': 'default'}, 'status': 'ok'}
|
2768
|
+
#
|
2769
|
+
return {
|
2770
|
+
'info': transfer,
|
2771
|
+
'id': None,
|
2772
|
+
'timestamp': None,
|
2773
|
+
'datetime': None,
|
2774
|
+
'currency': None,
|
2775
|
+
'amount': None,
|
2776
|
+
'fromAccount': None,
|
2777
|
+
'toAccount': None,
|
2778
|
+
'status': 'ok',
|
2779
|
+
}
|
2759
2780
|
|
2760
2781
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2761
2782
|
"""
|
ccxt/idex.py
CHANGED
@@ -176,6 +176,77 @@ class idex(Exchange, ImplicitAPI):
|
|
176
176
|
'defaultSelfTradePrevention': 'cn',
|
177
177
|
'network': 'MATIC',
|
178
178
|
},
|
179
|
+
'features': {
|
180
|
+
'spot': {
|
181
|
+
'sandbox': False,
|
182
|
+
'createOrder': {
|
183
|
+
'marginMode': False,
|
184
|
+
'triggerPrice': True,
|
185
|
+
# todo: revise
|
186
|
+
'triggerPriceType': {
|
187
|
+
'last': True,
|
188
|
+
'mark': True,
|
189
|
+
'index': True,
|
190
|
+
},
|
191
|
+
'triggerDirection': False,
|
192
|
+
'stopLossPrice': False, # todo
|
193
|
+
'takeProfitPrice': False, # todo
|
194
|
+
'attachedStopLossTakeProfit': None,
|
195
|
+
'timeInForce': {
|
196
|
+
'IOC': True,
|
197
|
+
'FOK': True,
|
198
|
+
'PO': True,
|
199
|
+
'GTD': False,
|
200
|
+
},
|
201
|
+
'hedged': False,
|
202
|
+
'selfTradePrevention': True, # todo implementation
|
203
|
+
'trailing': False,
|
204
|
+
'leverage': False,
|
205
|
+
'marketBuyByCost': False,
|
206
|
+
'marketBuyRequiresPrice': False,
|
207
|
+
'iceberg': False,
|
208
|
+
},
|
209
|
+
'createOrders': None,
|
210
|
+
'fetchMyTrades': {
|
211
|
+
'marginMode': False,
|
212
|
+
'limit': 1000,
|
213
|
+
'daysBack': 100000, # todo
|
214
|
+
'untilDays': 100000, # todo
|
215
|
+
},
|
216
|
+
'fetchOrder': {
|
217
|
+
'marginMode': False,
|
218
|
+
'trigger': False,
|
219
|
+
'trailing': False,
|
220
|
+
},
|
221
|
+
'fetchOpenOrders': {
|
222
|
+
'marginMode': False,
|
223
|
+
'limit': 1000,
|
224
|
+
'trigger': False,
|
225
|
+
'trailing': False,
|
226
|
+
},
|
227
|
+
'fetchOrders': None,
|
228
|
+
'fetchClosedOrders': {
|
229
|
+
'marginMode': False,
|
230
|
+
'limit': 1000,
|
231
|
+
'daysBack': 1000000, # todo
|
232
|
+
'daysBackCanceled': 1, # todo
|
233
|
+
'untilDays': 1000000, # todo
|
234
|
+
'trigger': False,
|
235
|
+
'trailing': False,
|
236
|
+
},
|
237
|
+
'fetchOHLCV': {
|
238
|
+
'limit': 1000,
|
239
|
+
},
|
240
|
+
},
|
241
|
+
'swap': {
|
242
|
+
'linear': None,
|
243
|
+
'inverse': None,
|
244
|
+
},
|
245
|
+
'future': {
|
246
|
+
'linear': None,
|
247
|
+
'inverse': None,
|
248
|
+
},
|
249
|
+
},
|
179
250
|
'exceptions': {
|
180
251
|
'exact': {
|
181
252
|
'INVALID_ORDER_QUANTITY': InvalidOrder,
|
ccxt/independentreserve.py
CHANGED
@@ -148,6 +148,70 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
148
148
|
'tierBased': False,
|
149
149
|
},
|
150
150
|
},
|
151
|
+
'features': {
|
152
|
+
'spot': {
|
153
|
+
'sandbox': False,
|
154
|
+
'createOrder': {
|
155
|
+
'marginMode': False,
|
156
|
+
'triggerPrice': False,
|
157
|
+
'triggerPriceType': None,
|
158
|
+
'triggerDirection': False,
|
159
|
+
'stopLossPrice': False,
|
160
|
+
'takeProfitPrice': False,
|
161
|
+
'attachedStopLossTakeProfit': None,
|
162
|
+
'timeInForce': {
|
163
|
+
'IOC': False,
|
164
|
+
'FOK': False,
|
165
|
+
'PO': False,
|
166
|
+
'GTD': False,
|
167
|
+
},
|
168
|
+
'hedged': False,
|
169
|
+
'selfTradePrevention': False,
|
170
|
+
'trailing': False,
|
171
|
+
'leverage': False,
|
172
|
+
'marketBuyByCost': False,
|
173
|
+
'marketBuyRequiresPrice': False,
|
174
|
+
'iceberg': False,
|
175
|
+
},
|
176
|
+
'createOrders': None,
|
177
|
+
'fetchMyTrades': {
|
178
|
+
'marginMode': False,
|
179
|
+
'limit': 100, # todo
|
180
|
+
'daysBack': None,
|
181
|
+
'untilDays': None,
|
182
|
+
},
|
183
|
+
'fetchOrder': {
|
184
|
+
'marginMode': False,
|
185
|
+
'trigger': False,
|
186
|
+
'trailing': False,
|
187
|
+
},
|
188
|
+
'fetchOpenOrders': {
|
189
|
+
'marginMode': False,
|
190
|
+
'limit': 100, # todo
|
191
|
+
'trigger': False,
|
192
|
+
'trailing': False,
|
193
|
+
},
|
194
|
+
'fetchOrders': None,
|
195
|
+
'fetchClosedOrders': {
|
196
|
+
'marginMode': False,
|
197
|
+
'limit': 100, # todo
|
198
|
+
'daysBack': None,
|
199
|
+
'daysBackCanceled': None,
|
200
|
+
'untilDays': None,
|
201
|
+
'trigger': False,
|
202
|
+
'trailing': False,
|
203
|
+
},
|
204
|
+
'fetchOHLCV': None,
|
205
|
+
},
|
206
|
+
'swap': {
|
207
|
+
'linear': None,
|
208
|
+
'inverse': None,
|
209
|
+
},
|
210
|
+
'future': {
|
211
|
+
'linear': None,
|
212
|
+
'inverse': None,
|
213
|
+
},
|
214
|
+
},
|
151
215
|
'commonCurrencies': {
|
152
216
|
'PLA': 'PlayChip',
|
153
217
|
},
|
ccxt/indodax.py
CHANGED
@@ -204,6 +204,67 @@ class indodax(Exchange, ImplicitAPI):
|
|
204
204
|
'1w': '1W',
|
205
205
|
},
|
206
206
|
},
|
207
|
+
'features': {
|
208
|
+
'spot': {
|
209
|
+
'sandbox': False,
|
210
|
+
'createOrder': {
|
211
|
+
'marginMode': False,
|
212
|
+
'triggerPrice': False,
|
213
|
+
'triggerPriceType': None,
|
214
|
+
'triggerDirection': False,
|
215
|
+
'stopLossPrice': False,
|
216
|
+
'takeProfitPrice': False,
|
217
|
+
'attachedStopLossTakeProfit': None,
|
218
|
+
'timeInForce': {
|
219
|
+
'IOC': True, # todo implementation
|
220
|
+
'FOK': False,
|
221
|
+
'PO': False,
|
222
|
+
'GTD': False,
|
223
|
+
},
|
224
|
+
'hedged': False,
|
225
|
+
'selfTradePrevention': False,
|
226
|
+
'trailing': False,
|
227
|
+
'leverage': False,
|
228
|
+
'marketBuyByCost': False,
|
229
|
+
'marketBuyRequiresPrice': False,
|
230
|
+
'iceberg': False,
|
231
|
+
},
|
232
|
+
'createOrders': None,
|
233
|
+
'fetchMyTrades': None, # todo implement
|
234
|
+
'fetchOrder': {
|
235
|
+
'marginMode': False,
|
236
|
+
'trigger': False,
|
237
|
+
'trailing': False,
|
238
|
+
},
|
239
|
+
'fetchOpenOrders': {
|
240
|
+
'marginMode': False,
|
241
|
+
'limit': None,
|
242
|
+
'trigger': False,
|
243
|
+
'trailing': False,
|
244
|
+
},
|
245
|
+
'fetchOrders': None,
|
246
|
+
'fetchClosedOrders': {
|
247
|
+
'marginMode': False,
|
248
|
+
'limit': 1000,
|
249
|
+
'daysBack': 100000, # todo
|
250
|
+
'daysBackCanceled': 1,
|
251
|
+
'untilDays': None,
|
252
|
+
'trigger': False,
|
253
|
+
'trailing': False,
|
254
|
+
},
|
255
|
+
'fetchOHLCV': {
|
256
|
+
'limit': 2000, # todo: not in request
|
257
|
+
},
|
258
|
+
},
|
259
|
+
'swap': {
|
260
|
+
'linear': None,
|
261
|
+
'inverse': None,
|
262
|
+
},
|
263
|
+
'future': {
|
264
|
+
'linear': None,
|
265
|
+
'inverse': None,
|
266
|
+
},
|
267
|
+
},
|
207
268
|
'commonCurrencies': {
|
208
269
|
'STR': 'XLM',
|
209
270
|
'BCHABC': 'BCH',
|
ccxt/kuna.py
CHANGED
@@ -78,7 +78,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
78
78
|
'fetchMarkets': True,
|
79
79
|
'fetchMarkOHLCV': False,
|
80
80
|
'fetchMyTrades': True,
|
81
|
-
'fetchOHLCV':
|
81
|
+
'fetchOHLCV': False,
|
82
82
|
'fetchOpenInterest': False,
|
83
83
|
'fetchOpenInterestHistory': False,
|
84
84
|
'fetchOpenOrders': True,
|
@@ -363,6 +363,65 @@ class kuna(Exchange, ImplicitAPI):
|
|
363
363
|
],
|
364
364
|
},
|
365
365
|
},
|
366
|
+
'features': {
|
367
|
+
'spot': {
|
368
|
+
'sandbox': False,
|
369
|
+
'createOrder': {
|
370
|
+
'marginMode': False,
|
371
|
+
'triggerPrice': True,
|
372
|
+
'triggerPriceType': None,
|
373
|
+
'triggerDirection': False,
|
374
|
+
'stopLossPrice': False, # todo
|
375
|
+
'takeProfitPrice': False, # todo
|
376
|
+
'attachedStopLossTakeProfit': None,
|
377
|
+
'timeInForce': {
|
378
|
+
'IOC': False,
|
379
|
+
'FOK': False,
|
380
|
+
'PO': False,
|
381
|
+
'GTD': False,
|
382
|
+
},
|
383
|
+
'hedged': False,
|
384
|
+
'selfTradePrevention': False,
|
385
|
+
'trailing': False,
|
386
|
+
'leverage': False,
|
387
|
+
'marketBuyByCost': True,
|
388
|
+
'marketBuyRequiresPrice': False,
|
389
|
+
'iceberg': False,
|
390
|
+
},
|
391
|
+
'createOrders': None,
|
392
|
+
'fetchMyTrades': None, # todo implement
|
393
|
+
'fetchOrder': {
|
394
|
+
'marginMode': False,
|
395
|
+
'trigger': False,
|
396
|
+
'trailing': False,
|
397
|
+
},
|
398
|
+
'fetchOpenOrders': {
|
399
|
+
'marginMode': False,
|
400
|
+
'limit': 100,
|
401
|
+
'trigger': False,
|
402
|
+
'trailing': False,
|
403
|
+
},
|
404
|
+
'fetchOrders': None,
|
405
|
+
'fetchClosedOrders': {
|
406
|
+
'marginMode': False,
|
407
|
+
'limit': 100,
|
408
|
+
'daysBack': 100000, # todo
|
409
|
+
'daysBackCanceled': 1,
|
410
|
+
'untilDays': 14,
|
411
|
+
'trigger': False,
|
412
|
+
'trailing': False,
|
413
|
+
},
|
414
|
+
'fetchOHLCV': None,
|
415
|
+
},
|
416
|
+
'swap': {
|
417
|
+
'linear': None,
|
418
|
+
'inverse': None,
|
419
|
+
},
|
420
|
+
'future': {
|
421
|
+
'linear': None,
|
422
|
+
'inverse': None,
|
423
|
+
},
|
424
|
+
},
|
366
425
|
'fees': {
|
367
426
|
'trading': {
|
368
427
|
'tierBased': False,
|
ccxt/latoken.py
CHANGED
@@ -248,6 +248,70 @@ class latoken(Exchange, ImplicitAPI):
|
|
248
248
|
'method': 'fetchPrivateTradingFee', # or 'fetchPublicTradingFee'
|
249
249
|
},
|
250
250
|
},
|
251
|
+
'features': {
|
252
|
+
'spot': {
|
253
|
+
'sandbox': False,
|
254
|
+
'createOrder': {
|
255
|
+
'marginMode': False,
|
256
|
+
'triggerPrice': True,
|
257
|
+
'triggerPriceType': None,
|
258
|
+
'triggerDirection': False,
|
259
|
+
'stopLossPrice': False, # todo
|
260
|
+
'takeProfitPrice': False, # todo
|
261
|
+
'attachedStopLossTakeProfit': None,
|
262
|
+
'timeInForce': {
|
263
|
+
'IOC': True, # todo: for non-trigger orders
|
264
|
+
'FOK': True,
|
265
|
+
'PO': False,
|
266
|
+
'GTD': False,
|
267
|
+
},
|
268
|
+
'hedged': False,
|
269
|
+
'selfTradePrevention': False,
|
270
|
+
'trailing': False,
|
271
|
+
'leverage': False,
|
272
|
+
'marketBuyByCost': True,
|
273
|
+
'marketBuyRequiresPrice': False,
|
274
|
+
'iceberg': False,
|
275
|
+
},
|
276
|
+
'createOrders': None,
|
277
|
+
'fetchMyTrades': {
|
278
|
+
'marginMode': False,
|
279
|
+
'limit': 1000,
|
280
|
+
'daysBack': 100000, # todo
|
281
|
+
'untilDays': None,
|
282
|
+
},
|
283
|
+
'fetchOrder': {
|
284
|
+
'marginMode': False,
|
285
|
+
'trigger': True,
|
286
|
+
'trailing': False,
|
287
|
+
},
|
288
|
+
'fetchOpenOrders': {
|
289
|
+
'marginMode': False,
|
290
|
+
'limit': None,
|
291
|
+
'trigger': False,
|
292
|
+
'trailing': False,
|
293
|
+
},
|
294
|
+
'fetchOrders': None,
|
295
|
+
'fetchClosedOrders': {
|
296
|
+
'marginMode': False,
|
297
|
+
'limit': 1000,
|
298
|
+
'daysBack': 100000, # todo
|
299
|
+
'daysBackCanceled': 1,
|
300
|
+
'untilDays': None,
|
301
|
+
'trigger': True,
|
302
|
+
'trailing': False,
|
303
|
+
},
|
304
|
+
'fetchOHLCV': None,
|
305
|
+
},
|
306
|
+
'swap': {
|
307
|
+
'linear': None,
|
308
|
+
'inverse': None,
|
309
|
+
},
|
310
|
+
'future': {
|
311
|
+
'linear': None,
|
312
|
+
'inverse': None,
|
313
|
+
},
|
314
|
+
},
|
251
315
|
})
|
252
316
|
|
253
317
|
def nonce(self):
|
ccxt/lbank.py
CHANGED
@@ -308,6 +308,76 @@ class lbank(Exchange, ImplicitAPI):
|
|
308
308
|
'USDT': 'TRC20',
|
309
309
|
},
|
310
310
|
},
|
311
|
+
'features': {
|
312
|
+
'default': {
|
313
|
+
'sandbox': False,
|
314
|
+
'createOrder': {
|
315
|
+
'marginMode': False,
|
316
|
+
'triggerPrice': False,
|
317
|
+
'triggerPriceType': None,
|
318
|
+
'triggerDirection': False,
|
319
|
+
'stopLossPrice': False,
|
320
|
+
'takeProfitPrice': False,
|
321
|
+
'attachedStopLossTakeProfit': None,
|
322
|
+
'timeInForce': {
|
323
|
+
'IOC': True,
|
324
|
+
'FOK': True,
|
325
|
+
'PO': False,
|
326
|
+
'GTD': False,
|
327
|
+
},
|
328
|
+
'hedged': False,
|
329
|
+
'selfTradePrevention': False,
|
330
|
+
'trailing': False,
|
331
|
+
'leverage': False,
|
332
|
+
'marketBuyByCost': True,
|
333
|
+
'marketBuyRequiresPrice': False,
|
334
|
+
'iceberg': False,
|
335
|
+
},
|
336
|
+
'createOrders': None, # todo
|
337
|
+
'fetchMyTrades': {
|
338
|
+
'marginMode': False,
|
339
|
+
'limit': 100,
|
340
|
+
'daysBack': 100000, # todo
|
341
|
+
'untilDays': 2,
|
342
|
+
},
|
343
|
+
'fetchOrder': {
|
344
|
+
'marginMode': False,
|
345
|
+
'trigger': False,
|
346
|
+
'trailing': False,
|
347
|
+
},
|
348
|
+
'fetchOpenOrders': {
|
349
|
+
'marginMode': False,
|
350
|
+
'limit': 200,
|
351
|
+
'trigger': False,
|
352
|
+
'trailing': False,
|
353
|
+
},
|
354
|
+
'fetchOrders': {
|
355
|
+
'marginMode': False,
|
356
|
+
'limit': 200,
|
357
|
+
'daysBack': None,
|
358
|
+
'untilDays': None,
|
359
|
+
'trigger': False,
|
360
|
+
'trailing': False,
|
361
|
+
},
|
362
|
+
'fetchClosedOrders': None, # todo: through fetchOrders "status" -1: Cancelled 0: Unfilled 1: Partially filled 2: Completely filled 3: Partially filled has been cancelled 4: Cancellation is being processed
|
363
|
+
'fetchOHLCV': {
|
364
|
+
'limit': 2000,
|
365
|
+
},
|
366
|
+
},
|
367
|
+
'spot': {
|
368
|
+
'extends': 'default',
|
369
|
+
},
|
370
|
+
'swap': {
|
371
|
+
'linear': {
|
372
|
+
'extends': 'default',
|
373
|
+
},
|
374
|
+
'inverse': None,
|
375
|
+
},
|
376
|
+
'future': {
|
377
|
+
'linear': None,
|
378
|
+
'inverse': None,
|
379
|
+
},
|
380
|
+
},
|
311
381
|
})
|
312
382
|
|
313
383
|
def fetch_time(self, params={}):
|
ccxt/luno.py
CHANGED
@@ -183,6 +183,79 @@ class luno(Exchange, ImplicitAPI):
|
|
183
183
|
},
|
184
184
|
},
|
185
185
|
'precisionMode': TICK_SIZE,
|
186
|
+
'features': {
|
187
|
+
'spot': {
|
188
|
+
'sandbox': False,
|
189
|
+
'createOrder': {
|
190
|
+
'marginMode': False,
|
191
|
+
'triggerPrice': True, # todo
|
192
|
+
'triggerPriceType': None,
|
193
|
+
'triggerDirection': True, # todo
|
194
|
+
'stopLossPrice': False, # todo
|
195
|
+
'takeProfitPrice': False, # todo
|
196
|
+
'attachedStopLossTakeProfit': None,
|
197
|
+
'timeInForce': {
|
198
|
+
'IOC': True,
|
199
|
+
'FOK': True,
|
200
|
+
'PO': True,
|
201
|
+
'GTD': False,
|
202
|
+
},
|
203
|
+
'hedged': False,
|
204
|
+
'trailing': False,
|
205
|
+
'leverage': False,
|
206
|
+
'marketBuyByCost': True,
|
207
|
+
'marketBuyRequiresPrice': False,
|
208
|
+
'selfTradePrevention': False,
|
209
|
+
'iceberg': False,
|
210
|
+
},
|
211
|
+
'createOrders': None,
|
212
|
+
'fetchMyTrades': {
|
213
|
+
'marginMode': False,
|
214
|
+
'limit': 1000,
|
215
|
+
'daysBack': 100000, # todo
|
216
|
+
'untilDays': 100000, # todo
|
217
|
+
},
|
218
|
+
'fetchOrder': {
|
219
|
+
'marginMode': False,
|
220
|
+
'trigger': False,
|
221
|
+
'trailing': False,
|
222
|
+
},
|
223
|
+
'fetchOpenOrders': {
|
224
|
+
'marginMode': False,
|
225
|
+
'limit': 1000,
|
226
|
+
'trigger': False,
|
227
|
+
'trailing': False,
|
228
|
+
},
|
229
|
+
'fetchOrders': {
|
230
|
+
'marginMode': False,
|
231
|
+
'limit': 1000,
|
232
|
+
'daysBack': 100000,
|
233
|
+
'untilDays': None,
|
234
|
+
'trigger': False,
|
235
|
+
'trailing': False,
|
236
|
+
},
|
237
|
+
'fetchClosedOrders': {
|
238
|
+
'marginMode': False,
|
239
|
+
'limit': 1000,
|
240
|
+
'daysBack': 100000,
|
241
|
+
'daysBackCanceled': 1,
|
242
|
+
'untilDays': None,
|
243
|
+
'trigger': False,
|
244
|
+
'trailing': False,
|
245
|
+
},
|
246
|
+
'fetchOHLCV': {
|
247
|
+
'limit': None,
|
248
|
+
},
|
249
|
+
},
|
250
|
+
'swap': {
|
251
|
+
'linear': None,
|
252
|
+
'inverse': None,
|
253
|
+
},
|
254
|
+
'future': {
|
255
|
+
'linear': None,
|
256
|
+
'inverse': None,
|
257
|
+
},
|
258
|
+
},
|
186
259
|
})
|
187
260
|
|
188
261
|
def fetch_markets(self, params={}) -> List[Market]:
|