ccxt 3.0.79__py2.py3-none-any.whl → 3.0.81__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.

Potentially problematic release.


This version of ccxt might be problematic. Click here for more details.

Files changed (58) hide show
  1. ccxt/__init__.py +1 -3
  2. ccxt/ascendex.py +1 -0
  3. ccxt/async_support/__init__.py +1 -3
  4. ccxt/async_support/ascendex.py +1 -0
  5. ccxt/async_support/base/exchange.py +17 -24
  6. ccxt/async_support/binanceusdm.py +1 -1
  7. ccxt/async_support/bitfinex2.py +1 -0
  8. ccxt/async_support/bitpanda.py +1 -0
  9. ccxt/async_support/bitstamp.py +1 -0
  10. ccxt/async_support/coinbasepro.py +1 -0
  11. ccxt/async_support/delta.py +1 -0
  12. ccxt/async_support/exmo.py +1 -0
  13. ccxt/async_support/gate.py +1 -0
  14. ccxt/async_support/hitbtc.py +1 -0
  15. ccxt/async_support/hollaex.py +1 -0
  16. ccxt/async_support/kraken.py +1 -0
  17. ccxt/async_support/krakenfutures.py +2 -2
  18. ccxt/async_support/kucoin.py +1 -0
  19. ccxt/async_support/latoken.py +1 -0
  20. ccxt/async_support/lykke.py +1 -0
  21. ccxt/async_support/ndax.py +1 -0
  22. ccxt/async_support/phemex.py +1 -0
  23. ccxt/async_support/probit.py +1 -0
  24. ccxt/async_support/stex.py +1 -0
  25. ccxt/async_support/timex.py +1 -0
  26. ccxt/async_support/upbit.py +21 -0
  27. ccxt/async_support/zonda.py +15 -0
  28. ccxt/base/exchange.py +17 -24
  29. ccxt/binanceusdm.py +1 -1
  30. ccxt/bitfinex2.py +1 -0
  31. ccxt/bitpanda.py +1 -0
  32. ccxt/bitstamp.py +1 -0
  33. ccxt/coinbasepro.py +1 -0
  34. ccxt/delta.py +1 -0
  35. ccxt/exmo.py +1 -0
  36. ccxt/gate.py +1 -0
  37. ccxt/hitbtc.py +1 -0
  38. ccxt/hollaex.py +1 -0
  39. ccxt/kraken.py +1 -0
  40. ccxt/krakenfutures.py +2 -2
  41. ccxt/kucoin.py +1 -0
  42. ccxt/latoken.py +1 -0
  43. ccxt/lykke.py +1 -0
  44. ccxt/ndax.py +1 -0
  45. ccxt/phemex.py +1 -0
  46. ccxt/pro/__init__.py +1 -3
  47. ccxt/pro/binanceusdm.py +9 -0
  48. ccxt/pro/bybit.py +2 -1
  49. ccxt/pro/woo.py +7 -4
  50. ccxt/probit.py +1 -0
  51. ccxt/stex.py +1 -0
  52. ccxt/timex.py +1 -0
  53. ccxt/upbit.py +21 -0
  54. ccxt/zonda.py +15 -0
  55. {ccxt-3.0.79.dist-info → ccxt-3.0.81.dist-info}/METADATA +6 -7
  56. {ccxt-3.0.79.dist-info → ccxt-3.0.81.dist-info}/RECORD +58 -58
  57. {ccxt-3.0.79.dist-info → ccxt-3.0.81.dist-info}/WHEEL +0 -0
  58. {ccxt-3.0.79.dist-info → ccxt-3.0.81.dist-info}/top_level.txt +0 -0
ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '3.0.79'
7
+ __version__ = '3.0.81'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2236,30 +2236,24 @@ class Exchange(object):
2236
2236
  raise ArgumentsRequired(self.id + ' calculateFee() - you have provided incompatible arguments - "market" type order can not be "maker". Change either the "type" or the "takerOrMaker" argument to calculate the fee.')
2237
2237
  market = self.markets[symbol]
2238
2238
  feeSide = self.safe_string(market, 'feeSide', 'quote')
