ccxt 4.1.54__py2.py3-none-any.whl → 4.1.56__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.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +2 -2
- ccxt/abstract/binance.py +1 -0
- ccxt/abstract/binancecoinm.py +1 -0
- ccxt/abstract/binanceus.py +1 -0
- ccxt/abstract/binanceusdm.py +1 -0
- ccxt/abstract/bitbank.py +1 -0
- ccxt/abstract/coinbase.py +2 -0
- ccxt/abstract/htx.py +3 -0
- ccxt/abstract/huobi.py +3 -0
- ccxt/abstract/huobipro.py +3 -0
- ccxt/abstract/okex.py +3 -1
- ccxt/abstract/okex5.py +3 -1
- ccxt/abstract/okx.py +3 -1
- ccxt/ace.py +23 -23
- ccxt/alpaca.py +8 -8
- ccxt/ascendex.py +26 -26
- ccxt/async_support/__init__.py +2 -2
- ccxt/async_support/ace.py +23 -23
- ccxt/async_support/alpaca.py +8 -8
- ccxt/async_support/ascendex.py +26 -26
- ccxt/async_support/base/exchange.py +4 -2216
- ccxt/async_support/bigone.py +21 -24
- ccxt/async_support/binance.py +61 -54
- ccxt/async_support/bingx.py +28 -28
- ccxt/async_support/bit2c.py +9 -9
- ccxt/async_support/bitbank.py +11 -10
- ccxt/async_support/bitbns.py +11 -11
- ccxt/async_support/bitfinex.py +15 -15
- ccxt/async_support/bitfinex2.py +22 -22
- ccxt/async_support/bitflyer.py +13 -13
- ccxt/async_support/bitforex.py +10 -10
- ccxt/async_support/bitget.py +44 -44
- ccxt/async_support/bithumb.py +9 -9
- ccxt/async_support/bitmart.py +85 -104
- ccxt/async_support/bitmex.py +27 -27
- ccxt/async_support/bitopro.py +18 -18
- ccxt/async_support/bitpanda.py +18 -18
- ccxt/async_support/bitrue.py +14 -14
- ccxt/async_support/bitso.py +17 -17
- ccxt/async_support/bitstamp.py +17 -17
- ccxt/async_support/bittrex.py +22 -24
- ccxt/async_support/bitvavo.py +15 -15
- ccxt/async_support/bl3p.py +4 -4
- ccxt/async_support/blockchaincom.py +17 -17
- ccxt/async_support/btcalpha.py +14 -14
- ccxt/async_support/btcbox.py +9 -9
- ccxt/async_support/btcmarkets.py +17 -17
- ccxt/async_support/btcturk.py +9 -9
- ccxt/async_support/bybit.py +46 -46
- ccxt/async_support/cex.py +10 -10
- ccxt/async_support/coinbase.py +69 -25
- ccxt/async_support/coinbasepro.py +19 -19
- ccxt/async_support/coincheck.py +10 -10
- ccxt/async_support/coinex.py +57 -66
- ccxt/async_support/coinlist.py +22 -22
- ccxt/async_support/coinmate.py +10 -10
- ccxt/async_support/coinone.py +10 -10
- ccxt/async_support/coinsph.py +17 -17
- ccxt/async_support/coinspot.py +5 -5
- ccxt/async_support/cryptocom.py +27 -27
- ccxt/async_support/currencycom.py +18 -18
- ccxt/async_support/delta.py +21 -21
- ccxt/async_support/deribit.py +24 -24
- ccxt/async_support/digifinex.py +35 -35
- ccxt/async_support/exmo.py +19 -19
- ccxt/async_support/gate.py +38 -38
- ccxt/async_support/gemini.py +11 -11
- ccxt/async_support/hitbtc.py +27 -27
- ccxt/async_support/hollaex.py +19 -19
- ccxt/async_support/htx.py +47 -44
- ccxt/async_support/huobijp.py +22 -22
- ccxt/async_support/idex.py +20 -20
- ccxt/async_support/independentreserve.py +9 -9
- ccxt/async_support/indodax.py +10 -10
- ccxt/async_support/kraken.py +25 -25
- ccxt/async_support/krakenfutures.py +17 -17
- ccxt/async_support/kucoin.py +27 -27
- ccxt/async_support/kucoinfutures.py +20 -20
- ccxt/async_support/kuna.py +19 -19
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank.py +18 -18
- ccxt/async_support/luno.py +14 -14
- ccxt/async_support/lykke.py +12 -12
- ccxt/async_support/mercado.py +11 -11
- ccxt/async_support/mexc.py +36 -36
- ccxt/async_support/ndax.py +18 -18
- ccxt/async_support/novadax.py +17 -17
- ccxt/async_support/oceanex.py +12 -12
- ccxt/async_support/okcoin.py +19 -19
- ccxt/async_support/okx.py +48 -45
- ccxt/async_support/p2b.py +6 -6
- ccxt/async_support/paymium.py +6 -6
- ccxt/async_support/phemex.py +57 -57
- ccxt/async_support/poloniex.py +31 -30
- ccxt/async_support/poloniexfutures.py +16 -16
- ccxt/async_support/probit.py +22 -22
- ccxt/async_support/tidex.py +15 -15
- ccxt/async_support/timex.py +20 -20
- ccxt/async_support/tokocrypto.py +16 -16
- ccxt/async_support/upbit.py +15 -15
- ccxt/async_support/wavesexchange.py +12 -12
- ccxt/async_support/wazirx.py +13 -13
- ccxt/async_support/whitebit.py +26 -26
- ccxt/async_support/woo.py +47 -47
- ccxt/async_support/yobit.py +8 -8
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +16 -16
- ccxt/base/errors.py +17 -16
- ccxt/base/exchange.py +57 -97
- ccxt/base/types.py +138 -139
- ccxt/bigone.py +21 -24
- ccxt/binance.py +61 -54
- ccxt/bingx.py +28 -28
- ccxt/bit2c.py +9 -9
- ccxt/bitbank.py +11 -10
- ccxt/bitbns.py +11 -11
- ccxt/bitfinex.py +15 -15
- ccxt/bitfinex2.py +22 -22
- ccxt/bitflyer.py +13 -13
- ccxt/bitforex.py +10 -10
- ccxt/bitget.py +44 -44
- ccxt/bithumb.py +9 -9
- ccxt/bitmart.py +85 -104
- ccxt/bitmex.py +27 -27
- ccxt/bitopro.py +18 -18
- ccxt/bitpanda.py +18 -18
- ccxt/bitrue.py +14 -14
- ccxt/bitso.py +17 -17
- ccxt/bitstamp.py +17 -17
- ccxt/bittrex.py +22 -24
- ccxt/bitvavo.py +15 -15
- ccxt/bl3p.py +4 -4
- ccxt/blockchaincom.py +17 -17
- ccxt/btcalpha.py +14 -14
- ccxt/btcbox.py +9 -9
- ccxt/btcmarkets.py +17 -17
- ccxt/btcturk.py +9 -9
- ccxt/bybit.py +46 -46
- ccxt/cex.py +10 -10
- ccxt/coinbase.py +69 -25
- ccxt/coinbasepro.py +19 -19
- ccxt/coincheck.py +10 -10
- ccxt/coinex.py +57 -66
- ccxt/coinlist.py +22 -22
- ccxt/coinmate.py +10 -10
- ccxt/coinone.py +10 -10
- ccxt/coinsph.py +17 -17
- ccxt/coinspot.py +5 -5
- ccxt/cryptocom.py +27 -27
- ccxt/currencycom.py +18 -18
- ccxt/delta.py +21 -21
- ccxt/deribit.py +24 -24
- ccxt/digifinex.py +35 -35
- ccxt/exmo.py +19 -19
- ccxt/gate.py +38 -38
- ccxt/gemini.py +11 -11
- ccxt/hitbtc.py +27 -27
- ccxt/hollaex.py +19 -19
- ccxt/htx.py +47 -44
- ccxt/huobijp.py +22 -22
- ccxt/idex.py +20 -20
- ccxt/independentreserve.py +9 -9
- ccxt/indodax.py +10 -10
- ccxt/kraken.py +25 -25
- ccxt/krakenfutures.py +17 -17
- ccxt/kucoin.py +27 -27
- ccxt/kucoinfutures.py +20 -20
- ccxt/kuna.py +19 -19
- ccxt/latoken.py +14 -14
- ccxt/lbank.py +18 -18
- ccxt/luno.py +14 -14
- ccxt/lykke.py +12 -12
- ccxt/mercado.py +11 -11
- ccxt/mexc.py +36 -36
- ccxt/ndax.py +18 -18
- ccxt/novadax.py +17 -17
- ccxt/oceanex.py +12 -12
- ccxt/okcoin.py +19 -19
- ccxt/okx.py +48 -45
- ccxt/p2b.py +6 -6
- ccxt/paymium.py +6 -6
- ccxt/phemex.py +57 -57
- ccxt/poloniex.py +31 -30
- ccxt/poloniexfutures.py +16 -16
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +3 -3
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +3 -3
- ccxt/pro/bitfinex.py +3 -3
- ccxt/pro/bitfinex2.py +3 -3
- ccxt/pro/bitget.py +3 -3
- ccxt/pro/bitmart.py +2 -2
- ccxt/pro/bitmex.py +3 -3
- ccxt/pro/bitpanda.py +3 -3
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/bitstamp.py +2 -2
- ccxt/pro/bittrex.py +3 -3
- ccxt/pro/bitvavo.py +3 -3
- ccxt/pro/blockchaincom.py +2 -2
- ccxt/pro/bybit.py +4 -4
- ccxt/pro/cex.py +3 -3
- ccxt/pro/coinbasepro.py +3 -3
- ccxt/pro/coinex.py +2 -2
- ccxt/pro/cryptocom.py +5 -5
- ccxt/pro/deribit.py +3 -3
- ccxt/pro/exmo.py +2 -2
- ccxt/pro/gate.py +3 -3
- ccxt/pro/gemini.py +2 -2
- ccxt/pro/hitbtc.py +4 -4
- ccxt/pro/hollaex.py +3 -3
- ccxt/pro/htx.py +3 -3
- ccxt/pro/idex.py +3 -3
- ccxt/pro/kraken.py +7 -7
- ccxt/pro/krakenfutures.py +4 -4
- ccxt/pro/kucoin.py +3 -3
- ccxt/pro/kucoinfutures.py +3 -3
- ccxt/pro/mexc.py +3 -3
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +6 -6
- ccxt/pro/phemex.py +3 -3
- ccxt/pro/poloniex.py +3 -3
- ccxt/pro/poloniexfutures.py +3 -3
- ccxt/pro/probit.py +3 -3
- ccxt/pro/wazirx.py +3 -3
- ccxt/pro/whitebit.py +3 -3
- ccxt/pro/woo.py +2 -2
- ccxt/probit.py +22 -22
- ccxt/test/base/test_shared_methods.py +3 -3
- ccxt/test/test_async.py +543 -535
- ccxt/test/test_sync.py +542 -534
- ccxt/tidex.py +15 -15
- ccxt/timex.py +20 -20
- ccxt/tokocrypto.py +16 -16
- ccxt/upbit.py +15 -15
- ccxt/wavesexchange.py +12 -12
- ccxt/wazirx.py +13 -13
- ccxt/whitebit.py +26 -26
- ccxt/woo.py +47 -47
- ccxt/yobit.py +8 -8
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +16 -16
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/METADATA +10 -8
- ccxt-4.1.56.dist-info/RECORD +449 -0
- ccxt/async_support/bitstamp1.py +0 -402
- ccxt/async_support/lbank2.py +0 -2620
- ccxt/bitstamp1.py +0 -402
- ccxt/lbank2.py +0 -2619
- ccxt-4.1.54.dist-info/RECORD +0 -453
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/WHEEL +0 -0
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
# ----------------------------------------------------------------------------
|
24
24
|
|
25
|
-
__version__ = '4.1.
|
25
|
+
__version__ = '4.1.56'
|
26
26
|
|
27
27
|
# ----------------------------------------------------------------------------
|
28
28
|
|
@@ -67,6 +67,7 @@ from ccxt.base.errors import OrderNotFillable # noqa: F4
|
|
67
67
|
from ccxt.base.errors import DuplicateOrderId # noqa: F401
|
68
68
|
from ccxt.base.errors import ContractUnavailable # noqa: F401
|
69
69
|
from ccxt.base.errors import NotSupported # noqa: F401
|
70
|
+
from ccxt.base.errors import OperationFailed # noqa: F401
|
70
71
|
from ccxt.base.errors import NetworkError # noqa: F401
|
71
72
|
from ccxt.base.errors import DDoSProtection # noqa: F401
|
72
73
|
from ccxt.base.errors import RateLimitExceeded # noqa: F401
|
@@ -74,7 +75,6 @@ from ccxt.base.errors import ExchangeNotAvailable # noqa: F4
|
|
74
75
|
from ccxt.base.errors import OnMaintenance # noqa: F401
|
75
76
|
from ccxt.base.errors import InvalidNonce # noqa: F401
|
76
77
|
from ccxt.base.errors import RequestTimeout # noqa: F401
|
77
|
-
from ccxt.base.errors import OperationFailed # noqa: F401
|
78
78
|
from ccxt.base.errors import error_hierarchy # noqa: F401
|
79
79
|
|
80
80
|
from ccxt.ace import ace # noqa: F401
|
ccxt/abstract/binance.py
CHANGED
@@ -498,6 +498,7 @@ class ImplicitAPI:
|
|
498
498
|
fapiprivate_delete_order = fapiPrivateDeleteOrder = Entry('order', 'fapiPrivate', 'DELETE', {'cost': 1})
|
499
499
|
fapiprivate_delete_allopenorders = fapiPrivateDeleteAllOpenOrders = Entry('allOpenOrders', 'fapiPrivate', 'DELETE', {'cost': 1})
|
500
500
|
fapiprivate_delete_listenkey = fapiPrivateDeleteListenKey = Entry('listenKey', 'fapiPrivate', 'DELETE', {'cost': 1})
|
501
|
+
fapipublicv2_get_ticker_price = fapiPublicV2GetTickerPrice = Entry('ticker/price', 'fapiPublicV2', 'GET', {'cost': 0})
|
501
502
|
fapiprivatev2_get_account = fapiPrivateV2GetAccount = Entry('account', 'fapiPrivateV2', 'GET', {'cost': 1})
|
502
503
|
fapiprivatev2_get_balance = fapiPrivateV2GetBalance = Entry('balance', 'fapiPrivateV2', 'GET', {'cost': 1})
|
503
504
|
fapiprivatev2_get_positionrisk = fapiPrivateV2GetPositionRisk = Entry('positionRisk', 'fapiPrivateV2', 'GET', {'cost': 1})
|
ccxt/abstract/binancecoinm.py
CHANGED
@@ -498,6 +498,7 @@ class ImplicitAPI:
|
|
498
498
|
fapiprivate_delete_order = fapiPrivateDeleteOrder = Entry('order', 'fapiPrivate', 'DELETE', {'cost': 1})
|
499
499
|
fapiprivate_delete_allopenorders = fapiPrivateDeleteAllOpenOrders = Entry('allOpenOrders', 'fapiPrivate', 'DELETE', {'cost': 1})
|
500
500
|
fapiprivate_delete_listenkey = fapiPrivateDeleteListenKey = Entry('listenKey', 'fapiPrivate', 'DELETE', {'cost': 1})
|
501
|
+
fapipublicv2_get_ticker_price = fapiPublicV2GetTickerPrice = Entry('ticker/price', 'fapiPublicV2', 'GET', {'cost': 0})
|
501
502
|
fapiprivatev2_get_account = fapiPrivateV2GetAccount = Entry('account', 'fapiPrivateV2', 'GET', {'cost': 1})
|
502
503
|
fapiprivatev2_get_balance = fapiPrivateV2GetBalance = Entry('balance', 'fapiPrivateV2', 'GET', {'cost': 1})
|
503
504
|
fapiprivatev2_get_positionrisk = fapiPrivateV2GetPositionRisk = Entry('positionRisk', 'fapiPrivateV2', 'GET', {'cost': 1})
|
ccxt/abstract/binanceus.py
CHANGED
@@ -498,6 +498,7 @@ class ImplicitAPI:
|
|
498
498
|
fapiprivate_delete_order = fapiPrivateDeleteOrder = Entry('order', 'fapiPrivate', 'DELETE', {'cost': 1})
|
499
499
|
fapiprivate_delete_allopenorders = fapiPrivateDeleteAllOpenOrders = Entry('allOpenOrders', 'fapiPrivate', 'DELETE', {'cost': 1})
|
500
500
|
fapiprivate_delete_listenkey = fapiPrivateDeleteListenKey = Entry('listenKey', 'fapiPrivate', 'DELETE', {'cost': 1})
|
501
|
+
fapipublicv2_get_ticker_price = fapiPublicV2GetTickerPrice = Entry('ticker/price', 'fapiPublicV2', 'GET', {'cost': 0})
|
501
502
|
fapiprivatev2_get_account = fapiPrivateV2GetAccount = Entry('account', 'fapiPrivateV2', 'GET', {'cost': 1})
|
502
503
|
fapiprivatev2_get_balance = fapiPrivateV2GetBalance = Entry('balance', 'fapiPrivateV2', 'GET', {'cost': 1})
|
503
504
|
fapiprivatev2_get_positionrisk = fapiPrivateV2GetPositionRisk = Entry('positionRisk', 'fapiPrivateV2', 'GET', {'cost': 1})
|
ccxt/abstract/binanceusdm.py
CHANGED
@@ -498,6 +498,7 @@ class ImplicitAPI:
|
|
498
498
|
fapiprivate_delete_order = fapiPrivateDeleteOrder = Entry('order', 'fapiPrivate', 'DELETE', {'cost': 1})
|
499
499
|
fapiprivate_delete_allopenorders = fapiPrivateDeleteAllOpenOrders = Entry('allOpenOrders', 'fapiPrivate', 'DELETE', {'cost': 1})
|
500
500
|
fapiprivate_delete_listenkey = fapiPrivateDeleteListenKey = Entry('listenKey', 'fapiPrivate', 'DELETE', {'cost': 1})
|
501
|
+
fapipublicv2_get_ticker_price = fapiPublicV2GetTickerPrice = Entry('ticker/price', 'fapiPublicV2', 'GET', {'cost': 0})
|
501
502
|
fapiprivatev2_get_account = fapiPrivateV2GetAccount = Entry('account', 'fapiPrivateV2', 'GET', {'cost': 1})
|
502
503
|
fapiprivatev2_get_balance = fapiPrivateV2GetBalance = Entry('balance', 'fapiPrivateV2', 'GET', {'cost': 1})
|
503
504
|
fapiprivatev2_get_positionrisk = fapiPrivateV2GetPositionRisk = Entry('positionRisk', 'fapiPrivateV2', 'GET', {'cost': 1})
|
ccxt/abstract/bitbank.py
CHANGED
@@ -9,6 +9,7 @@ class ImplicitAPI:
|
|
9
9
|
public_get_pair_transactions = publicGetPairTransactions = Entry('{pair}/transactions', 'public', 'GET', {})
|
10
10
|
public_get_pair_transactions_yyyymmdd = publicGetPairTransactionsYyyymmdd = Entry('{pair}/transactions/{yyyymmdd}', 'public', 'GET', {})
|
11
11
|
public_get_pair_candlestick_candletype_yyyymmdd = publicGetPairCandlestickCandletypeYyyymmdd = Entry('{pair}/candlestick/{candletype}/{yyyymmdd}', 'public', 'GET', {})
|
12
|
+
public_get_pair_circuit_break_info = publicGetPairCircuitBreakInfo = Entry('{pair}/circuit_break_info', 'public', 'GET', {})
|
12
13
|
private_get_user_assets = privateGetUserAssets = Entry('user/assets', 'private', 'GET', {})
|
13
14
|
private_get_user_spot_order = privateGetUserSpotOrder = Entry('user/spot/order', 'private', 'GET', {})
|
14
15
|
private_get_user_spot_active_orders = privateGetUserSpotActiveOrders = Entry('user/spot/active_orders', 'private', 'GET', {})
|
ccxt/abstract/coinbase.py
CHANGED
@@ -60,3 +60,5 @@ class ImplicitAPI:
|
|
60
60
|
v3_private_get_brokerage_best_bid_ask = v3PrivateGetBrokerageBestBidAsk = Entry('brokerage/best_bid_ask', ['v3', 'private'], 'GET', {})
|
61
61
|
v3_private_post_brokerage_orders = v3PrivatePostBrokerageOrders = Entry('brokerage/orders', ['v3', 'private'], 'POST', {})
|
62
62
|
v3_private_post_brokerage_orders_batch_cancel = v3PrivatePostBrokerageOrdersBatchCancel = Entry('brokerage/orders/batch_cancel', ['v3', 'private'], 'POST', {})
|
63
|
+
v3_private_post_brokerage_orders_edit = v3PrivatePostBrokerageOrdersEdit = Entry('brokerage/orders/edit', ['v3', 'private'], 'POST', {})
|
64
|
+
v3_private_post_brokerage_orders_edit_preview = v3PrivatePostBrokerageOrdersEditPreview = Entry('brokerage/orders/edit_preview', ['v3', 'private'], 'POST', {})
|
ccxt/abstract/htx.py
CHANGED
@@ -221,6 +221,7 @@ class ImplicitAPI:
|
|
221
221
|
contract_public_get_heartbeat = contractPublicGetHeartbeat = Entry('heartbeat/', ['contract', 'public'], 'GET', {'cost': 1})
|
222
222
|
contract_public_get_api_v1_contract_contract_info = contractPublicGetApiV1ContractContractInfo = Entry('api/v1/contract_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
223
223
|
contract_public_get_api_v1_contract_index = contractPublicGetApiV1ContractIndex = Entry('api/v1/contract_index', ['contract', 'public'], 'GET', {'cost': 1})
|
224
|
+
contract_public_get_api_v1_contract_query_elements = contractPublicGetApiV1ContractQueryElements = Entry('api/v1/contract_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
224
225
|
contract_public_get_api_v1_contract_price_limit = contractPublicGetApiV1ContractPriceLimit = Entry('api/v1/contract_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
225
226
|
contract_public_get_api_v1_contract_open_interest = contractPublicGetApiV1ContractOpenInterest = Entry('api/v1/contract_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
226
227
|
contract_public_get_api_v1_contract_delivery_price = contractPublicGetApiV1ContractDeliveryPrice = Entry('api/v1/contract_delivery_price', ['contract', 'public'], 'GET', {'cost': 1})
|
@@ -249,6 +250,7 @@ class ImplicitAPI:
|
|
249
250
|
contract_public_get_api_v3_contract_liquidation_orders = contractPublicGetApiV3ContractLiquidationOrders = Entry('api/v3/contract_liquidation_orders', ['contract', 'public'], 'GET', {'cost': 1})
|
250
251
|
contract_public_get_swap_api_v1_swap_contract_info = contractPublicGetSwapApiV1SwapContractInfo = Entry('swap-api/v1/swap_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
251
252
|
contract_public_get_swap_api_v1_swap_index = contractPublicGetSwapApiV1SwapIndex = Entry('swap-api/v1/swap_index', ['contract', 'public'], 'GET', {'cost': 1})
|
253
|
+
contract_public_get_swap_api_v1_swap_query_elements = contractPublicGetSwapApiV1SwapQueryElements = Entry('swap-api/v1/swap_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
252
254
|
contract_public_get_swap_api_v1_swap_price_limit = contractPublicGetSwapApiV1SwapPriceLimit = Entry('swap-api/v1/swap_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
253
255
|
contract_public_get_swap_api_v1_swap_open_interest = contractPublicGetSwapApiV1SwapOpenInterest = Entry('swap-api/v1/swap_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
254
256
|
contract_public_get_swap_ex_market_depth = contractPublicGetSwapExMarketDepth = Entry('swap-ex/market/depth', ['contract', 'public'], 'GET', {'cost': 1})
|
@@ -280,6 +282,7 @@ class ImplicitAPI:
|
|
280
282
|
contract_public_get_index_market_history_swap_basis = contractPublicGetIndexMarketHistorySwapBasis = Entry('index/market/history/swap_basis', ['contract', 'public'], 'GET', {'cost': 1})
|
281
283
|
contract_public_get_linear_swap_api_v1_swap_contract_info = contractPublicGetLinearSwapApiV1SwapContractInfo = Entry('linear-swap-api/v1/swap_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
282
284
|
contract_public_get_linear_swap_api_v1_swap_index = contractPublicGetLinearSwapApiV1SwapIndex = Entry('linear-swap-api/v1/swap_index', ['contract', 'public'], 'GET', {'cost': 1})
|
285
|
+
contract_public_get_linear_swap_api_v1_swap_query_elements = contractPublicGetLinearSwapApiV1SwapQueryElements = Entry('linear-swap-api/v1/swap_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
283
286
|
contract_public_get_linear_swap_api_v1_swap_price_limit = contractPublicGetLinearSwapApiV1SwapPriceLimit = Entry('linear-swap-api/v1/swap_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
284
287
|
contract_public_get_linear_swap_api_v1_swap_open_interest = contractPublicGetLinearSwapApiV1SwapOpenInterest = Entry('linear-swap-api/v1/swap_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
285
288
|
contract_public_get_linear_swap_ex_market_depth = contractPublicGetLinearSwapExMarketDepth = Entry('linear-swap-ex/market/depth', ['contract', 'public'], 'GET', {'cost': 1})
|
ccxt/abstract/huobi.py
CHANGED
@@ -221,6 +221,7 @@ class ImplicitAPI:
|
|
221
221
|
contract_public_get_heartbeat = contractPublicGetHeartbeat = Entry('heartbeat/', ['contract', 'public'], 'GET', {'cost': 1})
|
222
222
|
contract_public_get_api_v1_contract_contract_info = contractPublicGetApiV1ContractContractInfo = Entry('api/v1/contract_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
223
223
|
contract_public_get_api_v1_contract_index = contractPublicGetApiV1ContractIndex = Entry('api/v1/contract_index', ['contract', 'public'], 'GET', {'cost': 1})
|
224
|
+
contract_public_get_api_v1_contract_query_elements = contractPublicGetApiV1ContractQueryElements = Entry('api/v1/contract_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
224
225
|
contract_public_get_api_v1_contract_price_limit = contractPublicGetApiV1ContractPriceLimit = Entry('api/v1/contract_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
225
226
|
contract_public_get_api_v1_contract_open_interest = contractPublicGetApiV1ContractOpenInterest = Entry('api/v1/contract_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
226
227
|
contract_public_get_api_v1_contract_delivery_price = contractPublicGetApiV1ContractDeliveryPrice = Entry('api/v1/contract_delivery_price', ['contract', 'public'], 'GET', {'cost': 1})
|
@@ -249,6 +250,7 @@ class ImplicitAPI:
|
|
249
250
|
contract_public_get_api_v3_contract_liquidation_orders = contractPublicGetApiV3ContractLiquidationOrders = Entry('api/v3/contract_liquidation_orders', ['contract', 'public'], 'GET', {'cost': 1})
|
250
251
|
contract_public_get_swap_api_v1_swap_contract_info = contractPublicGetSwapApiV1SwapContractInfo = Entry('swap-api/v1/swap_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
251
252
|
contract_public_get_swap_api_v1_swap_index = contractPublicGetSwapApiV1SwapIndex = Entry('swap-api/v1/swap_index', ['contract', 'public'], 'GET', {'cost': 1})
|
253
|
+
contract_public_get_swap_api_v1_swap_query_elements = contractPublicGetSwapApiV1SwapQueryElements = Entry('swap-api/v1/swap_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
252
254
|
contract_public_get_swap_api_v1_swap_price_limit = contractPublicGetSwapApiV1SwapPriceLimit = Entry('swap-api/v1/swap_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
253
255
|
contract_public_get_swap_api_v1_swap_open_interest = contractPublicGetSwapApiV1SwapOpenInterest = Entry('swap-api/v1/swap_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
254
256
|
contract_public_get_swap_ex_market_depth = contractPublicGetSwapExMarketDepth = Entry('swap-ex/market/depth', ['contract', 'public'], 'GET', {'cost': 1})
|
@@ -280,6 +282,7 @@ class ImplicitAPI:
|
|
280
282
|
contract_public_get_index_market_history_swap_basis = contractPublicGetIndexMarketHistorySwapBasis = Entry('index/market/history/swap_basis', ['contract', 'public'], 'GET', {'cost': 1})
|
281
283
|
contract_public_get_linear_swap_api_v1_swap_contract_info = contractPublicGetLinearSwapApiV1SwapContractInfo = Entry('linear-swap-api/v1/swap_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
282
284
|
contract_public_get_linear_swap_api_v1_swap_index = contractPublicGetLinearSwapApiV1SwapIndex = Entry('linear-swap-api/v1/swap_index', ['contract', 'public'], 'GET', {'cost': 1})
|
285
|
+
contract_public_get_linear_swap_api_v1_swap_query_elements = contractPublicGetLinearSwapApiV1SwapQueryElements = Entry('linear-swap-api/v1/swap_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
283
286
|
contract_public_get_linear_swap_api_v1_swap_price_limit = contractPublicGetLinearSwapApiV1SwapPriceLimit = Entry('linear-swap-api/v1/swap_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
284
287
|
contract_public_get_linear_swap_api_v1_swap_open_interest = contractPublicGetLinearSwapApiV1SwapOpenInterest = Entry('linear-swap-api/v1/swap_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
285
288
|
contract_public_get_linear_swap_ex_market_depth = contractPublicGetLinearSwapExMarketDepth = Entry('linear-swap-ex/market/depth', ['contract', 'public'], 'GET', {'cost': 1})
|
ccxt/abstract/huobipro.py
CHANGED
@@ -221,6 +221,7 @@ class ImplicitAPI:
|
|
221
221
|
contract_public_get_heartbeat = contractPublicGetHeartbeat = Entry('heartbeat/', ['contract', 'public'], 'GET', {'cost': 1})
|
222
222
|
contract_public_get_api_v1_contract_contract_info = contractPublicGetApiV1ContractContractInfo = Entry('api/v1/contract_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
223
223
|
contract_public_get_api_v1_contract_index = contractPublicGetApiV1ContractIndex = Entry('api/v1/contract_index', ['contract', 'public'], 'GET', {'cost': 1})
|
224
|
+
contract_public_get_api_v1_contract_query_elements = contractPublicGetApiV1ContractQueryElements = Entry('api/v1/contract_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
224
225
|
contract_public_get_api_v1_contract_price_limit = contractPublicGetApiV1ContractPriceLimit = Entry('api/v1/contract_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
225
226
|
contract_public_get_api_v1_contract_open_interest = contractPublicGetApiV1ContractOpenInterest = Entry('api/v1/contract_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
226
227
|
contract_public_get_api_v1_contract_delivery_price = contractPublicGetApiV1ContractDeliveryPrice = Entry('api/v1/contract_delivery_price', ['contract', 'public'], 'GET', {'cost': 1})
|
@@ -249,6 +250,7 @@ class ImplicitAPI:
|
|
249
250
|
contract_public_get_api_v3_contract_liquidation_orders = contractPublicGetApiV3ContractLiquidationOrders = Entry('api/v3/contract_liquidation_orders', ['contract', 'public'], 'GET', {'cost': 1})
|
250
251
|
contract_public_get_swap_api_v1_swap_contract_info = contractPublicGetSwapApiV1SwapContractInfo = Entry('swap-api/v1/swap_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
251
252
|
contract_public_get_swap_api_v1_swap_index = contractPublicGetSwapApiV1SwapIndex = Entry('swap-api/v1/swap_index', ['contract', 'public'], 'GET', {'cost': 1})
|
253
|
+
contract_public_get_swap_api_v1_swap_query_elements = contractPublicGetSwapApiV1SwapQueryElements = Entry('swap-api/v1/swap_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
252
254
|
contract_public_get_swap_api_v1_swap_price_limit = contractPublicGetSwapApiV1SwapPriceLimit = Entry('swap-api/v1/swap_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
253
255
|
contract_public_get_swap_api_v1_swap_open_interest = contractPublicGetSwapApiV1SwapOpenInterest = Entry('swap-api/v1/swap_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
254
256
|
contract_public_get_swap_ex_market_depth = contractPublicGetSwapExMarketDepth = Entry('swap-ex/market/depth', ['contract', 'public'], 'GET', {'cost': 1})
|
@@ -280,6 +282,7 @@ class ImplicitAPI:
|
|
280
282
|
contract_public_get_index_market_history_swap_basis = contractPublicGetIndexMarketHistorySwapBasis = Entry('index/market/history/swap_basis', ['contract', 'public'], 'GET', {'cost': 1})
|
281
283
|
contract_public_get_linear_swap_api_v1_swap_contract_info = contractPublicGetLinearSwapApiV1SwapContractInfo = Entry('linear-swap-api/v1/swap_contract_info', ['contract', 'public'], 'GET', {'cost': 1})
|
282
284
|
contract_public_get_linear_swap_api_v1_swap_index = contractPublicGetLinearSwapApiV1SwapIndex = Entry('linear-swap-api/v1/swap_index', ['contract', 'public'], 'GET', {'cost': 1})
|
285
|
+
contract_public_get_linear_swap_api_v1_swap_query_elements = contractPublicGetLinearSwapApiV1SwapQueryElements = Entry('linear-swap-api/v1/swap_query_elements', ['contract', 'public'], 'GET', {'cost': 1})
|
283
286
|
contract_public_get_linear_swap_api_v1_swap_price_limit = contractPublicGetLinearSwapApiV1SwapPriceLimit = Entry('linear-swap-api/v1/swap_price_limit', ['contract', 'public'], 'GET', {'cost': 1})
|
284
287
|
contract_public_get_linear_swap_api_v1_swap_open_interest = contractPublicGetLinearSwapApiV1SwapOpenInterest = Entry('linear-swap-api/v1/swap_open_interest', ['contract', 'public'], 'GET', {'cost': 1})
|
285
288
|
contract_public_get_linear_swap_ex_market_depth = contractPublicGetLinearSwapExMarketDepth = Entry('linear-swap-ex/market/depth', ['contract', 'public'], 'GET', {'cost': 1})
|
ccxt/abstract/okex.py
CHANGED
@@ -20,6 +20,7 @@ class ImplicitAPI:
|
|
20
20
|
public_get_market_open_oracle = publicGetMarketOpenOracle = Entry('market/open-oracle', 'public', 'GET', {'cost': 50})
|
21
21
|
public_get_market_exchange_rate = publicGetMarketExchangeRate = Entry('market/exchange-rate', 'public', 'GET', {'cost': 20})
|
22
22
|
public_get_market_index_components = publicGetMarketIndexComponents = Entry('market/index-components', 'public', 'GET', {'cost': 1})
|
23
|
+
public_get_public_economic_calendar = publicGetPublicEconomicCalendar = Entry('public/economic-calendar', 'public', 'GET', {'cost': 50})
|
23
24
|
public_get_market_block_tickers = publicGetMarketBlockTickers = Entry('market/block-tickers', 'public', 'GET', {'cost': 1})
|
24
25
|
public_get_market_block_ticker = publicGetMarketBlockTicker = Entry('market/block-ticker', 'public', 'GET', {'cost': 1})
|
25
26
|
public_get_public_block_trades = publicGetPublicBlockTrades = Entry('public/block-trades', 'public', 'GET', {'cost': 1})
|
@@ -137,7 +138,6 @@ class ImplicitAPI:
|
|
137
138
|
private_get_asset_subaccount_bills = privateGetAssetSubaccountBills = Entry('asset/subaccount/bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
138
139
|
private_get_asset_subaccount_managed_subaccount_bills = privateGetAssetSubaccountManagedSubaccountBills = Entry('asset/subaccount/managed-subaccount-bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
139
140
|
private_get_users_entrust_subaccount_list = privateGetUsersEntrustSubaccountList = Entry('users/entrust-subaccount-list', 'private', 'GET', {'cost': 10})
|
140
|
-
private_get_users_partner_if_rebate = privateGetUsersPartnerIfRebate = Entry('users/partner/if-rebate', 'private', 'GET', {'cost': 1})
|
141
141
|
private_get_account_subaccount_interest_limits = privateGetAccountSubaccountInterestLimits = Entry('account/subaccount/interest-limits', 'private', 'GET', {'cost': 4})
|
142
142
|
private_get_tradingbot_grid_orders_algo_pending = privateGetTradingBotGridOrdersAlgoPending = Entry('tradingBot/grid/orders-algo-pending', 'private', 'GET', {'cost': 1})
|
143
143
|
private_get_tradingbot_grid_orders_algo_history = privateGetTradingBotGridOrdersAlgoHistory = Entry('tradingBot/grid/orders-algo-history', 'private', 'GET', {'cost': 1})
|
@@ -179,6 +179,8 @@ class ImplicitAPI:
|
|
179
179
|
private_get_finance_sfp_dcd_orders = privateGetFinanceSfpDcdOrders = Entry('finance/sfp/dcd/orders', 'private', 'GET', {'cost': 2})
|
180
180
|
private_get_broker_fd_rebate_per_orders = privateGetBrokerFdRebatePerOrders = Entry('broker/fd/rebate-per-orders', 'private', 'GET', {'cost': 300})
|
181
181
|
private_get_broker_fd_if_rebate = privateGetBrokerFdIfRebate = Entry('broker/fd/if-rebate', 'private', 'GET', {'cost': 5})
|
182
|
+
private_get_affiliate_invitee_detail = privateGetAffiliateInviteeDetail = Entry('affiliate/invitee/detail', 'private', 'GET', {'cost': 1})
|
183
|
+
private_get_users_partner_if_rebate = privateGetUsersPartnerIfRebate = Entry('users/partner/if-rebate', 'private', 'GET', {'cost': 1})
|
182
184
|
private_post_rfq_create_rfq = privatePostRfqCreateRfq = Entry('rfq/create-rfq', 'private', 'POST', {'cost': 4})
|
183
185
|
private_post_rfq_cancel_rfq = privatePostRfqCancelRfq = Entry('rfq/cancel-rfq', 'private', 'POST', {'cost': 4})
|
184
186
|
private_post_rfq_cancel_batch_rfqs = privatePostRfqCancelBatchRfqs = Entry('rfq/cancel-batch-rfqs', 'private', 'POST', {'cost': 10})
|
ccxt/abstract/okex5.py
CHANGED
@@ -20,6 +20,7 @@ class ImplicitAPI:
|
|
20
20
|
public_get_market_open_oracle = publicGetMarketOpenOracle = Entry('market/open-oracle', 'public', 'GET', {'cost': 50})
|
21
21
|
public_get_market_exchange_rate = publicGetMarketExchangeRate = Entry('market/exchange-rate', 'public', 'GET', {'cost': 20})
|
22
22
|
public_get_market_index_components = publicGetMarketIndexComponents = Entry('market/index-components', 'public', 'GET', {'cost': 1})
|
23
|
+
public_get_public_economic_calendar = publicGetPublicEconomicCalendar = Entry('public/economic-calendar', 'public', 'GET', {'cost': 50})
|
23
24
|
public_get_market_block_tickers = publicGetMarketBlockTickers = Entry('market/block-tickers', 'public', 'GET', {'cost': 1})
|
24
25
|
public_get_market_block_ticker = publicGetMarketBlockTicker = Entry('market/block-ticker', 'public', 'GET', {'cost': 1})
|
25
26
|
public_get_public_block_trades = publicGetPublicBlockTrades = Entry('public/block-trades', 'public', 'GET', {'cost': 1})
|
@@ -137,7 +138,6 @@ class ImplicitAPI:
|
|
137
138
|
private_get_asset_subaccount_bills = privateGetAssetSubaccountBills = Entry('asset/subaccount/bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
138
139
|
private_get_asset_subaccount_managed_subaccount_bills = privateGetAssetSubaccountManagedSubaccountBills = Entry('asset/subaccount/managed-subaccount-bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
139
140
|
private_get_users_entrust_subaccount_list = privateGetUsersEntrustSubaccountList = Entry('users/entrust-subaccount-list', 'private', 'GET', {'cost': 10})
|
140
|
-
private_get_users_partner_if_rebate = privateGetUsersPartnerIfRebate = Entry('users/partner/if-rebate', 'private', 'GET', {'cost': 1})
|
141
141
|
private_get_account_subaccount_interest_limits = privateGetAccountSubaccountInterestLimits = Entry('account/subaccount/interest-limits', 'private', 'GET', {'cost': 4})
|
142
142
|
private_get_tradingbot_grid_orders_algo_pending = privateGetTradingBotGridOrdersAlgoPending = Entry('tradingBot/grid/orders-algo-pending', 'private', 'GET', {'cost': 1})
|
143
143
|
private_get_tradingbot_grid_orders_algo_history = privateGetTradingBotGridOrdersAlgoHistory = Entry('tradingBot/grid/orders-algo-history', 'private', 'GET', {'cost': 1})
|
@@ -179,6 +179,8 @@ class ImplicitAPI:
|
|
179
179
|
private_get_finance_sfp_dcd_orders = privateGetFinanceSfpDcdOrders = Entry('finance/sfp/dcd/orders', 'private', 'GET', {'cost': 2})
|
180
180
|
private_get_broker_fd_rebate_per_orders = privateGetBrokerFdRebatePerOrders = Entry('broker/fd/rebate-per-orders', 'private', 'GET', {'cost': 300})
|
181
181
|
private_get_broker_fd_if_rebate = privateGetBrokerFdIfRebate = Entry('broker/fd/if-rebate', 'private', 'GET', {'cost': 5})
|
182
|
+
private_get_affiliate_invitee_detail = privateGetAffiliateInviteeDetail = Entry('affiliate/invitee/detail', 'private', 'GET', {'cost': 1})
|
183
|
+
private_get_users_partner_if_rebate = privateGetUsersPartnerIfRebate = Entry('users/partner/if-rebate', 'private', 'GET', {'cost': 1})
|
182
184
|
private_post_rfq_create_rfq = privatePostRfqCreateRfq = Entry('rfq/create-rfq', 'private', 'POST', {'cost': 4})
|
183
185
|
private_post_rfq_cancel_rfq = privatePostRfqCancelRfq = Entry('rfq/cancel-rfq', 'private', 'POST', {'cost': 4})
|
184
186
|
private_post_rfq_cancel_batch_rfqs = privatePostRfqCancelBatchRfqs = Entry('rfq/cancel-batch-rfqs', 'private', 'POST', {'cost': 10})
|
ccxt/abstract/okx.py
CHANGED
@@ -20,6 +20,7 @@ class ImplicitAPI:
|
|
20
20
|
public_get_market_open_oracle = publicGetMarketOpenOracle = Entry('market/open-oracle', 'public', 'GET', {'cost': 50})
|
21
21
|
public_get_market_exchange_rate = publicGetMarketExchangeRate = Entry('market/exchange-rate', 'public', 'GET', {'cost': 20})
|
22
22
|
public_get_market_index_components = publicGetMarketIndexComponents = Entry('market/index-components', 'public', 'GET', {'cost': 1})
|
23
|
+
public_get_public_economic_calendar = publicGetPublicEconomicCalendar = Entry('public/economic-calendar', 'public', 'GET', {'cost': 50})
|
23
24
|
public_get_market_block_tickers = publicGetMarketBlockTickers = Entry('market/block-tickers', 'public', 'GET', {'cost': 1})
|
24
25
|
public_get_market_block_ticker = publicGetMarketBlockTicker = Entry('market/block-ticker', 'public', 'GET', {'cost': 1})
|
25
26
|
public_get_public_block_trades = publicGetPublicBlockTrades = Entry('public/block-trades', 'public', 'GET', {'cost': 1})
|
@@ -137,7 +138,6 @@ class ImplicitAPI:
|
|
137
138
|
private_get_asset_subaccount_bills = privateGetAssetSubaccountBills = Entry('asset/subaccount/bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
138
139
|
private_get_asset_subaccount_managed_subaccount_bills = privateGetAssetSubaccountManagedSubaccountBills = Entry('asset/subaccount/managed-subaccount-bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
139
140
|
private_get_users_entrust_subaccount_list = privateGetUsersEntrustSubaccountList = Entry('users/entrust-subaccount-list', 'private', 'GET', {'cost': 10})
|
140
|
-
private_get_users_partner_if_rebate = privateGetUsersPartnerIfRebate = Entry('users/partner/if-rebate', 'private', 'GET', {'cost': 1})
|
141
141
|
private_get_account_subaccount_interest_limits = privateGetAccountSubaccountInterestLimits = Entry('account/subaccount/interest-limits', 'private', 'GET', {'cost': 4})
|
142
142
|
private_get_tradingbot_grid_orders_algo_pending = privateGetTradingBotGridOrdersAlgoPending = Entry('tradingBot/grid/orders-algo-pending', 'private', 'GET', {'cost': 1})
|
143
143
|
private_get_tradingbot_grid_orders_algo_history = privateGetTradingBotGridOrdersAlgoHistory = Entry('tradingBot/grid/orders-algo-history', 'private', 'GET', {'cost': 1})
|
@@ -179,6 +179,8 @@ class ImplicitAPI:
|
|
179
179
|
private_get_finance_sfp_dcd_orders = privateGetFinanceSfpDcdOrders = Entry('finance/sfp/dcd/orders', 'private', 'GET', {'cost': 2})
|
180
180
|
private_get_broker_fd_rebate_per_orders = privateGetBrokerFdRebatePerOrders = Entry('broker/fd/rebate-per-orders', 'private', 'GET', {'cost': 300})
|
181
181
|
private_get_broker_fd_if_rebate = privateGetBrokerFdIfRebate = Entry('broker/fd/if-rebate', 'private', 'GET', {'cost': 5})
|
182
|
+
private_get_affiliate_invitee_detail = privateGetAffiliateInviteeDetail = Entry('affiliate/invitee/detail', 'private', 'GET', {'cost': 1})
|
183
|
+
private_get_users_partner_if_rebate = privateGetUsersPartnerIfRebate = Entry('users/partner/if-rebate', 'private', 'GET', {'cost': 1})
|
182
184
|
private_post_rfq_create_rfq = privatePostRfqCreateRfq = Entry('rfq/create-rfq', 'private', 'POST', {'cost': 4})
|
183
185
|
private_post_rfq_cancel_rfq = privatePostRfqCancelRfq = Entry('rfq/cancel-rfq', 'private', 'POST', {'cost': 4})
|
184
186
|
private_post_rfq_cancel_batch_rfqs = privatePostRfqCancelBatchRfqs = Entry('rfq/cancel-batch-rfqs', 'private', 'POST', {'cost': 10})
|
ccxt/ace.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.ace import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType,
|
8
|
+
from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import BadRequest
|
11
11
|
from ccxt.base.errors import InsufficientFunds
|
@@ -249,7 +249,7 @@ class ace(Exchange, ImplicitAPI):
|
|
249
249
|
'info': market,
|
250
250
|
}
|
251
251
|
|
252
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
252
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
253
253
|
#
|
254
254
|
# {
|
255
255
|
# "base_volume":229196.34035399999,
|
@@ -393,7 +393,7 @@ class ace(Exchange, ImplicitAPI):
|
|
393
393
|
orderBook = self.safe_value(response, 'attachment')
|
394
394
|
return self.parse_order_book(orderBook, market['symbol'], None, 'bids', 'asks')
|
395
395
|
|
396
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
396
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
397
397
|
#
|
398
398
|
# {
|
399
399
|
# "changeRate": 0,
|
@@ -475,7 +475,7 @@ class ace(Exchange, ImplicitAPI):
|
|
475
475
|
}
|
476
476
|
return self.safe_string(statuses, status, None)
|
477
477
|
|
478
|
-
def parse_order(self, order, market=None) -> Order:
|
478
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
479
479
|
#
|
480
480
|
# createOrder
|
481
481
|
# "15697850529570392100421100482693"
|
@@ -502,17 +502,17 @@ class ace(Exchange, ImplicitAPI):
|
|
502
502
|
# "type": 1
|
503
503
|
# }
|
504
504
|
#
|
505
|
-
id
|
506
|
-
timestamp = None
|
507
|
-
symbol = None
|
508
|
-
price = None
|
509
|
-
amount = None
|
510
|
-
side = None
|
511
|
-
type = None
|
512
|
-
status = None
|
513
|
-
filled = None
|
514
|
-
remaining = None
|
515
|
-
average = None
|
505
|
+
id: Str
|
506
|
+
timestamp: Int = None
|
507
|
+
symbol: Str = None
|
508
|
+
price: Str = None
|
509
|
+
amount: Str = None
|
510
|
+
side: Str = None
|
511
|
+
type: Str = None
|
512
|
+
status: Str = None
|
513
|
+
filled: Str = None
|
514
|
+
remaining: Str = None
|
515
|
+
average: Str = None
|
516
516
|
if isinstance(order, str):
|
517
517
|
id = order
|
518
518
|
else:
|
@@ -600,7 +600,7 @@ class ace(Exchange, ImplicitAPI):
|
|
600
600
|
data = self.safe_value(response, 'attachment')
|
601
601
|
return self.parse_order(data, market)
|
602
602
|
|
603
|
-
def cancel_order(self, id: str, symbol:
|
603
|
+
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
604
604
|
"""
|
605
605
|
cancels an open order
|
606
606
|
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
|
@@ -624,7 +624,7 @@ class ace(Exchange, ImplicitAPI):
|
|
624
624
|
#
|
625
625
|
return response
|
626
626
|
|
627
|
-
def fetch_order(self, id: str, symbol:
|
627
|
+
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
628
628
|
"""
|
629
629
|
fetches information on an order made by the user
|
630
630
|
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
@@ -662,7 +662,7 @@ class ace(Exchange, ImplicitAPI):
|
|
662
662
|
data = self.safe_value(response, 'attachment')
|
663
663
|
return self.parse_order(data, None)
|
664
664
|
|
665
|
-
def fetch_open_orders(self, symbol:
|
665
|
+
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
666
666
|
"""
|
667
667
|
fetch all unfilled currently open orders
|
668
668
|
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
|
@@ -715,7 +715,7 @@ class ace(Exchange, ImplicitAPI):
|
|
715
715
|
#
|
716
716
|
return self.parse_orders(orders, market, since, limit)
|
717
717
|
|
718
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
718
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
719
719
|
#
|
720
720
|
# fetchOrderTrades
|
721
721
|
# {
|
@@ -762,8 +762,8 @@ class ace(Exchange, ImplicitAPI):
|
|
762
762
|
baseId = self.safe_string(trade, 'baseCurrencyName')
|
763
763
|
if quoteId is not None and baseId is not None:
|
764
764
|
symbol = baseId + '/' + quoteId
|
765
|
-
side = None
|
766
|
-
tradeSide = self.
|
765
|
+
side: Str = None
|
766
|
+
tradeSide = self.safe_integer(trade, 'buyOrSell')
|
767
767
|
if tradeSide is not None:
|
768
768
|
side = 'buy' if (tradeSide == 1) else 'sell'
|
769
769
|
feeString = self.safe_string(trade, 'fee')
|
@@ -790,7 +790,7 @@ class ace(Exchange, ImplicitAPI):
|
|
790
790
|
'datetime': self.iso8601(timestamp),
|
791
791
|
}, market)
|
792
792
|
|
793
|
-
def fetch_order_trades(self, id: str, symbol:
|
793
|
+
def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
794
794
|
"""
|
795
795
|
fetch all the trades made from a single order
|
796
796
|
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-history
|
@@ -844,7 +844,7 @@ class ace(Exchange, ImplicitAPI):
|
|
844
844
|
trades = self.safe_value(data, 'trades', [])
|
845
845
|
return self.parse_trades(trades, market, since, limit)
|
846
846
|
|
847
|
-
def fetch_my_trades(self, symbol:
|
847
|
+
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
848
848
|
"""
|
849
849
|
fetch all trades made by the user
|
850
850
|
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---trade-list
|
ccxt/alpaca.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.alpaca import ImplicitAPI
|
8
|
-
from ccxt.base.types import Int, Market, Order, OrderBook, OrderSide, OrderType,
|
8
|
+
from ccxt.base.types import Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Trade
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import PermissionDenied
|
@@ -470,7 +470,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
470
470
|
ohlcvs = self.safe_value(bars, market['id'], {})
|
471
471
|
return self.parse_ohlcvs(ohlcvs, market, timeframe, since, limit)
|
472
472
|
|
473
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
473
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
474
474
|
#
|
475
475
|
# {
|
476
476
|
# "c":22895,
|
@@ -576,7 +576,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
576
576
|
#
|
577
577
|
return self.parse_order(order, market)
|
578
578
|
|
579
|
-
def cancel_order(self, id: str, symbol:
|
579
|
+
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
580
580
|
"""
|
581
581
|
cancels an open order
|
582
582
|
:param str id: order id
|
@@ -596,7 +596,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
596
596
|
#
|
597
597
|
return self.safe_value(response, 'message', {})
|
598
598
|
|
599
|
-
def fetch_order(self, id: str, symbol:
|
599
|
+
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
600
600
|
"""
|
601
601
|
fetches information on an order made by the user
|
602
602
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -612,7 +612,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
612
612
|
market = self.safe_market(marketId)
|
613
613
|
return self.parse_order(order, market)
|
614
614
|
|
615
|
-
def fetch_open_orders(self, symbol:
|
615
|
+
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
616
616
|
"""
|
617
617
|
fetch all unfilled currently open orders
|
618
618
|
:param str symbol: unified market symbol
|
@@ -628,7 +628,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
628
628
|
orders = self.privateGetOrders(params)
|
629
629
|
return self.parse_orders(orders, market, since, limit)
|
630
630
|
|
631
|
-
def parse_order(self, order, market=None) -> Order:
|
631
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
632
632
|
#
|
633
633
|
# {
|
634
634
|
# "id":"6ecfcc34-4bed-4b53-83ba-c564aa832a81",
|
@@ -727,7 +727,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
727
727
|
}
|
728
728
|
return self.safe_string(timeInForces, timeInForce, timeInForce)
|
729
729
|
|
730
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
730
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
731
731
|
#
|
732
732
|
# {
|
733
733
|
# "t":"2022-06-14T05:00:00.027869Z",
|
@@ -743,7 +743,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
743
743
|
datetime = self.safe_string(trade, 't')
|
744
744
|
timestamp = self.parse8601(datetime)
|
745
745
|
alpacaSide = self.safe_string(trade, 'tks')
|
746
|
-
side
|
746
|
+
side: str
|
747
747
|
if alpacaSide == 'B':
|
748
748
|
side = 'buy'
|
749
749
|
elif alpacaSide == 'S':
|