ccxt 4.4.22__py2.py3-none-any.whl → 4.4.23__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 +3 -1
- ccxt/abstract/binance.py +64 -43
- ccxt/abstract/binancecoinm.py +64 -43
- ccxt/abstract/binanceus.py +64 -43
- ccxt/abstract/binanceusdm.py +64 -43
- ccxt/abstract/coincatch.py +94 -0
- ccxt/async_support/__init__.py +3 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/binance.py +87 -62
- ccxt/async_support/bitfinex.py +4 -0
- ccxt/async_support/bitflyer.py +1 -0
- ccxt/async_support/bitrue.py +3 -0
- ccxt/async_support/bybit.py +2 -2
- ccxt/async_support/cex.py +4 -0
- ccxt/async_support/coinbase.py +1 -1
- ccxt/async_support/coinbaseexchange.py +3 -0
- ccxt/async_support/coincatch.py +4955 -0
- ccxt/async_support/coinex.py +60 -1
- ccxt/async_support/latoken.py +6 -0
- ccxt/async_support/mexc.py +1 -1
- ccxt/async_support/oceanex.py +2 -0
- ccxt/async_support/okcoin.py +1 -0
- ccxt/async_support/poloniex.py +5 -0
- ccxt/base/exchange.py +1 -1
- ccxt/binance.py +87 -62
- ccxt/bitfinex.py +4 -0
- ccxt/bitflyer.py +1 -0
- ccxt/bitrue.py +3 -0
- ccxt/bybit.py +2 -2
- ccxt/cex.py +4 -0
- ccxt/coinbase.py +1 -1
- ccxt/coinbaseexchange.py +3 -0
- ccxt/coincatch.py +4955 -0
- ccxt/coinex.py +60 -1
- ccxt/latoken.py +6 -0
- ccxt/mexc.py +1 -1
- ccxt/oceanex.py +2 -0
- ccxt/okcoin.py +1 -0
- ccxt/poloniex.py +5 -0
- ccxt/pro/__init__.py +3 -1
- ccxt/pro/coincatch.py +1429 -0
- ccxt/test/tests_async.py +15 -1
- ccxt/test/tests_sync.py +15 -1
- ccxt-4.4.23.dist-info/METADATA +636 -0
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/RECORD +48 -44
- ccxt-4.4.22.dist-info/METADATA +0 -635
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/WHEEL +0 -0
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/top_level.txt +0 -0
ccxt/async_support/coinex.py
CHANGED
@@ -59,6 +59,8 @@ class coinex(Exchange, ImplicitAPI):
|
|
59
59
|
'cancelAllOrders': True,
|
60
60
|
'cancelOrder': True,
|
61
61
|
'cancelOrders': True,
|
62
|
+
'closeAllPositions': False,
|
63
|
+
'closePosition': True,
|
62
64
|
'createDepositAddress': True,
|
63
65
|
'createMarketBuyOrderWithCost': True,
|
64
66
|
'createMarketOrderWithCost': False,
|
@@ -1730,7 +1732,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
1730
1732
|
# "stop_id": 117180138153
|
1731
1733
|
# }
|
1732
1734
|
#
|
1733
|
-
# Swap createOrder, createOrders, editOrder, cancelOrders, cancelOrder, fetchOpenOrders, fetchClosedOrders
|
1735
|
+
# Swap createOrder, createOrders, editOrder, cancelOrders, cancelOrder, fetchOpenOrders, fetchClosedOrders, closePosition
|
1734
1736
|
#
|
1735
1737
|
# {
|
1736
1738
|
# "amount": "0.0001",
|
@@ -5364,6 +5366,63 @@ class coinex(Exchange, ImplicitAPI):
|
|
5364
5366
|
positions = self.parse_positions(records)
|
5365
5367
|
return self.filter_by_symbol_since_limit(positions, symbol, since, limit)
|
5366
5368
|
|
5369
|
+
async def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
|
5370
|
+
"""
|
5371
|
+
closes an open position for a market
|
5372
|
+
:see: https://docs.coinex.com/api/v2/futures/position/http/close-position
|
5373
|
+
:param str symbol: unified CCXT market symbol
|
5374
|
+
:param str [side]: buy or sell, not used by coinex
|
5375
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
5376
|
+
:param str params['type']: required by coinex, one of: limit, market, maker_only, ioc or fok, default is *market*
|
5377
|
+
:param str [params.price]: the price to fulfill the order, ignored in market orders
|
5378
|
+
:param str [params.amount]: the amount to trade in units of the base currency
|
5379
|
+
:param str [params.clientOrderId]: the client id of the order
|
5380
|
+
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
5381
|
+
"""
|
5382
|
+
await self.load_markets()
|
5383
|
+
market = self.market(symbol)
|
5384
|
+
type = self.safe_string(params, 'type', 'market')
|
5385
|
+
request: dict = {
|
5386
|
+
'market': market['id'],
|
5387
|
+
'market_type': 'FUTURES',
|
5388
|
+
'type': type,
|
5389
|
+
}
|
5390
|
+
clientOrderId = self.safe_string_2(params, 'client_id', 'clientOrderId')
|
5391
|
+
if clientOrderId is not None:
|
5392
|
+
request['client_id'] = clientOrderId
|
5393
|
+
params = self.omit(params, 'clientOrderId')
|
5394
|
+
response = await self.v2PrivatePostFuturesClosePosition(self.extend(request, params))
|
5395
|
+
#
|
5396
|
+
# {
|
5397
|
+
# "code": 0,
|
5398
|
+
# "data": {
|
5399
|
+
# "amount": "0.0001",
|
5400
|
+
# "client_id": "",
|
5401
|
+
# "created_at": 1729666043969,
|
5402
|
+
# "fee": "0.00335858",
|
5403
|
+
# "fee_ccy": "USDT",
|
5404
|
+
# "filled_amount": "0.0001",
|
5405
|
+
# "filled_value": "6.717179",
|
5406
|
+
# "last_filled_amount": "0.0001",
|
5407
|
+
# "last_filled_price": "67171.79",
|
5408
|
+
# "maker_fee_rate": "0",
|
5409
|
+
# "market": "BTCUSDT",
|
5410
|
+
# "market_type": "FUTURES",
|
5411
|
+
# "order_id": 155477479761,
|
5412
|
+
# "price": "0",
|
5413
|
+
# "realized_pnl": "-0.001823",
|
5414
|
+
# "side": "sell",
|
5415
|
+
# "taker_fee_rate": "0.0005",
|
5416
|
+
# "type": "market",
|
5417
|
+
# "unfilled_amount": "0",
|
5418
|
+
# "updated_at": 1729666043969
|
5419
|
+
# },
|
5420
|
+
# "message": "OK"
|
5421
|
+
# }
|
5422
|
+
#
|
5423
|
+
data = self.safe_dict(response, 'data', {})
|
5424
|
+
return self.parse_order(data, market)
|
5425
|
+
|
5367
5426
|
def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
|
5368
5427
|
"""
|
5369
5428
|
* @ignore
|
ccxt/async_support/latoken.py
CHANGED
@@ -60,6 +60,12 @@ class latoken(Exchange, ImplicitAPI):
|
|
60
60
|
'fetchDepositAddressesByNetwork': False,
|
61
61
|
'fetchDepositsWithdrawals': True,
|
62
62
|
'fetchDepositWithdrawFees': False,
|
63
|
+
'fetchFundingHistory': False,
|
64
|
+
'fetchFundingInterval': False,
|
65
|
+
'fetchFundingIntervals': False,
|
66
|
+
'fetchFundingRate': False,
|
67
|
+
'fetchFundingRateHistory': False,
|
68
|
+
'fetchFundingRates': False,
|
63
69
|
'fetchIsolatedBorrowRate': False,
|
64
70
|
'fetchIsolatedBorrowRates': False,
|
65
71
|
'fetchMarginMode': False,
|
ccxt/async_support/mexc.py
CHANGED
@@ -94,7 +94,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
94
94
|
'fetchFundingIntervals': False,
|
95
95
|
'fetchFundingRate': True,
|
96
96
|
'fetchFundingRateHistory': True,
|
97
|
-
'fetchFundingRates':
|
97
|
+
'fetchFundingRates': False,
|
98
98
|
'fetchIndexOHLCV': True,
|
99
99
|
'fetchIsolatedBorrowRate': False,
|
100
100
|
'fetchIsolatedBorrowRates': False,
|
ccxt/async_support/oceanex.py
CHANGED
@@ -57,6 +57,8 @@ class oceanex(Exchange, ImplicitAPI):
|
|
57
57
|
'fetchDepositAddress': 'emulated',
|
58
58
|
'fetchDepositAddresses': None,
|
59
59
|
'fetchDepositAddressesByNetwork': True,
|
60
|
+
'fetchFundingRateHistory': False,
|
61
|
+
'fetchFundingRates': False,
|
60
62
|
'fetchIsolatedBorrowRate': False,
|
61
63
|
'fetchIsolatedBorrowRates': False,
|
62
64
|
'fetchMarkets': True,
|
ccxt/async_support/okcoin.py
CHANGED
ccxt/async_support/poloniex.py
CHANGED
@@ -62,7 +62,12 @@ class poloniex(Exchange, ImplicitAPI):
|
|
62
62
|
'fetchDepositsWithdrawals': True,
|
63
63
|
'fetchDepositWithdrawFee': 'emulated',
|
64
64
|
'fetchDepositWithdrawFees': True,
|
65
|
+
'fetchFundingHistory': False,
|
66
|
+
'fetchFundingInterval': False,
|
67
|
+
'fetchFundingIntervals': False,
|
65
68
|
'fetchFundingRate': False,
|
69
|
+
'fetchFundingRateHistory': False,
|
70
|
+
'fetchFundingRates': False,
|
66
71
|
'fetchMarginMode': False,
|
67
72
|
'fetchMarkets': True,
|
68
73
|
'fetchMyTrades': True,
|
ccxt/base/exchange.py
CHANGED
ccxt/binance.py
CHANGED
@@ -494,6 +494,7 @@ class binance(Exchange, ImplicitAPI):
|
|
494
494
|
'portfolio/asset-index-price': 0.1,
|
495
495
|
'portfolio/repay-futures-switch': 3, # Weight(IP): 30 => cost = 0.1 * 30 = 3
|
496
496
|
'portfolio/margin-asset-leverage': 5, # Weight(IP): 50 => cost = 0.1 * 50 = 5
|
497
|
+
'portfolio/balance': 2,
|
497
498
|
# staking
|
498
499
|
'staking/productList': 0.1,
|
499
500
|
'staking/position': 0.1,
|
@@ -696,6 +697,7 @@ class binance(Exchange, ImplicitAPI):
|
|
696
697
|
'loan/flexible/ltv/adjustment/history': 40, # Weight(IP): 400 => cost = 0.1 * 400 = 40
|
697
698
|
'loan/flexible/loanable/data': 40, # Weight(IP): 400 => cost = 0.1 * 400 = 40
|
698
699
|
'loan/flexible/collateral/data': 40, # Weight(IP): 400 => cost = 0.1 * 400 = 40
|
700
|
+
'portfolio/account': 2,
|
699
701
|
},
|
700
702
|
'post': {
|
701
703
|
'eth-staking/eth/stake': 15, # Weight(IP): 150 => cost = 0.1 * 150 = 15
|
@@ -773,6 +775,10 @@ class binance(Exchange, ImplicitAPI):
|
|
773
775
|
'commissionRate': 20,
|
774
776
|
'income/asyn': 5,
|
775
777
|
'income/asyn/id': 5,
|
778
|
+
'trade/asyn': 0.5,
|
779
|
+
'trade/asyn/id': 0.5,
|
780
|
+
'order/asyn': 0.5,
|
781
|
+
'order/asyn/id': 0.5,
|
776
782
|
'pmExchangeInfo': 0.5, # Weight(IP): 5 => cost = 0.1 * 5 = 0.5
|
777
783
|
'pmAccountInfo': 0.5, # Weight(IP): 5 => cost = 0.1 * 5 = 0.5
|
778
784
|
},
|
@@ -1051,99 +1057,118 @@ class binance(Exchange, ImplicitAPI):
|
|
1051
1057
|
},
|
1052
1058
|
},
|
1053
1059
|
'papi': {
|
1060
|
+
# IP(papi) request rate limit of 6000 per minute
|
1061
|
+
# 1 IP(papi) => cost = 0.2 =>(1000 / (50 * 0.2)) * 60 = 6000
|
1062
|
+
# Order(papi) request rate limit of 1200 per minute
|
1063
|
+
# 1 Order(papi) => cost = 1 =>(1000 / (50 * 1)) * 60 = 1200
|
1054
1064
|
'get': {
|
1055
|
-
'ping':
|
1056
|
-
'um/order': 1,
|
1057
|
-
'um/openOrder': 1,
|
1065
|
+
'ping': 0.2,
|
1066
|
+
'um/order': 1,
|
1067
|
+
'um/openOrder': 1,
|
1058
1068
|
'um/openOrders': {'cost': 1, 'noSymbol': 40},
|
1059
|
-
'um/allOrders': 5,
|
1060
|
-
'cm/order': 1,
|
1061
|
-
'cm/openOrder': 1,
|
1069
|
+
'um/allOrders': 5,
|
1070
|
+
'cm/order': 1,
|
1071
|
+
'cm/openOrder': 1,
|
1062
1072
|
'cm/openOrders': {'cost': 1, 'noSymbol': 40},
|
1063
|
-
'cm/allOrders': 20,
|
1073
|
+
'cm/allOrders': 20,
|
1064
1074
|
'um/conditional/openOrder': 1,
|
1065
1075
|
'um/conditional/openOrders': {'cost': 1, 'noSymbol': 40},
|
1066
1076
|
'um/conditional/orderHistory': 1,
|
1067
|
-
'um/conditional/allOrders': 40,
|
1077
|
+
'um/conditional/allOrders': {'cost': 1, 'noSymbol': 40},
|
1068
1078
|
'cm/conditional/openOrder': 1,
|
1069
1079
|
'cm/conditional/openOrders': {'cost': 1, 'noSymbol': 40},
|
1070
1080
|
'cm/conditional/orderHistory': 1,
|
1071
1081
|
'cm/conditional/allOrders': 40,
|
1072
|
-
'margin/order':
|
1082
|
+
'margin/order': 10,
|
1073
1083
|
'margin/openOrders': 5,
|
1074
1084
|
'margin/allOrders': 100,
|
1075
1085
|
'margin/orderList': 5,
|
1076
1086
|
'margin/allOrderList': 100,
|
1077
1087
|
'margin/openOrderList': 5,
|
1078
1088
|
'margin/myTrades': 5,
|
1079
|
-
'balance':
|
1080
|
-
'account':
|
1081
|
-
'margin/maxBorrowable':
|
1082
|
-
'margin/maxWithdraw':
|
1083
|
-
'um/positionRisk':
|
1084
|
-
'cm/positionRisk':
|
1085
|
-
'um/positionSide/dual':
|
1086
|
-
'cm/positionSide/dual':
|
1087
|
-
'um/userTrades': 5,
|
1088
|
-
'cm/userTrades': 20,
|
1089
|
-
'um/leverageBracket':
|
1090
|
-
'cm/leverageBracket':
|
1091
|
-
'margin/forceOrders': 1,
|
1092
|
-
'um/forceOrders': 20,
|
1093
|
-
'cm/forceOrders': 20,
|
1094
|
-
'um/apiTradingStatus':
|
1095
|
-
'um/commissionRate':
|
1096
|
-
'cm/commissionRate':
|
1097
|
-
'margin/marginLoan':
|
1098
|
-
'margin/repayLoan':
|
1099
|
-
'margin/marginInterestHistory':
|
1100
|
-
'portfolio/interest-history':
|
1101
|
-
'um/income':
|
1102
|
-
'cm/income':
|
1103
|
-
'um/account':
|
1104
|
-
'cm/account':
|
1105
|
-
'repay-futures-switch':
|
1089
|
+
'balance': 4,
|
1090
|
+
'account': 4,
|
1091
|
+
'margin/maxBorrowable': 1,
|
1092
|
+
'margin/maxWithdraw': 1,
|
1093
|
+
'um/positionRisk': 1,
|
1094
|
+
'cm/positionRisk': 0.2,
|
1095
|
+
'um/positionSide/dual': 6,
|
1096
|
+
'cm/positionSide/dual': 6,
|
1097
|
+
'um/userTrades': 5,
|
1098
|
+
'cm/userTrades': 20,
|
1099
|
+
'um/leverageBracket': 0.2,
|
1100
|
+
'cm/leverageBracket': 0.2,
|
1101
|
+
'margin/forceOrders': 1,
|
1102
|
+
'um/forceOrders': {'cost': 20, 'noSymbol': 50},
|
1103
|
+
'cm/forceOrders': {'cost': 20, 'noSymbol': 50},
|
1104
|
+
'um/apiTradingStatus': {'cost': 0.2, 'noSymbol': 2},
|
1105
|
+
'um/commissionRate': 4,
|
1106
|
+
'cm/commissionRate': 4,
|
1107
|
+
'margin/marginLoan': 2,
|
1108
|
+
'margin/repayLoan': 2,
|
1109
|
+
'margin/marginInterestHistory': 0.2,
|
1110
|
+
'portfolio/interest-history': 10,
|
1111
|
+
'um/income': 6,
|
1112
|
+
'cm/income': 6,
|
1113
|
+
'um/account': 1,
|
1114
|
+
'cm/account': 1,
|
1115
|
+
'repay-futures-switch': 6,
|
1106
1116
|
'um/adlQuantile': 5,
|
1107
1117
|
'cm/adlQuantile': 5,
|
1118
|
+
'um/trade/asyn': 300,
|
1119
|
+
'um/trade/asyn/id': 2,
|
1120
|
+
'um/order/asyn/': 300,
|
1121
|
+
'um/order/asyn/id': 2,
|
1122
|
+
'um/income/asyn': 300,
|
1123
|
+
'um/income/asyn/id': 2,
|
1124
|
+
'um/orderAmendment': 1,
|
1125
|
+
'cm/orderAmendment': 1,
|
1126
|
+
'um/feeBurn': 30,
|
1127
|
+
'um/accountConfig': 1,
|
1128
|
+
'um/symbolConfig': 1,
|
1129
|
+
'cm/accountConfig': 1,
|
1130
|
+
'cm/symbolConfig': 1,
|
1108
1131
|
},
|
1109
1132
|
'post': {
|
1110
|
-
'um/order': 1,
|
1133
|
+
'um/order': 1,
|
1111
1134
|
'um/conditional/order': 1,
|
1112
|
-
'cm/order': 1,
|
1135
|
+
'cm/order': 1,
|
1113
1136
|
'cm/conditional/order': 1,
|
1114
|
-
'margin/order':
|
1115
|
-
'marginLoan':
|
1116
|
-
'repayLoan':
|
1117
|
-
'margin/order/oco':
|
1118
|
-
'um/leverage':
|
1119
|
-
'cm/leverage':
|
1120
|
-
'um/positionSide/dual':
|
1121
|
-
'cm/positionSide/dual':
|
1122
|
-
'auto-collection':
|
1123
|
-
'bnb-transfer':
|
1124
|
-
'repay-futures-switch': 150,
|
1125
|
-
'repay-futures-negative-balance': 150,
|
1126
|
-
'listenKey':
|
1127
|
-
'asset-collection':
|
1128
|
-
'margin/repay-debt':
|
1137
|
+
'margin/order': 1,
|
1138
|
+
'marginLoan': 100,
|
1139
|
+
'repayLoan': 100,
|
1140
|
+
'margin/order/oco': 1,
|
1141
|
+
'um/leverage': 0.2,
|
1142
|
+
'cm/leverage': 0.2,
|
1143
|
+
'um/positionSide/dual': 0.2,
|
1144
|
+
'cm/positionSide/dual': 0.2,
|
1145
|
+
'auto-collection': 150,
|
1146
|
+
'bnb-transfer': 150,
|
1147
|
+
'repay-futures-switch': 150,
|
1148
|
+
'repay-futures-negative-balance': 150,
|
1149
|
+
'listenKey': 0.2,
|
1150
|
+
'asset-collection': 6,
|
1151
|
+
'margin/repay-debt': 3000,
|
1129
1152
|
'um/feeBurn': 1,
|
1130
1153
|
},
|
1131
1154
|
'put': {
|
1132
|
-
'listenKey':
|
1155
|
+
'listenKey': 0.2,
|
1156
|
+
'um/order': 1,
|
1157
|
+
'cm/order': 1,
|
1133
1158
|
},
|
1134
1159
|
'delete': {
|
1135
|
-
'um/order': 1,
|
1160
|
+
'um/order': 1,
|
1136
1161
|
'um/conditional/order': 1,
|
1137
|
-
'um/allOpenOrders': 1,
|
1162
|
+
'um/allOpenOrders': 1,
|
1138
1163
|
'um/conditional/allOpenOrders': 1,
|
1139
|
-
'cm/order': 1,
|
1164
|
+
'cm/order': 1,
|
1140
1165
|
'cm/conditional/order': 1,
|
1141
|
-
'cm/allOpenOrders': 1,
|
1166
|
+
'cm/allOpenOrders': 1,
|
1142
1167
|
'cm/conditional/allOpenOrders': 1,
|
1143
|
-
'margin/order':
|
1144
|
-
'margin/allOpenOrders': 5,
|
1145
|
-
'margin/orderList': 2,
|
1146
|
-
'listenKey':
|
1168
|
+
'margin/order': 2,
|
1169
|
+
'margin/allOpenOrders': 5,
|
1170
|
+
'margin/orderList': 2,
|
1171
|
+
'listenKey': 0.2,
|
1147
1172
|
},
|
1148
1173
|
},
|
1149
1174
|
},
|
ccxt/bitfinex.py
CHANGED
@@ -60,6 +60,10 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
60
60
|
'fetchDepositsWithdrawals': True,
|
61
61
|
'fetchDepositWithdrawFee': 'emulated',
|
62
62
|
'fetchDepositWithdrawFees': True,
|
63
|
+
'fetchFundingHistory': False,
|
64
|
+
'fetchFundingRate': False, # Endpoint 'lendbook/{currency}' is related to interest rates on spot margin lending
|
65
|
+
'fetchFundingRateHistory': False,
|
66
|
+
'fetchFundingRates': False,
|
63
67
|
'fetchIndexOHLCV': False,
|
64
68
|
'fetchLeverageTiers': False,
|
65
69
|
'fetchMarginMode': False,
|
ccxt/bitflyer.py
CHANGED
ccxt/bitrue.py
CHANGED
@@ -72,7 +72,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
72
72
|
'fetchDepositsWithdrawals': False,
|
73
73
|
'fetchDepositWithdrawFee': 'emulated',
|
74
74
|
'fetchDepositWithdrawFees': True,
|
75
|
+
'fetchFundingHistory': False,
|
75
76
|
'fetchFundingRate': False,
|
77
|
+
'fetchFundingRateHistory': False,
|
78
|
+
'fetchFundingRates': False,
|
76
79
|
'fetchIsolatedBorrowRate': False,
|
77
80
|
'fetchIsolatedBorrowRates': False,
|
78
81
|
'fetchMarginMode': False,
|
ccxt/bybit.py
CHANGED
@@ -7087,13 +7087,13 @@ class bybit(Exchange, ImplicitAPI):
|
|
7087
7087
|
|
7088
7088
|
def parse_margin_loan(self, info, currency: Currency = None):
|
7089
7089
|
#
|
7090
|
-
#
|
7090
|
+
# borrowCrossMargin
|
7091
7091
|
#
|
7092
7092
|
# {
|
7093
7093
|
# "transactId": "14143"
|
7094
7094
|
# }
|
7095
7095
|
#
|
7096
|
-
#
|
7096
|
+
# repayCrossMargin
|
7097
7097
|
#
|
7098
7098
|
# {
|
7099
7099
|
# "repayId": "12128"
|
ccxt/cex.py
CHANGED
@@ -43,6 +43,10 @@ class cex(Exchange, ImplicitAPI):
|
|
43
43
|
'fetchCurrencies': True,
|
44
44
|
'fetchDepositAddress': True,
|
45
45
|
'fetchDepositsWithdrawals': True,
|
46
|
+
'fetchFundingHistory': False,
|
47
|
+
'fetchFundingRate': False,
|
48
|
+
'fetchFundingRateHistory': False,
|
49
|
+
'fetchFundingRates': False,
|
46
50
|
'fetchLedger': True,
|
47
51
|
'fetchMarkets': True,
|
48
52
|
'fetchOHLCV': True,
|
ccxt/coinbase.py
CHANGED
@@ -3491,7 +3491,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3491
3491
|
paginate = False
|
3492
3492
|
paginate, params = self.handle_option_and_params(params, 'fetchMyTrades', 'paginate')
|
3493
3493
|
if paginate:
|
3494
|
-
return self.fetch_paginated_call_cursor('fetchMyTrades', symbol, since, limit, params, 'cursor', 'cursor', None,
|
3494
|
+
return self.fetch_paginated_call_cursor('fetchMyTrades', symbol, since, limit, params, 'cursor', 'cursor', None, 250)
|
3495
3495
|
market = None
|
3496
3496
|
if symbol is not None:
|
3497
3497
|
market = self.market(symbol)
|
ccxt/coinbaseexchange.py
CHANGED
@@ -53,7 +53,10 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
53
53
|
'fetchDepositAddress': False, # the exchange does not have self method, only createDepositAddress, see https://github.com/ccxt/ccxt/pull/7405
|
54
54
|
'fetchDeposits': True,
|
55
55
|
'fetchDepositsWithdrawals': True,
|
56
|
+
'fetchFundingHistory': False,
|
56
57
|
'fetchFundingRate': False,
|
58
|
+
'fetchFundingRateHistory': False,
|
59
|
+
'fetchFundingRates': False,
|
57
60
|
'fetchLedger': True,
|
58
61
|
'fetchMarginMode': False,
|
59
62
|
'fetchMarkets': True,
|