ccxt 4.2.48__py2.py3-none-any.whl → 4.2.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.
@@ -183,6 +183,7 @@ class luno(Exchange, ImplicitAPI):
183
183
  async def fetch_markets(self, params={}):
184
184
  """
185
185
  retrieves data on all markets for luno
186
+ :see: https://www.luno.com/en/developers/api#tag/Market/operation/Markets
186
187
  :param dict [params]: extra parameters specific to the exchange API endpoint
187
188
  :returns dict[]: an array of objects representing market data
188
189
  """
@@ -270,6 +271,7 @@ class luno(Exchange, ImplicitAPI):
270
271
  async def fetch_accounts(self, params={}):
271
272
  """
272
273
  fetch all the accounts associated with a profile
274
+ :see: https://www.luno.com/en/developers/api#tag/Accounts/operation/getBalances
273
275
  :param dict [params]: extra parameters specific to the exchange API endpoint
274
276
  :returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
275
277
  """
@@ -318,6 +320,7 @@ class luno(Exchange, ImplicitAPI):
318
320
  async def fetch_balance(self, params={}) -> Balances:
319
321
  """
320
322
  query for balance and get the amount of funds available for trading or funds locked in orders
323
+ :see: https://www.luno.com/en/developers/api#tag/Accounts/operation/getBalances
321
324
  :param dict [params]: extra parameters specific to the exchange API endpoint
322
325
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
323
326
  """
@@ -338,6 +341,8 @@ class luno(Exchange, ImplicitAPI):
338
341
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
339
342
  """
340
343
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
344
+ :see: https://www.luno.com/en/developers/api#tag/Market/operation/GetOrderBookFull
345
+ :see: https://www.luno.com/en/developers/api#tag/Market/operation/GetOrderBook
341
346
  :param str symbol: unified symbol of the market to fetch the order book for
342
347
  :param int [limit]: the maximum amount of order book entries to return
343
348
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -438,6 +443,7 @@ class luno(Exchange, ImplicitAPI):
438
443
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
439
444
  """
440
445
  fetches information on an order made by the user
446
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/GetOrder
441
447
  :param str symbol: not used by luno fetchOrder
442
448
  :param dict [params]: extra parameters specific to the exchange API endpoint
443
449
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -465,6 +471,7 @@ class luno(Exchange, ImplicitAPI):
465
471
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
466
472
  """
467
473
  fetches information on multiple orders made by the user
474
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
468
475
  :param str symbol: unified market symbol of the market orders were made in
469
476
  :param int [since]: the earliest time in ms to fetch orders for
470
477
  :param int [limit]: the maximum number of order structures to retrieve
@@ -476,6 +483,7 @@ class luno(Exchange, ImplicitAPI):
476
483
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
477
484
  """
478
485
  fetch all unfilled currently open orders
486
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
479
487
  :param str symbol: unified market symbol
480
488
  :param int [since]: the earliest time in ms to fetch open orders for
481
489
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -487,6 +495,7 @@ class luno(Exchange, ImplicitAPI):
487
495
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
488
496
  """
489
497
  fetches information on multiple closed orders made by the user
498
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
490
499
  :param str symbol: unified market symbol of the market orders were made in
491
500
  :param int [since]: the earliest time in ms to fetch orders for
492
501
  :param int [limit]: the maximum number of order structures to retrieve
@@ -535,6 +544,7 @@ class luno(Exchange, ImplicitAPI):
535
544
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
536
545
  """
537
546
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
547
+ :see: https://www.luno.com/en/developers/api#tag/Market/operation/GetTickers
538
548
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
539
549
  :param dict [params]: extra parameters specific to the exchange API endpoint
540
550
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -556,6 +566,7 @@ class luno(Exchange, ImplicitAPI):
556
566
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
557
567
  """
558
568
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
569
+ :see: https://www.luno.com/en/developers/api#tag/Market/operation/GetTicker
559
570
  :param str symbol: unified symbol of the market to fetch the ticker for
560
571
  :param dict [params]: extra parameters specific to the exchange API endpoint
561
572
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -664,6 +675,7 @@ class luno(Exchange, ImplicitAPI):
664
675
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
665
676
  """