2239
- key = 'quote'
2240
- cost = None
2241
- amountString = self.number_to_string(amount)
2242
- priceString = self.number_to_string(price)
2243
- if feeSide == 'quote':
2244
- # the fee is always in quote currency
2245
- cost = Precise.string_mul(amountString, priceString)
2246
- elif feeSide == 'base':
2247
- # the fee is always in base currency
2248
- cost = amountString
2249
- elif feeSide == 'get':
2239
+ useQuote = None
2240
+ if feeSide == 'get':
2250
2241
  # the fee is always in the currency you get
2251
- cost = amountString
2252
- if side == 'sell':
2253
- cost = Precise.string_mul(cost, priceString)
2254
- else:
2255
- key = 'base'
2242
+ useQuote = side == 'sell'
2256
2243
  elif feeSide == 'give':
2257
2244
  # the fee is always in the currency you give
2258
- cost = amountString
2259
- if side == 'buy':
2260
- cost = Precise.string_mul(cost, priceString)
2261
- else:
2262
- key = 'base'
2245
+ useQuote = side == 'buy'
2246
+ else:
2247
+ # the fee is always in feeSide currency
2248
+ useQuote = feeSide == 'quote'
2249
+ cost = self.number_to_string(amount)
2250
+ key = None
2251
+ if useQuote:
2252
+ priceString = self.number_to_string(price)
2253
+ cost = Precise.string_mul(cost, priceString)
2254
+ key = 'quote'
2255
+ else:
2256
+ key = 'base'
2263
2257
  # for derivatives, the fee is in 'settle' currency
2264
2258
  if not market['spot']:
2265
2259
  key = 'settle'
@@ -2267,8 +2261,7 @@ class Exchange(object):
2267
2261
  if type == 'market':
2268
2262
  takerOrMaker = 'taker'
2269
2263
  rate = self.safe_string(market, takerOrMaker)
2270
- if cost is not None:
2271
- cost = Precise.string_mul(cost, rate)
2264
+ cost = Precise.string_mul(cost, rate)
2272
2265
  return {
2273
2266
  'type': takerOrMaker,
2274
2267
  'currency': market[key],
ccxt/binanceusdm.py CHANGED
@@ -41,7 +41,7 @@ class binanceusdm(binance):
41
41
  # https://binance-docs.github.io/apidocs/futures/en/#error-codes
42
42
  'exceptions': {
43
43
  'exact': {
44
- '-5021': InvalidOrder, # {"code":-502,"msg":"Due to the order could not be filled immediately, the FOK order has been rejected."}
44
+ '-5021': InvalidOrder, # {"code":-5021,"msg":"Due to the order could not be filled immediately, the FOK order has been rejected."}
45
45
  '-5022': InvalidOrder, # {"code":-5022,"msg":"Due to the order could not be executed, the Post Only order will be rejected."}
46
46
  '-5028': InvalidOrder, # {"code":-5028,"msg":"Timestamp for self request is outside of the ME recvWindow."}
47
47
  },
ccxt/bitfinex2.py CHANGED
@@ -725,6 +725,7 @@ class bitfinex2(Exchange):
725
725
  'max': None,
726
726
  },
727
727
  },
728
+ 'networks': {},
728
729
  }
729
730
  networks = {}
730
731
  currencyNetworks = self.safe_value(response, 8, [])
ccxt/bitpanda.py CHANGED
@@ -351,6 +351,7 @@ class bitpanda(Exchange):
351
351
  'amount': {'min': None, 'max': None},
352
352
  'withdraw': {'min': None, 'max': None},
353
353
  },
354
+ 'networks': {},
354
355
  }
355
356
  return result
356
357
 
ccxt/bitstamp.py CHANGED
@@ -538,6 +538,7 @@ class bitstamp(Exchange):
538
538
  'max': None,
539
539
  },
540
540
  },
541
+ 'networks': {},
541
542
  }
542
543
 
543
544
  def fetch_markets_from_cache(self, params={}):
