ccxt 4.1.20__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 CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # ----------------------------------------------------------------------------
24
24
 
25
- __version__ = '4.1.20'
25
+ __version__ = '4.1.22'
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
ccxt/abstract/okcoin.py CHANGED
@@ -2,209 +2,73 @@ from ccxt.base.types import Entry
2
2
 
3
3
 
4
4
  class ImplicitAPI:
5
- general_get_time = generalGetTime = Entry('time', 'general', 'GET', {'cost': 8.3334})
6
- account_get_wallet = accountGetWallet = Entry('wallet', 'account', 'GET', {'cost': 8.3334})
7
- account_get_sub_account = accountGetSubAccount = Entry('sub-account', 'account', 'GET', {'cost': 1000})
8
- account_get_asset_valuation = accountGetAssetValuation = Entry('asset-valuation', 'account', 'GET', {'cost': 1000})
9
- account_get_wallet_currency = accountGetWalletCurrency = Entry('wallet/{currency}', 'account', 'GET', {'cost': 8.3334})
10
- account_get_withdrawal_history = accountGetWithdrawalHistory = Entry('withdrawal/history', 'account', 'GET', {'cost': 8.3334})
11
- account_get_withdrawal_history_currency = accountGetWithdrawalHistoryCurrency = Entry('withdrawal/history/{currency}', 'account', 'GET', {'cost': 8.3334})
12
- account_get_ledger = accountGetLedger = Entry('ledger', 'account', 'GET', {'cost': 5})
13
- account_get_deposit_address = accountGetDepositAddress = Entry('deposit/address', 'account', 'GET', {'cost': 8.3334})
14
- account_get_deposit_history = accountGetDepositHistory = Entry('deposit/history', 'account', 'GET', {'cost': 8.3334})
15
- account_get_deposit_history_currency = accountGetDepositHistoryCurrency = Entry('deposit/history/{currency}', 'account', 'GET', {'cost': 8.3334})
16
- account_get_currencies = accountGetCurrencies = Entry('currencies', 'account', 'GET', {'cost': 8.3334})
17
- account_get_withdrawal_fee = accountGetWithdrawalFee = Entry('withdrawal/fee', 'account', 'GET', {'cost': 8.3334})
18
- account_get_deposit_lightning = accountGetDepositLightning = Entry('deposit-lightning', 'account', 'GET', {'cost': 50})
19
- account_get_withdrawal_lightning = accountGetWithdrawalLightning = Entry('withdrawal-lightning', 'account', 'GET', {'cost': 50})
20
- account_get_fiat_deposit_detail = accountGetFiatDepositDetail = Entry('fiat/deposit/detail', 'account', 'GET', {'cost': 5})
21
- account_get_fiat_deposit_details = accountGetFiatDepositDetails = Entry('fiat/deposit/details', 'account', 'GET', {'cost': 8.3334})
22
- account_get_fiat_withdraw_detail = accountGetFiatWithdrawDetail = Entry('fiat/withdraw/detail', 'account', 'GET', {'cost': 5})
23
- account_get_fiat_withdraw_details = accountGetFiatWithdrawDetails = Entry('fiat/withdraw/details', 'account', 'GET', {'cost': 8.3334})
24
- account_get_fiat_channel = accountGetFiatChannel = Entry('fiat/channel', 'account', 'GET', {'cost': 8.3334})
25
- account_post_transfer = accountPostTransfer = Entry('transfer', 'account', 'POST', {'cost': 100})
26
- account_post_withdrawal = accountPostWithdrawal = Entry('withdrawal', 'account', 'POST', {'cost': 8.3334})
27
- account_post_fiat_cancel_deposit = accountPostFiatCancelDeposit = Entry('fiat/cancel_deposit', 'account', 'POST', {'cost': 1})
28
- account_post_fiat_deposit = accountPostFiatDeposit = Entry('fiat/deposit', 'account', 'POST', {'cost': 8.3334})
29
- account_post_fiat_withdraw = accountPostFiatWithdraw = Entry('fiat/withdraw', 'account', 'POST', {'cost': 8.3334})
30
- account_post_fiat_cancel_withdrawal = accountPostFiatCancelWithdrawal = Entry('fiat/cancel_withdrawal', 'account', 'POST', {'cost': 1})
31
- otc_get_rfq_instruments = otcGetRfqInstruments = Entry('rfq/instruments', 'otc', 'GET', {'cost': 50})
32
- otc_get_rfq_trade = otcGetRfqTrade = Entry('rfq/trade', 'otc', 'GET', {'cost': 50})
33
- otc_get_rfq_history = otcGetRfqHistory = Entry('rfq/history', 'otc', 'GET', {'cost': 50})
34
- otc_post_rfq_quote = otcPostRfqQuote = Entry('rfq/quote', 'otc', 'POST', {'cost': 50})
35
- otc_post_rfq_trade = otcPostRfqTrade = Entry('rfq/trade', 'otc', 'POST', {'cost': 50})
36
- users_get_subaccount_info = usersGetSubaccountInfo = Entry('subaccount-info', 'users', 'GET', {'cost': 20})
37
- users_get_account_info = usersGetAccountInfo = Entry('account-info', 'users', 'GET', {'cost': 20})
38
- users_get_subaccount_apikey = usersGetSubaccountApikey = Entry('subaccount/apikey', 'users', 'GET', {'cost': 20})
39
- users_post_create_subaccount = usersPostCreateSubaccount = Entry('create-subaccount', 'users', 'POST', {'cost': 5})
40
- users_post_delete_subaccount = usersPostDeleteSubaccount = Entry('delete-subaccount', 'users', 'POST', {'cost': 5})
41
- users_post_subaccount_apikey = usersPostSubaccountApikey = Entry('subaccount/apikey', 'users', 'POST', {'cost': 50})
42
- users_post_subacount_delete_apikey = usersPostSubacountDeleteApikey = Entry('subacount/delete-apikey', 'users', 'POST', {'cost': 20})
43
- users_post_subacount_modify_apikey = usersPostSubacountModifyApikey = Entry('subacount/modify-apikey', 'users', 'POST', {'cost': 20})
44
- earning_get_offers = earningGetOffers = Entry('offers', 'earning', 'GET', {'cost': 5})
45
- earning_get_orders = earningGetOrders = Entry('orders', 'earning', 'GET', {'cost': 5})
46
- earning_get_positions = earningGetPositions = Entry('positions', 'earning', 'GET', {'cost': 8.3334})
47
- earning_post_purchase = earningPostPurchase = Entry('purchase', 'earning', 'POST', {'cost': 5})
48
- earning_post_redeem = earningPostRedeem = Entry('redeem', 'earning', 'POST', {'cost': 5})
49
- earning_post_cancel = earningPostCancel = Entry('cancel', 'earning', 'POST', {'cost': 5})
50
- spot_get_accounts = spotGetAccounts = Entry('accounts', 'spot', 'GET', {'cost': 5})
51
- spot_get_accounts_currency = spotGetAccountsCurrency = Entry('accounts/{currency}', 'spot', 'GET', {'cost': 5})
52
- spot_get_accounts_currency_ledger = spotGetAccountsCurrencyLedger = Entry('accounts/{currency}/ledger', 'spot', 'GET', {'cost': 5})
53
- spot_get_orders = spotGetOrders = Entry('orders', 'spot', 'GET', {'cost': 10})
54
- spot_get_orders_pending = spotGetOrdersPending = Entry('orders_pending', 'spot', 'GET', {'cost': 5})
55
- spot_get_orders_order_id = spotGetOrdersOrderId = Entry('orders/{order_id}', 'spot', 'GET', {'cost': 5})
56
- spot_get_orders_client_oid = spotGetOrdersClientOid = Entry('orders/{client_oid}', 'spot', 'GET', {'cost': 5})
57
- spot_get_trade_fee = spotGetTradeFee = Entry('trade_fee', 'spot', 'GET', {'cost': 5})
58
- spot_get_fills = spotGetFills = Entry('fills', 'spot', 'GET', {'cost': 10})
59
- spot_get_algo = spotGetAlgo = Entry('algo', 'spot', 'GET', {'cost': 5})
60
- spot_get_instruments = spotGetInstruments = Entry('instruments', 'spot', 'GET', {'cost': 5})
61
- spot_get_instruments_instrument_id_book = spotGetInstrumentsInstrumentIdBook = Entry('instruments/{instrument_id}/book', 'spot', 'GET', {'cost': 5})
62
- spot_get_instruments_ticker = spotGetInstrumentsTicker = Entry('instruments/ticker', 'spot', 'GET', {'cost': 5})
63
- spot_get_instruments_instrument_id_ticker = spotGetInstrumentsInstrumentIdTicker = Entry('instruments/{instrument_id}/ticker', 'spot', 'GET', {'cost': 5})
64
- spot_get_instruments_instrument_id_trades = spotGetInstrumentsInstrumentIdTrades = Entry('instruments/{instrument_id}/trades', 'spot', 'GET', {'cost': 5})
65
- spot_get_instruments_instrument_id_candles = spotGetInstrumentsInstrumentIdCandles = Entry('instruments/{instrument_id}/candles', 'spot', 'GET', {'cost': 5})
66
- spot_post_order_algo = spotPostOrderAlgo = Entry('order_algo', 'spot', 'POST', {'cost': 2.5})
67
- spot_post_orders = spotPostOrders = Entry('orders', 'spot', 'POST', {'cost': 1})
68
- spot_post_batch_orders = spotPostBatchOrders = Entry('batch_orders', 'spot', 'POST', {'cost': 2})
69
- spot_post_cancel_orders_order_id = spotPostCancelOrdersOrderId = Entry('cancel_orders/{order_id}', 'spot', 'POST', {'cost': 1})
70
- spot_post_cancel_orders_client_oid = spotPostCancelOrdersClientOid = Entry('cancel_orders/{client_oid}', 'spot', 'POST', {'cost': 1})
71
- spot_post_cancel_batch_algos = spotPostCancelBatchAlgos = Entry('cancel_batch_algos', 'spot', 'POST', {'cost': 5})
72
- spot_post_cancel_batch_orders = spotPostCancelBatchOrders = Entry('cancel_batch_orders', 'spot', 'POST', {'cost': 5})
73
- spot_post_amend_order_instrument_id = spotPostAmendOrderInstrumentId = Entry('amend_order/{instrument_id}', 'spot', 'POST', {'cost': 2.5})
74
- spot_post_amend_batch_orders = spotPostAmendBatchOrders = Entry('amend_batch_orders', 'spot', 'POST', {'cost': 5})
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})
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.1.20'
7
+ __version__ = '4.1.22'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.1.20'
5
+ __version__ = '4.1.22'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -3446,7 +3446,7 @@ class bitget(Exchange, ImplicitAPI):
3446
3446
  return await self.privateMarginPostIsolatedOrderBatchCancelOrder(self.extend(spotMarginRequest, params))
3447
3447
  request = {
3448
3448
  'productType': productType,
3449
- 'marginCoin': market['settleId'],
3449
+ 'marginCoin': self.safe_string(market, 'settleId', 'USDT'),
3450
3450
  }
3451
3451
  stop = self.safe_value_2(params, 'stop', 'trigger')
3452
3452
  planType = self.safe_string(params, 'planType')