666
677
  get the list of most recent trades for a particular symbol
678
+ :see: https://www.luno.com/en/developers/api#tag/Market/operation/ListTrades
667
679
  :param str symbol: unified symbol of the market to fetch trades for
668
680
  :param int [since]: timestamp in ms of the earliest trade to fetch
669
681
  :param int [limit]: the maximum amount of trades to fetch
@@ -757,6 +769,7 @@ class luno(Exchange, ImplicitAPI):
757
769
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
758
770
  """
759
771
  fetch all trades made by the user
772
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/ListUserTrades
760
773
  :param str symbol: unified market symbol
761
774
  :param int [since]: the earliest time in ms to fetch trades for
762
775
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -802,6 +815,7 @@ class luno(Exchange, ImplicitAPI):
802
815
  async def fetch_trading_fee(self, symbol: str, params={}):
803
816
  """
804
817
  fetch the trading fees for a market
818
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/getFeeInfo
805
819
  :param str symbol: unified market symbol
806
820
  :param dict [params]: extra parameters specific to the exchange API endpoint
807
821
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -829,6 +843,8 @@ class luno(Exchange, ImplicitAPI):
829
843
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
830
844
  """
831
845
  create a trade order
846
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/PostMarketOrder
847
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/PostLimitOrder
832
848
  :param str symbol: unified symbol of the market to create an order in
833
849
  :param str type: 'market' or 'limit'
834
850
  :param str side: 'buy' or 'sell'
@@ -864,6 +880,7 @@ class luno(Exchange, ImplicitAPI):
864
880
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
865
881
  """
866
882
  cancels an open order
883
+ :see: https://www.luno.com/en/developers/api#tag/Orders/operation/StopOrder
867
884
  :param str id: order id
868
885
  :param str symbol: unified symbol of the market the order was made in
869
886
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -891,6 +908,7 @@ class luno(Exchange, ImplicitAPI):
891
908
  async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
892
909
  """
893
910
  fetch the history of changes, actions done by the user or operations that altered balance of the user
911
+ :see: https://www.luno.com/en/developers/api#tag/Accounts/operation/ListTransactions
894
912
  :param str code: unified currency code, default is None
895
913
  :param int [since]: timestamp in ms of the earliest ledger entry, default is None
896
914
  :param int [limit]: max number of ledger entrys to return, default is None
@@ -190,6 +190,7 @@ class lykke(Exchange, ImplicitAPI):
190
190
  async def fetch_currencies(self, params={}):
191
191
  """
192
192
  fetches all available currencies on an exchange
193
+ :see: https://lykkecity.github.io/Trading-API/#get-all-assets
193
194
  :param dict [params]: extra parameters specific to the exchange API endpoint
194
195
  :returns dict: an associative dictionary of currencies
195
196
  """
@@ -265,6 +266,7 @@ class lykke(Exchange, ImplicitAPI):
265
266
  async def fetch_markets(self, params={}):
266
267
  """
267
268
  retrieves data on all markets for lykke
269
+ :see: https://lykkecity.github.io/Trading-API/#get-asset-by-id
268
270
  :param dict [params]: extra parameters specific to the exchange API endpoint
269
271
  :returns dict[]: an array of objects representing market data
270
272
  """
@@ -421,6 +423,8 @@ class lykke(Exchange, ImplicitAPI):
421
423
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
422
424
  """
423
425
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
426
+ :see: https://lykkecity.github.io/Trading-API/#get-current-prices
427
+ :see: https://lykkecity.github.io/Trading-API/#24hr-ticker-price-change-statistics
424
428
  :param str symbol: unified symbol of the market to fetch the ticker for
425
429
  :param dict [params]: extra parameters specific to the exchange API endpoint
426
430
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -476,6 +480,7 @@ class lykke(Exchange, ImplicitAPI):
476
480
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
477
481
  """
478
482
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
483
+ :see: https://lykkecity.github.io/Trading-API/#24hr-ticker-price-change-statistics
479
484
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
480
485
  :param dict [params]: extra parameters specific to the exchange API endpoint
481
486
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -505,6 +510,7 @@ class lykke(Exchange, ImplicitAPI):
505
510
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
506
511
  """
