ccxt 4.3.30__py2.py3-none-any.whl → 4.3.32__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/binance.py +2 -0
- ccxt/abstract/binancecoinm.py +2 -0
- ccxt/abstract/binanceus.py +2 -0
- ccxt/abstract/binanceusdm.py +2 -0
- ccxt/ace.py +14 -14
- ccxt/alpaca.py +16 -16
- ccxt/ascendex.py +46 -46
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +14 -14
- ccxt/async_support/alpaca.py +16 -16
- ccxt/async_support/ascendex.py +46 -46
- ccxt/async_support/base/exchange.py +23 -23
- ccxt/async_support/bigone.py +32 -32
- ccxt/async_support/binance.py +105 -96
- ccxt/async_support/bingx.py +21 -21
- ccxt/async_support/bit2c.py +13 -13
- ccxt/async_support/bitbank.py +19 -19
- ccxt/async_support/bitbns.py +17 -17
- ccxt/async_support/bitfinex.py +24 -24
- ccxt/async_support/bitfinex2.py +142 -109
- ccxt/async_support/bitflyer.py +23 -23
- ccxt/async_support/bitget.py +76 -76
- ccxt/async_support/bithumb.py +20 -20
- ccxt/async_support/bitmart.py +55 -55
- ccxt/async_support/bitmex.py +41 -41
- ccxt/async_support/bitopro.py +30 -30
- ccxt/async_support/bitrue.py +37 -37
- ccxt/async_support/bitso.py +30 -30
- ccxt/async_support/bitstamp.py +31 -31
- ccxt/async_support/bitteam.py +26 -26
- ccxt/async_support/bitvavo.py +27 -27
- ccxt/async_support/bl3p.py +8 -8
- ccxt/async_support/blockchaincom.py +24 -24
- ccxt/async_support/blofin.py +37 -37
- ccxt/async_support/btcalpha.py +19 -19
- ccxt/async_support/btcbox.py +11 -11
- ccxt/async_support/btcmarkets.py +22 -22
- ccxt/async_support/btcturk.py +13 -13
- ccxt/async_support/bybit.py +96 -96
- ccxt/async_support/cex.py +21 -21
- ccxt/async_support/coinbase.py +53 -53
- ccxt/async_support/coinbaseexchange.py +29 -29
- ccxt/async_support/coinbaseinternational.py +32 -32
- ccxt/async_support/coincheck.py +14 -14
- ccxt/async_support/coinex.py +208 -175
- ccxt/async_support/coinlist.py +35 -35
- ccxt/async_support/coinmate.py +22 -22
- ccxt/async_support/coinmetro.py +22 -22
- ccxt/async_support/coinone.py +18 -18
- ccxt/async_support/coinsph.py +32 -32
- ccxt/async_support/coinspot.py +8 -8
- ccxt/async_support/cryptocom.py +43 -43
- ccxt/async_support/currencycom.py +33 -33
- ccxt/async_support/delta.py +35 -35
- ccxt/async_support/deribit.py +54 -54
- ccxt/async_support/digifinex.py +56 -56
- ccxt/async_support/exmo.py +34 -34
- ccxt/async_support/gate.py +60 -60
- ccxt/async_support/gemini.py +24 -24
- ccxt/async_support/hitbtc.py +51 -51
- ccxt/async_support/hollaex.py +29 -29
- ccxt/async_support/htx.py +73 -73
- ccxt/async_support/huobijp.py +30 -30
- ccxt/async_support/hyperliquid.py +58 -58
- ccxt/async_support/idex.py +33 -33
- ccxt/async_support/independentreserve.py +12 -12
- ccxt/async_support/indodax.py +21 -21
- ccxt/async_support/kraken.py +46 -51
- ccxt/async_support/krakenfutures.py +29 -29
- ccxt/async_support/kucoin.py +51 -51
- ccxt/async_support/kucoinfutures.py +33 -33
- ccxt/async_support/kuna.py +27 -27
- ccxt/async_support/latoken.py +27 -27
- ccxt/async_support/lbank.py +35 -35
- ccxt/async_support/luno.py +19 -19
- ccxt/async_support/lykke.py +20 -20
- ccxt/async_support/mercado.py +17 -17
- ccxt/async_support/mexc.py +64 -64
- ccxt/async_support/ndax.py +38 -38
- ccxt/async_support/novadax.py +26 -26
- ccxt/async_support/oceanex.py +21 -21
- ccxt/async_support/okcoin.py +35 -35
- ccxt/async_support/okx.py +85 -85
- ccxt/async_support/onetrading.py +32 -32
- ccxt/async_support/p2b.py +14 -14
- ccxt/async_support/paymium.py +12 -12
- ccxt/async_support/phemex.py +50 -50
- ccxt/async_support/poloniex.py +35 -35
- ccxt/async_support/poloniexfutures.py +25 -21
- ccxt/async_support/probit.py +30 -30
- ccxt/async_support/timex.py +22 -22
- ccxt/async_support/tokocrypto.py +26 -26
- ccxt/async_support/tradeogre.py +12 -12
- ccxt/async_support/upbit.py +28 -28
- ccxt/async_support/wavesexchange.py +33 -33
- ccxt/async_support/wazirx.py +21 -21
- ccxt/async_support/whitebit.py +37 -37
- ccxt/async_support/woo.py +51 -51
- ccxt/async_support/woofipro.py +46 -46
- ccxt/async_support/yobit.py +20 -20
- ccxt/async_support/zaif.py +12 -12
- ccxt/async_support/zonda.py +22 -22
- ccxt/base/exchange.py +48 -36
- ccxt/base/types.py +13 -0
- ccxt/bigone.py +32 -32
- ccxt/binance.py +105 -96
- ccxt/bingx.py +21 -21
- ccxt/bit2c.py +13 -13
- ccxt/bitbank.py +19 -19
- ccxt/bitbns.py +17 -17
- ccxt/bitfinex.py +24 -24
- ccxt/bitfinex2.py +142 -109
- ccxt/bitflyer.py +23 -23
- ccxt/bitget.py +76 -76
- ccxt/bithumb.py +20 -20
- ccxt/bitmart.py +55 -55
- ccxt/bitmex.py +41 -41
- ccxt/bitopro.py +30 -30
- ccxt/bitrue.py +37 -37
- ccxt/bitso.py +30 -30
- ccxt/bitstamp.py +31 -31
- ccxt/bitteam.py +26 -26
- ccxt/bitvavo.py +27 -27
- ccxt/bl3p.py +8 -8
- ccxt/blockchaincom.py +24 -24
- ccxt/blofin.py +37 -37
- ccxt/btcalpha.py +19 -19
- ccxt/btcbox.py +11 -11
- ccxt/btcmarkets.py +22 -22
- ccxt/btcturk.py +13 -13
- ccxt/bybit.py +96 -96
- ccxt/cex.py +21 -21
- ccxt/coinbase.py +53 -53
- ccxt/coinbaseexchange.py +29 -29
- ccxt/coinbaseinternational.py +32 -32
- ccxt/coincheck.py +14 -14
- ccxt/coinex.py +208 -175
- ccxt/coinlist.py +35 -35
- ccxt/coinmate.py +22 -22
- ccxt/coinmetro.py +22 -22
- ccxt/coinone.py +18 -18
- ccxt/coinsph.py +32 -32
- ccxt/coinspot.py +8 -8
- ccxt/cryptocom.py +43 -43
- ccxt/currencycom.py +33 -33
- ccxt/delta.py +35 -35
- ccxt/deribit.py +54 -54
- ccxt/digifinex.py +56 -56
- ccxt/exmo.py +34 -34
- ccxt/gate.py +60 -60
- ccxt/gemini.py +24 -24
- ccxt/hitbtc.py +51 -51
- ccxt/hollaex.py +29 -29
- ccxt/htx.py +73 -73
- ccxt/huobijp.py +30 -30
- ccxt/hyperliquid.py +58 -58
- ccxt/idex.py +33 -33
- ccxt/independentreserve.py +12 -12
- ccxt/indodax.py +21 -21
- ccxt/kraken.py +46 -51
- ccxt/krakenfutures.py +29 -29
- ccxt/kucoin.py +51 -51
- ccxt/kucoinfutures.py +33 -33
- ccxt/kuna.py +27 -27
- ccxt/latoken.py +27 -27
- ccxt/lbank.py +35 -35
- ccxt/luno.py +19 -19
- ccxt/lykke.py +20 -20
- ccxt/mercado.py +17 -17
- ccxt/mexc.py +64 -64
- ccxt/ndax.py +38 -38
- ccxt/novadax.py +26 -26
- ccxt/oceanex.py +21 -21
- ccxt/okcoin.py +35 -35
- ccxt/okx.py +85 -85
- ccxt/onetrading.py +32 -32
- ccxt/p2b.py +14 -14
- ccxt/paymium.py +12 -12
- ccxt/phemex.py +50 -50
- ccxt/poloniex.py +35 -35
- ccxt/poloniexfutures.py +25 -21
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +8 -8
- ccxt/pro/ascendex.py +4 -4
- ccxt/pro/binance.py +56 -56
- ccxt/pro/bingx.py +5 -5
- ccxt/pro/bitfinex.py +6 -6
- ccxt/pro/bitfinex2.py +10 -10
- ccxt/pro/bitget.py +17 -17
- ccxt/pro/bithumb.py +6 -6
- ccxt/pro/bitmart.py +8 -8
- ccxt/pro/bitmex.py +16 -16
- ccxt/pro/bitopro.py +4 -4
- ccxt/pro/bitrue.py +8 -8
- ccxt/pro/bitstamp.py +5 -5
- ccxt/pro/bitvavo.py +14 -14
- ccxt/pro/blockchaincom.py +7 -7
- ccxt/pro/bybit.py +12 -12
- ccxt/pro/cex.py +20 -20
- ccxt/pro/coinbase.py +32 -2
- ccxt/pro/coinbaseexchange.py +10 -10
- ccxt/pro/coinbaseinternational.py +4 -4
- ccxt/pro/coincheck.py +2 -2
- ccxt/pro/coinex.py +15 -15
- ccxt/pro/coinone.py +4 -4
- ccxt/pro/cryptocom.py +11 -11
- ccxt/pro/currencycom.py +4 -4
- ccxt/pro/deribit.py +9 -9
- ccxt/pro/exmo.py +9 -9
- ccxt/pro/gate.py +12 -12
- ccxt/pro/gemini.py +11 -11
- ccxt/pro/hitbtc.py +13 -13
- ccxt/pro/hollaex.py +6 -6
- ccxt/pro/htx.py +15 -15
- ccxt/pro/huobijp.py +16 -16
- ccxt/pro/hyperliquid.py +9 -9
- ccxt/pro/idex.py +12 -12
- ccxt/pro/independentreserve.py +2 -2
- ccxt/pro/kraken.py +14 -14
- ccxt/pro/krakenfutures.py +12 -12
- ccxt/pro/kucoin.py +12 -12
- ccxt/pro/kucoinfutures.py +16 -16
- ccxt/pro/lbank.py +12 -12
- ccxt/pro/luno.py +4 -4
- ccxt/pro/mexc.py +14 -14
- ccxt/pro/ndax.py +12 -12
- ccxt/pro/okcoin.py +6 -6
- ccxt/pro/okx.py +30 -30
- ccxt/pro/onetrading.py +13 -13
- ccxt/pro/p2b.py +2 -2
- ccxt/pro/phemex.py +9 -9
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +10 -10
- ccxt/pro/probit.py +8 -8
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +10 -10
- ccxt/pro/whitebit.py +8 -8
- ccxt/pro/woo.py +14 -14
- ccxt/pro/woofipro.py +14 -14
- ccxt/probit.py +30 -30
- ccxt/test/base/test_shared_methods.py +1 -0
- ccxt/test/test_async.py +1 -1
- ccxt/test/test_sync.py +1 -1
- ccxt/timex.py +22 -22
- ccxt/tokocrypto.py +26 -26
- ccxt/tradeogre.py +12 -12
- ccxt/upbit.py +28 -28
- ccxt/wavesexchange.py +33 -33
- ccxt/wazirx.py +21 -21
- ccxt/whitebit.py +37 -37
- ccxt/woo.py +51 -51
- ccxt/woofipro.py +46 -46
- ccxt/yobit.py +20 -20
- ccxt/zaif.py +12 -12
- ccxt/zonda.py +22 -22
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/METADATA +4 -4
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/RECORD +260 -260
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/WHEEL +0 -0
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/abstract/binance.py
CHANGED
@@ -519,6 +519,7 @@ class ImplicitAPI:
|
|
519
519
|
fapiprivate_get_order_asyn_id = fapiPrivateGetOrderAsynId = Entry('order/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
520
520
|
fapiprivate_get_trade_asyn = fapiPrivateGetTradeAsyn = Entry('trade/asyn', 'fapiPrivate', 'GET', {'cost': 1000})
|
521
521
|
fapiprivate_get_trade_asyn_id = fapiPrivateGetTradeAsynId = Entry('trade/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
522
|
+
fapiprivate_get_feeburn = fapiPrivateGetFeeBurn = Entry('feeBurn', 'fapiPrivate', 'GET', {'cost': 1})
|
522
523
|
fapiprivate_post_batchorders = fapiPrivatePostBatchOrders = Entry('batchOrders', 'fapiPrivate', 'POST', {'cost': 5})
|
523
524
|
fapiprivate_post_positionside_dual = fapiPrivatePostPositionSideDual = Entry('positionSide/dual', 'fapiPrivate', 'POST', {'cost': 1})
|
524
525
|
fapiprivate_post_positionmargin = fapiPrivatePostPositionMargin = Entry('positionMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
@@ -530,6 +531,7 @@ class ImplicitAPI:
|
|
530
531
|
fapiprivate_post_multiassetsmargin = fapiPrivatePostMultiAssetsMargin = Entry('multiAssetsMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
531
532
|
fapiprivate_post_apireferral_customization = fapiPrivatePostApiReferralCustomization = Entry('apiReferral/customization', 'fapiPrivate', 'POST', {'cost': 1})
|
532
533
|
fapiprivate_post_apireferral_usercustomization = fapiPrivatePostApiReferralUserCustomization = Entry('apiReferral/userCustomization', 'fapiPrivate', 'POST', {'cost': 1})
|
534
|
+
fapiprivate_post_feeburn = fapiPrivatePostFeeBurn = Entry('feeBurn', 'fapiPrivate', 'POST', {'cost': 1})
|
533
535
|
fapiprivate_put_listenkey = fapiPrivatePutListenKey = Entry('listenKey', 'fapiPrivate', 'PUT', {'cost': 1})
|
534
536
|
fapiprivate_put_order = fapiPrivatePutOrder = Entry('order', 'fapiPrivate', 'PUT', {'cost': 1})
|
535
537
|
fapiprivate_put_batchorders = fapiPrivatePutBatchOrders = Entry('batchOrders', 'fapiPrivate', 'PUT', {'cost': 5})
|
ccxt/abstract/binancecoinm.py
CHANGED
@@ -519,6 +519,7 @@ class ImplicitAPI:
|
|
519
519
|
fapiprivate_get_order_asyn_id = fapiPrivateGetOrderAsynId = Entry('order/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
520
520
|
fapiprivate_get_trade_asyn = fapiPrivateGetTradeAsyn = Entry('trade/asyn', 'fapiPrivate', 'GET', {'cost': 1000})
|
521
521
|
fapiprivate_get_trade_asyn_id = fapiPrivateGetTradeAsynId = Entry('trade/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
522
|
+
fapiprivate_get_feeburn = fapiPrivateGetFeeBurn = Entry('feeBurn', 'fapiPrivate', 'GET', {'cost': 1})
|
522
523
|
fapiprivate_post_batchorders = fapiPrivatePostBatchOrders = Entry('batchOrders', 'fapiPrivate', 'POST', {'cost': 5})
|
523
524
|
fapiprivate_post_positionside_dual = fapiPrivatePostPositionSideDual = Entry('positionSide/dual', 'fapiPrivate', 'POST', {'cost': 1})
|
524
525
|
fapiprivate_post_positionmargin = fapiPrivatePostPositionMargin = Entry('positionMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
@@ -530,6 +531,7 @@ class ImplicitAPI:
|
|
530
531
|
fapiprivate_post_multiassetsmargin = fapiPrivatePostMultiAssetsMargin = Entry('multiAssetsMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
531
532
|
fapiprivate_post_apireferral_customization = fapiPrivatePostApiReferralCustomization = Entry('apiReferral/customization', 'fapiPrivate', 'POST', {'cost': 1})
|
532
533
|
fapiprivate_post_apireferral_usercustomization = fapiPrivatePostApiReferralUserCustomization = Entry('apiReferral/userCustomization', 'fapiPrivate', 'POST', {'cost': 1})
|
534
|
+
fapiprivate_post_feeburn = fapiPrivatePostFeeBurn = Entry('feeBurn', 'fapiPrivate', 'POST', {'cost': 1})
|
533
535
|
fapiprivate_put_listenkey = fapiPrivatePutListenKey = Entry('listenKey', 'fapiPrivate', 'PUT', {'cost': 1})
|
534
536
|
fapiprivate_put_order = fapiPrivatePutOrder = Entry('order', 'fapiPrivate', 'PUT', {'cost': 1})
|
535
537
|
fapiprivate_put_batchorders = fapiPrivatePutBatchOrders = Entry('batchOrders', 'fapiPrivate', 'PUT', {'cost': 5})
|
ccxt/abstract/binanceus.py
CHANGED
@@ -571,6 +571,7 @@ class ImplicitAPI:
|
|
571
571
|
fapiprivate_get_order_asyn_id = fapiPrivateGetOrderAsynId = Entry('order/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
572
572
|
fapiprivate_get_trade_asyn = fapiPrivateGetTradeAsyn = Entry('trade/asyn', 'fapiPrivate', 'GET', {'cost': 1000})
|
573
573
|
fapiprivate_get_trade_asyn_id = fapiPrivateGetTradeAsynId = Entry('trade/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
574
|
+
fapiprivate_get_feeburn = fapiPrivateGetFeeBurn = Entry('feeBurn', 'fapiPrivate', 'GET', {'cost': 1})
|
574
575
|
fapiprivate_post_batchorders = fapiPrivatePostBatchOrders = Entry('batchOrders', 'fapiPrivate', 'POST', {'cost': 5})
|
575
576
|
fapiprivate_post_positionside_dual = fapiPrivatePostPositionSideDual = Entry('positionSide/dual', 'fapiPrivate', 'POST', {'cost': 1})
|
576
577
|
fapiprivate_post_positionmargin = fapiPrivatePostPositionMargin = Entry('positionMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
@@ -582,6 +583,7 @@ class ImplicitAPI:
|
|
582
583
|
fapiprivate_post_multiassetsmargin = fapiPrivatePostMultiAssetsMargin = Entry('multiAssetsMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
583
584
|
fapiprivate_post_apireferral_customization = fapiPrivatePostApiReferralCustomization = Entry('apiReferral/customization', 'fapiPrivate', 'POST', {'cost': 1})
|
584
585
|
fapiprivate_post_apireferral_usercustomization = fapiPrivatePostApiReferralUserCustomization = Entry('apiReferral/userCustomization', 'fapiPrivate', 'POST', {'cost': 1})
|
586
|
+
fapiprivate_post_feeburn = fapiPrivatePostFeeBurn = Entry('feeBurn', 'fapiPrivate', 'POST', {'cost': 1})
|
585
587
|
fapiprivate_put_listenkey = fapiPrivatePutListenKey = Entry('listenKey', 'fapiPrivate', 'PUT', {'cost': 1})
|
586
588
|
fapiprivate_put_order = fapiPrivatePutOrder = Entry('order', 'fapiPrivate', 'PUT', {'cost': 1})
|
587
589
|
fapiprivate_put_batchorders = fapiPrivatePutBatchOrders = Entry('batchOrders', 'fapiPrivate', 'PUT', {'cost': 5})
|
ccxt/abstract/binanceusdm.py
CHANGED
@@ -519,6 +519,7 @@ class ImplicitAPI:
|
|
519
519
|
fapiprivate_get_order_asyn_id = fapiPrivateGetOrderAsynId = Entry('order/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
520
520
|
fapiprivate_get_trade_asyn = fapiPrivateGetTradeAsyn = Entry('trade/asyn', 'fapiPrivate', 'GET', {'cost': 1000})
|
521
521
|
fapiprivate_get_trade_asyn_id = fapiPrivateGetTradeAsynId = Entry('trade/asyn/id', 'fapiPrivate', 'GET', {'cost': 10})
|
522
|
+
fapiprivate_get_feeburn = fapiPrivateGetFeeBurn = Entry('feeBurn', 'fapiPrivate', 'GET', {'cost': 1})
|
522
523
|
fapiprivate_post_batchorders = fapiPrivatePostBatchOrders = Entry('batchOrders', 'fapiPrivate', 'POST', {'cost': 5})
|
523
524
|
fapiprivate_post_positionside_dual = fapiPrivatePostPositionSideDual = Entry('positionSide/dual', 'fapiPrivate', 'POST', {'cost': 1})
|
524
525
|
fapiprivate_post_positionmargin = fapiPrivatePostPositionMargin = Entry('positionMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
@@ -530,6 +531,7 @@ class ImplicitAPI:
|
|
530
531
|
fapiprivate_post_multiassetsmargin = fapiPrivatePostMultiAssetsMargin = Entry('multiAssetsMargin', 'fapiPrivate', 'POST', {'cost': 1})
|
531
532
|
fapiprivate_post_apireferral_customization = fapiPrivatePostApiReferralCustomization = Entry('apiReferral/customization', 'fapiPrivate', 'POST', {'cost': 1})
|
532
533
|
fapiprivate_post_apireferral_usercustomization = fapiPrivatePostApiReferralUserCustomization = Entry('apiReferral/userCustomization', 'fapiPrivate', 'POST', {'cost': 1})
|
534
|
+
fapiprivate_post_feeburn = fapiPrivatePostFeeBurn = Entry('feeBurn', 'fapiPrivate', 'POST', {'cost': 1})
|
533
535
|
fapiprivate_put_listenkey = fapiPrivatePutListenKey = Entry('listenKey', 'fapiPrivate', 'PUT', {'cost': 1})
|
534
536
|
fapiprivate_put_order = fapiPrivatePutOrder = Entry('order', 'fapiPrivate', 'PUT', {'cost': 1})
|
535
537
|
fapiprivate_put_batchorders = fapiPrivatePutBatchOrders = Entry('batchOrders', 'fapiPrivate', 'PUT', {'cost': 5})
|
ccxt/ace.py
CHANGED
@@ -356,7 +356,7 @@ class ace(Exchange, ImplicitAPI):
|
|
356
356
|
"""
|
357
357
|
self.load_markets()
|
358
358
|
market = self.market(symbol)
|
359
|
-
request = {
|
359
|
+
request: dict = {
|
360
360
|
'quoteCurrencyId': market['quoteId'],
|
361
361
|
'baseCurrencyId': market['baseId'],
|
362
362
|
}
|
@@ -444,7 +444,7 @@ class ace(Exchange, ImplicitAPI):
|
|
444
444
|
"""
|
445
445
|
self.load_markets()
|
446
446
|
market = self.market(symbol)
|
447
|
-
request = {
|
447
|
+
request: dict = {
|
448
448
|
'duration': self.timeframes[timeframe],
|
449
449
|
'quoteCurrencyId': market['quoteId'],
|
450
450
|
'baseCurrencyId': market['baseId'],
|
@@ -475,8 +475,8 @@ class ace(Exchange, ImplicitAPI):
|
|
475
475
|
#
|
476
476
|
return self.parse_ohlcvs(data, market, timeframe, since, limit)
|
477
477
|
|
478
|
-
def parse_order_status(self, status):
|
479
|
-
statuses = {
|
478
|
+
def parse_order_status(self, status: Str):
|
479
|
+
statuses: dict = {
|
480
480
|
'0': 'open',
|
481
481
|
'1': 'open',
|
482
482
|
'2': 'closed',
|
@@ -485,7 +485,7 @@ class ace(Exchange, ImplicitAPI):
|
|
485
485
|
}
|
486
486
|
return self.safe_string(statuses, status, None)
|
487
487
|
|
488
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
488
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
489
489
|
#
|
490
490
|
# createOrder
|
491
491
|
# "15697850529570392100421100482693"
|
@@ -589,7 +589,7 @@ class ace(Exchange, ImplicitAPI):
|
|
589
589
|
market = self.market(symbol)
|
590
590
|
orderType = type.upper()
|
591
591
|
orderSide = side.upper()
|
592
|
-
request = {
|
592
|
+
request: dict = {
|
593
593
|
'baseCurrencyId': market['baseId'],
|
594
594
|
'quoteCurrencyId': market['quoteId'],
|
595
595
|
'type': 1 if (orderType == 'LIMIT') else 2,
|
@@ -620,7 +620,7 @@ class ace(Exchange, ImplicitAPI):
|
|
620
620
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
621
621
|
"""
|
622
622
|
self.load_markets()
|
623
|
-
request = {
|
623
|
+
request: dict = {
|
624
624
|
'orderNo': id,
|
625
625
|
}
|
626
626
|
response = self.privatePostV2OrderCancel(self.extend(request, params))
|
@@ -643,7 +643,7 @@ class ace(Exchange, ImplicitAPI):
|
|
643
643
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
644
644
|
"""
|
645
645
|
self.load_markets()
|
646
|
-
request = {
|
646
|
+
request: dict = {
|
647
647
|
'orderNo': id,
|
648
648
|
}
|
649
649
|
response = self.privatePostV2OrderShowOrderStatus(self.extend(request, params))
|
@@ -686,7 +686,7 @@ class ace(Exchange, ImplicitAPI):
|
|
686
686
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
687
687
|
self.load_markets()
|
688
688
|
market = self.market(symbol)
|
689
|
-
request = {
|
689
|
+
request: dict = {
|
690
690
|
'quoteCurrencyId': market['quoteId'],
|
691
691
|
'baseCurrencyId': market['baseId'],
|
692
692
|
# 'start': 0,
|
@@ -726,7 +726,7 @@ class ace(Exchange, ImplicitAPI):
|
|
726
726
|
#
|
727
727
|
return self.parse_orders(orders, market, since, limit)
|
728
728
|
|
729
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
729
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
730
730
|
#
|
731
731
|
# fetchOrderTrades
|
732
732
|
# {
|
@@ -814,7 +814,7 @@ class ace(Exchange, ImplicitAPI):
|
|
814
814
|
"""
|
815
815
|
self.load_markets()
|
816
816
|
market = self.safe_market(symbol)
|
817
|
-
request = {
|
817
|
+
request: dict = {
|
818
818
|
'orderNo': id,
|
819
819
|
}
|
820
820
|
response = self.privatePostV2OrderShowOrderHistory(self.extend(request, params))
|
@@ -867,7 +867,7 @@ class ace(Exchange, ImplicitAPI):
|
|
867
867
|
"""
|
868
868
|
self.load_markets()
|
869
869
|
market = self.safe_market(symbol)
|
870
|
-
request = {
|
870
|
+
request: dict = {
|
871
871
|
# 'buyOrSell': 1,
|
872
872
|
# 'start': 0,
|
873
873
|
}
|
@@ -922,7 +922,7 @@ class ace(Exchange, ImplicitAPI):
|
|
922
922
|
# }
|
923
923
|
# ]
|
924
924
|
#
|
925
|
-
result = {
|
925
|
+
result: dict = {
|
926
926
|
'info': response,
|
927
927
|
}
|
928
928
|
for i in range(0, len(response)):
|
@@ -931,7 +931,7 @@ class ace(Exchange, ImplicitAPI):
|
|
931
931
|
code = self.safe_currency_code(currencyId)
|
932
932
|
amount = self.safe_string(balance, 'amount')
|
933
933
|
available = self.safe_string(balance, 'cashAmount')
|
934
|
-
account = {
|
934
|
+
account: dict = {
|
935
935
|
'free': available,
|
936
936
|
'total': amount,
|
937
937
|
}
|
ccxt/alpaca.py
CHANGED
@@ -310,7 +310,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
310
310
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
311
311
|
:returns dict[]: an array of objects representing market data
|
312
312
|
"""
|
313
|
-
request = {
|
313
|
+
request: dict = {
|
314
314
|
'asset_class': 'crypto',
|
315
315
|
'status': 'active',
|
316
316
|
}
|
@@ -445,7 +445,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
445
445
|
marketId = market['id']
|
446
446
|
loc = self.safe_string(params, 'loc', 'us')
|
447
447
|
method = self.safe_string(params, 'method', 'marketPublicGetV1beta3CryptoLocTrades')
|
448
|
-
request = {
|
448
|
+
request: dict = {
|
449
449
|
'symbols': marketId,
|
450
450
|
'loc': loc,
|
451
451
|
}
|
@@ -511,7 +511,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
511
511
|
market = self.market(symbol)
|
512
512
|
id = market['id']
|
513
513
|
loc = self.safe_string(params, 'loc', 'us')
|
514
|
-
request = {
|
514
|
+
request: dict = {
|
515
515
|
'symbols': id,
|
516
516
|
'loc': loc,
|
517
517
|
}
|
@@ -577,7 +577,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
577
577
|
marketId = market['id']
|
578
578
|
loc = self.safe_string(params, 'loc', 'us')
|
579
579
|
method = self.safe_string(params, 'method', 'marketPublicGetV1beta3CryptoLocBars')
|
580
|
-
request = {
|
580
|
+
request: dict = {
|
581
581
|
'symbols': marketId,
|
582
582
|
'loc': loc,
|
583
583
|
}
|
@@ -686,7 +686,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
686
686
|
self.load_markets()
|
687
687
|
market = self.market(symbol)
|
688
688
|
id = market['id']
|
689
|
-
request = {
|
689
|
+
request: dict = {
|
690
690
|
'symbol': id,
|
691
691
|
'qty': self.amount_to_precision(symbol, amount),
|
692
692
|
'side': side,
|
@@ -762,7 +762,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
762
762
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
763
763
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
764
764
|
"""
|
765
|
-
request = {
|
765
|
+
request: dict = {
|
766
766
|
'order_id': id,
|
767
767
|
}
|
768
768
|
response = self.traderPrivateDeleteV2OrdersOrderId(self.extend(request, params))
|
@@ -798,7 +798,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
798
798
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
799
799
|
"""
|
800
800
|
self.load_markets()
|
801
|
-
request = {
|
801
|
+
request: dict = {
|
802
802
|
'order_id': id,
|
803
803
|
}
|
804
804
|
order = self.traderPrivateGetV2OrdersOrderId(self.extend(request, params))
|
@@ -818,7 +818,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
818
818
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
819
819
|
"""
|
820
820
|
self.load_markets()
|
821
|
-
request = {
|
821
|
+
request: dict = {
|
822
822
|
'status': 'all',
|
823
823
|
}
|
824
824
|
market = None
|
@@ -887,7 +887,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
887
887
|
:param int [params.until]: the latest time in ms to fetch orders for
|
888
888
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
889
889
|
"""
|
890
|
-
request = {
|
890
|
+
request: dict = {
|
891
891
|
'status': 'open',
|
892
892
|
}
|
893
893
|
return self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
@@ -903,12 +903,12 @@ class alpaca(Exchange, ImplicitAPI):
|
|
903
903
|
:param int [params.until]: the latest time in ms to fetch orders for
|
904
904
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
905
905
|
"""
|
906
|
-
request = {
|
906
|
+
request: dict = {
|
907
907
|
'status': 'closed',
|
908
908
|
}
|
909
909
|
return self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
910
910
|
|
911
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
911
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
912
912
|
#
|
913
913
|
# {
|
914
914
|
# "id":"6ecfcc34-4bed-4b53-83ba-c564aa832a81",
|
@@ -991,8 +991,8 @@ class alpaca(Exchange, ImplicitAPI):
|
|
991
991
|
'info': order,
|
992
992
|
}, market)
|
993
993
|
|
994
|
-
def parse_order_status(self, status):
|
995
|
-
statuses = {
|
994
|
+
def parse_order_status(self, status: Str):
|
995
|
+
statuses: dict = {
|
996
996
|
'pending_new': 'open',
|
997
997
|
'accepted': 'open',
|
998
998
|
'new': 'open',
|
@@ -1002,13 +1002,13 @@ class alpaca(Exchange, ImplicitAPI):
|
|
1002
1002
|
}
|
1003
1003
|
return self.safe_string(statuses, status, status)
|
1004
1004
|
|
1005
|
-
def parse_time_in_force(self, timeInForce):
|
1006
|
-
timeInForces = {
|
1005
|
+
def parse_time_in_force(self, timeInForce: Str):
|
1006
|
+
timeInForces: dict = {
|
1007
1007
|
'day': 'Day',
|
1008
1008
|
}
|
1009
1009
|
return self.safe_string(timeInForces, timeInForce, timeInForce)
|
1010
1010
|
|
1011
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
1011
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
1012
1012
|
#
|
1013
1013
|
# {
|
1014
1014
|
# "t":"2022-06-14T05:00:00.027869Z",
|