ccxt/coinbasepro.py CHANGED
@@ -299,6 +299,7 @@ class coinbasepro(Exchange):
299
299
  'max': None,
300
300
  },
301
301
  },
302
+ 'networks': {},
302
303
  }
303
304
  return result
304
305
 
ccxt/delta.py CHANGED
@@ -368,6 +368,7 @@ class delta(Exchange):
368
368
  'max': None,
369
369
  },
370
370
  },
371
+ 'networks': {},
371
372
  }
372
373
  return result
373
374
 
ccxt/exmo.py CHANGED
@@ -667,6 +667,7 @@ class exmo(Exchange):
667
667
  'precision': self.parse_number('1e-8'),
668
668
  'limits': limits,
669
669
  'info': providers,
670
+ 'networks': {},
670
671
  }
671
672
  return result
672
673
 
ccxt/gate.py CHANGED
@@ -1338,6 +1338,7 @@ class gate(Exchange):
1338
1338
  'fee': None,
1339
1339
  'fees': [],
1340
1340
  'limits': self.limits,
1341
+ 'networks': {},
1341
1342
  }
1342
1343
  return result
1343
1344
 
ccxt/hitbtc.py CHANGED
@@ -498,6 +498,7 @@ class hitbtc(Exchange):
498
498
  'max': None,
499
499
  },
500
500
  },
501
+ 'networks': {},
501
502
  }
502
503
  return result
503
504
 
ccxt/hollaex.py CHANGED
@@ -398,6 +398,7 @@ class hollaex(Exchange):
398
398
  'max': self.safe_value(withdrawalLimits, 0),
399
399
  },
400
400
  },
401
+ 'networks': {},
401
402
  }
402
403
  return result
403
404
 
ccxt/kraken.py CHANGED
@@ -590,6 +590,7 @@ class kraken(Exchange):
590
590
  'max': None,
591
591
  },
592
592
  },
593
+ 'networks': {},
593
594
  }
594
595
  return result
595
596
 
ccxt/krakenfutures.py CHANGED
@@ -81,8 +81,8 @@ class krakenfutures(Exchange):
81
81
  },
82
82
  'urls': {
83
83
  'test': {
84
- 'public': 'https://demo-futures.kraken.com/derivatives',
85
- 'private': 'https://demo-futures.kraken.com/derivatives',
84
+ 'public': 'https://demo-futures.kraken.com/derivatives/api/',
85
+ 'private': 'https://demo-futures.kraken.com/derivatives/api/',
86
86
  'www': 'https://demo-futures.kraken.com',
87
87
  },
88
88
  'logo': 'https://user-images.githubusercontent.com/24300605/81436764-b22fd580-9172-11ea-9703-742783e6376d.jpg',
ccxt/kucoin.py CHANGED
@@ -789,6 +789,7 @@ class kucoin(Exchange):
789
789
  'withdraw': isWithdrawEnabled,
790
790
  'fee': fee,
791
791
  'limits': self.limits,
792
+ 'networks': {},
792
793
  }
793
794
  return result
794
795
 
ccxt/latoken.py CHANGED
@@ -460,6 +460,7 @@ class latoken(Exchange):
460
460
  'max': None,
461
461
  },
462
462
  },
463
+ 'networks': {},
463
464
  }
464
465
  return result
465
466
 
ccxt/lykke.py CHANGED
@@ -254,6 +254,7 @@ class lykke(Exchange):
254
254
  'max': None,
255
255
  },
256
256
  },
257
+ 'networks': {},
257
258
  }
258
259
  return result
259
260
 
ccxt/ndax.py CHANGED
@@ -371,6 +371,7 @@ class ndax(Exchange):
371
371
  'max': None,
372
372
  },
373
373
  },
374
+ 'networks': {},
374
375
  }
375
376
  return result
376
377
 
ccxt/phemex.py CHANGED
@@ -917,6 +917,7 @@ class phemex(Exchange):
917
917
  },
918
918
  },
919
919
  'valueScale': valueScale,
920
+ 'networks': {},
920
921
  }
921
922
  return result
922
923
 