507
512
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
513
+ :see: https://lykkecity.github.io/Trading-API/#asset-pair-order-book-ticker
508
514
  :param str symbol: unified symbol of the market to fetch the order book for
509
515
  :param int [limit]: the maximum amount of order book entries to return
510
516
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -605,6 +611,7 @@ class lykke(Exchange, ImplicitAPI):
605
611
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
606
612
  """
607
613
  get the list of most recent trades for a particular symbol
614
+ :see: https://lykkecity.github.io/Trading-API/#get-public-trades
608
615
  :param str symbol: unified symbol of the market to fetch trades for
609
616
  :param int [since]: timestamp in ms of the earliest trade to fetch
610
617
  :param int [limit]: the maximum amount of trades to fetch
@@ -665,6 +672,7 @@ class lykke(Exchange, ImplicitAPI):
665
672
  async def fetch_balance(self, params={}) -> Balances:
666
673
  """
667
674
  query for balance and get the amount of funds available for trading or funds locked in orders
675
+ :see: https://lykkecity.github.io/Trading-API/#get-the-current-balance
668
676
  :param dict [params]: extra parameters specific to the exchange API endpoint
669
677
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
670
678
  """
@@ -758,6 +766,8 @@ class lykke(Exchange, ImplicitAPI):
758
766
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
759
767
  """
760
768
  create a trade order
769
+ :see: https://lykkecity.github.io/Trading-API/#place-a-limit-order
770
+ :see: https://lykkecity.github.io/Trading-API/#place-a-market-order
761
771
  :param str symbol: unified symbol of the market to create an order in
762
772
  :param str type: 'market' or 'limit'
763
773
  :param str side: 'buy' or 'sell'
@@ -828,6 +838,7 @@ class lykke(Exchange, ImplicitAPI):
828
838
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
829
839
  """
830
840
  cancels an open order
841
+ :see: https://lykkecity.github.io/Trading-API/#cancel-orders-by-id
831
842
  :param str id: order id
832
843
  :param str symbol: unified symbol of the market the order was made in
833
844
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -847,6 +858,7 @@ class lykke(Exchange, ImplicitAPI):
847
858
  async def cancel_all_orders(self, symbol: Str = None, params={}):
848
859
  """
849
860
  cancel all open orders
861
+ :see: https://lykkecity.github.io/Trading-API/#mass-cancel-orders
850
862
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
851
863
  :param dict [params]: extra parameters specific to the exchange API endpoint
852
864
  :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -870,6 +882,7 @@ class lykke(Exchange, ImplicitAPI):
870
882
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
871
883
  """
872
884
  fetches information on an order made by the user
885
+ :see: https://lykkecity.github.io/Trading-API/#get-order-by-id
873
886
  :param str symbol: not used by lykke fetchOrder
874
887
  :param dict [params]: extra parameters specific to the exchange API endpoint
875
888
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -904,6 +917,7 @@ class lykke(Exchange, ImplicitAPI):
904
917
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
905
918
  """
906
919
  fetch all unfilled currently open orders
920
+ :see: https://lykkecity.github.io/Trading-API/#get-active-or-closed-orders
907
921
  :param str symbol: unified market symbol
908
922
  :param int [since]: the earliest time in ms to fetch open orders for
909
923
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -948,6 +962,7 @@ class lykke(Exchange, ImplicitAPI):
948
962
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
949
963
  """
950
964
  fetches information on multiple closed orders made by the user
965
+ :see: https://lykkecity.github.io/Trading-API/#get-active-or-closed-orders
951
966
  :param str symbol: unified market symbol of the market orders were made in
952
967
  :param int [since]: the earliest time in ms to fetch orders for
953
968
  :param int [limit]: the maximum number of order structures to retrieve
@@ -992,6 +1007,7 @@ class lykke(Exchange, ImplicitAPI):
992
1007
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
993
1008
  """
994
1009
  fetch all trades made by the user
1010
+ :see: https://lykkecity.github.io/Trading-API/#get-trade-history
995
1011
  :param str symbol: unified market symbol
