ccxt 4.4.99__py2.py3-none-any.whl → 4.5.0__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/bingx.py +1 -0
- ccxt/alpaca.py +1 -1
- ccxt/apex.py +1 -1
- ccxt/ascendex.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/alpaca.py +1 -1
- ccxt/async_support/apex.py +1 -1
- ccxt/async_support/ascendex.py +1 -1
- ccxt/async_support/base/exchange.py +44 -9
- ccxt/async_support/base/ws/client.py +3 -1
- ccxt/async_support/bigone.py +1 -1
- ccxt/async_support/binance.py +3 -2
- ccxt/async_support/bingx.py +33 -4
- ccxt/async_support/bitbank.py +1 -1
- ccxt/async_support/bitfinex.py +4 -1
- ccxt/async_support/bitflyer.py +1 -1
- ccxt/async_support/bitget.py +32 -14
- ccxt/async_support/bithumb.py +1 -1
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitmex.py +3 -2
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +1 -1
- ccxt/async_support/bitstamp.py +1 -1
- ccxt/async_support/bittrade.py +1 -1
- ccxt/async_support/bitvavo.py +1 -1
- ccxt/async_support/blockchaincom.py +1 -1
- ccxt/async_support/blofin.py +1 -1
- ccxt/async_support/btcmarkets.py +1 -1
- ccxt/async_support/bybit.py +2 -2
- ccxt/async_support/coinbase.py +1 -1
- ccxt/async_support/coinbaseexchange.py +1 -1
- ccxt/async_support/coinbaseinternational.py +1 -1
- ccxt/async_support/coincatch.py +2 -2
- ccxt/async_support/coinex.py +3 -3
- ccxt/async_support/coinmate.py +1 -1
- ccxt/async_support/coinsph.py +1 -1
- ccxt/async_support/cryptocom.py +1 -1
- ccxt/async_support/defx.py +2 -2
- ccxt/async_support/delta.py +1 -1
- ccxt/async_support/deribit.py +1 -1
- ccxt/async_support/digifinex.py +2 -2
- ccxt/async_support/ellipx.py +1 -1
- ccxt/async_support/exmo.py +1 -1
- ccxt/async_support/foxbit.py +3 -3
- ccxt/async_support/gate.py +17 -2
- ccxt/async_support/gemini.py +1 -1
- ccxt/async_support/hashkey.py +2 -2
- ccxt/async_support/hibachi.py +1 -1
- ccxt/async_support/hitbtc.py +2 -2
- ccxt/async_support/hollaex.py +1 -1
- ccxt/async_support/htx.py +4 -3
- ccxt/async_support/hyperliquid.py +71 -29
- ccxt/async_support/independentreserve.py +1 -1
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +1 -1
- ccxt/async_support/krakenfutures.py +2 -1
- ccxt/async_support/kucoin.py +2 -2
- ccxt/async_support/kucoinfutures.py +2 -1
- ccxt/async_support/lbank.py +2 -2
- ccxt/async_support/mercado.py +1 -1
- ccxt/async_support/mexc.py +9 -2
- ccxt/async_support/modetrade.py +93 -2
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +1 -1
- ccxt/async_support/okcoin.py +1 -1
- ccxt/async_support/okx.py +2 -2
- ccxt/async_support/onetrading.py +33 -0
- ccxt/async_support/oxfun.py +1 -1
- ccxt/async_support/p2b.py +32 -0
- ccxt/async_support/paradex.py +2 -1
- ccxt/async_support/phemex.py +2 -2
- ccxt/async_support/poloniex.py +2 -2
- ccxt/async_support/probit.py +36 -1
- ccxt/async_support/tokocrypto.py +1 -1
- ccxt/async_support/upbit.py +1 -1
- ccxt/async_support/vertex.py +1 -1
- ccxt/async_support/wavesexchange.py +1 -1
- ccxt/async_support/whitebit.py +2 -2
- ccxt/async_support/woo.py +4 -4
- ccxt/async_support/woofipro.py +93 -2
- ccxt/async_support/xt.py +2 -2
- ccxt/async_support/yobit.py +1 -1
- ccxt/async_support/zaif.py +1 -1
- ccxt/async_support/zonda.py +1 -1
- ccxt/base/errors.py +6 -0
- ccxt/base/exchange.py +11 -9
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +1 -1
- ccxt/binance.py +3 -2
- ccxt/bingx.py +33 -4
- ccxt/bitbank.py +1 -1
- ccxt/bitfinex.py +4 -1
- ccxt/bitflyer.py +1 -1
- ccxt/bitget.py +32 -14
- ccxt/bithumb.py +1 -1
- ccxt/bitmart.py +2 -2
- ccxt/bitmex.py +3 -2
- ccxt/bitopro.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +1 -1
- ccxt/bitstamp.py +1 -1
- ccxt/bittrade.py +1 -1
- ccxt/bitvavo.py +1 -1
- ccxt/blockchaincom.py +1 -1
- ccxt/blofin.py +1 -1
- ccxt/btcmarkets.py +1 -1
- ccxt/bybit.py +2 -2
- ccxt/coinbase.py +1 -1
- ccxt/coinbaseexchange.py +1 -1
- ccxt/coinbaseinternational.py +1 -1
- ccxt/coincatch.py +2 -2
- ccxt/coinex.py +3 -3
- ccxt/coinmate.py +1 -1
- ccxt/coinsph.py +1 -1
- ccxt/cryptocom.py +1 -1
- ccxt/defx.py +2 -2
- ccxt/delta.py +1 -1
- ccxt/deribit.py +1 -1
- ccxt/digifinex.py +2 -2
- ccxt/ellipx.py +1 -1
- ccxt/exmo.py +1 -1
- ccxt/foxbit.py +3 -3
- ccxt/gate.py +17 -2
- ccxt/gemini.py +1 -1
- ccxt/hashkey.py +2 -2
- ccxt/hibachi.py +1 -1
- ccxt/hitbtc.py +2 -2
- ccxt/hollaex.py +1 -1
- ccxt/htx.py +4 -3
- ccxt/hyperliquid.py +71 -29
- ccxt/independentreserve.py +1 -1
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +1 -1
- ccxt/krakenfutures.py +2 -1
- ccxt/kucoin.py +2 -2
- ccxt/kucoinfutures.py +2 -1
- ccxt/lbank.py +2 -2
- ccxt/mercado.py +1 -1
- ccxt/mexc.py +9 -2
- ccxt/modetrade.py +93 -2
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +1 -1
- ccxt/okcoin.py +1 -1
- ccxt/okx.py +2 -2
- ccxt/onetrading.py +33 -0
- ccxt/oxfun.py +1 -1
- ccxt/p2b.py +32 -0
- ccxt/paradex.py +2 -1
- ccxt/phemex.py +2 -2
- ccxt/poloniex.py +2 -2
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/binance.py +2 -1
- ccxt/pro/bitvavo.py +1 -1
- ccxt/pro/bybit.py +1 -0
- ccxt/pro/coinex.py +1 -1
- ccxt/pro/hyperliquid.py +99 -12
- ccxt/pro/kucoin.py +1 -1
- ccxt/pro/kucoinfutures.py +1 -1
- ccxt/pro/mexc.py +337 -149
- ccxt/pro/okx.py +2 -1
- ccxt/pro/oxfun.py +1 -1
- ccxt/probit.py +36 -1
- ccxt/protobuf/__init__.py +0 -0
- ccxt/protobuf/mexc/PrivateAccountV3Api_pb2.py +37 -0
- ccxt/protobuf/mexc/PrivateDealsV3Api_pb2.py +37 -0
- ccxt/protobuf/mexc/PrivateOrdersV3Api_pb2.py +37 -0
- ccxt/protobuf/mexc/PublicAggreBookTickerV3Api_pb2.py +37 -0
- ccxt/protobuf/mexc/PublicAggreDealsV3Api_pb2.py +39 -0
- ccxt/protobuf/mexc/PublicAggreDepthsV3Api_pb2.py +39 -0
- ccxt/protobuf/mexc/PublicBookTickerBatchV3Api_pb2.py +38 -0
- ccxt/protobuf/mexc/PublicBookTickerV3Api_pb2.py +37 -0
- ccxt/protobuf/mexc/PublicDealsV3Api_pb2.py +39 -0
- ccxt/protobuf/mexc/PublicIncreaseDepthsBatchV3Api_pb2.py +38 -0
- ccxt/protobuf/mexc/PublicIncreaseDepthsV3Api_pb2.py +39 -0
- ccxt/protobuf/mexc/PublicLimitDepthsV3Api_pb2.py +39 -0
- ccxt/protobuf/mexc/PublicMiniTickerV3Api_pb2.py +37 -0
- ccxt/protobuf/mexc/PublicMiniTickersV3Api_pb2.py +38 -0
- ccxt/protobuf/mexc/PublicSpotKlineV3Api_pb2.py +37 -0
- ccxt/protobuf/mexc/PushDataV3ApiWrapper_pb2.py +52 -0
- ccxt/protobuf/mexc/__init__.py +0 -0
- ccxt/tokocrypto.py +1 -1
- ccxt/upbit.py +1 -1
- ccxt/vertex.py +1 -1
- ccxt/wavesexchange.py +1 -1
- ccxt/whitebit.py +2 -2
- ccxt/woo.py +4 -4
- ccxt/woofipro.py +93 -2
- ccxt/xt.py +2 -2
- ccxt/yobit.py +1 -1
- ccxt/zaif.py +1 -1
- ccxt/zonda.py +1 -1
- {ccxt-4.4.99.dist-info → ccxt-4.5.0.dist-info}/METADATA +5 -5
- {ccxt-4.4.99.dist-info → ccxt-4.5.0.dist-info}/RECORD +198 -180
- {ccxt-4.4.99.dist-info → ccxt-4.5.0.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.99.dist-info → ccxt-4.5.0.dist-info}/WHEEL +0 -0
- {ccxt-4.4.99.dist-info → ccxt-4.5.0.dist-info}/top_level.txt +0 -0
@@ -976,7 +976,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
976
976
|
'fee': fee,
|
977
977
|
}
|
978
978
|
|
979
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
979
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
980
980
|
"""
|
981
981
|
make a withdrawal
|
982
982
|
|
ccxt/async_support/blofin.py
CHANGED
@@ -2159,7 +2159,7 @@ class blofin(Exchange, ImplicitAPI):
|
|
2159
2159
|
'shortLeverage': leverageValue,
|
2160
2160
|
}
|
2161
2161
|
|
2162
|
-
async def set_leverage(self, leverage:
|
2162
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
2163
2163
|
"""
|
2164
2164
|
set the level of leverage for a market
|
2165
2165
|
|
ccxt/async_support/btcmarkets.py
CHANGED
@@ -1280,7 +1280,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1280
1280
|
#
|
1281
1281
|
return self.parse_trades(response, market, since, limit)
|
1282
1282
|
|
1283
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1283
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1284
1284
|
"""
|
1285
1285
|
make a withdrawal
|
1286
1286
|
|
ccxt/async_support/bybit.py
CHANGED
@@ -5842,7 +5842,7 @@ classic accounts only/ spot not supported* fetches information on an order made
|
|
5842
5842
|
}
|
5843
5843
|
return self.safe_string(types, type, type)
|
5844
5844
|
|
5845
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
5845
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
5846
5846
|
"""
|
5847
5847
|
make a withdrawal
|
5848
5848
|
|
@@ -6406,7 +6406,7 @@ classic accounts only/ spot not supported* fetches information on an order made
|
|
6406
6406
|
response = await self.privatePostV5PositionSwitchIsolated(self.extend(request, params))
|
6407
6407
|
return response
|
6408
6408
|
|
6409
|
-
async def set_leverage(self, leverage:
|
6409
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
6410
6410
|
"""
|
6411
6411
|
set the level of leverage for a market
|
6412
6412
|
|
ccxt/async_support/coinbase.py
CHANGED
@@ -3901,7 +3901,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3901
3901
|
tickers = self.safe_list(response, 'pricebooks', [])
|
3902
3902
|
return self.parse_tickers(tickers, symbols)
|
3903
3903
|
|
3904
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
3904
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
3905
3905
|
"""
|
3906
3906
|
make a withdrawal
|
3907
3907
|
|
@@ -1566,7 +1566,7 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1566
1566
|
async def fetch_payment_methods(self, params={}):
|
1567
1567
|
return await self.privateGetPaymentMethods(params)
|
1568
1568
|
|
1569
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1569
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1570
1570
|
"""
|
1571
1571
|
make a withdrawal
|
1572
1572
|
|
@@ -2127,7 +2127,7 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
2127
2127
|
trades = self.safe_list(response, 'results', [])
|
2128
2128
|
return self.parse_trades(trades, market, since, limit)
|
2129
2129
|
|
2130
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2130
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
2131
2131
|
"""
|
2132
2132
|
make a withdrawal
|
2133
2133
|
|
ccxt/async_support/coincatch.py
CHANGED
@@ -2085,7 +2085,7 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2085
2085
|
data = self.safe_list(response, 'data', [])
|
2086
2086
|
return self.parse_transactions(data, currency, since, limit)
|
2087
2087
|
|
2088
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2088
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
2089
2089
|
"""
|
2090
2090
|
make a withdrawal
|
2091
2091
|
|
@@ -4447,7 +4447,7 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4447
4447
|
data = self.safe_dict(response, 'data', {})
|
4448
4448
|
return self.parse_leverage(data, market)
|
4449
4449
|
|
4450
|
-
async def set_leverage(self, leverage:
|
4450
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
4451
4451
|
"""
|
4452
4452
|
set the level of leverage for a market
|
4453
4453
|
|
ccxt/async_support/coinex.py
CHANGED
@@ -4126,7 +4126,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
4126
4126
|
# }
|
4127
4127
|
#
|
4128
4128
|
|
4129
|
-
async def set_leverage(self, leverage:
|
4129
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
4130
4130
|
"""
|
4131
4131
|
|
4132
4132
|
https://docs.coinex.com/api/v2/futures/position/http/adjust-position-leverage
|
@@ -4602,7 +4602,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
4602
4602
|
data = self.safe_list(response, 'data', [])
|
4603
4603
|
return self.parse_funding_rates(data, symbols)
|
4604
4604
|
|
4605
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
4605
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
4606
4606
|
"""
|
4607
4607
|
make a withdrawal
|
4608
4608
|
|
@@ -4611,7 +4611,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
4611
4611
|
:param str code: unified currency code
|
4612
4612
|
:param float amount: the amount to withdraw
|
4613
4613
|
:param str address: the address to withdraw to
|
4614
|
-
:param str tag:
|
4614
|
+
:param str [tag]: memo
|
4615
4615
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4616
4616
|
:param str [params.network]: unified network code
|
4617
4617
|
:returns dict: a `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
|
ccxt/async_support/coinmate.py
CHANGED
@@ -700,7 +700,7 @@ class coinmate(Exchange, ImplicitAPI):
|
|
700
700
|
},
|
701
701
|
}
|
702
702
|
|
703
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
703
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
704
704
|
"""
|
705
705
|
make a withdrawal
|
706
706
|
|
ccxt/async_support/coinsph.py
CHANGED
@@ -1768,7 +1768,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1768
1768
|
'tierBased': None,
|
1769
1769
|
}
|
1770
1770
|
|
1771
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1771
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1772
1772
|
"""
|
1773
1773
|
make a withdrawal to coins_ph account
|
1774
1774
|
|
ccxt/async_support/cryptocom.py
CHANGED
@@ -1869,7 +1869,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1869
1869
|
address = addressString
|
1870
1870
|
return [address, tag]
|
1871
1871
|
|
1872
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1872
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1873
1873
|
"""
|
1874
1874
|
make a withdrawal
|
1875
1875
|
|
ccxt/async_support/defx.py
CHANGED
@@ -1894,7 +1894,7 @@ class defx(Exchange, ImplicitAPI):
|
|
1894
1894
|
}
|
1895
1895
|
return self.safe_string(ledgerType, type, type)
|
1896
1896
|
|
1897
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
|
1897
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1898
1898
|
"""
|
1899
1899
|
make a withdrawal
|
1900
1900
|
|
@@ -1955,7 +1955,7 @@ class defx(Exchange, ImplicitAPI):
|
|
1955
1955
|
'fee': None,
|
1956
1956
|
}
|
1957
1957
|
|
1958
|
-
async def set_leverage(self, leverage:
|
1958
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
1959
1959
|
"""
|
1960
1960
|
set the level of leverage for a market
|
1961
1961
|
|
ccxt/async_support/delta.py
CHANGED
@@ -2938,7 +2938,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2938
2938
|
'shortLeverage': leverageValue,
|
2939
2939
|
}
|
2940
2940
|
|
2941
|
-
async def set_leverage(self, leverage:
|
2941
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
2942
2942
|
"""
|
2943
2943
|
set the level of leverage for a market
|
2944
2944
|
|
ccxt/async_support/deribit.py
CHANGED
@@ -2936,7 +2936,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
2936
2936
|
}
|
2937
2937
|
return self.safe_string(statuses, status, status)
|
2938
2938
|
|
2939
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2939
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
2940
2940
|
"""
|
2941
2941
|
make a withdrawal
|
2942
2942
|
|
ccxt/async_support/digifinex.py
CHANGED
@@ -2913,7 +2913,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2913
2913
|
response = await self.privateSpotPostTransfer(self.extend(request, params))
|
2914
2914
|
return self.parse_transfer(response, currency)
|
2915
2915
|
|
2916
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2916
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
2917
2917
|
"""
|
2918
2918
|
make a withdrawal
|
2919
2919
|
:param str code: unified currency code
|
@@ -3586,7 +3586,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3586
3586
|
'takeProfitPrice': None,
|
3587
3587
|
})
|
3588
3588
|
|
3589
|
-
async def set_leverage(self, leverage:
|
3589
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
3590
3590
|
"""
|
3591
3591
|
set the level of leverage for a market
|
3592
3592
|
|
ccxt/async_support/ellipx.py
CHANGED
@@ -1810,7 +1810,7 @@ class ellipx(Exchange, ImplicitAPI):
|
|
1810
1810
|
'tierBased': True, # fees can vary based on volume tiers
|
1811
1811
|
}
|
1812
1812
|
|
1813
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1813
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1814
1814
|
"""
|
1815
1815
|
Make a withdrawal request
|
1816
1816
|
|
ccxt/async_support/exmo.py
CHANGED
@@ -2186,7 +2186,7 @@ class exmo(Exchange, ImplicitAPI):
|
|
2186
2186
|
return self.markets[symbols[0]]
|
2187
2187
|
return None
|
2188
2188
|
|
2189
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2189
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
2190
2190
|
"""
|
2191
2191
|
make a withdrawal
|
2192
2192
|
|
ccxt/async_support/foxbit.py
CHANGED
@@ -95,7 +95,7 @@ class foxbit(Exchange, ImplicitAPI):
|
|
95
95
|
'1M': '1M',
|
96
96
|
},
|
97
97
|
'urls': {
|
98
|
-
'logo': 'https://github.com/user-attachments/assets/
|
98
|
+
'logo': 'https://github.com/user-attachments/assets/1f8faca2-ae2f-4222-b33e-5671e7d873dd',
|
99
99
|
'api': {
|
100
100
|
'public': 'https://api.foxbit.com.br',
|
101
101
|
'private': 'https://api.foxbit.com.br',
|
@@ -1460,7 +1460,7 @@ class foxbit(Exchange, ImplicitAPI):
|
|
1460
1460
|
# }
|
1461
1461
|
return self.parse_order(response['create'], market)
|
1462
1462
|
|
1463
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
|
1463
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1464
1464
|
"""
|
1465
1465
|
Make a withdrawal.
|
1466
1466
|
|
@@ -1628,7 +1628,7 @@ class foxbit(Exchange, ImplicitAPI):
|
|
1628
1628
|
'percentage': self.safe_string(rolling_24h, 'price_change_percent'),
|
1629
1629
|
'average': None,
|
1630
1630
|
'baseVolume': self.safe_string(rolling_24h, 'volume'),
|
1631
|
-
'quoteVolume':
|
1631
|
+
'quoteVolume': self.safe_string(rolling_24h, 'quote_volume'),
|
1632
1632
|
'info': ticker,
|
1633
1633
|
}, market)
|
1634
1634
|
|
ccxt/async_support/gate.py
CHANGED
@@ -3791,7 +3791,7 @@ class gate(Exchange, ImplicitAPI):
|
|
3791
3791
|
response = await self.privateWalletGetWithdrawals(self.extend(request, params))
|
3792
3792
|
return self.parse_transactions(response, currency)
|
3793
3793
|
|
3794
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
3794
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
3795
3795
|
"""
|
3796
3796
|
make a withdrawal
|
3797
3797
|
|
@@ -5459,7 +5459,7 @@ class gate(Exchange, ImplicitAPI):
|
|
5459
5459
|
'info': transfer,
|
5460
5460
|
}
|
5461
5461
|
|
5462
|
-
async def set_leverage(self, leverage:
|
5462
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
5463
5463
|
"""
|
5464
5464
|
set the level of leverage for a market
|
5465
5465
|
|
@@ -7212,12 +7212,27 @@ class gate(Exchange, ImplicitAPI):
|
|
7212
7212
|
quoteValueString = self.safe_string(liquidation, 'pnl')
|
7213
7213
|
if quoteValueString is None:
|
7214
7214
|
quoteValueString = Precise.string_mul(baseValueString, priceString)
|
7215
|
+
# --- derive side ---
|
7216
|
+
# 1) options payload has explicit 'side': 'long' | 'short'
|
7217
|
+
optPos = self.safe_string_lower(liquidation, 'side')
|
7218
|
+
side: Str = None
|
7219
|
+
if optPos == 'long':
|
7220
|
+
side = 'buy'
|
7221
|
+
elif optPos == 'short':
|
7222
|
+
side = 'sell'
|
7223
|
+
else:
|
7224
|
+
if size is not None: # 2) futures/perpetual(and fallback for options): infer from size
|
7225
|
+
if Precise.string_gt(size, '0'):
|
7226
|
+
side = 'buy'
|
7227
|
+
elif Precise.string_lt(size, '0'):
|
7228
|
+
side = 'sell'
|
7215
7229
|
return self.safe_liquidation({
|
7216
7230
|
'info': liquidation,
|
7217
7231
|
'symbol': self.safe_symbol(marketId, market),
|
7218
7232
|
'contracts': self.parse_number(contractsString),
|
7219
7233
|
'contractSize': self.parse_number(contractSizeString),
|
7220
7234
|
'price': self.parse_number(priceString),
|
7235
|
+
'side': side,
|
7221
7236
|
'baseValue': self.parse_number(baseValueString),
|
7222
7237
|
'quoteValue': self.parse_number(Precise.string_abs(quoteValueString)),
|
7223
7238
|
'timestamp': timestamp,
|
ccxt/async_support/gemini.py
CHANGED
@@ -1616,7 +1616,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
1616
1616
|
response = await self.privatePostV1Mytrades(self.extend(request, params))
|
1617
1617
|
return self.parse_trades(response, market, since, limit)
|
1618
1618
|
|
1619
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1619
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1620
1620
|
"""
|
1621
1621
|
make a withdrawal
|
1622
1622
|
|
ccxt/async_support/hashkey.py
CHANGED
@@ -1999,7 +1999,7 @@ class hashkey(Exchange, ImplicitAPI):
|
|
1999
1999
|
#
|
2000
2000
|
return self.parse_transactions(response, currency, since, limit, {'type': 'withdrawal'})
|
2001
2001
|
|
2002
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2002
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
2003
2003
|
"""
|
2004
2004
|
make a withdrawal
|
2005
2005
|
|
@@ -3877,7 +3877,7 @@ class hashkey(Exchange, ImplicitAPI):
|
|
3877
3877
|
'shortLeverage': leverageValue,
|
3878
3878
|
}
|
3879
3879
|
|
3880
|
-
async def set_leverage(self, leverage:
|
3880
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
3881
3881
|
"""
|
3882
3882
|
set the level of leverage for a market
|
3883
3883
|
|
ccxt/async_support/hibachi.py
CHANGED
@@ -1149,7 +1149,7 @@ class hibachi(Exchange, ImplicitAPI):
|
|
1149
1149
|
message = self.binary_concat(encodedAssetId, encodedQuantity, encodedMaxFees, encodedAddress)
|
1150
1150
|
return message
|
1151
1151
|
|
1152
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1152
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1153
1153
|
"""
|
1154
1154
|
make a withdrawal
|
1155
1155
|
|
ccxt/async_support/hitbtc.py
CHANGED
@@ -2648,7 +2648,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2648
2648
|
'info': response,
|
2649
2649
|
}
|
2650
2650
|
|
2651
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2651
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
2652
2652
|
"""
|
2653
2653
|
make a withdrawal
|
2654
2654
|
|
@@ -3417,7 +3417,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3417
3417
|
'shortLeverage': leverageValue,
|
3418
3418
|
}
|
3419
3419
|
|
3420
|
-
async def set_leverage(self, leverage:
|
3420
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
3421
3421
|
"""
|
3422
3422
|
set the level of leverage for a market
|
3423
3423
|
|
ccxt/async_support/hollaex.py
CHANGED
@@ -1798,7 +1798,7 @@ class hollaex(Exchange, ImplicitAPI):
|
|
1798
1798
|
'fee': fee,
|
1799
1799
|
}
|
1800
1800
|
|
1801
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1801
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1802
1802
|
"""
|
1803
1803
|
make a withdrawal
|
1804
1804
|
|
ccxt/async_support/htx.py
CHANGED
@@ -5017,7 +5017,7 @@ class htx(Exchange, ImplicitAPI):
|
|
5017
5017
|
params['createMarketBuyOrderRequiresPrice'] = False
|
5018
5018
|
return await self.create_order(symbol, 'market', 'buy', cost, None, params)
|
5019
5019
|
|
5020
|
-
async def create_trailing_percent_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, trailingPercent=None, trailingTriggerPrice=None, params={}) -> Order:
|
5020
|
+
async def create_trailing_percent_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, trailingPercent: Num = None, trailingTriggerPrice: Num = None, params={}) -> Order:
|
5021
5021
|
"""
|
5022
5022
|
create a trailing order by providing the symbol, type, side, amount, price and trailingPercent
|
5023
5023
|
:param str symbol: unified symbol of the market to create an order in
|
@@ -6309,7 +6309,7 @@ class htx(Exchange, ImplicitAPI):
|
|
6309
6309
|
}
|
6310
6310
|
return self.safe_string(statuses, status, status)
|
6311
6311
|
|
6312
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
6312
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
6313
6313
|
"""
|
6314
6314
|
|
6315
6315
|
https://www.htx.com/en-us/opend/newApiPages/?id=7ec4cc41-7773-11ed-9966-0242ac110003
|
@@ -7134,7 +7134,7 @@ class htx(Exchange, ImplicitAPI):
|
|
7134
7134
|
data = self.safe_list(response, 'data', [])
|
7135
7135
|
return self.parse_incomes(data, market, since, limit)
|
7136
7136
|
|
7137
|
-
async def set_leverage(self, leverage:
|
7137
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
7138
7138
|
"""
|
7139
7139
|
set the level of leverage for a market
|
7140
7140
|
|
@@ -8853,6 +8853,7 @@ class htx(Exchange, ImplicitAPI):
|
|
8853
8853
|
'contracts': self.safe_number(liquidation, 'volume'),
|
8854
8854
|
'contractSize': self.safe_number(market, 'contractSize'),
|
8855
8855
|
'price': self.safe_number(liquidation, 'price'),
|
8856
|
+
'side': self.safe_string_lower(liquidation, 'direction'),
|
8856
8857
|
'baseValue': self.safe_number(liquidation, 'amount'),
|
8857
8858
|
'quoteValue': self.safe_number(liquidation, 'trade_turnover'),
|
8858
8859
|
'timestamp': timestamp,
|
@@ -1676,6 +1676,43 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
1676
1676
|
if symbol is None:
|
1677
1677
|
raise ArgumentsRequired(self.id + ' cancelOrders() requires a symbol argument')
|
1678
1678
|
await self.load_markets()
|
1679
|
+
request = self.cancel_orders_request(ids, symbol, params)
|
1680
|
+
response = await self.privatePostExchange(request)
|
1681
|
+
#
|
1682
|
+
# {
|
1683
|
+
# "status":"ok",
|
1684
|
+
# "response":{
|
1685
|
+
# "type":"cancel",
|
1686
|
+
# "data":{
|
1687
|
+
# "statuses":[
|
1688
|
+
# "success"
|
1689
|
+
# ]
|
1690
|
+
# }
|
1691
|
+
# }
|
1692
|
+
# }
|
1693
|
+
#
|
1694
|
+
innerResponse = self.safe_dict(response, 'response')
|
1695
|
+
data = self.safe_dict(innerResponse, 'data')
|
1696
|
+
statuses = self.safe_list(data, 'statuses')
|
1697
|
+
orders = []
|
1698
|
+
for i in range(0, len(statuses)):
|
1699
|
+
status = statuses[i]
|
1700
|
+
orders.append(self.safe_order({
|
1701
|
+
'info': status,
|
1702
|
+
'status': status,
|
1703
|
+
}))
|
1704
|
+
return orders
|
1705
|
+
|
1706
|
+
def cancel_orders_request(self, ids: List[str], symbol: Str = None, params={}) -> dict:
|
1707
|
+
"""
|
1708
|
+
build the request payload for cancelling multiple orders
|
1709
|
+
https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s
|
1710
|
+
https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s-by-cloid
|
1711
|
+
:param str[] ids: order ids
|
1712
|
+
:param str symbol: unified market symbol
|
1713
|
+
:param dict [params]:
|
1714
|
+
:returns dict: the raw request object to be sent to the exchange
|
1715
|
+
"""
|
1679
1716
|
market = self.market(symbol)
|
1680
1717
|
clientOrderId = self.safe_value_2(params, 'clientOrderId', 'client_id')
|
1681
1718
|
params = self.omit(params, ['clientOrderId', 'client_id'])
|
@@ -1716,31 +1753,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
1716
1753
|
if vaultAddress is not None:
|
1717
1754
|
params = self.omit(params, 'vaultAddress')
|
1718
1755
|
request['vaultAddress'] = vaultAddress
|
1719
|
-
|
1720
|
-
#
|
1721
|
-
# {
|
1722
|
-
# "status":"ok",
|
1723
|
-
# "response":{
|
1724
|
-
# "type":"cancel",
|
1725
|
-
# "data":{
|
1726
|
-
# "statuses":[
|
1727
|
-
# "success"
|
1728
|
-
# ]
|
1729
|
-
# }
|
1730
|
-
# }
|
1731
|
-
# }
|
1732
|
-
#
|
1733
|
-
innerResponse = self.safe_dict(response, 'response')
|
1734
|
-
data = self.safe_dict(innerResponse, 'data')
|
1735
|
-
statuses = self.safe_list(data, 'statuses')
|
1736
|
-
orders = []
|
1737
|
-
for i in range(0, len(statuses)):
|
1738
|
-
status = statuses[i]
|
1739
|
-
orders.append(self.safe_order({
|
1740
|
-
'info': status,
|
1741
|
-
'status': status,
|
1742
|
-
}))
|
1743
|
-
return orders
|
1756
|
+
return request
|
1744
1757
|
|
1745
1758
|
async def cancel_orders_for_symbols(self, orders: List[CancellationRequest], params={}):
|
1746
1759
|
"""
|
@@ -2469,6 +2482,8 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
2469
2482
|
}, market)
|
2470
2483
|
|
2471
2484
|
def parse_order_status(self, status: Str):
|
2485
|
+
if status is None:
|
2486
|
+
return None
|
2472
2487
|
statuses: dict = {
|
2473
2488
|
'triggered': 'open',
|
2474
2489
|
'filled': 'closed',
|
@@ -2477,6 +2492,10 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
2477
2492
|
'rejected': 'rejected',
|
2478
2493
|
'marginCanceled': 'canceled',
|
2479
2494
|
}
|
2495
|
+
if status.endswith('Rejected'):
|
2496
|
+
return 'rejected'
|
2497
|
+
if status.endswith('Canceled'):
|
2498
|
+
return 'canceled'
|
2480
2499
|
return self.safe_string(statuses, status, status)
|
2481
2500
|
|
2482
2501
|
def parse_order_type(self, status):
|
@@ -2806,7 +2825,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
2806
2825
|
#
|
2807
2826
|
return response
|
2808
2827
|
|
2809
|
-
async def set_leverage(self, leverage:
|
2828
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
2810
2829
|
"""
|
2811
2830
|
set the level of leverage for a market
|
2812
2831
|
:param float leverage: the rate of leverage
|
@@ -3059,7 +3078,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
3059
3078
|
'status': 'ok',
|
3060
3079
|
}
|
3061
3080
|
|
3062
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
3081
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
3063
3082
|
"""
|
3064
3083
|
make a withdrawal(only support USDC)
|
3065
3084
|
|
@@ -3587,6 +3606,27 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
3587
3606
|
'rate': rate,
|
3588
3607
|
}
|
3589
3608
|
|
3609
|
+
async def reserve_request_weight(self, weight: Num, params={}) -> dict:
|
3610
|
+
"""
|
3611
|
+
Instead of trading to increase the address based rate limits, self action allows reserving additional actions for 0.0005 USDC per request. The cost is paid from the Perps balance.
|
3612
|
+
:param number weight: the weight to reserve, 1 weight = 1 action, 0.0005 USDC per action
|
3613
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3614
|
+
:returns dict: a response object
|
3615
|
+
"""
|
3616
|
+
nonce = self.milliseconds()
|
3617
|
+
request: dict = {
|
3618
|
+
'nonce': nonce,
|
3619
|
+
}
|
3620
|
+
action: dict = {
|
3621
|
+
'type': 'reserveRequestWeight',
|
3622
|
+
'weight': weight,
|
3623
|
+
}
|
3624
|
+
signature = self.sign_l1_action(action, nonce)
|
3625
|
+
request['action'] = action
|
3626
|
+
request['signature'] = signature
|
3627
|
+
response = await self.privatePostExchange(self.extend(request, params))
|
3628
|
+
return response
|
3629
|
+
|
3590
3630
|
def extract_type_from_delta(self, data=[]):
|
3591
3631
|
records = []
|
3592
3632
|
for i in range(0, len(data)):
|
@@ -3640,8 +3680,10 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
3640
3680
|
responsePayload = self.safe_dict(response, 'response', {})
|
3641
3681
|
data = self.safe_dict(responsePayload, 'data', {})
|
3642
3682
|
statuses = self.safe_list(data, 'statuses', [])
|
3643
|
-
|
3644
|
-
|
3683
|
+
for i in range(0, len(statuses)):
|
3684
|
+
message = self.safe_string(statuses[i], 'error')
|
3685
|
+
if message is not None:
|
3686
|
+
break
|
3645
3687
|
feedback = self.id + ' ' + body
|
3646
3688
|
nonEmptyMessage = ((message is not None) and (message != ''))
|
3647
3689
|
if nonEmptyMessage:
|
@@ -923,7 +923,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
923
923
|
'tag': self.safe_string(depositAddress, 'Tag'),
|
924
924
|
}
|
925
925
|
|
926
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
926
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
927
927
|
"""
|
928
928
|
make a withdrawal
|
929
929
|
|
ccxt/async_support/indodax.py
CHANGED
@@ -1144,7 +1144,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
1144
1144
|
transactions = self.array_concat(withdraws, deposits)
|
1145
1145
|
return self.parse_transactions(transactions, currency, since, limit)
|
1146
1146
|
|
1147
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1147
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
1148
1148
|
"""
|
1149
1149
|
make a withdrawal
|
1150
1150
|
|
ccxt/async_support/kraken.py
CHANGED
@@ -3038,7 +3038,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
3038
3038
|
'tag': tag,
|
3039
3039
|
}
|
3040
3040
|
|
3041
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
3041
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
3042
3042
|
"""
|
3043
3043
|
make a withdrawal
|
3044
3044
|
|
@@ -246,6 +246,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
246
246
|
'executions': 'private',
|
247
247
|
'triggers': 'private',
|
248
248
|
'accountlogcsv': 'private',
|
249
|
+
'account-log': 'private',
|
249
250
|
},
|
250
251
|
},
|
251
252
|
},
|
@@ -2606,7 +2607,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2606
2607
|
'toAccount': toAccount,
|
2607
2608
|
})
|
2608
2609
|
|
2609
|
-
async def set_leverage(self, leverage:
|
2610
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
2610
2611
|
"""
|
2611
2612
|
set the level of leverage for a market
|
2612
2613
|
|
ccxt/async_support/kucoin.py
CHANGED
@@ -3387,7 +3387,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3387
3387
|
'tierBased': True,
|
3388
3388
|
}
|
3389
3389
|
|
3390
|
-
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
3390
|
+
async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
|
3391
3391
|
"""
|
3392
3392
|
make a withdrawal
|
3393
3393
|
|
@@ -4802,7 +4802,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
4802
4802
|
data = self.safe_list(response, 'data', [])
|
4803
4803
|
return self.parse_deposit_withdraw_fees(data, codes, 'currency')
|
4804
4804
|
|
4805
|
-
async def set_leverage(self, leverage:
|
4805
|
+
async def set_leverage(self, leverage: int, symbol: Str = None, params={}):
|
4806
4806
|
"""
|
4807
4807
|
set the level of leverage for a market
|
4808
4808
|
|