ccxt/pro/__init__.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
- __version__ = '3.0.79'
7
+ __version__ = '3.0.81'
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
@@ -67,7 +67,6 @@ from ccxt.pro.upbit import upbit # noqa
67
67
  from ccxt.pro.wazirx import wazirx # noqa: F401
68
68
  from ccxt.pro.whitebit import whitebit # noqa: F401
69
69
  from ccxt.pro.woo import woo # noqa: F401
70
- from ccxt.pro.zb import zb # noqa: F401
71
70
 
72
71
  exchanges = [
73
72
  'alpaca',
@@ -125,5 +124,4 @@ exchanges = [
125
124
  'wazirx',
126
125
  'whitebit',
127
126
  'woo',
128
- 'zb',
129
127
  ]
ccxt/pro/binanceusdm.py CHANGED
@@ -4,6 +4,7 @@
4
4
  # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
5
 
6
6
  from ccxt.pro.binance import binance
7
+ from ccxt.base.errors import InvalidOrder
7
8
 
8
9
 
9
10
  class binanceusdm(binance):
@@ -19,4 +20,12 @@ class binanceusdm(binance):
19
20
  'fetchMarkets': ['linear'],
20
21
  'defaultSubType': 'linear',
21
22
  },
23
+ # https://binance-docs.github.io/apidocs/futures/en/#error-codes
24
+ 'exceptions': {
25
+ 'exact': {
26
+ '-5021': InvalidOrder, # {"code":-5021,"msg":"Due to the order could not be filled immediately, the FOK order has been rejected."}
27
+ '-5022': InvalidOrder, # {"code":-5022,"msg":"Due to the order could not be executed, the Post Only order will be rejected."}
28
+ '-5028': InvalidOrder, # {"code":-5028,"msg":"Timestamp for self request is outside of the ME recvWindow."}
29
+ },
30
+ },
22
31
  })
ccxt/pro/bybit.py CHANGED
@@ -170,7 +170,8 @@ class bybit(ccxt.async_support.bybit):
170
170
  """
171
171
  await self.load_markets()
172
172
  market = self.market(symbol)
173
- messageHash = 'ticker:' + market['symbol']
173
+ symbol = market['symbol']
174
+ messageHash = 'ticker:' + symbol
174
175
  url = self.get_url_by_market_type(symbol, False, params)
175
176
  params = self.clean_params(params)
176
177
  options = self.safe_value(self.options, 'watchTicker', {})
ccxt/pro/woo.py CHANGED
@@ -491,11 +491,14 @@ class woo(ccxt.async_support.woo):
491
491
  'cost': cost,
492
492
  'currency': self.safe_string(order, 'feeAsset'),
493
493
  }
494
- price = self.safe_float(order, 'price')
494
+ price = self.safe_number(order, 'price')
495
+ avgPrice = self.safe_number(order, 'avgPrice')
496
+ if (price == 0) and (avgPrice is not None):
497
+ price = avgPrice
495
498
  amount = self.safe_float(order, 'quantity')
496
499
  side = self.safe_string_lower(order, 'side')
497
500
  type = self.safe_string_lower(order, 'type')
498
- filled = self.safe_float(order, 'executedQuantity')
501
+ filled = self.safe_number(order, 'totalExecutedQuantity')
499
502
  totalExecQuantity = self.safe_float(order, 'totalExecutedQuantity')
500
503
  remaining = amount
501
504
  if amount >= totalExecQuantity:
@@ -504,7 +507,7 @@ class woo(ccxt.async_support.woo):
504
507
  status = self.parse_order_status(rawStatus)
505
508
  trades = None
506
509
  clientOrderId = self.safe_string(order, 'clientOrderId')
507
- return {
510
+ return self.safe_order({
508
511
  'info': order,
509
512
  'symbol': symbol,
510
513
  'id': orderId,
@@ -527,7 +530,7 @@ class woo(ccxt.async_support.woo):
527
530
  'status': status,
528
531
  'fee': fee,
529
532
  'trades': trades,
530
- }
533
+ })
531
534
 
532
535
  def handle_order_update(self, client: Client, message):
533
536
  #
ccxt/probit.py CHANGED
@@ -467,6 +467,7 @@ class probit(Exchange):
467
467
  'max': None,
468
468
  },
469
469
  },
470
+ 'networks': {},
470
471
  }
471
472
  return result
472
473
 
ccxt/stex.py CHANGED
@@ -388,6 +388,7 @@ class stex(Exchange):
388
388
  'max': None,
389
389
  },
390
390
  },
391
+ 'networks': {},
391
392
  }
392
393
  return result
393
394
 
ccxt/timex.py CHANGED
@@ -1259,6 +1259,7 @@ class timex(Exchange):
1259
1259
  'withdraw': {'min': fee, 'max': None},
1260
1260
  'amount': {'min': None, 'max': None},
1261
1261
  },
1262
+ 'networks': {},
1262
1263
  }
1263
1264
 
1264
1265
  def parse_ticker(self, ticker, market=None):
ccxt/upbit.py CHANGED
@@ -397,6 +397,7 @@ class upbit(Exchange):
397
397
 
398
398
  def fetch_markets(self, params={}):
399
399
  """