996
1012
  :param int [since]: the earliest time in ms to fetch trades for
997
1013
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -1046,6 +1062,7 @@ class lykke(Exchange, ImplicitAPI):
1046
1062
  async def fetch_deposit_address(self, code: str, params={}):
1047
1063
  """
1048
1064
  fetch the deposit address for a currency associated with self account
1065
+ :see: https://lykkecity.github.io/Trading-API/#get-deposit-address-for-a-given-asset
1049
1066
  :param str code: unified currency code
1050
1067
  :param dict [params]: extra parameters specific to the exchange API endpoint
1051
1068
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1139,6 +1156,7 @@ class lykke(Exchange, ImplicitAPI):
1139
1156
  async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1140
1157
  """
1141
1158
  fetch history of deposits and withdrawals
1159
+ :see: https://lykkecity.github.io/Trading-API/#get-the-history-of-withdrawals-and-deposits
1142
1160
  :param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
1143
1161
  :param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
1144
1162
  :param int [limit]: max number of deposit/withdrawals to return, default is None
@@ -1177,6 +1195,7 @@ class lykke(Exchange, ImplicitAPI):
1177
1195
  async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
1178
1196
  """
1179
1197
  make a withdrawal
1198
+ :see: https://lykkecity.github.io/Trading-API/#withdrawal
1180
1199
  :param str code: unified currency code
1181
1200
  :param float amount: the amount to withdraw
1182
1201
  :param str address: the address to withdraw to
@@ -284,6 +284,7 @@ class ndax(Exchange, ImplicitAPI):
284
284
  async def sign_in(self, params={}):
285
285
  """
286
286
  sign in, must be called prior to using other authenticated methods
287
+ :see: https://apidoc.ndax.io/#authenticate2fa
287
288
  :param dict [params]: extra parameters specific to the exchange API endpoint
288
289
  :returns: response from exchange
289
290
  """
@@ -331,6 +332,7 @@ class ndax(Exchange, ImplicitAPI):
331
332
  async def fetch_currencies(self, params={}):
332
333
  """
333
334
  fetches all available currencies on an exchange
335
+ :see: https://apidoc.ndax.io/#getproduct
334
336
  :param dict [params]: extra parameters specific to the exchange API endpoint
335
337
  :returns dict: an associative dictionary of currencies
336
338
  """
@@ -396,6 +398,7 @@ class ndax(Exchange, ImplicitAPI):
396
398
  async def fetch_markets(self, params={}):
397
399
  """
398
400
  retrieves data on all markets for ndax
401
+ :see: https://apidoc.ndax.io/#getinstruments
399
402
  :param dict [params]: extra parameters specific to the exchange API endpoint
400
403
  :returns dict[]: an array of objects representing market data
401
404
  """
@@ -548,6 +551,7 @@ class ndax(Exchange, ImplicitAPI):
548
551
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
549
552
  """
550
553
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
554
+ :see: https://apidoc.ndax.io/#getl2snapshot
551
555
  :param str symbol: unified symbol of the market to fetch the order book for
552
556
  :param int [limit]: the maximum amount of order book entries to return
553
557
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -656,6 +660,7 @@ class ndax(Exchange, ImplicitAPI):
656
660
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
657
661
  """
658
662
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
663
+ :see: https://apidoc.ndax.io/#getlevel1
659
664
  :param str symbol: unified symbol of the market to fetch the ticker for
660
665
  :param dict [params]: extra parameters specific to the exchange API endpoint
661
666
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -726,6 +731,7 @@ class ndax(Exchange, ImplicitAPI):
726
731
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
727
732
  """
728
733
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
734
+ :see: https://apidoc.ndax.io/#gettickerhistory
729
735
  :param str symbol: unified symbol of the market to fetch OHLCV data for
730
736
  :param str timeframe: the length of time each candle represents
731
737
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -959,6 +965,7 @@ class ndax(Exchange, ImplicitAPI):
959
965
  async def fetch_accounts(self, params={}):
