ccxt 4.4.29__py2.py3-none-any.whl → 4.4.31__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/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +564 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +198 -132
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +138 -53
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +203 -42
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +90 -39
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +138 -53
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +203 -42
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +90 -39
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +38 -13
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/test/tests_helpers.py +2 -2
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/cryptocom.py
CHANGED
@@ -425,7 +425,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
425
425
|
|
426
426
|
def fetch_markets(self, params={}) -> List[Market]:
|
427
427
|
"""
|
428
|
-
|
428
|
+
|
429
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-instruments
|
430
|
+
|
429
431
|
retrieves data on all markets for cryptocom
|
430
432
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
431
433
|
:returns dict[]: an array of objects representing market data
|
@@ -613,8 +615,10 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
613
615
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
614
616
|
"""
|
615
617
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
616
|
-
|
617
|
-
|
618
|
+
|
619
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-tickers
|
620
|
+
https://exchange-docs.crypto.com/derivatives/index.html#public-get-tickers
|
621
|
+
|
618
622
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
619
623
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
620
624
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -664,7 +668,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
664
668
|
|
665
669
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
666
670
|
"""
|
667
|
-
|
671
|
+
|
672
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-tickers
|
673
|
+
|
668
674
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
669
675
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
670
676
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -678,7 +684,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
678
684
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
679
685
|
"""
|
680
686
|
fetches information on multiple orders made by the user
|
681
|
-
|
687
|
+
|
688
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-history
|
689
|
+
|
682
690
|
:param str symbol: unified market symbol of the market the orders were made in
|
683
691
|
:param int [since]: the earliest time in ms to fetch orders for, max date range is one day
|
684
692
|
:param int [limit]: the maximum number of order structures to retrieve, default 100 max 100
|
@@ -752,7 +760,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
752
760
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
753
761
|
"""
|
754
762
|
get a list of the most recent trades for a particular symbol
|
755
|
-
|
763
|
+
|
764
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-trades
|
765
|
+
|
756
766
|
:param str symbol: unified symbol of the market to fetch trades for
|
757
767
|
:param int [since]: timestamp in ms of the earliest trade to fetch, maximum date range is one day
|
758
768
|
:param int [limit]: the maximum number of trades to fetch
|
@@ -806,7 +816,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
806
816
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
807
817
|
"""
|
808
818
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
809
|
-
|
819
|
+
|
820
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-candlestick
|
821
|
+
|
810
822
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
811
823
|
:param str timeframe: the length of time each candle represents
|
812
824
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -871,7 +883,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
871
883
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
872
884
|
"""
|
873
885
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
874
|
-
|
886
|
+
|
887
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-book
|
888
|
+
|
875
889
|
:param str symbol: unified symbol of the market to fetch the order book for
|
876
890
|
:param int [limit]: the number of order book entries to return, max 50
|
877
891
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -927,7 +941,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
927
941
|
def fetch_balance(self, params={}) -> Balances:
|
928
942
|
"""
|
929
943
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
930
|
-
|
944
|
+
|
945
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-user-balance
|
946
|
+
|
931
947
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
932
948
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
933
949
|
"""
|
@@ -981,7 +997,10 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
981
997
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
982
998
|
"""
|
983
999
|
fetches information on an order made by the user
|
984
|
-
|
1000
|
+
|
1001
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-detail
|
1002
|
+
|
1003
|
+
:param str id: order id
|
985
1004
|
:param str symbol: unified symbol of the market the order was made in
|
986
1005
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
987
1006
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1115,7 +1134,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1115
1134
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1116
1135
|
"""
|
1117
1136
|
create a trade order
|
1118
|
-
|
1137
|
+
|
1138
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order
|
1139
|
+
|
1119
1140
|
:param str symbol: unified symbol of the market to create an order in
|
1120
1141
|
:param str type: 'market', 'limit', 'stop_loss', 'stop_limit', 'take_profit', 'take_profit_limit'
|
1121
1142
|
:param str side: 'buy' or 'sell'
|
@@ -1150,9 +1171,12 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1150
1171
|
def create_orders(self, orders: List[OrderRequest], params={}):
|
1151
1172
|
"""
|
1152
1173
|
create a list of trade orders
|
1153
|
-
|
1154
|
-
|
1174
|
+
|
1175
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order-list-list
|
1176
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order-list-oco
|
1177
|
+
|
1155
1178
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
1179
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1156
1180
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
1157
1181
|
"""
|
1158
1182
|
self.load_markets()
|
@@ -1320,7 +1344,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1320
1344
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1321
1345
|
"""
|
1322
1346
|
cancel all open orders
|
1323
|
-
|
1347
|
+
|
1348
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
1349
|
+
|
1324
1350
|
:param str symbol: unified market symbol of the orders to cancel
|
1325
1351
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1326
1352
|
:returns dict} Returns exchange raw message{@link https://docs.ccxt.com/#/?id=order-structure:
|
@@ -1336,7 +1362,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1336
1362
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1337
1363
|
"""
|
1338
1364
|
cancels an open order
|
1339
|
-
|
1365
|
+
|
1366
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
|
1367
|
+
|
1340
1368
|
:param str id: the order id of the order to cancel
|
1341
1369
|
:param str [symbol]: unified symbol of the market the order was made in
|
1342
1370
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1368,7 +1396,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1368
1396
|
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1369
1397
|
"""
|
1370
1398
|
cancel multiple orders
|
1371
|
-
|
1399
|
+
|
1400
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order-list-list
|
1401
|
+
|
1372
1402
|
:param str[] ids: order ids
|
1373
1403
|
:param str symbol: unified market symbol
|
1374
1404
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1397,7 +1427,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1397
1427
|
def cancel_orders_for_symbols(self, orders: List[CancellationRequest], params={}):
|
1398
1428
|
"""
|
1399
1429
|
cancel multiple orders for multiple symbols
|
1400
|
-
|
1430
|
+
|
1431
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order-list-list
|
1432
|
+
|
1401
1433
|
:param CancellationRequest[] orders: each order should contain the parameters required by cancelOrder namely id and symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
|
1402
1434
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1403
1435
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1425,7 +1457,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1425
1457
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1426
1458
|
"""
|
1427
1459
|
fetch all unfilled currently open orders
|
1428
|
-
|
1460
|
+
|
1461
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-open-orders
|
1462
|
+
|
1429
1463
|
:param str symbol: unified market symbol
|
1430
1464
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1431
1465
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -1483,7 +1517,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1483
1517
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1484
1518
|
"""
|
1485
1519
|
fetch all trades made by the user
|
1486
|
-
|
1520
|
+
|
1521
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-trades
|
1522
|
+
|
1487
1523
|
:param str symbol: unified market symbol
|
1488
1524
|
:param int [since]: the earliest time in ms to fetch trades for, maximum date range is one day
|
1489
1525
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -1559,7 +1595,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1559
1595
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1560
1596
|
"""
|
1561
1597
|
make a withdrawal
|
1562
|
-
|
1598
|
+
|
1599
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-withdrawal
|
1600
|
+
|
1563
1601
|
:param str code: unified currency code
|
1564
1602
|
:param float amount: the amount to withdraw
|
1565
1603
|
:param str address: the address to withdraw to
|
@@ -1605,7 +1643,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1605
1643
|
def fetch_deposit_addresses_by_network(self, code: str, params={}) -> List[DepositAddress]:
|
1606
1644
|
"""
|
1607
1645
|
fetch a dictionary of addresses for a currency, indexed by network
|
1608
|
-
|
1646
|
+
|
1647
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address
|
1648
|
+
|
1609
1649
|
:param str code: unified currency code of the currency for the deposit address
|
1610
1650
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1611
1651
|
:returns dict: a dictionary of `address structures <https://docs.ccxt.com/#/?id=address-structure>` indexed by the network
|
@@ -1662,7 +1702,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1662
1702
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1663
1703
|
"""
|
1664
1704
|
fetch the deposit address for a currency associated with self account
|
1665
|
-
|
1705
|
+
|
1706
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address
|
1707
|
+
|
1666
1708
|
:param str code: unified currency code
|
1667
1709
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1668
1710
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1679,7 +1721,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1679
1721
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1680
1722
|
"""
|
1681
1723
|
fetch all deposits made to an account
|
1682
|
-
|
1724
|
+
|
1725
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-history
|
1726
|
+
|
1683
1727
|
:param str code: unified currency code
|
1684
1728
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1685
1729
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1732,7 +1776,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1732
1776
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1733
1777
|
"""
|
1734
1778
|
fetch all withdrawals made from an account
|
1735
|
-
|
1779
|
+
|
1780
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-withdrawal-history
|
1781
|
+
|
1736
1782
|
:param str code: unified currency code
|
1737
1783
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1738
1784
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2144,7 +2190,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2144
2190
|
|
2145
2191
|
def custom_handle_margin_mode_and_params(self, methodName, params={}):
|
2146
2192
|
"""
|
2147
|
-
|
2193
|
+
@ignore
|
2148
2194
|
marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
|
2149
2195
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2150
2196
|
:returns Array: the marginMode in lowercase
|
@@ -2211,7 +2257,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2211
2257
|
def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
2212
2258
|
"""
|
2213
2259
|
fetch deposit and withdraw fees
|
2214
|
-
|
2260
|
+
|
2261
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-currency-networks
|
2262
|
+
|
2215
2263
|
:param str[]|None codes: list of unified currency codes
|
2216
2264
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2217
2265
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -2225,7 +2273,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2225
2273
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
2226
2274
|
"""
|
2227
2275
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
2228
|
-
|
2276
|
+
|
2277
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-transactions
|
2278
|
+
|
2229
2279
|
:param str [code]: unified currency code
|
2230
2280
|
:param int [since]: timestamp in ms of the earliest ledger entry
|
2231
2281
|
:param int [limit]: max number of ledger entries to return
|
@@ -2362,7 +2412,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2362
2412
|
def fetch_accounts(self, params={}) -> List[Account]:
|
2363
2413
|
"""
|
2364
2414
|
fetch all the accounts associated with a profile
|
2365
|
-
|
2415
|
+
|
2416
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-accounts
|
2417
|
+
|
2366
2418
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2367
2419
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
2368
2420
|
"""
|
@@ -2441,7 +2493,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2441
2493
|
def fetch_settlement_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2442
2494
|
"""
|
2443
2495
|
fetches historical settlement records
|
2444
|
-
|
2496
|
+
|
2497
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-expired-settlement-price
|
2498
|
+
|
2445
2499
|
:param str symbol: unified market symbol of the settlement history
|
2446
2500
|
:param int [since]: timestamp in ms
|
2447
2501
|
:param int [limit]: number of records
|
@@ -2523,7 +2577,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2523
2577
|
def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2524
2578
|
"""
|
2525
2579
|
fetches historical funding rates
|
2526
|
-
|
2580
|
+
|
2581
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-valuations
|
2582
|
+
|
2527
2583
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2528
2584
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2529
2585
|
:param int [limit]: the maximum amount of [funding rate structures] to fetch
|
@@ -2591,7 +2647,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2591
2647
|
def fetch_position(self, symbol: str, params={}):
|
2592
2648
|
"""
|
2593
2649
|
fetch data on a single open contract trade position
|
2594
|
-
|
2650
|
+
|
2651
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
2652
|
+
|
2595
2653
|
:param str symbol: unified market symbol of the market the position is held in
|
2596
2654
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2597
2655
|
:returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -2631,7 +2689,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2631
2689
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
2632
2690
|
"""
|
2633
2691
|
fetch all open positions
|
2634
|
-
|
2692
|
+
|
2693
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
2694
|
+
|
2635
2695
|
:param str[]|None symbols: list of unified market symbols
|
2636
2696
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2637
2697
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -2763,13 +2823,14 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2763
2823
|
def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
|
2764
2824
|
"""
|
2765
2825
|
closes open positions for a market
|
2766
|
-
|
2826
|
+
|
2827
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-close-position
|
2828
|
+
|
2767
2829
|
:param str symbol: Unified CCXT market symbol
|
2768
|
-
:param str [marginMode]: not used by cryptocom.closePositions
|
2769
2830
|
:param str [side]: not used by cryptocom.closePositions
|
2770
2831
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
2771
|
-
|
2772
|
-
|
2832
|
+
|
2833
|
+
EXCHANGE SPECIFIC PARAMETERS
|
2773
2834
|
:param str [params.type]: LIMIT or MARKET
|
2774
2835
|
:param number [params.price]: for limit orders only
|
2775
2836
|
:returns dict[]: `A list of position structures <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -2804,7 +2865,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2804
2865
|
def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
2805
2866
|
"""
|
2806
2867
|
fetch the trading fees for a market
|
2807
|
-
|
2868
|
+
|
2869
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-instrument-fee-rate
|
2870
|
+
|
2808
2871
|
:param str symbol: unified market symbol
|
2809
2872
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2810
2873
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -2835,7 +2898,9 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2835
2898
|
|
2836
2899
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
2837
2900
|
"""
|
2838
|
-
|
2901
|
+
|
2902
|
+
https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-fee-rate
|
2903
|
+
|
2839
2904
|
fetch the trading fees for multiple markets
|
2840
2905
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2841
2906
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
ccxt/currencycom.py
CHANGED
@@ -315,7 +315,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
315
315
|
def fetch_time(self, params={}):
|
316
316
|
"""
|
317
317
|
fetches the current integer timestamp in milliseconds from the exchange server
|
318
|
-
|
318
|
+
|
319
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/timeUsingGET
|
320
|
+
|
319
321
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
320
322
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
321
323
|
"""
|
@@ -330,7 +332,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
330
332
|
def fetch_currencies(self, params={}) -> Currencies:
|
331
333
|
"""
|
332
334
|
fetches all available currencies on an exchange
|
333
|
-
|
335
|
+
|
336
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getCurrenciesUsingGET
|
337
|
+
|
334
338
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
335
339
|
:returns dict: an associative dictionary of currencies
|
336
340
|
"""
|
@@ -399,7 +403,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
399
403
|
def fetch_markets(self, params={}) -> List[Market]:
|
400
404
|
"""
|
401
405
|
retrieves data on all markets for currencycom
|
402
|
-
|
406
|
+
|
407
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/exchangeInfoUsingGET
|
408
|
+
|
403
409
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
404
410
|
:returns dict[]: an array of objects representing market data
|
405
411
|
"""
|
@@ -578,7 +584,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
578
584
|
def fetch_accounts(self, params={}) -> List[Account]:
|
579
585
|
"""
|
580
586
|
fetch all the accounts associated with a profile
|
581
|
-
|
587
|
+
|
588
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
|
589
|
+
|
582
590
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
583
591
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
584
592
|
"""
|
@@ -632,7 +640,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
632
640
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
633
641
|
"""
|
634
642
|
fetch the trading fees for multiple markets
|
635
|
-
|
643
|
+
|
644
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
|
645
|
+
|
636
646
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
637
647
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
638
648
|
"""
|
@@ -705,7 +715,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
705
715
|
def fetch_balance(self, params={}) -> Balances:
|
706
716
|
"""
|
707
717
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
708
|
-
|
718
|
+
|
719
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
|
720
|
+
|
709
721
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
710
722
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
711
723
|
"""
|
@@ -747,7 +759,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
747
759
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
748
760
|
"""
|
749
761
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
750
|
-
|
762
|
+
|
763
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/depthUsingGET
|
764
|
+
|
751
765
|
:param str symbol: unified symbol of the market to fetch the order book for
|
752
766
|
:param int [limit]: the maximum amount of order book entries to return
|
753
767
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -861,7 +875,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
861
875
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
862
876
|
"""
|
863
877
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
864
|
-
|
878
|
+
|
879
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/ticker_24hrUsingGET
|
880
|
+
|
865
881
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
866
882
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
867
883
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -897,7 +913,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
897
913
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
898
914
|
"""
|
899
915
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
900
|
-
|
916
|
+
|
917
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/ticker_24hrUsingGET
|
918
|
+
|
901
919
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
902
920
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
903
921
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -947,7 +965,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
947
965
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
948
966
|
"""
|
949
967
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
950
|
-
|
968
|
+
|
969
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/klinesUsingGET
|
970
|
+
|
951
971
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
952
972
|
:param str timeframe: the length of time each candle represents
|
953
973
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1053,7 +1073,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1053
1073
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1054
1074
|
"""
|
1055
1075
|
get the list of most recent trades for a particular symbol
|
1056
|
-
|
1076
|
+
|
1077
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/aggTradesUsingGET
|
1078
|
+
|
1057
1079
|
:param str symbol: unified symbol of the market to fetch trades for
|
1058
1080
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1059
1081
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1234,7 +1256,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1234
1256
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1235
1257
|
"""
|
1236
1258
|
create a trade order
|
1237
|
-
|
1259
|
+
|
1260
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/orderUsingPOST
|
1261
|
+
|
1238
1262
|
:param str symbol: unified symbol of the market to create an order in
|
1239
1263
|
:param str type: 'market' or 'limit'
|
1240
1264
|
:param str side: 'buy' or 'sell'
|
@@ -1322,7 +1346,10 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1322
1346
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1323
1347
|
"""
|
1324
1348
|
fetches information on an order made by the user
|
1325
|
-
|
1349
|
+
|
1350
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getOrderUsingGET
|
1351
|
+
|
1352
|
+
:param str id: order id
|
1326
1353
|
:param str symbol: unified symbol of the market the order was made in
|
1327
1354
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1328
1355
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1363,7 +1390,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1363
1390
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1364
1391
|
"""
|
1365
1392
|
fetch all unfilled currently open orders
|
1366
|
-
|
1393
|
+
|
1394
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/openOrdersUsingGET
|
1395
|
+
|
1367
1396
|
:param str symbol: unified market symbol
|
1368
1397
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1369
1398
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1406,7 +1435,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1406
1435
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1407
1436
|
"""
|
1408
1437
|
cancels an open order
|
1409
|
-
|
1438
|
+
|
1439
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/cancelOrderUsingDELETE
|
1440
|
+
|
1410
1441
|
:param str id: order id
|
1411
1442
|
:param str symbol: unified symbol of the market the order was made in
|
1412
1443
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1445,7 +1476,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1445
1476
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1446
1477
|
"""
|
1447
1478
|
fetch all trades made by the user
|
1448
|
-
|
1479
|
+
|
1480
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/myTradesUsingGET
|
1481
|
+
|
1449
1482
|
:param str symbol: unified market symbol
|
1450
1483
|
:param int [since]: the earliest time in ms to fetch trades for
|
1451
1484
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1485,7 +1518,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1485
1518
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1486
1519
|
"""
|
1487
1520
|
fetch all deposits made to an account
|
1488
|
-
|
1521
|
+
|
1522
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getDepositsUsingGET
|
1523
|
+
|
1489
1524
|
:param str code: unified currency code
|
1490
1525
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1491
1526
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1497,7 +1532,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1497
1532
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1498
1533
|
"""
|
1499
1534
|
fetch all withdrawals made from an account
|
1500
|
-
|
1535
|
+
|
1536
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getWithdrawalsUsingGET
|
1537
|
+
|
1501
1538
|
:param str code: unified currency code
|
1502
1539
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1503
1540
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1509,7 +1546,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1509
1546
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1510
1547
|
"""
|
1511
1548
|
fetch history of deposits and withdrawals
|
1512
|
-
|
1549
|
+
|
1550
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getTransactionsUsingGET
|
1551
|
+
|
1513
1552
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
1514
1553
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1515
1554
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1622,7 +1661,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1622
1661
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
1623
1662
|
"""
|
1624
1663
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
1625
|
-
|
1664
|
+
|
1665
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getLedgerUsingGET
|
1666
|
+
|
1626
1667
|
:param str [code]: unified currency code, default is None
|
1627
1668
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
1628
1669
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -1718,7 +1759,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1718
1759
|
def fetch_leverage(self, symbol: str, params={}) -> Leverage:
|
1719
1760
|
"""
|
1720
1761
|
fetch the set leverage for a market
|
1721
|
-
|
1762
|
+
|
1763
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/leverageSettingsUsingGET
|
1764
|
+
|
1722
1765
|
:param str symbol: unified market symbol
|
1723
1766
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1724
1767
|
:returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
|
@@ -1750,7 +1793,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1750
1793
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1751
1794
|
"""
|
1752
1795
|
fetch the deposit address for a currency associated with self account
|
1753
|
-
|
1796
|
+
|
1797
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getDepositAddressUsingGET
|
1798
|
+
|
1754
1799
|
:param str code: unified currency code
|
1755
1800
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1756
1801
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1809,7 +1854,9 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1809
1854
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
1810
1855
|
"""
|
1811
1856
|
fetch all open positions
|
1812
|
-
|
1857
|
+
|
1858
|
+
https://apitradedoc.currency.com/swagger-ui.html#/rest-api/tradingPositionsUsingGET
|
1859
|
+
|
1813
1860
|
:param str[]|None symbols: list of unified market symbols
|
1814
1861
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1815
1862
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|