400
+ see https://docs.upbit.com/reference/%EB%A7%88%EC%BC%93-%EC%BD%94%EB%93%9C-%EC%A1%B0%ED%9A%8C
400
401
  retrieves data on all markets for upbit
401
402
  :param dict params: extra parameters specific to the exchange api endpoint
402
403
  :returns [dict]: an array of objects representing market data
@@ -489,6 +490,7 @@ class upbit(Exchange):
489
490
 
490
491
  def fetch_balance(self, params={}):
491
492
  """
493
+ see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
492
494
  query for balance and get the amount of funds available for trading or funds locked in orders
493
495
  :param dict params: extra parameters specific to the upbit api endpoint
494
496
  :returns dict: a `balance structure <https://docs.ccxt.com/en/latest/manual.html?#balance-structure>`
@@ -511,6 +513,7 @@ class upbit(Exchange):
511
513
 
512
514
  def fetch_order_books(self, symbols: Optional[List[str]] = None, limit: Optional[int] = None, params={}):
513
515
  """
516
+ see https://docs.upbit.com/reference/%ED%98%B8%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C
514
517
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
515
518
  :param [str]|None symbols: list of unified market symbols, all symbols fetched if None, default is None
516
519
  :param int|None limit: not used by upbit fetchOrderBooks()
@@ -578,6 +581,7 @@ class upbit(Exchange):
578
581
 
579
582
  def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
580
583
  """
584
+ see https://docs.upbit.com/reference/%ED%98%B8%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C
581
585
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
582
586
  :param str symbol: unified symbol of the market to fetch the order book for
583
587
  :param int|None limit: the maximum amount of order book entries to return
@@ -645,6 +649,7 @@ class upbit(Exchange):
645
649
 
646
650
  def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
647
651
  """
652
+ see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
648
653
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
649
654
  :param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
650
655
  :param dict params: extra parameters specific to the upbit api endpoint
@@ -703,6 +708,7 @@ class upbit(Exchange):
703
708
 
704
709
  def fetch_ticker(self, symbol: str, params={}):
705
710
  """
711
+ see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
706
712
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
707
713
  :param str symbol: unified symbol of the market to fetch the ticker for
708
714
  :param dict params: extra parameters specific to the upbit api endpoint
@@ -781,6 +787,7 @@ class upbit(Exchange):
781
787
 
782
788
  def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
783
789
  """
790
+ see https://docs.upbit.com/reference/%EC%B5%9C%EA%B7%BC-%EC%B2%B4%EA%B2%B0-%EB%82%B4%EC%97%AD
784
791
  get the list of most recent trades for a particular symbol
785
792
  :param str symbol: unified symbol of the market to fetch trades for
786
793
  :param int|None since: timestamp in ms of the earliest trade to fetch
@@ -823,6 +830,7 @@ class upbit(Exchange):
823
830
 
824
831
  def fetch_trading_fee(self, symbol: str, params={}):