960
966
  """
961
967
  fetch all the accounts associated with a profile
968
+ :see: https://apidoc.ndax.io/#getuseraccounts
962
969
  :param dict [params]: extra parameters specific to the exchange API endpoint
963
970
  :returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
964
971
  """
@@ -1006,6 +1013,7 @@ class ndax(Exchange, ImplicitAPI):
1006
1013
  async def fetch_balance(self, params={}) -> Balances:
1007
1014
  """
1008
1015
  query for balance and get the amount of funds available for trading or funds locked in orders
1016
+ :see: https://apidoc.ndax.io/#getaccountpositions
1009
1017
  :param dict [params]: extra parameters specific to the exchange API endpoint
1010
1018
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
1011
1019
  """
@@ -1127,6 +1135,7 @@ class ndax(Exchange, ImplicitAPI):
1127
1135
  async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
1128
1136
  """
1129
1137
  fetch the history of changes, actions done by the user or operations that altered balance of the user
1138
+ :see: https://apidoc.ndax.io/#getaccounttransactions
1130
1139
  :param str code: unified currency code, default is None
1131
1140
  :param int [since]: timestamp in ms of the earliest ledger entry, default is None
1132
1141
  :param int [limit]: max number of ledger entrys to return, default is None
@@ -1277,6 +1286,7 @@ class ndax(Exchange, ImplicitAPI):
1277
1286
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
1278
1287
  """
1279
1288
  create a trade order
1289
+ :see: https://apidoc.ndax.io/#sendorder
1280
1290
  :param str symbol: unified symbol of the market to create an order in
1281
1291
  :param str type: 'market' or 'limit'
1282
1292
  :param str side: 'buy' or 'sell'
@@ -1385,6 +1395,7 @@ class ndax(Exchange, ImplicitAPI):
1385
1395
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1386
1396
  """
1387
1397
  fetch all trades made by the user
1398
+ :see: https://apidoc.ndax.io/#gettradeshistory
1388
1399
  :param str symbol: unified market symbol
1389
1400
  :param int [since]: the earliest time in ms to fetch trades for
1390
1401
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -1467,6 +1478,7 @@ class ndax(Exchange, ImplicitAPI):
1467
1478
  async def cancel_all_orders(self, symbol: Str = None, params={}):
1468
1479
  """
1469
1480
  cancel all open orders
1481
+ :see: https://apidoc.ndax.io/#cancelallorders
1470
1482
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1471
1483
  :param dict [params]: extra parameters specific to the exchange API endpoint
1472
1484
  :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1498,6 +1510,7 @@ class ndax(Exchange, ImplicitAPI):
1498
1510
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
1499
1511
  """
1500
1512
  cancels an open order
1513
+ :see: https://apidoc.ndax.io/#cancelorder
1501
1514
  :param str id: order id
1502
1515
  :param str symbol: unified symbol of the market the order was made in
1503
1516
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1532,6 +1545,7 @@ class ndax(Exchange, ImplicitAPI):
1532
1545
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1533
1546
  """
1534
1547
  fetch all unfilled currently open orders
1548
+ :see: https://apidoc.ndax.io/#getopenorders
1535
1549
  :param str symbol: unified market symbol
1536
1550
  :param int [since]: the earliest time in ms to fetch open orders for
1537
1551
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -1607,6 +1621,7 @@ class ndax(Exchange, ImplicitAPI):
1607
1621
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1608
1622
  """
1609
1623
  fetches information on multiple orders made by the user
1624
+ :see: https://apidoc.ndax.io/#getorderhistory
1610
1625
  :param str symbol: unified market symbol of the market orders were made in
1611
1626
  :param int [since]: the earliest time in ms to fetch orders for
1612
1627
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1696,6 +1711,7 @@ class ndax(Exchange, ImplicitAPI):
1696
1711
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
1697
1712
  """
1698
1713
  fetches information on an order made by the user
1714
+ :see: https://apidoc.ndax.io/#getorderstatus
1699
1715
  :param str symbol: unified symbol of the market the order was made in
1700
1716
  :param dict [params]: extra parameters specific to the exchange API endpoint
1701
1717
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1768,6 +1784,7 @@ class ndax(Exchange, ImplicitAPI):
1768
1784
  async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1769
