Skip to content

Commit

Permalink
Merge pull request ccxt#10117 from frosty00/okex-normalized
Browse files Browse the repository at this point in the history
normalize okex costs
  • Loading branch information
kroitor authored Oct 4, 2021
2 parents 49bf76b + 6288f6e commit ef5be3c
Showing 1 changed file with 81 additions and 81 deletions.
162 changes: 81 additions & 81 deletions js/okex.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = class okex extends Exchange {
'name': 'OKEX',
'countries': [ 'CN', 'US' ],
'version': 'v5',
'rateLimit': 20 / 3, // 300 requests per 2 seconds
'rateLimit': 100,
'pro': true,
'certified': true,
'has': {
Expand Down Expand Up @@ -84,94 +84,94 @@ module.exports = class okex extends Exchange {
'api': {
'public': {
'get': {
'market/tickers': 15,
'market/ticker': 15,
'market/index-tickers': 15,
'market/books': 15,
'market/candles': 15,
'market/history-candles': 15,
'market/index-candles': 15,
'market/mark-price-candles': 15,
'market/trades': 15,
'market/platform-24-volume': 150,
'market/open-oracle': 1500,
'market/tickers': 1,
'market/ticker': 1,
'market/index-tickers': 1,
'market/books': 1,
'market/candles': 1,
'market/history-candles': 1,
'market/index-candles': 1,
'market/mark-price-candles': 1,
'market/trades': 1,
'market/platform-24-volume': 10,
'market/open-oracle': 100,
// 'market/oracle',
'public/instruments': 15,
'public/delivery-exercise-history': 7.5,
'public/open-interest': 15,
'public/funding-rate': 15,
'public/funding-rate-history': 15,
'public/price-limit': 15,
'public/opt-summary': 15,
'public/estimated-price': 30,
'public/discount-rate-interest-free-quota': 150,
'public/time': 30,
'public/liquidation-orders': 7.5,
'public/mark-price': 30,
'public/instruments': 1,
'public/delivery-exercise-history': 0.5,
'public/open-interest': 1,
'public/funding-rate': 1,
'public/funding-rate-history': 1,
'public/price-limit': 1,
'public/opt-summary': 1,
'public/estimated-price': 2,
'public/discount-rate-interest-free-quota': 10,
'public/time': 2,
'public/liquidation-orders': 0.5,
'public/mark-price': 2,
// 'public/tier',
'public/position-tiers': 30,
'public/underlying': 15,
'public/interest-rate-loan-quota': 150,
'system/status': 1500,
'public/position-tiers': 2,
'public/underlying': 1,
'public/interest-rate-loan-quota': 10,
'system/status': 100,
},
},
'private': {
'get': {
'account/account-position-risk': 30,
'account/balance': 30,
'account/positions': 30,
'account/bills': 25,
'account/bills-archive': 25,
'account/config': 60,
'account/max-size': 15,
'account/max-avail-size': 15,
'account/leverage-info': 15,
'account/max-loan': 15,
'account/trade-fee': 60,
'account/interest-accrued': 60,
'account/interest-rate': 60,
'account/max-withdrawal': 15,
'asset/deposit-address': 25,
'asset/balances': 25,
'asset/deposit-history': 25,
'asset/withdrawal-history': 25,
'asset/currencies': 25,
'asset/bills': 25,
'asset/piggy-balance': 25,
'trade/order': 5,
'trade/orders-pending': 15,
'trade/orders-history': 7.5,
'trade/orders-history-archive': 15,
'trade/fills': 5,
'trade/fills-history': 30,
'trade/orders-algo-pending': 15,
'trade/orders-algo-history': 15,
'account/subaccount/balances': 150,
'asset/subaccount/bills': 25,
'users/subaccount/list': 150,
'account/account-position-risk': 2,
'account/balance': 2,
'account/positions': 2,
'account/bills': 5 / 3,
'account/bills-archive': 5 / 3,
'account/config': 4,
'account/max-size': 1,
'account/max-avail-size': 1,
'account/leverage-info': 1,
'account/max-loan': 1,
'account/trade-fee': 4,
'account/interest-accrued': 4,
'account/interest-rate': 4,
'account/max-withdrawal': 1,
'asset/deposit-address': 5 / 3,
'asset/balances': 5 / 3,
'asset/deposit-history': 5 / 3,
'asset/withdrawal-history': 5 / 3,
'asset/currencies': 5 / 3,
'asset/bills': 5 / 3,
'asset/piggy-balance': 5 / 3,
'trade/order': 1 / 3,
'trade/orders-pending': 1,
'trade/orders-history': 0.5,
'trade/orders-history-archive': 1,
'trade/fills': 1 / 3,
'trade/fills-history': 2,
'trade/orders-algo-pending': 1,
'trade/orders-algo-history': 1,
'account/subaccount/balances': 10,
'asset/subaccount/bills': 5 / 3,
'users/subaccount/list': 10,
},
'post': {
'account/set-position-mode': 60,
'account/set-leverage': 15,
'account/position/margin-balance': 15,
'account/set-greeks': 60,
'asset/transfer': 150,
'asset/withdrawal': 25,
'asset/purchase_redempt': 25,
'trade/order': 5,
'trade/batch-orders': 1,
'trade/cancel-order': 5,
'trade/cancel-batch-orders': 1,
'trade/amend-order': 5,
'trade/amend-batch-orders': 5,
'trade/close-position': 15,
'trade/order-algo': 15,
'trade/cancel-algos': 15,
'trade/cancel-advance-algos': 15,
'users/subaccount/delete-apikey': 150,
'users/subaccount/modify-apikey': 150,
'users/subaccount/apikey': 150,
'asset/subaccount/transfer': 150,
'account/set-position-mode': 4,
'account/set-leverage': 1,
'account/position/margin-balance': 1,
'account/set-greeks': 4,
'asset/transfer': 10,
'asset/withdrawal': 5 / 3,
'asset/purchase_redempt': 5 / 3,
'trade/order': 1 / 3,
'trade/batch-orders': 1 / 15,
'trade/cancel-order': 1 / 3,
'trade/cancel-batch-orders': 1 / 15,
'trade/amend-order': 1 / 3,
'trade/amend-batch-orders': 1 / 3,
'trade/close-position': 1,
'trade/order-algo': 1,
'trade/cancel-algos': 1,
'trade/cancel-advance-algos': 1,
'users/subaccount/delete-apikey': 10,
'users/subaccount/modify-apikey': 10,
'users/subaccount/apikey': 10,
'asset/subaccount/transfer': 10,
},
},
},
Expand Down

0 comments on commit ef5be3c

Please sign in to comment.