825
832
  """
833
+ see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EA%B0%80%EB%8A%A5-%EC%A0%95%EB%B3%B4
826
834
  fetch the trading fees for a market
827
835
  :param str symbol: unified market symbol
828
836
  :param dict params: extra parameters specific to the upbit api endpoint
@@ -910,6 +918,7 @@ class upbit(Exchange):
910
918
 
911
919
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
912
920
  """
921
+ see https://docs.upbit.com/reference/%EB%B6%84minute-%EC%BA%94%EB%93%A4-1
913
922
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
914
923
  :param str symbol: unified symbol of the market to fetch OHLCV data for
915
924
  :param str timeframe: the length of time each candle represents
@@ -972,6 +981,7 @@ class upbit(Exchange):
972
981
 
973
982
  def create_order(self, symbol: str, type, side: OrderSide, amount, price=None, params={}):
974
983
  """
984
+ see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8%ED%95%98%EA%B8%B0
975
985
  create a trade order
976
986
  :param str symbol: unified symbol of the market to create an order in
977
987
  :param str type: 'market' or 'limit'
@@ -1042,6 +1052,7 @@ class upbit(Exchange):
1042
1052
 
1043
1053
  def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
1044
1054
  """
1055
+ see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EC%B7%A8%EC%86%8C
1045
1056
  cancels an open order
1046
1057
  :param str id: order id
1047
1058
  :param str|None symbol: not used by upbit cancelOrder()
@@ -1076,6 +1087,7 @@ class upbit(Exchange):
1076
1087
 
1077
1088
  def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1078
1089
  """
1090
+ see https://docs.upbit.com/reference/%EC%9E%85%EA%B8%88-%EB%A6%AC%EC%8A%A4%ED%8A%B8-%EC%A1%B0%ED%9A%8C
1079
1091
  fetch all deposits made to an account
1080
1092
  :param str|None code: unified currency code
1081
1093
  :param int|None since: the earliest time in ms to fetch deposits for
@@ -1115,6 +1127,7 @@ class upbit(Exchange):
1115
1127
 
1116
1128
  def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1117
1129
  """
1130
+ see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EC%B6%9C%EA%B8%88-%EC%A1%B0%ED%9A%8C
1118
1131
  fetch all withdrawals made from an account
1119
1132
  :param str|None code: unified currency code
1120
1133
  :param int|None since: the earliest time in ms to fetch withdrawals for
@@ -1403,6 +1416,7 @@ class upbit(Exchange):
1403
1416
 
1404
1417
  def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1405
1418
  """
1419
+ see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EB%A6%AC%EC%8A%A4%ED%8A%B8-%EC%A1%B0%ED%9A%8C
1406
1420
  fetch all unfilled currently open orders
1407
1421
  :param str|None symbol: unified market symbol
1408
1422
  :param int|None since: the earliest time in ms to fetch open orders for
@@ -1414,6 +1428,7 @@ class upbit(Exchange):
1414
1428
 
1415
1429
  def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1416
1430
  """
1431
+ see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EB%A6%AC%EC%8A%A4%ED%8A%B8-%EC%A1%B0%ED%9A%8C
1417
1432
  fetches information on multiple closed orders made by the user
1418
1433
  :param str|None symbol: unified market symbol of the market orders were made in
1419
1434
  :param int|None since: the earliest time in ms to fetch orders for
@@ -1425,6 +1440,7 @@ class upbit(Exchange):
1425
1440
 
1426
1441
  def fetch_canceled_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1427
1442
  """
1443
+ see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EB%A6%AC%EC%8A%A4%ED%8A%B8-%EC%A1%B0%ED%9A%8C
1428
1444
  fetches information on multiple canceled orders made by the user
1429
1445
  :param str|None symbol: unified market symbol of the market orders were made in
1430
1446
  :param int|None since: timestamp in ms of the earliest order, default is None
@@ -1436,6 +1452,7 @@ class upbit(Exchange):
1436
1452
 
1437
1453
  def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
1438
1454
  """
1455
+ see https://docs.upbit.com/reference/%EA%B0%9C%EB%B3%84-%EC%A3%BC%EB%AC%B8-%EC%A1%B0%ED%9A%8C
1439
1456
  fetches information on an order made by the user