1785
  """
1770
1786
  fetch all the trades made from a single order
1787
+ :see: https://apidoc.ndax.io/#getorderhistorybyorderid
1771
1788
  :param str id: order id
1772
1789
  :param str symbol: unified market symbol
1773
1790
  :param int [since]: the earliest time in ms to fetch trades for
@@ -1984,6 +2001,7 @@ class ndax(Exchange, ImplicitAPI):
1984
2001
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1985
2002
  """
1986
2003
  fetch all withdrawals made from an account
2004
+ :see: https://apidoc.ndax.io/#getwithdraws
1987
2005
  :param str code: unified currency code
1988
2006
  :param int [since]: the earliest time in ms to fetch withdrawals for
1989
2007
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -990,6 +990,7 @@ class upbit(Exchange, ImplicitAPI):
990
990
  """
991
991
  create a trade order
992
992
  :see: https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8%ED%95%98%EA%B8%B0
993
+ :see: https://global-docs.upbit.com/reference/order
993
994
  :param str symbol: unified symbol of the market to create an order in
994
995
  :param str type: 'market' or 'limit'
995
996
  :param str side: 'buy' or 'sell'
@@ -997,6 +998,7 @@ class upbit(Exchange, ImplicitAPI):
997
998
  :param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
998
999
  :param dict [params]: extra parameters specific to the exchange API endpoint
999
1000
  :param float [params.cost]: for market buy orders, the quote quantity that can be used alternative for the amount
1001
+ :param str [params.timeInForce]: 'IOC' or 'FOK'
1000
1002
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
1001
1003
  """
1002
1004
  await self.load_markets()
@@ -1041,6 +1043,11 @@ class upbit(Exchange, ImplicitAPI):
1041
1043
  clientOrderId = self.safe_string_2(params, 'clientOrderId', 'identifier')
1042
1044
  if clientOrderId is not None:
1043
1045
  request['identifier'] = clientOrderId
1046
+ if type != 'market':
1047
+ timeInForce = self.safe_string_lower_2(params, 'timeInForce', 'time_in_force')
1048
+ params = self.omit(params, 'timeInForce')
1049
+ if timeInForce is not None:
1050
+ request['time_in_force'] = timeInForce
1044
1051
  params = self.omit(params, ['clientOrderId', 'identifier'])
1045
1052
  response = await self.privatePostOrders(self.extend(request, params))
1046
1053
  #
@@ -1773,7 +1780,7 @@ class upbit(Exchange, ImplicitAPI):
1773
1780
  url += '?' + self.urlencode(query)
1774
1781
  if api == 'private':
1775
1782
  self.check_required_credentials()
