ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__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/okcoin.py +70 -206
- ccxt/ace.py +12 -12
- ccxt/ascendex.py +5 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +12 -12
- ccxt/async_support/ascendex.py +5 -5
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +184 -184
- ccxt/async_support/bingx.py +48 -48
- ccxt/async_support/bitbank.py +14 -14
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +35 -35
- ccxt/async_support/bitflyer.py +17 -17
- ccxt/async_support/bitforex.py +9 -9
- ccxt/async_support/bitget.py +433 -215
- ccxt/async_support/bitmart.py +39 -39
- ccxt/async_support/bitmex.py +7 -7
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcalpha.py +7 -7
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +58 -58
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +13 -13
- ccxt/async_support/coinbasepro.py +15 -15
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +4 -4
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +28 -28
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +26 -26
- ccxt/async_support/deribit.py +9 -9
- ccxt/async_support/digifinex.py +38 -38
- ccxt/async_support/exmo.py +18 -18
- ccxt/async_support/gate.py +59 -59
- ccxt/async_support/gemini.py +4 -4
- ccxt/async_support/hitbtc.py +6 -6
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/huobi.py +70 -70
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +33 -33
- ccxt/async_support/krakenfutures.py +6 -5
- ccxt/async_support/kucoin.py +74 -74
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank2.py +33 -33
- ccxt/async_support/mexc.py +22 -22
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +22 -22
- ccxt/async_support/oceanex.py +18 -18
- ccxt/async_support/okcoin.py +1950 -2758
- ccxt/async_support/okx.py +73 -73
- ccxt/async_support/paymium.py +11 -11
- ccxt/async_support/phemex.py +26 -26
- ccxt/async_support/poloniex.py +30 -30
- ccxt/async_support/poloniexfutures.py +25 -25
- ccxt/async_support/probit.py +21 -21
- ccxt/async_support/tokocrypto.py +22 -22
- ccxt/async_support/upbit.py +21 -21
- ccxt/async_support/wavesexchange.py +2 -2
- ccxt/async_support/wazirx.py +14 -14
- ccxt/async_support/whitebit.py +6 -6
- ccxt/async_support/woo.py +21 -21
- ccxt/async_support/yobit.py +16 -16
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +15 -15
- ccxt/base/exchange.py +2 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +184 -184
- ccxt/bingx.py +48 -48
- ccxt/bitbank.py +14 -14
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +35 -35
- ccxt/bitflyer.py +17 -17
- ccxt/bitforex.py +9 -9
- ccxt/bitget.py +433 -215
- ccxt/bitmart.py +39 -39
- ccxt/bitmex.py +7 -7
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/bl3p.py +1 -1
- ccxt/btcalpha.py +7 -7
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +58 -58
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +13 -13
- ccxt/coinbasepro.py +15 -15
- ccxt/coinex.py +19 -19
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +4 -4
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +28 -28
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +26 -26
- ccxt/deribit.py +9 -9
- ccxt/digifinex.py +38 -38
- ccxt/exmo.py +18 -18
- ccxt/gate.py +59 -59
- ccxt/gemini.py +4 -4
- ccxt/hitbtc.py +6 -6
- ccxt/hollaex.py +2 -2
- ccxt/huobi.py +70 -70
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +33 -33
- ccxt/krakenfutures.py +6 -5
- ccxt/kucoin.py +74 -74
- ccxt/kucoinfutures.py +8 -8
- ccxt/latoken.py +14 -14
- ccxt/lbank2.py +33 -33
- ccxt/mexc.py +22 -22
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +22 -22
- ccxt/oceanex.py +18 -18
- ccxt/okcoin.py +1950 -2758
- ccxt/okx.py +73 -73
- ccxt/paymium.py +11 -11
- ccxt/phemex.py +26 -26
- ccxt/poloniex.py +30 -30
- ccxt/poloniexfutures.py +25 -25
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +12 -12
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitpanda.py +7 -7
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/blockchaincom.py +6 -6
- ccxt/pro/bybit.py +15 -15
- ccxt/pro/cex.py +8 -8
- ccxt/pro/coinbase.py +6 -6
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +8 -8
- ccxt/pro/cryptocom.py +12 -12
- ccxt/pro/deribit.py +7 -7
- ccxt/pro/gemini.py +4 -4
- ccxt/pro/hitbtc.py +17 -17
- ccxt/pro/huobi.py +3 -3
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +10 -10
- ccxt/pro/kucoin.py +85 -42
- ccxt/pro/kucoinfutures.py +5 -5
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +7 -7
- ccxt/pro/okx.py +16 -15
- ccxt/pro/phemex.py +15 -15
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +5 -5
- ccxt/pro/wazirx.py +5 -5
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +21 -21
- ccxt/test/base/test_shared_methods.py +1 -1
- ccxt/tokocrypto.py +22 -22
- ccxt/upbit.py +21 -21
- ccxt/wavesexchange.py +2 -2
- ccxt/wazirx.py +14 -14
- ccxt/whitebit.py +6 -6
- ccxt/woo.py +21 -21
- ccxt/yobit.py +16 -16
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +15 -15
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/abstract/okcoin.py
CHANGED
@@ -2,209 +2,73 @@ from ccxt.base.types import Entry
|
|
2
2
|
|
3
3
|
|
4
4
|
class ImplicitAPI:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
margin_get_accounts = marginGetAccounts = Entry('accounts', 'margin', 'GET', {'cost': 5})
|
76
|
-
margin_get_accounts_instrument_id = marginGetAccountsInstrumentId = Entry('accounts/{instrument_id}', 'margin', 'GET', {'cost': 5})
|
77
|
-
margin_get_accounts_instrument_id_ledger = marginGetAccountsInstrumentIdLedger = Entry('accounts/{instrument_id}/ledger', 'margin', 'GET', {'cost': 5})
|
78
|
-
margin_get_accounts_availability = marginGetAccountsAvailability = Entry('accounts/availability', 'margin', 'GET', {'cost': 5})
|
79
|
-
margin_get_accounts_instrument_id_availability = marginGetAccountsInstrumentIdAvailability = Entry('accounts/{instrument_id}/availability', 'margin', 'GET', {'cost': 5})
|
80
|
-
margin_get_accounts_borrowed = marginGetAccountsBorrowed = Entry('accounts/borrowed', 'margin', 'GET', {'cost': 5})
|
81
|
-
margin_get_accounts_instrument_id_borrowed = marginGetAccountsInstrumentIdBorrowed = Entry('accounts/{instrument_id}/borrowed', 'margin', 'GET', {'cost': 5})
|
82
|
-
margin_get_orders = marginGetOrders = Entry('orders', 'margin', 'GET', {'cost': 10})
|
83
|
-
margin_get_accounts_instrument_id_leverage = marginGetAccountsInstrumentIdLeverage = Entry('accounts/{instrument_id}/leverage', 'margin', 'GET', {'cost': 1})
|
84
|
-
margin_get_orders_order_id = marginGetOrdersOrderId = Entry('orders/{order_id}', 'margin', 'GET', {'cost': 5})
|
85
|
-
margin_get_orders_client_oid = marginGetOrdersClientOid = Entry('orders/{client_oid}', 'margin', 'GET', {'cost': 5})
|
86
|
-
margin_get_orders_pending = marginGetOrdersPending = Entry('orders_pending', 'margin', 'GET', {'cost': 5})
|
87
|
-
margin_get_fills = marginGetFills = Entry('fills', 'margin', 'GET', {'cost': 10})
|
88
|
-
margin_get_instruments_instrument_id_mark_price = marginGetInstrumentsInstrumentIdMarkPrice = Entry('instruments/{instrument_id}/mark_price', 'margin', 'GET', {'cost': 5})
|
89
|
-
margin_post_accounts_borrow = marginPostAccountsBorrow = Entry('accounts/borrow', 'margin', 'POST', {'cost': 1})
|
90
|
-
margin_post_accounts_repayment = marginPostAccountsRepayment = Entry('accounts/repayment', 'margin', 'POST', {'cost': 1})
|
91
|
-
margin_post_orders = marginPostOrders = Entry('orders', 'margin', 'POST', {'cost': 1})
|
92
|
-
margin_post_batch_orders = marginPostBatchOrders = Entry('batch_orders', 'margin', 'POST', {'cost': 2})
|
93
|
-
margin_post_cancel_orders = marginPostCancelOrders = Entry('cancel_orders', 'margin', 'POST', {'cost': 1})
|
94
|
-
margin_post_cancel_orders_order_id = marginPostCancelOrdersOrderId = Entry('cancel_orders/{order_id}', 'margin', 'POST', {'cost': 1})
|
95
|
-
margin_post_cancel_orders_client_oid = marginPostCancelOrdersClientOid = Entry('cancel_orders/{client_oid}', 'margin', 'POST', {'cost': 1})
|
96
|
-
margin_post_cancel_batch_orders = marginPostCancelBatchOrders = Entry('cancel_batch_orders', 'margin', 'POST', {'cost': 2})
|
97
|
-
margin_post_amend_order_instrument_id = marginPostAmendOrderInstrumentId = Entry('amend_order/{instrument_id}', 'margin', 'POST', {'cost': 2.5})
|
98
|
-
margin_post_amend_batch_orders = marginPostAmendBatchOrders = Entry('amend_batch_orders', 'margin', 'POST', {'cost': 5})
|
99
|
-
margin_post_accounts_instrument_id_leverage = marginPostAccountsInstrumentIdLeverage = Entry('accounts/{instrument_id}/leverage', 'margin', 'POST', {'cost': 1})
|
100
|
-
system_get_status = systemGetStatus = Entry('status', 'system', 'GET', {'cost': 250})
|
101
|
-
market_get_oracle = marketGetOracle = Entry('oracle', 'market', 'GET', {'cost': 250})
|
102
|
-
futures_get_position = futuresGetPosition = Entry('position', 'futures', 'GET', {})
|
103
|
-
futures_get_instrument_id_position = futuresGetInstrumentIdPosition = Entry('{instrument_id}/position', 'futures', 'GET', {})
|
104
|
-
futures_get_accounts = futuresGetAccounts = Entry('accounts', 'futures', 'GET', {})
|
105
|
-
futures_get_accounts_underlying = futuresGetAccountsUnderlying = Entry('accounts/{underlying}', 'futures', 'GET', {})
|
106
|
-
futures_get_accounts_underlying_leverage = futuresGetAccountsUnderlyingLeverage = Entry('accounts/{underlying}/leverage', 'futures', 'GET', {})
|
107
|
-
futures_get_accounts_underlying_ledger = futuresGetAccountsUnderlyingLedger = Entry('accounts/{underlying}/ledger', 'futures', 'GET', {})
|
108
|
-
futures_get_order_algo_instrument_id = futuresGetOrderAlgoInstrumentId = Entry('order_algo/{instrument_id}', 'futures', 'GET', {})
|
109
|
-
futures_get_orders_instrument_id = futuresGetOrdersInstrumentId = Entry('orders/{instrument_id}', 'futures', 'GET', {})
|
110
|
-
futures_get_orders_instrument_id_order_id = futuresGetOrdersInstrumentIdOrderId = Entry('orders/{instrument_id}/{order_id}', 'futures', 'GET', {})
|
111
|
-
futures_get_orders_instrument_id_client_oid = futuresGetOrdersInstrumentIdClientOid = Entry('orders/{instrument_id}/{client_oid}', 'futures', 'GET', {})
|
112
|
-
futures_get_fills = futuresGetFills = Entry('fills', 'futures', 'GET', {})
|
113
|
-
futures_get_trade_fee = futuresGetTradeFee = Entry('trade_fee', 'futures', 'GET', {})
|
114
|
-
futures_get_accounts_instrument_id_holds = futuresGetAccountsInstrumentIdHolds = Entry('accounts/{instrument_id}/holds', 'futures', 'GET', {})
|
115
|
-
futures_get_instruments = futuresGetInstruments = Entry('instruments', 'futures', 'GET', {})
|
116
|
-
futures_get_instruments_instrument_id_book = futuresGetInstrumentsInstrumentIdBook = Entry('instruments/{instrument_id}/book', 'futures', 'GET', {})
|
117
|
-
futures_get_instruments_ticker = futuresGetInstrumentsTicker = Entry('instruments/ticker', 'futures', 'GET', {})
|
118
|
-
futures_get_instruments_instrument_id_ticker = futuresGetInstrumentsInstrumentIdTicker = Entry('instruments/{instrument_id}/ticker', 'futures', 'GET', {})
|
119
|
-
futures_get_instruments_instrument_id_trades = futuresGetInstrumentsInstrumentIdTrades = Entry('instruments/{instrument_id}/trades', 'futures', 'GET', {})
|
120
|
-
futures_get_instruments_instrument_id_candles = futuresGetInstrumentsInstrumentIdCandles = Entry('instruments/{instrument_id}/candles', 'futures', 'GET', {})
|
121
|
-
futures_get_instruments_instrument_id_history_candles = futuresGetInstrumentsInstrumentIdHistoryCandles = Entry('instruments/{instrument_id}/history/candles', 'futures', 'GET', {})
|
122
|
-
futures_get_instruments_instrument_id_index = futuresGetInstrumentsInstrumentIdIndex = Entry('instruments/{instrument_id}/index', 'futures', 'GET', {})
|
123
|
-
futures_get_rate = futuresGetRate = Entry('rate', 'futures', 'GET', {})
|
124
|
-
futures_get_instruments_instrument_id_estimated_price = futuresGetInstrumentsInstrumentIdEstimatedPrice = Entry('instruments/{instrument_id}/estimated_price', 'futures', 'GET', {})
|
125
|
-
futures_get_instruments_instrument_id_open_interest = futuresGetInstrumentsInstrumentIdOpenInterest = Entry('instruments/{instrument_id}/open_interest', 'futures', 'GET', {})
|
126
|
-
futures_get_instruments_instrument_id_price_limit = futuresGetInstrumentsInstrumentIdPriceLimit = Entry('instruments/{instrument_id}/price_limit', 'futures', 'GET', {})
|
127
|
-
futures_get_instruments_instrument_id_mark_price = futuresGetInstrumentsInstrumentIdMarkPrice = Entry('instruments/{instrument_id}/mark_price', 'futures', 'GET', {})
|
128
|
-
futures_get_instruments_instrument_id_liquidation = futuresGetInstrumentsInstrumentIdLiquidation = Entry('instruments/{instrument_id}/liquidation', 'futures', 'GET', {})
|
129
|
-
futures_post_accounts_underlying_leverage = futuresPostAccountsUnderlyingLeverage = Entry('accounts/{underlying}/leverage', 'futures', 'POST', {})
|
130
|
-
futures_post_order = futuresPostOrder = Entry('order', 'futures', 'POST', {})
|
131
|
-
futures_post_amend_order_instrument_id = futuresPostAmendOrderInstrumentId = Entry('amend_order/{instrument_id}', 'futures', 'POST', {})
|
132
|
-
futures_post_orders = futuresPostOrders = Entry('orders', 'futures', 'POST', {})
|
133
|
-
futures_post_cancel_order_instrument_id_order_id = futuresPostCancelOrderInstrumentIdOrderId = Entry('cancel_order/{instrument_id}/{order_id}', 'futures', 'POST', {})
|
134
|
-
futures_post_cancel_order_instrument_id_client_oid = futuresPostCancelOrderInstrumentIdClientOid = Entry('cancel_order/{instrument_id}/{client_oid}', 'futures', 'POST', {})
|
135
|
-
futures_post_cancel_batch_orders_instrument_id = futuresPostCancelBatchOrdersInstrumentId = Entry('cancel_batch_orders/{instrument_id}', 'futures', 'POST', {})
|
136
|
-
futures_post_accounts_margin_mode = futuresPostAccountsMarginMode = Entry('accounts/margin_mode', 'futures', 'POST', {})
|
137
|
-
futures_post_close_position = futuresPostClosePosition = Entry('close_position', 'futures', 'POST', {})
|
138
|
-
futures_post_cancel_all = futuresPostCancelAll = Entry('cancel_all', 'futures', 'POST', {})
|
139
|
-
futures_post_order_algo = futuresPostOrderAlgo = Entry('order_algo', 'futures', 'POST', {})
|
140
|
-
futures_post_cancel_algos = futuresPostCancelAlgos = Entry('cancel_algos', 'futures', 'POST', {})
|
141
|
-
swap_get_position = swapGetPosition = Entry('position', 'swap', 'GET', {})
|
142
|
-
swap_get_instrument_id_position = swapGetInstrumentIdPosition = Entry('{instrument_id}/position', 'swap', 'GET', {})
|
143
|
-
swap_get_accounts = swapGetAccounts = Entry('accounts', 'swap', 'GET', {})
|
144
|
-
swap_get_instrument_id_accounts = swapGetInstrumentIdAccounts = Entry('{instrument_id}/accounts', 'swap', 'GET', {})
|
145
|
-
swap_get_accounts_instrument_id_settings = swapGetAccountsInstrumentIdSettings = Entry('accounts/{instrument_id}/settings', 'swap', 'GET', {})
|
146
|
-
swap_get_accounts_instrument_id_ledger = swapGetAccountsInstrumentIdLedger = Entry('accounts/{instrument_id}/ledger', 'swap', 'GET', {})
|
147
|
-
swap_get_orders_instrument_id = swapGetOrdersInstrumentId = Entry('orders/{instrument_id}', 'swap', 'GET', {})
|
148
|
-
swap_get_orders_instrument_id_order_id = swapGetOrdersInstrumentIdOrderId = Entry('orders/{instrument_id}/{order_id}', 'swap', 'GET', {})
|
149
|
-
swap_get_orders_instrument_id_client_oid = swapGetOrdersInstrumentIdClientOid = Entry('orders/{instrument_id}/{client_oid}', 'swap', 'GET', {})
|
150
|
-
swap_get_fills = swapGetFills = Entry('fills', 'swap', 'GET', {})
|
151
|
-
swap_get_accounts_instrument_id_holds = swapGetAccountsInstrumentIdHolds = Entry('accounts/{instrument_id}/holds', 'swap', 'GET', {})
|
152
|
-
swap_get_trade_fee = swapGetTradeFee = Entry('trade_fee', 'swap', 'GET', {})
|
153
|
-
swap_get_order_algo_instrument_id = swapGetOrderAlgoInstrumentId = Entry('order_algo/{instrument_id}', 'swap', 'GET', {})
|
154
|
-
swap_get_instruments = swapGetInstruments = Entry('instruments', 'swap', 'GET', {})
|
155
|
-
swap_get_instruments_instrument_id_depth = swapGetInstrumentsInstrumentIdDepth = Entry('instruments/{instrument_id}/depth', 'swap', 'GET', {})
|
156
|
-
swap_get_instruments_ticker = swapGetInstrumentsTicker = Entry('instruments/ticker', 'swap', 'GET', {})
|
157
|
-
swap_get_instruments_instrument_id_ticker = swapGetInstrumentsInstrumentIdTicker = Entry('instruments/{instrument_id}/ticker', 'swap', 'GET', {})
|
158
|
-
swap_get_instruments_instrument_id_trades = swapGetInstrumentsInstrumentIdTrades = Entry('instruments/{instrument_id}/trades', 'swap', 'GET', {})
|
159
|
-
swap_get_instruments_instrument_id_candles = swapGetInstrumentsInstrumentIdCandles = Entry('instruments/{instrument_id}/candles', 'swap', 'GET', {})
|
160
|
-
swap_get_instruments_instrument_id_history_candles = swapGetInstrumentsInstrumentIdHistoryCandles = Entry('instruments/{instrument_id}/history/candles', 'swap', 'GET', {})
|
161
|
-
swap_get_instruments_instrument_id_index = swapGetInstrumentsInstrumentIdIndex = Entry('instruments/{instrument_id}/index', 'swap', 'GET', {})
|
162
|
-
swap_get_rate = swapGetRate = Entry('rate', 'swap', 'GET', {})
|
163
|
-
swap_get_instruments_instrument_id_open_interest = swapGetInstrumentsInstrumentIdOpenInterest = Entry('instruments/{instrument_id}/open_interest', 'swap', 'GET', {})
|
164
|
-
swap_get_instruments_instrument_id_price_limit = swapGetInstrumentsInstrumentIdPriceLimit = Entry('instruments/{instrument_id}/price_limit', 'swap', 'GET', {})
|
165
|
-
swap_get_instruments_instrument_id_liquidation = swapGetInstrumentsInstrumentIdLiquidation = Entry('instruments/{instrument_id}/liquidation', 'swap', 'GET', {})
|
166
|
-
swap_get_instruments_instrument_id_funding_time = swapGetInstrumentsInstrumentIdFundingTime = Entry('instruments/{instrument_id}/funding_time', 'swap', 'GET', {})
|
167
|
-
swap_get_instruments_instrument_id_mark_price = swapGetInstrumentsInstrumentIdMarkPrice = Entry('instruments/{instrument_id}/mark_price', 'swap', 'GET', {})
|
168
|
-
swap_get_instruments_instrument_id_historical_funding_rate = swapGetInstrumentsInstrumentIdHistoricalFundingRate = Entry('instruments/{instrument_id}/historical_funding_rate', 'swap', 'GET', {})
|
169
|
-
swap_post_accounts_instrument_id_leverage = swapPostAccountsInstrumentIdLeverage = Entry('accounts/{instrument_id}/leverage', 'swap', 'POST', {})
|
170
|
-
swap_post_order = swapPostOrder = Entry('order', 'swap', 'POST', {})
|
171
|
-
swap_post_amend_order_instrument_id = swapPostAmendOrderInstrumentId = Entry('amend_order/{instrument_id}', 'swap', 'POST', {})
|
172
|
-
swap_post_orders = swapPostOrders = Entry('orders', 'swap', 'POST', {})
|
173
|
-
swap_post_cancel_order_instrument_id_order_id = swapPostCancelOrderInstrumentIdOrderId = Entry('cancel_order/{instrument_id}/{order_id}', 'swap', 'POST', {})
|
174
|
-
swap_post_cancel_order_instrument_id_client_oid = swapPostCancelOrderInstrumentIdClientOid = Entry('cancel_order/{instrument_id}/{client_oid}', 'swap', 'POST', {})
|
175
|
-
swap_post_cancel_batch_orders_instrument_id = swapPostCancelBatchOrdersInstrumentId = Entry('cancel_batch_orders/{instrument_id}', 'swap', 'POST', {})
|
176
|
-
swap_post_order_algo = swapPostOrderAlgo = Entry('order_algo', 'swap', 'POST', {})
|
177
|
-
swap_post_cancel_algos = swapPostCancelAlgos = Entry('cancel_algos', 'swap', 'POST', {})
|
178
|
-
swap_post_close_position = swapPostClosePosition = Entry('close_position', 'swap', 'POST', {})
|
179
|
-
swap_post_cancel_all = swapPostCancelAll = Entry('cancel_all', 'swap', 'POST', {})
|
180
|
-
option_get_accounts = optionGetAccounts = Entry('accounts', 'option', 'GET', {})
|
181
|
-
option_get_position = optionGetPosition = Entry('position', 'option', 'GET', {})
|
182
|
-
option_get_underlying_position = optionGetUnderlyingPosition = Entry('{underlying}/position', 'option', 'GET', {})
|
183
|
-
option_get_accounts_underlying = optionGetAccountsUnderlying = Entry('accounts/{underlying}', 'option', 'GET', {})
|
184
|
-
option_get_orders_underlying = optionGetOrdersUnderlying = Entry('orders/{underlying}', 'option', 'GET', {})
|
185
|
-
option_get_fills_underlying = optionGetFillsUnderlying = Entry('fills/{underlying}', 'option', 'GET', {})
|
186
|
-
option_get_accounts_underlying_ledger = optionGetAccountsUnderlyingLedger = Entry('accounts/{underlying}/ledger', 'option', 'GET', {})
|
187
|
-
option_get_trade_fee = optionGetTradeFee = Entry('trade_fee', 'option', 'GET', {})
|
188
|
-
option_get_orders_underlying_order_id = optionGetOrdersUnderlyingOrderId = Entry('orders/{underlying}/{order_id}', 'option', 'GET', {})
|
189
|
-
option_get_orders_underlying_client_oid = optionGetOrdersUnderlyingClientOid = Entry('orders/{underlying}/{client_oid}', 'option', 'GET', {})
|
190
|
-
option_get_underlying = optionGetUnderlying = Entry('underlying', 'option', 'GET', {})
|
191
|
-
option_get_instruments_underlying = optionGetInstrumentsUnderlying = Entry('instruments/{underlying}', 'option', 'GET', {})
|
192
|
-
option_get_instruments_underlying_summary = optionGetInstrumentsUnderlyingSummary = Entry('instruments/{underlying}/summary', 'option', 'GET', {})
|
193
|
-
option_get_instruments_underlying_summary_instrument_id = optionGetInstrumentsUnderlyingSummaryInstrumentId = Entry('instruments/{underlying}/summary/{instrument_id}', 'option', 'GET', {})
|
194
|
-
option_get_instruments_instrument_id_book = optionGetInstrumentsInstrumentIdBook = Entry('instruments/{instrument_id}/book', 'option', 'GET', {})
|
195
|
-
option_get_instruments_instrument_id_trades = optionGetInstrumentsInstrumentIdTrades = Entry('instruments/{instrument_id}/trades', 'option', 'GET', {})
|
196
|
-
option_get_instruments_instrument_id_ticker = optionGetInstrumentsInstrumentIdTicker = Entry('instruments/{instrument_id}/ticker', 'option', 'GET', {})
|
197
|
-
option_get_instruments_instrument_id_candles = optionGetInstrumentsInstrumentIdCandles = Entry('instruments/{instrument_id}/candles', 'option', 'GET', {})
|
198
|
-
option_post_order = optionPostOrder = Entry('order', 'option', 'POST', {})
|
199
|
-
option_post_orders = optionPostOrders = Entry('orders', 'option', 'POST', {})
|
200
|
-
option_post_cancel_order_underlying_order_id = optionPostCancelOrderUnderlyingOrderId = Entry('cancel_order/{underlying}/{order_id}', 'option', 'POST', {})
|
201
|
-
option_post_cancel_order_underlying_client_oid = optionPostCancelOrderUnderlyingClientOid = Entry('cancel_order/{underlying}/{client_oid}', 'option', 'POST', {})
|
202
|
-
option_post_cancel_batch_orders_underlying = optionPostCancelBatchOrdersUnderlying = Entry('cancel_batch_orders/{underlying}', 'option', 'POST', {})
|
203
|
-
option_post_amend_order_underlying = optionPostAmendOrderUnderlying = Entry('amend_order/{underlying}', 'option', 'POST', {})
|
204
|
-
option_post_amend_batch_orders_underlying = optionPostAmendBatchOrdersUnderlying = Entry('amend_batch_orders/{underlying}', 'option', 'POST', {})
|
205
|
-
information_get_currency_long_short_ratio = informationGetCurrencyLongShortRatio = Entry('{currency}/long_short_ratio', 'information', 'GET', {})
|
206
|
-
information_get_currency_volume = informationGetCurrencyVolume = Entry('{currency}/volume', 'information', 'GET', {})
|
207
|
-
information_get_currency_taker = informationGetCurrencyTaker = Entry('{currency}/taker', 'information', 'GET', {})
|
208
|
-
information_get_currency_sentiment = informationGetCurrencySentiment = Entry('{currency}/sentiment', 'information', 'GET', {})
|
209
|
-
information_get_currency_margin = informationGetCurrencyMargin = Entry('{currency}/margin', 'information', 'GET', {})
|
210
|
-
index_get_instrument_id_constituents = indexGetInstrumentIdConstituents = Entry('{instrument_id}/constituents', 'index', 'GET', {})
|
5
|
+
public_get_market_tickers = publicGetMarketTickers = Entry('market/tickers', 'public', 'GET', {'cost': 1})
|
6
|
+
public_get_market_ticker = publicGetMarketTicker = Entry('market/ticker', 'public', 'GET', {'cost': 1})
|
7
|
+
public_get_market_books = publicGetMarketBooks = Entry('market/books', 'public', 'GET', {'cost': 0.5})
|
8
|
+
public_get_market_candles = publicGetMarketCandles = Entry('market/candles', 'public', 'GET', {'cost': 0.5})
|
9
|
+
public_get_market_history_candles = publicGetMarketHistoryCandles = Entry('market/history-candles', 'public', 'GET', {'cost': 0.5})
|
10
|
+
public_get_market_trades = publicGetMarketTrades = Entry('market/trades', 'public', 'GET', {'cost': 0.2})
|
11
|
+
public_get_market_history_trades = publicGetMarketHistoryTrades = Entry('market/history-trades', 'public', 'GET', {'cost': 2})
|
12
|
+
public_get_market_platform_24_volume = publicGetMarketPlatform24Volume = Entry('market/platform-24-volume', 'public', 'GET', {'cost': 10})
|
13
|
+
public_get_market_open_oracle = publicGetMarketOpenOracle = Entry('market/open-oracle', 'public', 'GET', {'cost': 50})
|
14
|
+
public_get_market_exchange_rate = publicGetMarketExchangeRate = Entry('market/exchange-rate', 'public', 'GET', {'cost': 20})
|
15
|
+
public_get_public_instruments = publicGetPublicInstruments = Entry('public/instruments', 'public', 'GET', {'cost': 1})
|
16
|
+
public_get_public_time = publicGetPublicTime = Entry('public/time', 'public', 'GET', {'cost': 2})
|
17
|
+
private_get_trade_order = privateGetTradeOrder = Entry('trade/order', 'private', 'GET', {'cost': 0.3333333333333333})
|
18
|
+
private_get_trade_orders_pending = privateGetTradeOrdersPending = Entry('trade/orders-pending', 'private', 'GET', {'cost': 0.3333333333333333})
|
19
|
+
private_get_trade_orders_history = privateGetTradeOrdersHistory = Entry('trade/orders-history', 'private', 'GET', {'cost': 0.5})
|
20
|
+
private_get_trade_orders_history_archive = privateGetTradeOrdersHistoryArchive = Entry('trade/orders-history-archive', 'private', 'GET', {'cost': 0.5})
|
21
|
+
private_get_trade_fills = privateGetTradeFills = Entry('trade/fills', 'private', 'GET', {'cost': 0.3333333333333333})
|
22
|
+
private_get_trade_fills_history = privateGetTradeFillsHistory = Entry('trade/fills-history', 'private', 'GET', {'cost': 2.2})
|
23
|
+
private_get_trade_fills_archive = privateGetTradeFillsArchive = Entry('trade/fills-archive', 'private', 'GET', {'cost': 2})
|
24
|
+
private_get_trade_order_algo = privateGetTradeOrderAlgo = Entry('trade/order-algo', 'private', 'GET', {'cost': 1})
|
25
|
+
private_get_trade_orders_algo_pending = privateGetTradeOrdersAlgoPending = Entry('trade/orders-algo-pending', 'private', 'GET', {'cost': 1})
|
26
|
+
private_get_trade_orders_algo_history = privateGetTradeOrdersAlgoHistory = Entry('trade/orders-algo-history', 'private', 'GET', {'cost': 1})
|
27
|
+
private_get_otc_rfq_trade = privateGetOtcRfqTrade = Entry('otc/rfq/trade', 'private', 'GET', {'cost': 4})
|
28
|
+
private_get_otc_rfq_history = privateGetOtcRfqHistory = Entry('otc/rfq/history', 'private', 'GET', {'cost': 4})
|
29
|
+
private_get_account_balance = privateGetAccountBalance = Entry('account/balance', 'private', 'GET', {'cost': 2})
|
30
|
+
private_get_account_bills = privateGetAccountBills = Entry('account/bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
31
|
+
private_get_account_bills_archive = privateGetAccountBillsArchive = Entry('account/bills-archive', 'private', 'GET', {'cost': 1.6666666666666667})
|
32
|
+
private_get_account_config = privateGetAccountConfig = Entry('account/config', 'private', 'GET', {'cost': 4})
|
33
|
+
private_get_account_max_size = privateGetAccountMaxSize = Entry('account/max-size', 'private', 'GET', {'cost': 4})
|
34
|
+
private_get_account_max_avail_size = privateGetAccountMaxAvailSize = Entry('account/max-avail-size', 'private', 'GET', {'cost': 4})
|
35
|
+
private_get_account_trade_fee = privateGetAccountTradeFee = Entry('account/trade-fee', 'private', 'GET', {'cost': 4})
|
36
|
+
private_get_account_max_withdrawal = privateGetAccountMaxWithdrawal = Entry('account/max-withdrawal', 'private', 'GET', {'cost': 4})
|
37
|
+
private_get_asset_currencies = privateGetAssetCurrencies = Entry('asset/currencies', 'private', 'GET', {'cost': 1.6666666666666667})
|
38
|
+
private_get_asset_balances = privateGetAssetBalances = Entry('asset/balances', 'private', 'GET', {'cost': 1.6666666666666667})
|
39
|
+
private_get_asset_asset_valuation = privateGetAssetAssetValuation = Entry('asset/asset-valuation', 'private', 'GET', {'cost': 10})
|
40
|
+
private_get_asset_transfer_state = privateGetAssetTransferState = Entry('asset/transfer-state', 'private', 'GET', {'cost': 10})
|
41
|
+
private_get_asset_bills = privateGetAssetBills = Entry('asset/bills', 'private', 'GET', {'cost': 1.6666666666666667})
|
42
|
+
private_get_asset_deposit_lightning = privateGetAssetDepositLightning = Entry('asset/deposit-lightning', 'private', 'GET', {'cost': 5})
|
43
|
+
private_get_asset_deposit_address = privateGetAssetDepositAddress = Entry('asset/deposit-address', 'private', 'GET', {'cost': 1.6666666666666667})
|
44
|
+
private_get_asset_deposit_history = privateGetAssetDepositHistory = Entry('asset/deposit-history', 'private', 'GET', {'cost': 1.6666666666666667})
|
45
|
+
private_get_asset_withdrawal_history = privateGetAssetWithdrawalHistory = Entry('asset/withdrawal-history', 'private', 'GET', {'cost': 1.6666666666666667})
|
46
|
+
private_get_asset_deposit_withdraw_status = privateGetAssetDepositWithdrawStatus = Entry('asset/deposit-withdraw-status', 'private', 'GET', {'cost': 20})
|
47
|
+
private_get_fiat_deposit_history = privateGetFiatDepositHistory = Entry('fiat/deposit-history', 'private', 'GET', {'cost': 1.6666666666666667})
|
48
|
+
private_get_fiat_withdraw_history = privateGetFiatWithdrawHistory = Entry('fiat-withdraw-history', 'private', 'GET', {'cost': 1.6666666666666667})
|
49
|
+
private_get_fiat_channel = privateGetFiatChannel = Entry('fiat-channel', 'private', 'GET', {'cost': 1.6666666666666667})
|
50
|
+
private_get_users_subaccount_list = privateGetUsersSubaccountList = Entry('users/subaccount/list', 'private', 'GET', {'cost': 10})
|
51
|
+
private_get_users_subaccount_apikey = privateGetUsersSubaccountApiKey = Entry('users/subaccount/apiKey', 'private', 'GET', {'cost': 10})
|
52
|
+
private_get_account_subaccount_balances = privateGetAccountSubaccountBalances = Entry('account/subaccount/balances', 'private', 'GET', {'cost': 10})
|
53
|
+
private_get_asset_subaccount_balances = privateGetAssetSubaccountBalances = Entry('asset/subaccount/balances', 'private', 'GET', {'cost': 10})
|
54
|
+
private_get_asset_subaccount_bills = privateGetAssetSubaccountBills = Entry('asset/subaccount/bills', 'private', 'GET', {'cost': 10})
|
55
|
+
private_post_trade_order = privatePostTradeOrder = Entry('trade/order', 'private', 'POST', {'cost': 0.3333333333333333})
|
56
|
+
private_post_trade_batch_orders = privatePostTradeBatchOrders = Entry('trade/batch-orders', 'private', 'POST', {'cost': 0.06666666666666667})
|
57
|
+
private_post_trade_cancel_order = privatePostTradeCancelOrder = Entry('trade/cancel-order', 'private', 'POST', {'cost': 0.3333333333333333})
|
58
|
+
private_post_trade_cancel_batch_orders = privatePostTradeCancelBatchOrders = Entry('trade/cancel-batch-orders', 'private', 'POST', {'cost': 0.06666666666666667})
|
59
|
+
private_post_trade_amend_order = privatePostTradeAmendOrder = Entry('trade/amend-order', 'private', 'POST', {'cost': 0.3333333333333333})
|
60
|
+
private_post_trade_amend_batch_orders = privatePostTradeAmendBatchOrders = Entry('trade/amend-batch-orders', 'private', 'POST', {'cost': 0.006666666666666667})
|
61
|
+
private_post_trade_order_algo = privatePostTradeOrderAlgo = Entry('trade/order-algo', 'private', 'POST', {'cost': 1})
|
62
|
+
private_post_trade_cancel_algos = privatePostTradeCancelAlgos = Entry('trade/cancel-algos', 'private', 'POST', {'cost': 1})
|
63
|
+
private_post_trade_cancel_advance_algos = privatePostTradeCancelAdvanceAlgos = Entry('trade/cancel-advance-algos', 'private', 'POST', {'cost': 1})
|
64
|
+
private_post_otc_rfq_quote = privatePostOtcRfqQuote = Entry('otc/rfq/quote', 'private', 'POST', {'cost': 4})
|
65
|
+
private_post_otc_rfq_trade = privatePostOtcRfqTrade = Entry('otc/rfq/trade', 'private', 'POST', {'cost': 4})
|
66
|
+
private_post_asset_transfer = privatePostAssetTransfer = Entry('asset/transfer', 'private', 'POST', {'cost': 4})
|
67
|
+
private_post_asset_withdrawal = privatePostAssetWithdrawal = Entry('asset/withdrawal', 'private', 'POST', {'cost': 4})
|
68
|
+
private_post_asset_withdrawal_lightning = privatePostAssetWithdrawalLightning = Entry('asset/withdrawal-lightning', 'private', 'POST', {'cost': 4})
|
69
|
+
private_post_asset_withdrawal_cancel = privatePostAssetWithdrawalCancel = Entry('asset/withdrawal-cancel', 'private', 'POST', {'cost': 4})
|
70
|
+
private_post_fiat_deposit = privatePostFiatDeposit = Entry('fiat/deposit', 'private', 'POST', {'cost': 1.6666666666666667})
|
71
|
+
private_post_fiat_cancel_deposit = privatePostFiatCancelDeposit = Entry('fiat/cancel-deposit', 'private', 'POST', {'cost': 1.6666666666666667})
|
72
|
+
private_post_fiat_withdrawal = privatePostFiatWithdrawal = Entry('fiat/withdrawal', 'private', 'POST', {'cost': 1.6666666666666667})
|
73
|
+
private_post_fiat_cancel_withdrawal = privatePostFiatCancelWithdrawal = Entry('fiat/cancel-withdrawal', 'private', 'POST', {'cost': 1.6666666666666667})
|
74
|
+
private_post_asset_subaccount_transfer = privatePostAssetSubaccountTransfer = Entry('asset/subaccount/transfer', 'private', 'POST', {'cost': 10})
|
ccxt/ace.py
CHANGED
@@ -174,7 +174,7 @@ class ace(Exchange, ImplicitAPI):
|
|
174
174
|
def fetch_markets(self, params={}):
|
175
175
|
"""
|
176
176
|
retrieves data on all markets for ace
|
177
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
|
177
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
|
178
178
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
179
179
|
:returns dict[]: an array of objects representing market data
|
180
180
|
"""
|
@@ -290,7 +290,7 @@ class ace(Exchange, ImplicitAPI):
|
|
290
290
|
def fetch_ticker(self, symbol: str, params={}):
|
291
291
|
"""
|
292
292
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
293
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
293
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
294
294
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
295
295
|
:param dict [params]: extra parameters specific to the ace api endpoint
|
296
296
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -314,7 +314,7 @@ class ace(Exchange, ImplicitAPI):
|
|
314
314
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
315
315
|
"""
|
316
316
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
317
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
317
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
318
318
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
319
319
|
:param dict [params]: extra parameters specific to the ace api endpoint
|
320
320
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -343,7 +343,7 @@ class ace(Exchange, ImplicitAPI):
|
|
343
343
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
344
344
|
"""
|
345
345
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
346
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
|
346
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
|
347
347
|
:param str symbol: unified symbol of the market to fetch the order book for
|
348
348
|
:param int [limit]: the maximum amount of order book entries to return
|
349
349
|
:param dict [params]: extra parameters specific to the ace api endpoint
|
@@ -429,7 +429,7 @@ class ace(Exchange, ImplicitAPI):
|
|
429
429
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
430
430
|
"""
|
431
431
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
432
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---klinecandlestick-data
|
432
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---klinecandlestick-data
|
433
433
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
434
434
|
:param str timeframe: the length of time each candle represents
|
435
435
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -571,7 +571,7 @@ class ace(Exchange, ImplicitAPI):
|
|
571
571
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
572
572
|
"""
|
573
573
|
create a trade order
|
574
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---new-order
|
574
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---new-order
|
575
575
|
:param str symbol: unified symbol of the market to create an order in
|
576
576
|
:param str type: 'market' or 'limit'
|
577
577
|
:param str side: 'buy' or 'sell'
|
@@ -608,7 +608,7 @@ class ace(Exchange, ImplicitAPI):
|
|
608
608
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
609
609
|
"""
|
610
610
|
cancels an open order
|
611
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
|
611
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
|
612
612
|
:param str id: order id
|
613
613
|
:param str symbol: unified symbol of the market the order was made in
|
614
614
|
:param dict [params]: extra parameters specific to the ace api endpoint
|
@@ -632,7 +632,7 @@ class ace(Exchange, ImplicitAPI):
|
|
632
632
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
633
633
|
"""
|
634
634
|
fetches information on an order made by the user
|
635
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
635
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
636
636
|
:param str symbol: unified symbol of the market the order was made in
|
637
637
|
:param dict [params]: extra parameters specific to the ace api endpoint
|
638
638
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -670,7 +670,7 @@ class ace(Exchange, ImplicitAPI):
|
|
670
670
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
671
671
|
"""
|
672
672
|
fetch all unfilled currently open orders
|
673
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
|
673
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
|
674
674
|
:param str symbol: unified market symbol of the market orders were made in
|
675
675
|
:param int [since]: the earliest time in ms to fetch orders for
|
676
676
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -799,7 +799,7 @@ class ace(Exchange, ImplicitAPI):
|
|
799
799
|
def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
800
800
|
"""
|
801
801
|
fetch all the trades made from a single order
|
802
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-history
|
802
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-history
|
803
803
|
:param str id: order id
|
804
804
|
:param str symbol: unified market symbol
|
805
805
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -853,7 +853,7 @@ class ace(Exchange, ImplicitAPI):
|
|
853
853
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
854
854
|
"""
|
855
855
|
fetch all trades made by the user
|
856
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---trade-list
|
856
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---trade-list
|
857
857
|
:param str symbol: unified symbol of the market to fetch trades for
|
858
858
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
859
859
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -936,7 +936,7 @@ class ace(Exchange, ImplicitAPI):
|
|
936
936
|
def fetch_balance(self, params={}):
|
937
937
|
"""
|
938
938
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
939
|
-
see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
|
939
|
+
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
|
940
940
|
:param dict [params]: extra parameters specific to the ace api endpoint
|
941
941
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
942
942
|
"""
|
ccxt/ascendex.py
CHANGED
@@ -995,8 +995,8 @@ class ascendex(Exchange, ImplicitAPI):
|
|
995
995
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
996
996
|
"""
|
997
997
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
998
|
-
see https://ascendex.github.io/ascendex-pro-api/#ticker
|
999
|
-
see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
998
|
+
:see: https://ascendex.github.io/ascendex-pro-api/#ticker
|
999
|
+
:see: https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
1000
1000
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1001
1001
|
:param dict [params]: extra parameters specific to the ascendex api endpoint
|
1002
1002
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1156,7 +1156,7 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1156
1156
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1157
1157
|
"""
|
1158
1158
|
get the list of most recent trades for a particular symbol
|
1159
|
-
see https://ascendex.github.io/ascendex-pro-api/#market-trades
|
1159
|
+
:see: https://ascendex.github.io/ascendex-pro-api/#market-trades
|
1160
1160
|
:param str symbol: unified symbol of the market to fetch trades for
|
1161
1161
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1162
1162
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1783,7 +1783,7 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1783
1783
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1784
1784
|
"""
|
1785
1785
|
fetches information on multiple closed orders made by the user
|
1786
|
-
see https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
|
1786
|
+
:see: https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
|
1787
1787
|
:param str symbol: unified market symbol of the market orders were made in
|
1788
1788
|
:param int [since]: the earliest time in ms to fetch orders for
|
1789
1789
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -2826,7 +2826,7 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2826
2826
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
2827
2827
|
"""
|
2828
2828
|
fetch deposit and withdraw fees
|
2829
|
-
see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
2829
|
+
:see: https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
2830
2830
|
:param str[]|None codes: list of unified currency codes
|
2831
2831
|
:param dict [params]: extra parameters specific to the ascendex api endpoint
|
2832
2832
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|