1440
1457
  :param str|None symbol: not used by upbit fetchOrder
1441
1458
  :param dict params: extra parameters specific to the upbit api endpoint
@@ -1493,6 +1510,7 @@ class upbit(Exchange):
1493
1510
 
1494
1511
  def fetch_deposit_addresses(self, codes=None, params={}):
1495
1512
  """
1513
+ see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C
1496
1514
  fetch deposit addresses for multiple currencies and chain types
1497
1515
  :param [str]|None codes: list of unified currency codes, default is None
1498
1516
  :param dict params: extra parameters specific to the upbit api endpoint
@@ -1544,6 +1562,7 @@ class upbit(Exchange):
1544
1562
 
1545
1563
  def fetch_deposit_address(self, code: str, params={}):
1546
1564
  """
1565
+ see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C
1547
1566
  fetch the deposit address for a currency associated with self account
1548
1567
  :param str code: unified currency code
1549
1568
  :param dict params: extra parameters specific to the upbit api endpoint
@@ -1565,6 +1584,7 @@ class upbit(Exchange):
1565
1584
 
1566
1585
  def create_deposit_address(self, code: str, params={}):
1567
1586
  """
1587
+ see https://docs.upbit.com/reference/%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%83%9D%EC%84%B1-%EC%9A%94%EC%B2%AD
1568
1588
  create a currency deposit address
1569
1589
  :param str code: unified currency code of the currency for the deposit address
1570
1590
  :param dict params: extra parameters specific to the upbit api endpoint
@@ -1599,6 +1619,7 @@ class upbit(Exchange):
1599
1619
 
1600
1620
  def withdraw(self, code: str, amount, address, tag=None, params={}):
1601
1621
  """
1622
+ see https://docs.upbit.com/reference/%EC%9B%90%ED%99%94-%EC%B6%9C%EA%B8%88%ED%95%98%EA%B8%B0
1602
1623
  make a withdrawal
1603
1624
  :param str code: unified currency code
1604
1625
  :param float amount: the amount to withdraw
ccxt/zonda.py CHANGED
@@ -301,6 +301,7 @@ class zonda(Exchange):
301
301
 
302
302
  def fetch_markets(self, params={}):
303
303
  """
304
+ see https://docs.zonda.exchange/reference/ticker-1
304
305
  retrieves data on all markets for zonda
305
306
  :param dict params: extra parameters specific to the exchange api endpoint
306
307
  :returns [dict]: an array of objects representing market data
@@ -398,6 +399,7 @@ class zonda(Exchange):
398
399
 
399
400
  def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
400
401
  """
402
+ see https://docs.zonda.exchange/reference/active-orders
401
403
  fetch all unfilled currently open orders
402
404
  :param str|None symbol: not used by zonda fetchOpenOrders
403
405
  :param int|None since: the earliest time in ms to fetch open orders for
@@ -463,6 +465,7 @@ class zonda(Exchange):
463
465
 
464
466
  def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
465
467
  """
468
+ see https://docs.zonda.exchange/reference/transactions-history
466
469
  fetch all trades made by the user
467
470
  :param str|None symbol: unified market symbol
468
471
  :param int|None since: the earliest time in ms to fetch trades for
@@ -521,6 +524,7 @@ class zonda(Exchange):
521
524
 
522
525
  def fetch_balance(self, params={}):
523
526
  """
527
+ see https://docs.zonda.exchange/reference/list-of-wallets
524
528
  query for balance and get the amount of funds available for trading or funds locked in orders
525
529
  :param dict params: extra parameters specific to the zonda api endpoint
526
530
  :returns dict: a `balance structure <https://docs.ccxt.com/en/latest/manual.html?#balance-structure>`
@@ -531,6 +535,7 @@ class zonda(Exchange):
531
535
 
532
536
  def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