1776
- nonce = self.nonce()
1783
+ nonce = self.uuid()
1777
1784
  request = {
1778
1785
  'access_key': self.apiKey,
1779
1786
  'nonce': nonce,
ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.2.48'
7
+ __version__ = '4.2.49'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -884,7 +884,7 @@ class Exchange(object):
884
884
  if isinstance(key, str):
885
885
  if key in dictionary_or_list and dictionary_or_list[key] is not None and dictionary_or_list[key] != '':
886
886
  return dictionary_or_list[key]
887
- else:
887
+ elif key is not None:
888
888
  if (key < len(dictionary_or_list)) and (dictionary_or_list[key] is not None) and (dictionary_or_list[key] != ''):
889
889
  return dictionary_or_list[key]
890
890
  return None
ccxt/binance.py CHANGED
@@ -2985,7 +2985,7 @@ class binance(Exchange, ImplicitAPI):
2985
2985
  fees = self.fees
2986
2986
  linear = None
2987
2987
  inverse = None
2988
- strike = self.safe_integer(market, 'strikePrice')
2988
+ strike = self.safe_string(market, 'strikePrice')
2989
2989
  symbol = base + '/' + quote
2990
2990
  if contract:
2991
2991
  if swap:
@@ -2993,7 +2993,7 @@ class binance(Exchange, ImplicitAPI):
2993
2993
  elif future:
2994
2994
  symbol = symbol + ':' + settle + '-' + self.yymmdd(expiry)
2995
2995
  elif option:
2996
- symbol = symbol + ':' + settle + '-' + self.yymmdd(expiry) + '-' + self.number_to_string(strike) + '-' + self.safe_string(optionParts, 3)
2996
+ symbol = symbol + ':' + settle + '-' + self.yymmdd(expiry) + '-' + strike + '-' + self.safe_string(optionParts, 3)
2997
2997
  contractSize = self.safe_number_2(market, 'contractSize', 'unit', self.parse_number('1'))
2998
2998
  linear = settle == quote
2999
2999
  inverse = settle == base
@@ -3017,6 +3017,9 @@ class binance(Exchange, ImplicitAPI):
3017
3017
  elif option:
3018
3018
  unifiedType = 'option'
3019
3019
  active = None
3020
+ parsedStrike = None
3021
+ if strike is not None:
3022
+ parsedStrike = self.parse_to_numeric(strike)
3020
3023
  entry = {
3021
3024
  'id': id,
3022
3025
  'lowercaseId': lowercaseId,
@@ -3042,7 +3045,7 @@ class binance(Exchange, ImplicitAPI):
3042
3045
  'contractSize': contractSize,
3043
3046
  'expiry': expiry,
3044
3047
  'expiryDatetime': self.iso8601(expiry),
3045
- 'strike': strike,
3048
+ 'strike': parsedStrike,
3046
3049
  'optionType': self.safe_string_lower(market, 'side'),
3047
3050
  'precision': {
3048
3051
  'amount': self.safe_integer_2(market, 'quantityPrecision', 'quantityScale'),
ccxt/bitmart.py CHANGED
@@ -1121,7 +1121,7 @@ class bitmart(Exchange, ImplicitAPI):
1121
1121
 
1122
1122
  def parse_ticker(self, ticker, market: Market = None) -> Ticker:
1123
1123
  #
1124
- # spot
1124
+ # spot(REST)
1125
1125
  #
1126
1126
  # {
1127
1127
  # "symbol": "SOLAR_USDT",
@@ -1141,6 +1141,17 @@ class bitmart(Exchange, ImplicitAPI):
1141
1141
  # "timestamp": 1667403439367
1142
1142
  # }
1143
1143
  #
1144
+ # spot(WS)
1145
+ # {
1146
+ # "symbol":"BTC_USDT",
1147
+ # "last_price":"146.24",
1148
+ # "open_24h":"147.17",
1149
+ # "high_24h":"147.48",
1150
+ # "low_24h":"143.88",
1151
+ # "base_volume_24h":"117387.58", # NOT base, but quote currencynot !!
1152
+ # "s_t": 1610936002
1153
+ # }
1154
+ #
1144
1155
  # swap
1145
1156
  #
1146
1157
  # {
@@ -1157,6 +1168,9 @@ class bitmart(Exchange, ImplicitAPI):
1157
1168
  # }
1158
1169
  #
1159
1170
  timestamp = self.safe_integer(ticker, 'timestamp')
1171
+ if timestamp is None:
1172
+ # ticker from WS has a different field(in seconds)
1173
+ timestamp = self.safe_integer_product(ticker, 's_t', 1000)
1160
1174
  marketId = self.safe_string_2(ticker, 'symbol', 'contract_symbol')
1161
1175
  market = self.safe_market(marketId, market)
1162
1176
  symbol = market['symbol']
@@ -1171,7 +1185,15 @@ class bitmart(Exchange, ImplicitAPI):
1171
1185
  percentage = '0'
1172
1186
  baseVolume = self.safe_string(ticker, 'base_volume_24h')
1173
1187
  quoteVolume = self.safe_string(ticker, 'quote_volume_24h')
1174
- quoteVolume = self.safe_string(ticker, 'volume_24h', quoteVolume)
1188
+ if quoteVolume is None:
1189
+ if baseVolume is None:
1190
+ # self is swap
1191
+ quoteVolume = self.safe_string(ticker, 'volume_24h', quoteVolume)
1192
+ else:
1193
+ # self is a ticker from websockets
1194
+ # contrary to name and documentation, base_volume_24h is actually the quote volume
1195
+ quoteVolume = baseVolume
1196
+ baseVolume = None
1175
1197
  average = self.safe_string_2(ticker, 'avg_price', 'index_price')
1176
1198
  high = self.safe_string_2(ticker, 'high_24h', 'high_price')
1177
1199
  low = self.safe_string_2(ticker, 'low_24h', 'low_price')
ccxt/bitstamp.py CHANGED
@@ -361,6 +361,14 @@ class bitstamp(Exchange, ImplicitAPI):
361
361
  'eurcv_address/': 1,
362
362
  'pyusd_withdrawal/': 1,
363
363
  'pyusd_address/': 1,
364
+ 'lmwr_withdrawal/': 1,
365
+ 'lmwr_address/': 1,
366
+ 'pepe_withdrawal/': 1,
367
+ 'pepe_address/': 1,
368
+ 'blur_withdrawal/': 1,
369
+ 'blur_address/': 1,
370
+ 'vext_withdrawal/': 1,
371
+ 'vext_address/': 1,
364
372
  },
365
373
  },
366
374
  },
