ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__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/abstract/okcoin.py +70 -206
- ccxt/ace.py +12 -12
- ccxt/ascendex.py +5 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +12 -12
- ccxt/async_support/ascendex.py +5 -5
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +184 -184
- ccxt/async_support/bingx.py +48 -48
- ccxt/async_support/bitbank.py +14 -14
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +35 -35
- ccxt/async_support/bitflyer.py +17 -17
- ccxt/async_support/bitforex.py +9 -9
- ccxt/async_support/bitget.py +433 -215
- ccxt/async_support/bitmart.py +39 -39
- ccxt/async_support/bitmex.py +7 -7
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcalpha.py +7 -7
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +58 -58
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +13 -13
- ccxt/async_support/coinbasepro.py +15 -15
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +4 -4
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +28 -28
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +26 -26
- ccxt/async_support/deribit.py +9 -9
- ccxt/async_support/digifinex.py +38 -38
- ccxt/async_support/exmo.py +18 -18
- ccxt/async_support/gate.py +59 -59
- ccxt/async_support/gemini.py +4 -4
- ccxt/async_support/hitbtc.py +6 -6
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/huobi.py +70 -70
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +33 -33
- ccxt/async_support/krakenfutures.py +6 -5
- ccxt/async_support/kucoin.py +74 -74
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank2.py +33 -33
- ccxt/async_support/mexc.py +22 -22
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +22 -22
- ccxt/async_support/oceanex.py +18 -18
- ccxt/async_support/okcoin.py +1950 -2758
- ccxt/async_support/okx.py +73 -73
- ccxt/async_support/paymium.py +11 -11
- ccxt/async_support/phemex.py +26 -26
- ccxt/async_support/poloniex.py +30 -30
- ccxt/async_support/poloniexfutures.py +25 -25
- ccxt/async_support/probit.py +21 -21
- ccxt/async_support/tokocrypto.py +22 -22
- ccxt/async_support/upbit.py +21 -21
- ccxt/async_support/wavesexchange.py +2 -2
- ccxt/async_support/wazirx.py +14 -14
- ccxt/async_support/whitebit.py +6 -6
- ccxt/async_support/woo.py +21 -21
- ccxt/async_support/yobit.py +16 -16
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +15 -15
- ccxt/base/exchange.py +2 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +184 -184
- ccxt/bingx.py +48 -48
- ccxt/bitbank.py +14 -14
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +35 -35
- ccxt/bitflyer.py +17 -17
- ccxt/bitforex.py +9 -9
- ccxt/bitget.py +433 -215
- ccxt/bitmart.py +39 -39
- ccxt/bitmex.py +7 -7
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/bl3p.py +1 -1
- ccxt/btcalpha.py +7 -7
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +58 -58
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +13 -13
- ccxt/coinbasepro.py +15 -15
- ccxt/coinex.py +19 -19
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +4 -4
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +28 -28
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +26 -26
- ccxt/deribit.py +9 -9
- ccxt/digifinex.py +38 -38
- ccxt/exmo.py +18 -18
- ccxt/gate.py +59 -59
- ccxt/gemini.py +4 -4
- ccxt/hitbtc.py +6 -6
- ccxt/hollaex.py +2 -2
- ccxt/huobi.py +70 -70
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +33 -33
- ccxt/krakenfutures.py +6 -5
- ccxt/kucoin.py +74 -74
- ccxt/kucoinfutures.py +8 -8
- ccxt/latoken.py +14 -14
- ccxt/lbank2.py +33 -33
- ccxt/mexc.py +22 -22
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +22 -22
- ccxt/oceanex.py +18 -18
- ccxt/okcoin.py +1950 -2758
- ccxt/okx.py +73 -73
- ccxt/paymium.py +11 -11
- ccxt/phemex.py +26 -26
- ccxt/poloniex.py +30 -30
- ccxt/poloniexfutures.py +25 -25
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +12 -12
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitpanda.py +7 -7
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/blockchaincom.py +6 -6
- ccxt/pro/bybit.py +15 -15
- ccxt/pro/cex.py +8 -8
- ccxt/pro/coinbase.py +6 -6
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +8 -8
- ccxt/pro/cryptocom.py +12 -12
- ccxt/pro/deribit.py +7 -7
- ccxt/pro/gemini.py +4 -4
- ccxt/pro/hitbtc.py +17 -17
- ccxt/pro/huobi.py +3 -3
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +10 -10
- ccxt/pro/kucoin.py +85 -42
- ccxt/pro/kucoinfutures.py +5 -5
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +7 -7
- ccxt/pro/okx.py +16 -15
- ccxt/pro/phemex.py +15 -15
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +5 -5
- ccxt/pro/wazirx.py +5 -5
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +21 -21
- ccxt/test/base/test_shared_methods.py +1 -1
- ccxt/tokocrypto.py +22 -22
- ccxt/upbit.py +21 -21
- ccxt/wavesexchange.py +2 -2
- ccxt/wazirx.py +14 -14
- ccxt/whitebit.py +6 -6
- ccxt/woo.py +21 -21
- ccxt/yobit.py +16 -16
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +15 -15
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/oceanex.py
CHANGED
@@ -157,7 +157,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
157
157
|
def fetch_markets(self, params={}):
|
158
158
|
"""
|
159
159
|
retrieves data on all markets for oceanex
|
160
|
-
see https://api.oceanex.pro/doc/v1/#markets-post
|
160
|
+
:see: https://api.oceanex.pro/doc/v1/#markets-post
|
161
161
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
162
162
|
:returns dict[]: an array of objects representing market data
|
163
163
|
"""
|
@@ -242,7 +242,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
242
242
|
def fetch_ticker(self, symbol: str, params={}):
|
243
243
|
"""
|
244
244
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
245
|
-
see https://api.oceanex.pro/doc/v1/#ticker-post
|
245
|
+
:see: https://api.oceanex.pro/doc/v1/#ticker-post
|
246
246
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
247
247
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
248
248
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -276,7 +276,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
276
276
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
277
277
|
"""
|
278
278
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
279
|
-
see https://api.oceanex.pro/doc/v1/#multiple-tickers-post
|
279
|
+
:see: https://api.oceanex.pro/doc/v1/#multiple-tickers-post
|
280
280
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
281
281
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
282
282
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -358,7 +358,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
358
358
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
359
359
|
"""
|
360
360
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
361
|
-
see https://api.oceanex.pro/doc/v1/#order-book-post
|
361
|
+
:see: https://api.oceanex.pro/doc/v1/#order-book-post
|
362
362
|
:param str symbol: unified symbol of the market to fetch the order book for
|
363
363
|
:param int [limit]: the maximum amount of order book entries to return
|
364
364
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
@@ -398,7 +398,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
398
398
|
def fetch_order_books(self, symbols: Optional[List[str]] = None, limit: Optional[int] = None, params={}):
|
399
399
|
"""
|
400
400
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
|
401
|
-
see https://api.oceanex.pro/doc/v1/#multiple-order-books-post
|
401
|
+
:see: https://api.oceanex.pro/doc/v1/#multiple-order-books-post
|
402
402
|
:param str[]|None symbols: list of unified market symbols, all symbols fetched if None, default is None
|
403
403
|
:param int [limit]: max number of entries per orderbook to return, default is None
|
404
404
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
@@ -450,7 +450,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
450
450
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
451
451
|
"""
|
452
452
|
get the list of most recent trades for a particular symbol
|
453
|
-
see https://api.oceanex.pro/doc/v1/#trades-post
|
453
|
+
:see: https://api.oceanex.pro/doc/v1/#trades-post
|
454
454
|
:param str symbol: unified symbol of the market to fetch trades for
|
455
455
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
456
456
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -532,7 +532,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
532
532
|
def fetch_time(self, params={}):
|
533
533
|
"""
|
534
534
|
fetches the current integer timestamp in milliseconds from the exchange server
|
535
|
-
see https://api.oceanex.pro/doc/v1/#api-server-time-post
|
535
|
+
:see: https://api.oceanex.pro/doc/v1/#api-server-time-post
|
536
536
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
537
537
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
538
538
|
"""
|
@@ -545,7 +545,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
545
545
|
def fetch_trading_fees(self, params={}):
|
546
546
|
"""
|
547
547
|
fetch the trading fees for multiple markets
|
548
|
-
see https://api.oceanex.pro/doc/v1/#trading-fees-post
|
548
|
+
:see: https://api.oceanex.pro/doc/v1/#trading-fees-post
|
549
549
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
550
550
|
:returns dict: a dictionary of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>` indexed by market symbols
|
551
551
|
"""
|
@@ -588,7 +588,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
588
588
|
def fetch_balance(self, params={}):
|
589
589
|
"""
|
590
590
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
591
|
-
see https://api.oceanex.pro/doc/v1/#account-info-post
|
591
|
+
:see: https://api.oceanex.pro/doc/v1/#account-info-post
|
592
592
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
593
593
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
594
594
|
"""
|
@@ -599,7 +599,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
599
599
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
600
600
|
"""
|
601
601
|
create a trade order
|
602
|
-
see https://api.oceanex.pro/doc/v1/#new-order-post
|
602
|
+
:see: https://api.oceanex.pro/doc/v1/#new-order-post
|
603
603
|
:param str symbol: unified symbol of the market to create an order in
|
604
604
|
:param str type: 'market' or 'limit'
|
605
605
|
:param str side: 'buy' or 'sell'
|
@@ -625,7 +625,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
625
625
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
626
626
|
"""
|
627
627
|
fetches information on an order made by the user
|
628
|
-
see https://api.oceanex.pro/doc/v1/#order-status-get
|
628
|
+
:see: https://api.oceanex.pro/doc/v1/#order-status-get
|
629
629
|
:param str symbol: unified symbol of the market the order was made in
|
630
630
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
631
631
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -651,7 +651,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
651
651
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
652
652
|
"""
|
653
653
|
fetch all unfilled currently open orders
|
654
|
-
see https://api.oceanex.pro/doc/v1/#order-status-get
|
654
|
+
:see: https://api.oceanex.pro/doc/v1/#order-status-get
|
655
655
|
:param str symbol: unified market symbol
|
656
656
|
:param int [since]: the earliest time in ms to fetch open orders for
|
657
657
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -666,7 +666,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
666
666
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
667
667
|
"""
|
668
668
|
fetches information on multiple closed orders made by the user
|
669
|
-
see https://api.oceanex.pro/doc/v1/#order-status-get
|
669
|
+
:see: https://api.oceanex.pro/doc/v1/#order-status-get
|
670
670
|
:param str symbol: unified market symbol of the market orders were made in
|
671
671
|
:param int [since]: the earliest time in ms to fetch orders for
|
672
672
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -681,7 +681,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
681
681
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
682
682
|
"""
|
683
683
|
fetches information on multiple orders made by the user
|
684
|
-
see https://api.oceanex.pro/doc/v1/#order-status-with-filters-post
|
684
|
+
:see: https://api.oceanex.pro/doc/v1/#order-status-with-filters-post
|
685
685
|
:param str symbol: unified market symbol of the market orders were made in
|
686
686
|
:param int [since]: the earliest time in ms to fetch orders for
|
687
687
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -732,7 +732,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
732
732
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
733
733
|
"""
|
734
734
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
735
|
-
see https://api.oceanex.pro/doc/v1/#k-line-post
|
735
|
+
:see: https://api.oceanex.pro/doc/v1/#k-line-post
|
736
736
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
737
737
|
:param str timeframe: the length of time each candle represents
|
738
738
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -831,7 +831,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
831
831
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
832
832
|
"""
|
833
833
|
cancels an open order
|
834
|
-
see https://api.oceanex.pro/doc/v1/#cancel-order-post
|
834
|
+
:see: https://api.oceanex.pro/doc/v1/#cancel-order-post
|
835
835
|
:param str id: order id
|
836
836
|
:param str symbol: not used by oceanex cancelOrder()
|
837
837
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
@@ -845,7 +845,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
845
845
|
def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
846
846
|
"""
|
847
847
|
cancel multiple orders
|
848
|
-
see https://api.oceanex.pro/doc/v1/#cancel-multiple-orders-post
|
848
|
+
:see: https://api.oceanex.pro/doc/v1/#cancel-multiple-orders-post
|
849
849
|
:param str[] ids: order ids
|
850
850
|
:param str symbol: not used by oceanex cancelOrders()
|
851
851
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
@@ -859,7 +859,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
859
859
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
860
860
|
"""
|
861
861
|
cancel all open orders
|
862
|
-
see https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
|
862
|
+
:see: https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
|
863
863
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
864
864
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
865
865
|
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|