533
537
  """
538
+ see https://docs.zonda.exchange/reference/orderbook-2
534
539
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
535
540
  :param str symbol: unified symbol of the market to fetch the order book for
536
541
  :param int|None limit: the maximum amount of order book entries to return
@@ -614,6 +619,7 @@ class zonda(Exchange):
614
619
 
615
620
  def fetch_ticker(self, symbol: str, params={}):
616
621
  """
622
+ see https://docs.zonda.exchange/reference/market-statistics
617
623
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
618
624
  :param str symbol: unified symbol of the market to fetch the ticker for
619
625
  :param dict params: extra parameters specific to the zonda api endpoint
@@ -642,6 +648,7 @@ class zonda(Exchange):
642
648
 
643
649
  def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
644
650
  """
651
+ see https://docs.zonda.exchange/reference/market-statistics
645
652
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
646
653
  :param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
647
654
  :param dict params: extra parameters specific to the zonda api endpoint
@@ -668,6 +675,7 @@ class zonda(Exchange):
668
675
 
669
676
  def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
670
677
  """
678
+ see https://docs.zonda.exchange/reference/operations-history
671
679
  fetch the history of changes, actions done by the user or operations that altered balance of the user
672
680
  :param str|None code: unified currency code, default is None
673
681
  :param int|None since: timestamp in ms of the earliest ledger entry, default is None
@@ -1035,6 +1043,7 @@ class zonda(Exchange):
1035
1043
 
1036
1044
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
1037
1045
  """
1046
+ see https://docs.zonda.exchange/reference/candles-chart
1038
1047
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1039
1048
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1040
1049
  :param str timeframe: the length of time each candle represents
@@ -1152,6 +1161,7 @@ class zonda(Exchange):
1152
1161
 
1153
1162
  def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
1154
1163
  """
1164
+ see https://docs.zonda.exchange/reference/last-transactions
1155
1165
  get the list of most recent trades for a particular symbol
1156
1166
  :param str symbol: unified symbol of the market to fetch trades for
1157
1167
  :param int|None since: timestamp in ms of the earliest trade to fetch
@@ -1295,6 +1305,7 @@ class zonda(Exchange):
1295
1305
 
1296
1306
  def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
1297
1307
  """
1308
+ see https://docs.zonda.exchange/reference/cancel-order
1298
1309
  cancels an open order
1299
1310
  :param str id: order id
1300
1311
  :param str symbol: unified symbol of the market the order was made in
@@ -1351,6 +1362,7 @@ class zonda(Exchange):
1351
1362
 
1352
1363
  def fetch_deposit_address(self, code: str, params={}):
1353
1364
  """
1365
+ see https://docs.zonda.exchange/reference/deposit-addresses-for-crypto
1354
1366
  fetch the deposit address for a currency associated with self account
1355
1367
  :param str code: unified currency code
1356
1368
  :param dict params: extra parameters specific to the zonda api endpoint
@@ -1382,6 +1394,7 @@ class zonda(Exchange):
1382
1394
 
1383
1395
  def fetch_deposit_addresses(self, codes=None, params={}):
1384
1396
  """
1397
+ see https://docs.zonda.exchange/reference/deposit-addresses-for-crypto
1385
1398
  fetch deposit addresses for multiple currencies and chain types
1386
1399
  :param [str]|None codes: zonda does not support filtering filtering by multiple codes and will ignore self parameter.
1387
1400
  :param dict params: extra parameters specific to the zonda api endpoint
@@ -1407,6 +1420,7 @@ class zonda(Exchange):
1407
1420
 
1408
1421
  def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
1409
1422
  """
1423
+ see https://docs.zonda.exchange/reference/internal-transfer
1410
1424
  transfer currency internally between wallets on the same account
1411
1425
  :param str code: unified currency code
1412
1426
  :param float amount: amount to transfer
@@ -1515,6 +1529,7 @@ class zonda(Exchange):
1515
1529
 
1516
1530
  def withdraw(self, code: str, amount, address, tag=None, params={}):
1517
1531
  """
1532
+ see https://docs.zonda.exchange/reference/crypto-withdrawal-1
1518
1533
  make a withdrawal
1519
1534
  :param str code: unified currency code
1520
1535
  :param float amount: the amount to withdraw