ccxt/btcalpha.py CHANGED
@@ -36,6 +36,7 @@ class btcalpha(Exchange, ImplicitAPI):
36
36
  'cancelOrder': True,
37
37
  'closeAllPositions': False,
38
38
  'closePosition': False,
39
+ 'createDepositAddress': False,
39
40
  'createOrder': True,
40
41
  'createReduceOnlyOrder': False,
41
42
  'createStopLimitOrder': False,
@@ -48,6 +49,9 @@ class btcalpha(Exchange, ImplicitAPI):
48
49
  'fetchCrossBorrowRate': False,
49
50
  'fetchCrossBorrowRates': False,
50
51
  'fetchDeposit': False,
52
+ 'fetchDepositAddress': False,
53
+ 'fetchDepositAddresses': False,
54
+ 'fetchDepositAddressesByNetwork': False,
51
55
  'fetchDeposits': True,
52
56
  'fetchFundingHistory': False,
53
57
  'fetchFundingRate': False,
ccxt/btcmarkets.py CHANGED
@@ -40,6 +40,7 @@ class btcmarkets(Exchange, ImplicitAPI):
40
40
  'cancelOrders': True,
41
41
  'closeAllPositions': False,
42
42
  'closePosition': False,
43
+ 'createDepositAddress': False,
43
44
  'createOrder': True,
44
45
  'createReduceOnlyOrder': False,
45
46
  'fetchBalance': True,
@@ -48,6 +49,9 @@ class btcmarkets(Exchange, ImplicitAPI):
48
49
  'fetchClosedOrders': 'emulated',
49
50
  'fetchCrossBorrowRate': False,
50
51
  'fetchCrossBorrowRates': False,
52
+ 'fetchDepositAddress': False,
53
+ 'fetchDepositAddresses': False,
54
+ 'fetchDepositAddressesByNetwork': False,
51
55
  'fetchDeposits': True,
52
56
  'fetchDepositsWithdrawals': True,
53
57
  'fetchFundingHistory': False,
ccxt/btcturk.py CHANGED
@@ -37,6 +37,7 @@ class btcturk(Exchange, ImplicitAPI):
37
37
  'cancelOrder': True,
38
38
  'closeAllPositions': False,
39
39
  'closePosition': False,
40
+ 'createDepositAddress': False,
40
41
  'createOrder': True,
41
42
  'createReduceOnlyOrder': False,
42
43
  'fetchBalance': True,
@@ -44,6 +45,9 @@ class btcturk(Exchange, ImplicitAPI):
44
45
  'fetchBorrowRateHistory': False,
45
46
  'fetchCrossBorrowRate': False,
46
47
  'fetchCrossBorrowRates': False,
48
+ 'fetchDepositAddress': False,
49
+ 'fetchDepositAddresses': False,
50
+ 'fetchDepositAddressesByNetwork': False,
47
51
  'fetchFundingHistory': False,
48
52
  'fetchFundingRate': False,
49
53
  'fetchFundingRateHistory': False,