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/bitmex.py
CHANGED
@@ -299,7 +299,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
299
299
|
def fetch_currencies(self, params={}) -> Currencies:
|
300
300
|
"""
|
301
301
|
fetches all available currencies on an exchange
|
302
|
-
|
302
|
+
|
303
|
+
https://www.bitmex.com/api/explorer/#not /Wallet/Wallet_getAssetsConfig
|
304
|
+
|
303
305
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
304
306
|
:returns dict: an associative dictionary of currencies
|
305
307
|
"""
|
@@ -462,7 +464,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
462
464
|
def fetch_markets(self, params={}) -> List[Market]:
|
463
465
|
"""
|
464
466
|
retrieves data on all markets for bitmex
|
465
|
-
|
467
|
+
|
468
|
+
https://www.bitmex.com/api/explorer/#not /Instrument/Instrument_getActive
|
469
|
+
|
466
470
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
467
471
|
:returns dict[]: an array of objects representing market data
|
468
472
|
"""
|
@@ -760,7 +764,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
760
764
|
def fetch_balance(self, params={}) -> Balances:
|
761
765
|
"""
|
762
766
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
763
|
-
|
767
|
+
|
768
|
+
https://www.bitmex.com/api/explorer/#not /User/User_getMargin
|
769
|
+
|
764
770
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
765
771
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
766
772
|
"""
|
@@ -821,7 +827,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
821
827
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
822
828
|
"""
|
823
829
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
824
|
-
|
830
|
+
|
831
|
+
https://www.bitmex.com/api/explorer/#not /OrderBook/OrderBook_getL2
|
832
|
+
|
825
833
|
:param str symbol: unified symbol of the market to fetch the order book for
|
826
834
|
:param int [limit]: the maximum amount of order book entries to return
|
827
835
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -860,7 +868,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
860
868
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
861
869
|
"""
|
862
870
|
fetches information on an order made by the user
|
863
|
-
|
871
|
+
|
872
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders
|
873
|
+
|
864
874
|
:param str id: the order id
|
865
875
|
:param str symbol: unified symbol of the market the order was made in
|
866
876
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -879,7 +889,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
879
889
|
|
880
890
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
881
891
|
"""
|
882
|
-
|
892
|
+
|
893
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders
|
894
|
+
|
883
895
|
fetches information on multiple orders made by the user
|
884
896
|
:param str symbol: unified market symbol of the market orders were made in
|
885
897
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -919,7 +931,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
919
931
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
920
932
|
"""
|
921
933
|
fetch all unfilled currently open orders
|
922
|
-
|
934
|
+
|
935
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders
|
936
|
+
|
923
937
|
:param str symbol: unified market symbol
|
924
938
|
:param int [since]: the earliest time in ms to fetch open orders for
|
925
939
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -936,7 +950,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
936
950
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
937
951
|
"""
|
938
952
|
fetches information on multiple closed orders made by the user
|
939
|
-
|
953
|
+
|
954
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders
|
955
|
+
|
940
956
|
:param str symbol: unified market symbol of the market orders were made in
|
941
957
|
:param int [since]: the earliest time in ms to fetch orders for
|
942
958
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -950,7 +966,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
950
966
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
951
967
|
"""
|
952
968
|
fetch all trades made by the user
|
953
|
-
|
969
|
+
|
970
|
+
https://www.bitmex.com/api/explorer/#not /Execution/Execution_getTradeHistory
|
971
|
+
|
954
972
|
:param str symbol: unified market symbol
|
955
973
|
:param int [since]: the earliest time in ms to fetch trades for
|
956
974
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1148,7 +1166,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1148
1166
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
1149
1167
|
"""
|
1150
1168
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
1151
|
-
|
1169
|
+
|
1170
|
+
https://www.bitmex.com/api/explorer/#not /User/User_getWalletHistory
|
1171
|
+
|
1152
1172
|
:param str [code]: unified currency code, default is None
|
1153
1173
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
1154
1174
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -1196,7 +1216,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1196
1216
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1197
1217
|
"""
|
1198
1218
|
fetch history of deposits and withdrawals
|
1199
|
-
|
1219
|
+
|
1220
|
+
https://www.bitmex.com/api/explorer/#not /User/User_getWalletHistory
|
1221
|
+
|
1200
1222
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
1201
1223
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1202
1224
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1308,7 +1330,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1308
1330
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1309
1331
|
"""
|
1310
1332
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1311
|
-
|
1333
|
+
|
1334
|
+
https://www.bitmex.com/api/explorer/#not /Instrument/Instrument_get
|
1335
|
+
|
1312
1336
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1313
1337
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1314
1338
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1327,7 +1351,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1327
1351
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1328
1352
|
"""
|
1329
1353
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1330
|
-
|
1354
|
+
|
1355
|
+
https://www.bitmex.com/api/explorer/#not /Instrument/Instrument_getActiveAndIndices
|
1356
|
+
|
1331
1357
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1332
1358
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1333
1359
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1408,7 +1434,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1408
1434
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1409
1435
|
"""
|
1410
1436
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1411
|
-
|
1437
|
+
|
1438
|
+
https://www.bitmex.com/api/explorer/#not /Trade/Trade_getBucketed
|
1439
|
+
|
1412
1440
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1413
1441
|
:param str timeframe: the length of time each candle represents
|
1414
1442
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1705,7 +1733,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1705
1733
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1706
1734
|
"""
|
1707
1735
|
get the list of most recent trades for a particular symbol
|
1708
|
-
|
1736
|
+
|
1737
|
+
https://www.bitmex.com/api/explorer/#not /Trade/Trade_get
|
1738
|
+
|
1709
1739
|
:param str symbol: unified symbol of the market to fetch trades for
|
1710
1740
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1711
1741
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1767,7 +1797,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1767
1797
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1768
1798
|
"""
|
1769
1799
|
create a trade order
|
1770
|
-
|
1800
|
+
|
1801
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_new
|
1802
|
+
|
1771
1803
|
:param str symbol: unified symbol of the market to create an order in
|
1772
1804
|
:param str type: 'market' or 'limit'
|
1773
1805
|
:param str side: 'buy' or 'sell'
|
@@ -1887,7 +1919,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1887
1919
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1888
1920
|
"""
|
1889
1921
|
cancels an open order
|
1890
|
-
|
1922
|
+
|
1923
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_cancel
|
1924
|
+
|
1891
1925
|
:param str id: order id
|
1892
1926
|
:param str symbol: not used by bitmex cancelOrder()
|
1893
1927
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1913,7 +1947,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1913
1947
|
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1914
1948
|
"""
|
1915
1949
|
cancel multiple orders
|
1916
|
-
|
1950
|
+
|
1951
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_cancel
|
1952
|
+
|
1917
1953
|
:param str[] ids: order ids
|
1918
1954
|
:param str symbol: not used by bitmex cancelOrders()
|
1919
1955
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1935,7 +1971,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1935
1971
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1936
1972
|
"""
|
1937
1973
|
cancel all open orders
|
1938
|
-
|
1974
|
+
|
1975
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_cancelAll
|
1976
|
+
|
1939
1977
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1940
1978
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1941
1979
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1991,7 +2029,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1991
2029
|
def cancel_all_orders_after(self, timeout: Int, params={}):
|
1992
2030
|
"""
|
1993
2031
|
dead man's switch, cancel all orders after the given timeout
|
1994
|
-
|
2032
|
+
|
2033
|
+
https://www.bitmex.com/api/explorer/#not /Order/Order_cancelAllAfter
|
2034
|
+
|
1995
2035
|
:param number timeout: time in milliseconds, 0 represents cancel the timer
|
1996
2036
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1997
2037
|
:returns dict: the api result
|
@@ -2012,7 +2052,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2012
2052
|
def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages:
|
2013
2053
|
"""
|
2014
2054
|
fetch the set leverage for all contract markets
|
2015
|
-
|
2055
|
+
|
2056
|
+
https://www.bitmex.com/api/explorer/#not /Position/Position_get
|
2057
|
+
|
2016
2058
|
:param str[] [symbols]: a list of unified market symbols
|
2017
2059
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2018
2060
|
:returns dict: a list of `leverage structures <https://docs.ccxt.com/#/?id=leverage-structure>`
|
@@ -2034,7 +2076,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2034
2076
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
2035
2077
|
"""
|
2036
2078
|
fetch all open positions
|
2037
|
-
|
2079
|
+
|
2080
|
+
https://www.bitmex.com/api/explorer/#not /Position/Position_get
|
2081
|
+
|
2038
2082
|
:param str[]|None symbols: list of unified market symbols
|
2039
2083
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2040
2084
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -2288,7 +2332,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2288
2332
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2289
2333
|
"""
|
2290
2334
|
make a withdrawal
|
2291
|
-
|
2335
|
+
|
2336
|
+
https://www.bitmex.com/api/explorer/#not /User/User_requestWithdrawal
|
2337
|
+
|
2292
2338
|
:param str code: unified currency code
|
2293
2339
|
:param float amount: the amount to withdraw
|
2294
2340
|
:param str address: the address to withdraw to
|
@@ -2336,7 +2382,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2336
2382
|
def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
2337
2383
|
"""
|
2338
2384
|
fetch the funding rate for multiple markets
|
2339
|
-
|
2385
|
+
|
2386
|
+
https://www.bitmex.com/api/explorer/#not /Instrument/Instrument_getActiveAndIndices
|
2387
|
+
|
2340
2388
|
:param str[]|None symbols: list of unified market symbols
|
2341
2389
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2342
2390
|
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexed by market symbols
|
@@ -2385,7 +2433,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2385
2433
|
def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2386
2434
|
"""
|
2387
2435
|
Fetches the history of funding rates
|
2388
|
-
|
2436
|
+
|
2437
|
+
https://www.bitmex.com/api/explorer/#not /Funding/Funding_get
|
2438
|
+
|
2389
2439
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2390
2440
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2391
2441
|
:param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
|
@@ -2461,7 +2511,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2461
2511
|
def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
2462
2512
|
"""
|
2463
2513
|
set the level of leverage for a market
|
2464
|
-
|
2514
|
+
|
2515
|
+
https://www.bitmex.com/api/explorer/#not /Position/Position_updateLeverage
|
2516
|
+
|
2465
2517
|
:param float leverage: the rate of leverage
|
2466
2518
|
:param str symbol: unified market symbol
|
2467
2519
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2484,7 +2536,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2484
2536
|
def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
|
2485
2537
|
"""
|
2486
2538
|
set margin mode to 'cross' or 'isolated'
|
2487
|
-
|
2539
|
+
|
2540
|
+
https://www.bitmex.com/api/explorer/#not /Position/Position_isolateMargin
|
2541
|
+
|
2488
2542
|
:param str marginMode: 'cross' or 'isolated'
|
2489
2543
|
:param str symbol: unified market symbol
|
2490
2544
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2509,7 +2563,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2509
2563
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
2510
2564
|
"""
|
2511
2565
|
fetch the deposit address for a currency associated with self account
|
2512
|
-
|
2566
|
+
|
2567
|
+
https://www.bitmex.com/api/explorer/#not /User/User_getDepositAddress
|
2568
|
+
|
2513
2569
|
:param str code: unified currency code
|
2514
2570
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2515
2571
|
:param str [params.network]: deposit chain, can view all chains via self.publicGetWalletAssets, default is eth, unless the currency has a default chain within self.options['networks']
|
@@ -2601,7 +2657,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2601
2657
|
def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
2602
2658
|
"""
|
2603
2659
|
fetch deposit and withdraw fees
|
2604
|
-
|
2660
|
+
|
2661
|
+
https://www.bitmex.com/api/explorer/#not /Wallet/Wallet_getAssetsConfig
|
2662
|
+
|
2605
2663
|
:param str[]|None codes: list of unified currency codes
|
2606
2664
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2607
2665
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -2652,7 +2710,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2652
2710
|
def fetch_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}):
|
2653
2711
|
"""
|
2654
2712
|
retrieves the public liquidations of a trading pair
|
2655
|
-
|
2713
|
+
|
2714
|
+
https://www.bitmex.com/api/explorer/#not /Liquidation/Liquidation_get
|
2715
|
+
|
2656
2716
|
:param str symbol: unified CCXT market symbol
|
2657
2717
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
2658
2718
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
ccxt/bitopro.py
CHANGED
@@ -228,7 +228,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
228
228
|
def fetch_currencies(self, params={}) -> Currencies:
|
229
229
|
"""
|
230
230
|
fetches all available currencies on an exchange
|
231
|
-
|
231
|
+
|
232
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_currency_info.md
|
233
|
+
|
232
234
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
233
235
|
:returns dict: an associative dictionary of currencies
|
234
236
|
"""
|
@@ -288,7 +290,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
288
290
|
def fetch_markets(self, params={}) -> List[Market]:
|
289
291
|
"""
|
290
292
|
retrieves data on all markets for bitopro
|
291
|
-
|
293
|
+
|
294
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_trading_pair_info.md
|
295
|
+
|
292
296
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
293
297
|
:returns dict[]: an array of objects representing market data
|
294
298
|
"""
|
@@ -418,7 +422,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
418
422
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
419
423
|
"""
|
420
424
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
421
|
-
|
425
|
+
|
426
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
427
|
+
|
422
428
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
423
429
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
424
430
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -448,7 +454,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
448
454
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
449
455
|
"""
|
450
456
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
451
|
-
|
457
|
+
|
458
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
459
|
+
|
452
460
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
453
461
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
454
462
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -476,7 +484,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
476
484
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
477
485
|
"""
|
478
486
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
479
|
-
|
487
|
+
|
488
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_orderbook_data.md
|
489
|
+
|
480
490
|
:param str symbol: unified symbol of the market to fetch the order book for
|
481
491
|
:param int [limit]: the maximum amount of order book entries to return
|
482
492
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -594,7 +604,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
594
604
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
595
605
|
"""
|
596
606
|
get the list of most recent trades for a particular symbol
|
597
|
-
|
607
|
+
|
608
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_trades_data.md
|
609
|
+
|
598
610
|
:param str symbol: unified symbol of the market to fetch trades for
|
599
611
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
600
612
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -625,7 +637,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
625
637
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
626
638
|
"""
|
627
639
|
fetch the trading fees for multiple markets
|
628
|
-
|
640
|
+
|
641
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_limitations_and_fees.md
|
642
|
+
|
629
643
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
630
644
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
631
645
|
"""
|
@@ -722,7 +736,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
722
736
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
723
737
|
"""
|
724
738
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
725
|
-
|
739
|
+
|
740
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ohlc_data.md
|
741
|
+
|
726
742
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
727
743
|
:param str timeframe: the length of time each candle represents
|
728
744
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -835,7 +851,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
835
851
|
def fetch_balance(self, params={}) -> Balances:
|
836
852
|
"""
|
837
853
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
838
|
-
|
854
|
+
|
855
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_account_balance.md
|
856
|
+
|
839
857
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
840
858
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
841
859
|
"""
|
@@ -959,7 +977,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
959
977
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
960
978
|
"""
|
961
979
|
create a trade order
|
962
|
-
|
980
|
+
|
981
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/create_an_order.md
|
982
|
+
|
963
983
|
:param str symbol: unified symbol of the market to create an order in
|
964
984
|
:param str type: 'market' or 'limit'
|
965
985
|
:param str side: 'buy' or 'sell'
|
@@ -1012,7 +1032,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1012
1032
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1013
1033
|
"""
|
1014
1034
|
cancels an open order
|
1015
|
-
|
1035
|
+
|
1036
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_an_order.md
|
1037
|
+
|
1016
1038
|
:param str id: order id
|
1017
1039
|
:param str symbol: unified symbol of the market the order was made in
|
1018
1040
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1055,7 +1077,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1055
1077
|
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1056
1078
|
"""
|
1057
1079
|
cancel multiple orders
|
1058
|
-
|
1080
|
+
|
1081
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_batch_orders.md
|
1082
|
+
|
1059
1083
|
:param str[] ids: order ids
|
1060
1084
|
:param str symbol: unified market symbol
|
1061
1085
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1085,7 +1109,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1085
1109
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1086
1110
|
"""
|
1087
1111
|
cancel all open orders
|
1088
|
-
|
1112
|
+
|
1113
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_all_orders.md
|
1114
|
+
|
1089
1115
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1090
1116
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1091
1117
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1117,7 +1143,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1117
1143
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1118
1144
|
"""
|
1119
1145
|
fetches information on an order made by the user
|
1120
|
-
|
1146
|
+
|
1147
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
|
1148
|
+
|
1121
1149
|
:param str id: the order id
|
1122
1150
|
:param str symbol: unified symbol of the market the order was made in
|
1123
1151
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1160,7 +1188,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1160
1188
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1161
1189
|
"""
|
1162
1190
|
fetches information on multiple orders made by the user
|
1163
|
-
|
1191
|
+
|
1192
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_orders_data.md
|
1193
|
+
|
1164
1194
|
:param str symbol: unified market symbol of the market orders were made in
|
1165
1195
|
:param int [since]: the earliest time in ms to fetch orders for
|
1166
1196
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1223,7 +1253,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1223
1253
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1224
1254
|
"""
|
1225
1255
|
fetches information on multiple closed orders made by the user
|
1226
|
-
|
1256
|
+
|
1257
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_orders_data.md
|
1258
|
+
|
1227
1259
|
:param str symbol: unified market symbol of the market orders were made in
|
1228
1260
|
:param int [since]: the earliest time in ms to fetch orders for
|
1229
1261
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1238,7 +1270,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1238
1270
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1239
1271
|
"""
|
1240
1272
|
fetch all trades made by the user
|
1241
|
-
|
1273
|
+
|
1274
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_trades_data.md
|
1275
|
+
|
1242
1276
|
:param str symbol: unified market symbol
|
1243
1277
|
:param int [since]: the earliest time in ms to fetch trades for
|
1244
1278
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1373,7 +1407,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1373
1407
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1374
1408
|
"""
|
1375
1409
|
fetch all deposits made to an account
|
1376
|
-
|
1410
|
+
|
1411
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_deposit_invoices_data.md
|
1412
|
+
|
1377
1413
|
:param str code: unified currency code
|
1378
1414
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1379
1415
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1420,7 +1456,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1420
1456
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1421
1457
|
"""
|
1422
1458
|
fetch all withdrawals made from an account
|
1423
|
-
|
1459
|
+
|
1460
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_withdraw_invoices_data.md
|
1461
|
+
|
1424
1462
|
:param str code: unified currency code
|
1425
1463
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1426
1464
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1466,7 +1504,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1466
1504
|
def fetch_withdrawal(self, id: str, code: Str = None, params={}):
|
1467
1505
|
"""
|
1468
1506
|
fetch data on a currency withdrawal via the withdrawal id
|
1469
|
-
|
1507
|
+
|
1508
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_withdraw_invoice_data.md
|
1509
|
+
|
1470
1510
|
:param str id: withdrawal id
|
1471
1511
|
:param str code: unified currency code of the currency withdrawn, default is None
|
1472
1512
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1503,7 +1543,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1503
1543
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1504
1544
|
"""
|
1505
1545
|
make a withdrawal
|
1506
|
-
|
1546
|
+
|
1547
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/create_an_withdraw_invoice.md
|
1548
|
+
|
1507
1549
|
:param str code: unified currency code
|
1508
1550
|
:param float amount: the amount to withdraw
|
1509
1551
|
:param str address: the address to withdraw to
|
@@ -1574,7 +1616,9 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1574
1616
|
def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
1575
1617
|
"""
|
1576
1618
|
fetch deposit and withdraw fees
|
1577
|
-
|
1619
|
+
|
1620
|
+
https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_currency_info.md
|
1621
|
+
|
1578
1622
|
:param str[]|None codes: list of unified currency codes
|
1579
1623
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1580
1624
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|