From 38a4833237d724e40cbd7ccf7302696aa8bd5d36 Mon Sep 17 00:00:00 2001 From: woodliang10 Date: Thu, 17 Oct 2024 16:37:00 +0800 Subject: [PATCH] Deploy website - based on 657adfbb38796790ad4562361dec8cad23367871 --- 404.html | 4 ++-- api-explorer/v5/account/account-info.html | 4 ++-- api-explorer/v5/account/account.html | 4 ++-- api-explorer/v5/account/borrow-history.html | 4 ++-- api-explorer/v5/account/coin-greeks.html | 4 ++-- api-explorer/v5/account/collateral-info.html | 4 ++-- api-explorer/v5/account/fee-rate.html | 4 ++-- api-explorer/v5/account/set-collateral.html | 4 ++-- api-explorer/v5/account/set-margin-mode.html | 4 ++-- api-explorer/v5/account/set-spot-hedge.html | 4 ++-- api-explorer/v5/account/transaction-log.html | 4 ++-- api-explorer/v5/account/upgrade-unified-account.html | 4 ++-- api-explorer/v5/account/wallet.html | 4 ++-- api-explorer/v5/asset/account-coin-balance.html | 4 ++-- api-explorer/v5/asset/all-balance.html | 4 ++-- api-explorer/v5/asset/asset-info.html | 4 ++-- api-explorer/v5/asset/asset.html | 4 ++-- api-explorer/v5/asset/coin-info.html | 4 ++-- api-explorer/v5/asset/create-inter-transfer.html | 4 ++-- api-explorer/v5/asset/delivery.html | 4 ++-- api-explorer/v5/asset/deposit-coin-spec.html | 4 ++-- api-explorer/v5/asset/deposit-record.html | 4 ++-- api-explorer/v5/asset/exchange.html | 4 ++-- api-explorer/v5/asset/inter-transfer-list.html | 4 ++-- api-explorer/v5/asset/internal-deposit-record.html | 4 ++-- api-explorer/v5/asset/master-deposit-addr.html | 4 ++-- api-explorer/v5/asset/set-deposit-acct.html | 4 ++-- api-explorer/v5/asset/settlement.html | 4 ++-- api-explorer/v5/asset/sub-deposit-addr.html | 4 ++-- api-explorer/v5/asset/sub-deposit-record.html | 4 ++-- api-explorer/v5/asset/sub-uid-list.html | 4 ++-- api-explorer/v5/asset/transferable-coin.html | 4 ++-- api-explorer/v5/asset/unitransfer-list.html | 4 ++-- api-explorer/v5/asset/unitransfer.html | 4 ++-- api-explorer/v5/asset/withdraw-record.html | 4 ++-- api-explorer/v5/category.html | 4 ++-- api-explorer/v5/lt/etp.html | 4 ++-- api-explorer/v5/lt/leverage-token-info.html | 4 ++-- api-explorer/v5/lt/leverage-token-reference.html | 4 ++-- api-explorer/v5/lt/order-record.html | 4 ++-- api-explorer/v5/lt/purchase.html | 4 ++-- api-explorer/v5/lt/redeem.html | 4 ++-- api-explorer/v5/market/delivery-price.html | 4 ++-- api-explorer/v5/market/history-fund-rate.html | 4 ++-- api-explorer/v5/market/index-kline.html | 4 ++-- api-explorer/v5/market/instrument.html | 4 ++-- api-explorer/v5/market/insurance.html | 4 ++-- api-explorer/v5/market/iv.html | 4 ++-- api-explorer/v5/market/kline.html | 4 ++-- api-explorer/v5/market/long-short-ratio.html | 4 ++-- api-explorer/v5/market/mark-kline.html | 4 ++-- api-explorer/v5/market/market.html | 4 ++-- api-explorer/v5/market/open-interest.html | 4 ++-- api-explorer/v5/market/orderbook.html | 4 ++-- api-explorer/v5/market/premium-index-kline.html | 4 ++-- api-explorer/v5/market/recent-trade.html | 4 ++-- api-explorer/v5/market/risk-limit.html | 4 ++-- api-explorer/v5/market/tickers.html | 4 ++-- api-explorer/v5/market/time.html | 4 ++-- api-explorer/v5/position/auto-add-margin.html | 4 ++-- api-explorer/v5/position/close-pnl.html | 4 ++-- api-explorer/v5/position/cross-isolate.html | 4 ++-- api-explorer/v5/position/execution.html | 4 ++-- api-explorer/v5/position/leverage.html | 4 ++-- api-explorer/v5/position/manual-add-margin.html | 4 ++-- api-explorer/v5/position/position-info.html | 4 ++-- api-explorer/v5/position/position-mode.html | 4 ++-- api-explorer/v5/position/position.html | 4 ++-- api-explorer/v5/position/set-risk-limit.html | 4 ++-- api-explorer/v5/position/tpsl-mode.html | 4 ++-- api-explorer/v5/position/trading-stop.html | 4 ++-- api-explorer/v5/spot-margin-normal/account-info.html | 4 ++-- api-explorer/v5/spot-margin-normal/borrow-order.html | 4 ++-- api-explorer/v5/spot-margin-normal/borrow.html | 4 ++-- .../v5/spot-margin-normal/borrowable-data.html | 4 ++-- api-explorer/v5/spot-margin-normal/interest-quota.html | 4 ++-- api-explorer/v5/spot-margin-normal/margin-data.html | 4 ++-- .../v5/spot-margin-normal/normal-margin-trade.html | 4 ++-- api-explorer/v5/spot-margin-normal/repay-order.html | 4 ++-- api-explorer/v5/spot-margin-normal/repay.html | 4 ++-- api-explorer/v5/spot-margin-normal/switch-mode.html | 4 ++-- api-explorer/v5/spot-margin-normal/vip-margin.html | 4 ++-- api-explorer/v5/spot-margin-uta/set-leverage.html | 4 ++-- api-explorer/v5/spot-margin-uta/status.html | 4 ++-- api-explorer/v5/spot-margin-uta/switch-mode.html | 4 ++-- api-explorer/v5/spot-margin-uta/uta-margin-trade.html | 4 ++-- api-explorer/v5/spot-margin-uta/vip-margin.html | 4 ++-- api-explorer/v5/trade/amend-order.html | 4 ++-- api-explorer/v5/trade/batch-amend.html | 4 ++-- api-explorer/v5/trade/batch-cancel.html | 4 ++-- api-explorer/v5/trade/batch-place.html | 4 ++-- api-explorer/v5/trade/cancel-all.html | 4 ++-- api-explorer/v5/trade/cancel-order.html | 4 ++-- api-explorer/v5/trade/create-order.html | 4 ++-- api-explorer/v5/trade/open-order.html | 4 ++-- api-explorer/v5/trade/order-list.html | 4 ++-- api-explorer/v5/trade/query-spot-quota.html | 4 ++-- api-explorer/v5/trade/trade.html | 4 ++-- api-explorer/v5/user/affiliate-info.html | 4 ++-- api-explorer/v5/user/apikey-info.html | 4 ++-- api-explorer/v5/user/list-sub-apikeys.html | 4 ++-- api-explorer/v5/user/user.html | 4 ++-- api-explorer/v5/user/wallet-type.html | 4 ++-- assets/js/0abae2e0.597360bd.js | 1 - assets/js/0abae2e0.9749355d.js | 1 + .../js/{935f2afb.10e441fa.js => 935f2afb.c11f4948.js} | 2 +- ...ntime~main.06495d3f.js => runtime~main.81110349.js} | 2 +- changelog/v5.html | 4 ++-- faq.html | 4 ++-- index.html | 4 ++-- markdown-page.html | 4 ++-- pilot-feature.html | 4 ++-- search.html | 4 ++-- tax/data-export.html | 4 ++-- tax/enum.html | 4 ++-- tax/explain.html | 4 ++-- tax/report.html | 4 ++-- tax/status.html | 4 ++-- tax/time.html | 4 ++-- v3/intro.html | 4 ++-- v5/abandon/account-info.html | 4 ++-- v5/abandon/cancel-redeem.html | 4 ++-- v5/abandon/coin-info.html | 4 ++-- v5/abandon/deposit.html | 4 ++-- v5/abandon/earning.html | 4 ++-- v5/abandon/enable-unitransfer-subuid.html | 4 ++-- v5/abandon/ltv.html | 4 ++-- v5/abandon/margin-coin-info.html | 4 ++-- v5/abandon/order-record.html | 4 ++-- v5/abandon/redeem.html | 4 ++-- v5/account/account-info.html | 4 ++-- v5/account/batch-set-collateral.html | 4 ++-- v5/account/borrow-history.html | 4 ++-- v5/account/coin-greeks.html | 4 ++-- v5/account/collateral-info.html | 4 ++-- v5/account/contract-transaction-log.html | 4 ++-- v5/account/dcp-info.html | 4 ++-- v5/account/fee-rate.html | 4 ++-- v5/account/get-mmp-state.html | 4 ++-- v5/account/repay-liability.html | 4 ++-- v5/account/reset-mmp.html | 4 ++-- v5/account/set-collateral.html | 4 ++-- v5/account/set-margin-mode.html | 4 ++-- v5/account/set-mmp.html | 4 ++-- v5/account/set-spot-hedge.html | 4 ++-- v5/account/smp-group.html | 4 ++-- v5/account/transaction-log.html | 4 ++-- v5/account/upgrade-unified-account.html | 4 ++-- v5/account/wallet-balance.html | 4 ++-- v5/acct-mode.html | 4 ++-- v5/announcement.html | 4 ++-- v5/asset/balance/account-coin-balance.html | 4 ++-- v5/asset/balance/all-balance.html | 4 ++-- v5/asset/balance/asset-info.html | 4 ++-- v5/asset/balance/delay-amount.html | 4 ++-- v5/asset/coin-info.html | 4 ++-- v5/asset/convert/apply-quote.html | 4 ++-- v5/asset/convert/confirm-quote.html | 4 ++-- v5/asset/convert/convert-coin-list.html | 4 ++-- v5/asset/convert/get-convert-history.html | 4 ++-- v5/asset/convert/get-convert-result.html | 4 ++-- v5/asset/convert/guideline.html | 4 ++-- v5/asset/delivery.html | 4 ++-- v5/asset/deposit/deposit-coin-spec.html | 4 ++-- v5/asset/deposit/deposit-record.html | 4 ++-- v5/asset/deposit/internal-deposit-record.html | 4 ++-- v5/asset/deposit/master-deposit-addr.html | 4 ++-- v5/asset/deposit/set-deposit-acct.html | 4 ++-- v5/asset/deposit/sub-deposit-addr.html | 4 ++-- v5/asset/deposit/sub-deposit-record.html | 4 ++-- v5/asset/exchange.html | 4 ++-- v5/asset/settlement.html | 4 ++-- v5/asset/sub-uid-list.html | 4 ++-- v5/asset/transfer/create-inter-transfer.html | 4 ++-- v5/asset/transfer/inter-transfer-list.html | 4 ++-- v5/asset/transfer/transferable-coin.html | 4 ++-- v5/asset/transfer/unitransfer-list.html | 4 ++-- v5/asset/transfer/unitransfer.html | 4 ++-- v5/asset/withdraw.html | 4 ++-- v5/asset/withdraw/cancel-withdraw.html | 4 ++-- v5/asset/withdraw/vasp-list.html | 4 ++-- v5/asset/withdraw/withdraw-record.html | 4 ++-- v5/backup/set-pledge-token.html | 4 ++-- v5/broker/account-info.html | 4 ++-- v5/broker/exchange-earning.html | 4 ++-- v5/broker/reward/get-issue-voucher.html | 4 ++-- v5/broker/reward/issue-voucher.html | 4 ++-- v5/broker/reward/voucher.html | 4 ++-- v5/broker/sub-deposit-record.html | 4 ++-- v5/copytrade.html | 4 ++-- v5/crypto-loan/acct-borrow-collateral.html | 4 ++-- v5/crypto-loan/adjust-collateral.html | 4 ++-- v5/crypto-loan/borrow.html | 4 ++-- v5/crypto-loan/collateral-coin.html | 4 ++-- v5/crypto-loan/comleted-loan-order.html | 4 ++-- v5/crypto-loan/loan-coin.html | 4 ++-- v5/crypto-loan/ltv-adjust-history.html | 4 ++-- v5/crypto-loan/reduce-max-collateral-amt.html | 4 ++-- v5/crypto-loan/repay-transaction.html | 4 ++-- v5/crypto-loan/repay.html | 4 ++-- v5/crypto-loan/unpaid-loan-order.html | 4 ++-- v5/demo.html | 4 ++-- v5/enum.html | 4 ++-- v5/error.html | 4 ++-- v5/guide.html | 4 ++-- v5/intro.html | 4 ++-- v5/lt/leverage-token-info.html | 4 ++-- v5/lt/leverage-token-reference.html | 4 ++-- v5/lt/order-record.html | 4 ++-- v5/lt/purchase.html | 4 ++-- v5/lt/redeem.html | 4 ++-- v5/market/delivery-price.html | 4 ++-- v5/market/history-fund-rate.html | 4 ++-- v5/market/index-kline.html | 4 ++-- v5/market/instrument.html | 4 ++-- v5/market/insurance.html | 4 ++-- v5/market/iv.html | 4 ++-- v5/market/kline.html | 4 ++-- v5/market/long-short-ratio.html | 4 ++-- v5/market/mark-kline.html | 4 ++-- v5/market/open-interest.html | 4 ++-- v5/market/orderbook.html | 4 ++-- v5/market/preimum-index-kline.html | 4 ++-- v5/market/recent-trade.html | 4 ++-- v5/market/risk-limit.html | 4 ++-- v5/market/tickers.html | 4 ++-- v5/market/time.html | 4 ++-- v5/order/amend-order.html | 4 ++-- v5/order/batch-amend.html | 4 ++-- v5/order/batch-cancel.html | 4 ++-- v5/order/batch-place.html | 4 ++-- v5/order/cancel-all.html | 4 ++-- v5/order/cancel-order.html | 4 ++-- v5/order/create-order.html | 4 ++-- v5/order/dcp.html | 4 ++-- v5/order/execution.html | 4 ++-- v5/order/open-order.html | 4 ++-- v5/order/order-list.html | 4 ++-- v5/order/spot-borrow-quota.html | 4 ++-- v5/otc/bind-uid.html | 4 ++-- v5/otc/loan-info.html | 4 ++-- v5/otc/ltv-convert.html | 4 ++-- v5/otc/margin-coin-convert-info.html | 4 ++-- v5/otc/margin-product-info.html | 4 ++-- v5/otc/repay-info.html | 4 ++-- v5/position.html | 4 ++-- v5/position/auto-add-margin.html | 4 ++-- v5/position/close-pnl.html | 4 ++-- v5/position/confirm-mmr.html | 4 ++-- v5/position/cross-isolate.html | 4 ++-- v5/position/leverage.html | 10 ++++++---- v5/position/manual-add-margin.html | 4 ++-- v5/position/move-position-history.html | 4 ++-- v5/position/move-position.html | 4 ++-- v5/position/position-mode.html | 4 ++-- v5/position/set-risk-limit.html | 4 ++-- v5/position/tpsl-mode.html | 4 ++-- v5/position/trading-stop.html | 4 ++-- v5/pre-upgrade/close-pnl.html | 4 ++-- v5/pre-upgrade/delivery.html | 4 ++-- v5/pre-upgrade/execution.html | 4 ++-- v5/pre-upgrade/order-list.html | 4 ++-- v5/pre-upgrade/settlement.html | 4 ++-- v5/pre-upgrade/transaction-log.html | 4 ++-- v5/rate-limit.html | 4 ++-- v5/smp.html | 4 ++-- v5/spot-margin-normal/account-info.html | 4 ++-- v5/spot-margin-normal/borrow-order.html | 4 ++-- v5/spot-margin-normal/borrow.html | 4 ++-- v5/spot-margin-normal/borrowable-data.html | 4 ++-- v5/spot-margin-normal/interest-quota.html | 4 ++-- v5/spot-margin-normal/margin-data.html | 4 ++-- v5/spot-margin-normal/repay-order.html | 4 ++-- v5/spot-margin-normal/repay.html | 4 ++-- v5/spot-margin-normal/switch-mode.html | 4 ++-- v5/spot-margin-normal/vip-margin.html | 4 ++-- v5/spot-margin-uta/historical-interest.html | 4 ++-- v5/spot-margin-uta/set-leverage.html | 4 ++-- v5/spot-margin-uta/status.html | 4 ++-- v5/spot-margin-uta/switch-mode.html | 4 ++-- v5/spot-margin-uta/vip-margin.html | 4 ++-- v5/user/affiliate-info.html | 4 ++-- v5/user/apikey-info.html | 4 ++-- v5/user/create-subuid-apikey.html | 4 ++-- v5/user/create-subuid.html | 4 ++-- v5/user/froze-subuid.html | 4 ++-- v5/user/list-sub-apikeys.html | 4 ++-- v5/user/modify-master-apikey.html | 4 ++-- v5/user/modify-sub-apikey.html | 4 ++-- v5/user/page-subuid.html | 4 ++-- v5/user/rm-master-apikey.html | 4 ++-- v5/user/rm-sub-apikey.html | 4 ++-- v5/user/rm-subuid.html | 4 ++-- v5/user/subuid-list.html | 4 ++-- v5/user/wallet-type.html | 4 ++-- v5/websocket/private/dcp.html | 4 ++-- v5/websocket/private/execution.html | 4 ++-- v5/websocket/private/fast-execution.html | 4 ++-- v5/websocket/private/greek.html | 4 ++-- v5/websocket/private/order.html | 4 ++-- v5/websocket/private/position.html | 4 ++-- v5/websocket/private/wallet.html | 4 ++-- v5/websocket/public/etp-kline.html | 4 ++-- v5/websocket/public/etp-nav.html | 4 ++-- v5/websocket/public/etp-ticker.html | 4 ++-- v5/websocket/public/kline.html | 4 ++-- v5/websocket/public/liquidation.html | 4 ++-- v5/websocket/public/orderbook.html | 4 ++-- v5/websocket/public/ticker.html | 4 ++-- v5/websocket/public/trade.html | 4 ++-- v5/websocket/trade/guideline.html | 4 ++-- v5/ws/connect.html | 4 ++-- zh-TW/404.html | 4 ++-- zh-TW/api-explorer/v5/account/account-info.html | 4 ++-- zh-TW/api-explorer/v5/account/account.html | 4 ++-- zh-TW/api-explorer/v5/account/borrow-history.html | 4 ++-- zh-TW/api-explorer/v5/account/coin-greeks.html | 4 ++-- zh-TW/api-explorer/v5/account/collateral-info.html | 4 ++-- zh-TW/api-explorer/v5/account/fee-rate.html | 4 ++-- zh-TW/api-explorer/v5/account/set-collateral.html | 4 ++-- zh-TW/api-explorer/v5/account/set-margin-mode.html | 4 ++-- zh-TW/api-explorer/v5/account/set-spot-hedge.html | 4 ++-- zh-TW/api-explorer/v5/account/transaction-log.html | 4 ++-- .../v5/account/upgrade-unified-account.html | 4 ++-- zh-TW/api-explorer/v5/account/wallet.html | 4 ++-- zh-TW/api-explorer/v5/asset/account-coin-balance.html | 4 ++-- zh-TW/api-explorer/v5/asset/all-balance.html | 4 ++-- zh-TW/api-explorer/v5/asset/asset-info.html | 4 ++-- zh-TW/api-explorer/v5/asset/asset.html | 4 ++-- zh-TW/api-explorer/v5/asset/coin-info.html | 4 ++-- zh-TW/api-explorer/v5/asset/create-inter-transfer.html | 4 ++-- zh-TW/api-explorer/v5/asset/delivery.html | 4 ++-- zh-TW/api-explorer/v5/asset/deposit-coin-spec.html | 4 ++-- zh-TW/api-explorer/v5/asset/deposit-record.html | 4 ++-- zh-TW/api-explorer/v5/asset/exchange.html | 4 ++-- zh-TW/api-explorer/v5/asset/inter-transfer-list.html | 4 ++-- .../api-explorer/v5/asset/internal-deposit-record.html | 4 ++-- zh-TW/api-explorer/v5/asset/master-deposit-addr.html | 4 ++-- zh-TW/api-explorer/v5/asset/set-deposit-acct.html | 4 ++-- zh-TW/api-explorer/v5/asset/settlement.html | 4 ++-- zh-TW/api-explorer/v5/asset/sub-deposit-addr.html | 4 ++-- zh-TW/api-explorer/v5/asset/sub-deposit-record.html | 4 ++-- zh-TW/api-explorer/v5/asset/sub-uid-list.html | 4 ++-- zh-TW/api-explorer/v5/asset/transferable-coin.html | 4 ++-- zh-TW/api-explorer/v5/asset/unitransfer-list.html | 4 ++-- zh-TW/api-explorer/v5/asset/unitransfer.html | 4 ++-- zh-TW/api-explorer/v5/asset/withdraw-record.html | 4 ++-- zh-TW/api-explorer/v5/category.html | 4 ++-- zh-TW/api-explorer/v5/lt/etp.html | 4 ++-- zh-TW/api-explorer/v5/lt/leverage-token-info.html | 4 ++-- zh-TW/api-explorer/v5/lt/leverage-token-reference.html | 4 ++-- zh-TW/api-explorer/v5/lt/order-record.html | 4 ++-- zh-TW/api-explorer/v5/lt/purchase.html | 4 ++-- zh-TW/api-explorer/v5/lt/redeem.html | 4 ++-- zh-TW/api-explorer/v5/market/delivery-price.html | 4 ++-- zh-TW/api-explorer/v5/market/history-fund-rate.html | 4 ++-- zh-TW/api-explorer/v5/market/index-kline.html | 4 ++-- zh-TW/api-explorer/v5/market/instrument.html | 4 ++-- zh-TW/api-explorer/v5/market/insurance.html | 4 ++-- zh-TW/api-explorer/v5/market/iv.html | 4 ++-- zh-TW/api-explorer/v5/market/kline.html | 4 ++-- zh-TW/api-explorer/v5/market/long-short-ratio.html | 4 ++-- zh-TW/api-explorer/v5/market/mark-kline.html | 4 ++-- zh-TW/api-explorer/v5/market/market.html | 4 ++-- zh-TW/api-explorer/v5/market/open-interest.html | 4 ++-- zh-TW/api-explorer/v5/market/orderbook.html | 4 ++-- zh-TW/api-explorer/v5/market/premium-index-kline.html | 4 ++-- zh-TW/api-explorer/v5/market/recent-trade.html | 4 ++-- zh-TW/api-explorer/v5/market/risk-limit.html | 4 ++-- zh-TW/api-explorer/v5/market/tickers.html | 4 ++-- zh-TW/api-explorer/v5/market/time.html | 4 ++-- zh-TW/api-explorer/v5/position/auto-add-margin.html | 4 ++-- zh-TW/api-explorer/v5/position/close-pnl.html | 4 ++-- zh-TW/api-explorer/v5/position/cross-isolate.html | 4 ++-- zh-TW/api-explorer/v5/position/execution.html | 4 ++-- zh-TW/api-explorer/v5/position/leverage.html | 4 ++-- zh-TW/api-explorer/v5/position/manual-add-margin.html | 4 ++-- zh-TW/api-explorer/v5/position/position-info.html | 4 ++-- zh-TW/api-explorer/v5/position/position-mode.html | 4 ++-- zh-TW/api-explorer/v5/position/position.html | 4 ++-- zh-TW/api-explorer/v5/position/set-risk-limit.html | 4 ++-- zh-TW/api-explorer/v5/position/tpsl-mode.html | 4 ++-- zh-TW/api-explorer/v5/position/trading-stop.html | 4 ++-- .../v5/spot-margin-normal/account-info.html | 4 ++-- .../v5/spot-margin-normal/borrow-order.html | 4 ++-- zh-TW/api-explorer/v5/spot-margin-normal/borrow.html | 4 ++-- .../v5/spot-margin-normal/borrowable-data.html | 4 ++-- .../v5/spot-margin-normal/interest-quota.html | 4 ++-- .../v5/spot-margin-normal/margin-data.html | 4 ++-- .../v5/spot-margin-normal/normal-margin-trade.html | 4 ++-- .../v5/spot-margin-normal/repay-order.html | 4 ++-- zh-TW/api-explorer/v5/spot-margin-normal/repay.html | 4 ++-- .../v5/spot-margin-normal/switch-mode.html | 4 ++-- .../api-explorer/v5/spot-margin-normal/vip-margin.html | 4 ++-- .../api-explorer/v5/spot-margin-uta/set-leverage.html | 4 ++-- zh-TW/api-explorer/v5/spot-margin-uta/status.html | 4 ++-- zh-TW/api-explorer/v5/spot-margin-uta/switch-mode.html | 4 ++-- .../v5/spot-margin-uta/uta-margin-trade.html | 4 ++-- zh-TW/api-explorer/v5/spot-margin-uta/vip-margin.html | 4 ++-- zh-TW/api-explorer/v5/trade/amend-order.html | 4 ++-- zh-TW/api-explorer/v5/trade/batch-amend.html | 4 ++-- zh-TW/api-explorer/v5/trade/batch-cancel.html | 4 ++-- zh-TW/api-explorer/v5/trade/batch-place.html | 4 ++-- zh-TW/api-explorer/v5/trade/cancel-all.html | 4 ++-- zh-TW/api-explorer/v5/trade/cancel-order.html | 4 ++-- zh-TW/api-explorer/v5/trade/create-order.html | 4 ++-- zh-TW/api-explorer/v5/trade/open-order.html | 4 ++-- zh-TW/api-explorer/v5/trade/order-list.html | 4 ++-- zh-TW/api-explorer/v5/trade/query-spot-quota.html | 4 ++-- zh-TW/api-explorer/v5/trade/trade.html | 4 ++-- zh-TW/api-explorer/v5/user/affiliate-info.html | 4 ++-- zh-TW/api-explorer/v5/user/apikey-info.html | 4 ++-- zh-TW/api-explorer/v5/user/list-sub-apikeys.html | 4 ++-- zh-TW/api-explorer/v5/user/user.html | 4 ++-- zh-TW/api-explorer/v5/user/wallet-type.html | 4 ++-- .../js/{935f2afb.31c47aad.js => 935f2afb.9f1c6e04.js} | 2 +- zh-TW/assets/js/955e06fd.87246275.js | 1 + zh-TW/assets/js/955e06fd.efcf7fbc.js | 1 - ...ntime~main.77adad0a.js => runtime~main.a7cc1ae4.js} | 2 +- zh-TW/changelog/v5.html | 4 ++-- zh-TW/faq.html | 4 ++-- zh-TW/index.html | 4 ++-- zh-TW/markdown-page.html | 4 ++-- zh-TW/pilot-feature.html | 4 ++-- zh-TW/search.html | 4 ++-- zh-TW/tax/data-export.html | 4 ++-- zh-TW/tax/enum.html | 4 ++-- zh-TW/tax/explain.html | 4 ++-- zh-TW/tax/report.html | 4 ++-- zh-TW/tax/status.html | 4 ++-- zh-TW/tax/time.html | 4 ++-- zh-TW/v3/intro.html | 4 ++-- zh-TW/v5/abandon/account-info.html | 4 ++-- zh-TW/v5/abandon/cancel-redeem.html | 4 ++-- zh-TW/v5/abandon/coin-info.html | 4 ++-- zh-TW/v5/abandon/deposit.html | 4 ++-- zh-TW/v5/abandon/earning.html | 4 ++-- zh-TW/v5/abandon/enable-unitransfer-subuid.html | 4 ++-- zh-TW/v5/abandon/ltv.html | 4 ++-- zh-TW/v5/abandon/margin-coin-info.html | 4 ++-- zh-TW/v5/abandon/order-record.html | 4 ++-- zh-TW/v5/abandon/redeem.html | 4 ++-- zh-TW/v5/account/account-info.html | 4 ++-- zh-TW/v5/account/batch-set-collateral.html | 4 ++-- zh-TW/v5/account/borrow-history.html | 4 ++-- zh-TW/v5/account/coin-greeks.html | 4 ++-- zh-TW/v5/account/collateral-info.html | 4 ++-- zh-TW/v5/account/contract-transaction-log.html | 4 ++-- zh-TW/v5/account/dcp-info.html | 4 ++-- zh-TW/v5/account/fee-rate.html | 4 ++-- zh-TW/v5/account/get-mmp-state.html | 4 ++-- zh-TW/v5/account/repay-liability.html | 4 ++-- zh-TW/v5/account/reset-mmp.html | 4 ++-- zh-TW/v5/account/set-collateral.html | 4 ++-- zh-TW/v5/account/set-margin-mode.html | 4 ++-- zh-TW/v5/account/set-mmp.html | 4 ++-- zh-TW/v5/account/set-spot-hedge.html | 4 ++-- zh-TW/v5/account/smp-group.html | 4 ++-- zh-TW/v5/account/transaction-log.html | 4 ++-- zh-TW/v5/account/upgrade-unified-account.html | 4 ++-- zh-TW/v5/account/wallet-balance.html | 4 ++-- zh-TW/v5/acct-mode.html | 4 ++-- zh-TW/v5/announcement.html | 4 ++-- zh-TW/v5/asset/balance/account-coin-balance.html | 4 ++-- zh-TW/v5/asset/balance/all-balance.html | 4 ++-- zh-TW/v5/asset/balance/asset-info.html | 4 ++-- zh-TW/v5/asset/balance/delay-amount.html | 4 ++-- zh-TW/v5/asset/coin-info.html | 4 ++-- zh-TW/v5/asset/convert/apply-quote.html | 4 ++-- zh-TW/v5/asset/convert/confirm-quote.html | 4 ++-- zh-TW/v5/asset/convert/convert-coin-list.html | 4 ++-- zh-TW/v5/asset/convert/get-convert-history.html | 4 ++-- zh-TW/v5/asset/convert/get-convert-result.html | 4 ++-- zh-TW/v5/asset/convert/guideline.html | 4 ++-- zh-TW/v5/asset/delivery.html | 4 ++-- zh-TW/v5/asset/deposit/deposit-coin-spec.html | 4 ++-- zh-TW/v5/asset/deposit/deposit-record.html | 4 ++-- zh-TW/v5/asset/deposit/internal-deposit-record.html | 4 ++-- zh-TW/v5/asset/deposit/master-deposit-addr.html | 4 ++-- zh-TW/v5/asset/deposit/set-deposit-acct.html | 4 ++-- zh-TW/v5/asset/deposit/sub-deposit-addr.html | 4 ++-- zh-TW/v5/asset/deposit/sub-deposit-record.html | 4 ++-- zh-TW/v5/asset/exchange.html | 4 ++-- zh-TW/v5/asset/settlement.html | 4 ++-- zh-TW/v5/asset/sub-uid-list.html | 4 ++-- zh-TW/v5/asset/transfer/create-inter-transfer.html | 4 ++-- zh-TW/v5/asset/transfer/inter-transfer-list.html | 4 ++-- zh-TW/v5/asset/transfer/transferable-coin.html | 4 ++-- zh-TW/v5/asset/transfer/unitransfer-list.html | 4 ++-- zh-TW/v5/asset/transfer/unitransfer.html | 4 ++-- zh-TW/v5/asset/withdraw.html | 4 ++-- zh-TW/v5/asset/withdraw/cancel-withdraw.html | 4 ++-- zh-TW/v5/asset/withdraw/vasp-list.html | 4 ++-- zh-TW/v5/asset/withdraw/withdraw-record.html | 4 ++-- zh-TW/v5/backup/set-pledge-token.html | 4 ++-- zh-TW/v5/broker/account-info.html | 4 ++-- zh-TW/v5/broker/exchange-earning.html | 4 ++-- zh-TW/v5/broker/reward/get-issue-voucher.html | 4 ++-- zh-TW/v5/broker/reward/issue-voucher.html | 4 ++-- zh-TW/v5/broker/reward/voucher.html | 4 ++-- zh-TW/v5/broker/sub-deposit-record.html | 4 ++-- zh-TW/v5/copytrade.html | 4 ++-- zh-TW/v5/crypto-loan/acct-borrow-collateral.html | 4 ++-- zh-TW/v5/crypto-loan/adjust-collateral.html | 4 ++-- zh-TW/v5/crypto-loan/borrow.html | 4 ++-- zh-TW/v5/crypto-loan/collateral-coin.html | 4 ++-- zh-TW/v5/crypto-loan/comleted-loan-order.html | 4 ++-- zh-TW/v5/crypto-loan/loan-coin.html | 4 ++-- zh-TW/v5/crypto-loan/ltv-adjust-history.html | 4 ++-- zh-TW/v5/crypto-loan/reduce-max-collateral-amt.html | 4 ++-- zh-TW/v5/crypto-loan/repay-transaction.html | 4 ++-- zh-TW/v5/crypto-loan/repay.html | 4 ++-- zh-TW/v5/crypto-loan/unpaid-loan-order.html | 4 ++-- zh-TW/v5/demo.html | 4 ++-- zh-TW/v5/enum.html | 4 ++-- zh-TW/v5/error.html | 4 ++-- zh-TW/v5/guide.html | 4 ++-- zh-TW/v5/intro.html | 4 ++-- zh-TW/v5/lt/leverage-token-info.html | 4 ++-- zh-TW/v5/lt/leverage-token-reference.html | 4 ++-- zh-TW/v5/lt/order-record.html | 4 ++-- zh-TW/v5/lt/purchase.html | 4 ++-- zh-TW/v5/lt/redeem.html | 4 ++-- zh-TW/v5/market/delivery-price.html | 4 ++-- zh-TW/v5/market/history-fund-rate.html | 4 ++-- zh-TW/v5/market/index-kline.html | 4 ++-- zh-TW/v5/market/instrument.html | 4 ++-- zh-TW/v5/market/insurance.html | 4 ++-- zh-TW/v5/market/iv.html | 4 ++-- zh-TW/v5/market/kline.html | 4 ++-- zh-TW/v5/market/long-short-ratio.html | 4 ++-- zh-TW/v5/market/mark-kline.html | 4 ++-- zh-TW/v5/market/open-interest.html | 4 ++-- zh-TW/v5/market/orderbook.html | 4 ++-- zh-TW/v5/market/preimum-index-kline.html | 4 ++-- zh-TW/v5/market/recent-trade.html | 4 ++-- zh-TW/v5/market/risk-limit.html | 4 ++-- zh-TW/v5/market/tickers.html | 4 ++-- zh-TW/v5/market/time.html | 4 ++-- zh-TW/v5/order/amend-order.html | 4 ++-- zh-TW/v5/order/batch-amend.html | 4 ++-- zh-TW/v5/order/batch-cancel.html | 4 ++-- zh-TW/v5/order/batch-place.html | 4 ++-- zh-TW/v5/order/cancel-all.html | 4 ++-- zh-TW/v5/order/cancel-order.html | 4 ++-- zh-TW/v5/order/create-order.html | 4 ++-- zh-TW/v5/order/dcp.html | 4 ++-- zh-TW/v5/order/execution.html | 4 ++-- zh-TW/v5/order/open-order.html | 4 ++-- zh-TW/v5/order/order-list.html | 4 ++-- zh-TW/v5/order/spot-borrow-quota.html | 4 ++-- zh-TW/v5/otc/bind-uid.html | 4 ++-- zh-TW/v5/otc/loan-info.html | 4 ++-- zh-TW/v5/otc/ltv-convert.html | 4 ++-- zh-TW/v5/otc/margin-coin-convert-info.html | 4 ++-- zh-TW/v5/otc/margin-product-info.html | 4 ++-- zh-TW/v5/otc/repay-info.html | 4 ++-- zh-TW/v5/position.html | 4 ++-- zh-TW/v5/position/auto-add-margin.html | 4 ++-- zh-TW/v5/position/close-pnl.html | 4 ++-- zh-TW/v5/position/confirm-mmr.html | 4 ++-- zh-TW/v5/position/cross-isolate.html | 4 ++-- zh-TW/v5/position/leverage.html | 8 ++++---- zh-TW/v5/position/manual-add-margin.html | 4 ++-- zh-TW/v5/position/move-position-history.html | 4 ++-- zh-TW/v5/position/move-position.html | 4 ++-- zh-TW/v5/position/position-mode.html | 4 ++-- zh-TW/v5/position/set-risk-limit.html | 4 ++-- zh-TW/v5/position/tpsl-mode.html | 4 ++-- zh-TW/v5/position/trading-stop.html | 4 ++-- zh-TW/v5/pre-upgrade/close-pnl.html | 4 ++-- zh-TW/v5/pre-upgrade/delivery.html | 4 ++-- zh-TW/v5/pre-upgrade/execution.html | 4 ++-- zh-TW/v5/pre-upgrade/order-list.html | 4 ++-- zh-TW/v5/pre-upgrade/settlement.html | 4 ++-- zh-TW/v5/pre-upgrade/transaction-log.html | 4 ++-- zh-TW/v5/rate-limit.html | 4 ++-- zh-TW/v5/smp.html | 4 ++-- zh-TW/v5/spot-margin-normal/account-info.html | 4 ++-- zh-TW/v5/spot-margin-normal/borrow-order.html | 4 ++-- zh-TW/v5/spot-margin-normal/borrow.html | 4 ++-- zh-TW/v5/spot-margin-normal/borrowable-data.html | 4 ++-- zh-TW/v5/spot-margin-normal/interest-quota.html | 4 ++-- zh-TW/v5/spot-margin-normal/margin-data.html | 4 ++-- zh-TW/v5/spot-margin-normal/repay-order.html | 4 ++-- zh-TW/v5/spot-margin-normal/repay.html | 4 ++-- zh-TW/v5/spot-margin-normal/switch-mode.html | 4 ++-- zh-TW/v5/spot-margin-normal/vip-margin.html | 4 ++-- zh-TW/v5/spot-margin-uta/historical-interest.html | 4 ++-- zh-TW/v5/spot-margin-uta/set-leverage.html | 4 ++-- zh-TW/v5/spot-margin-uta/status.html | 4 ++-- zh-TW/v5/spot-margin-uta/switch-mode.html | 4 ++-- zh-TW/v5/spot-margin-uta/vip-margin.html | 4 ++-- zh-TW/v5/user/affiliate-info.html | 4 ++-- zh-TW/v5/user/apikey-info.html | 4 ++-- zh-TW/v5/user/create-subuid-apikey.html | 4 ++-- zh-TW/v5/user/create-subuid.html | 4 ++-- zh-TW/v5/user/froze-subuid.html | 4 ++-- zh-TW/v5/user/list-sub-apikeys.html | 4 ++-- zh-TW/v5/user/modify-master-apikey.html | 4 ++-- zh-TW/v5/user/modify-sub-apikey.html | 4 ++-- zh-TW/v5/user/page-subuid.html | 4 ++-- zh-TW/v5/user/rm-master-apikey.html | 4 ++-- zh-TW/v5/user/rm-sub-apikey.html | 4 ++-- zh-TW/v5/user/rm-subuid.html | 4 ++-- zh-TW/v5/user/subuid-list.html | 4 ++-- zh-TW/v5/user/wallet-type.html | 4 ++-- zh-TW/v5/websocket/private/dcp.html | 4 ++-- zh-TW/v5/websocket/private/execution.html | 4 ++-- zh-TW/v5/websocket/private/fast-execution.html | 4 ++-- zh-TW/v5/websocket/private/greek.html | 4 ++-- zh-TW/v5/websocket/private/order.html | 4 ++-- zh-TW/v5/websocket/private/position.html | 4 ++-- zh-TW/v5/websocket/private/wallet.html | 4 ++-- zh-TW/v5/websocket/public/etp-kline.html | 4 ++-- zh-TW/v5/websocket/public/etp-nav.html | 4 ++-- zh-TW/v5/websocket/public/etp-ticker.html | 4 ++-- zh-TW/v5/websocket/public/kline.html | 4 ++-- zh-TW/v5/websocket/public/liquidation.html | 4 ++-- zh-TW/v5/websocket/public/orderbook.html | 4 ++-- zh-TW/v5/websocket/public/ticker.html | 4 ++-- zh-TW/v5/websocket/public/trade.html | 4 ++-- zh-TW/v5/websocket/trade/guideline.html | 4 ++-- zh-TW/v5/ws/connect.html | 4 ++-- 624 files changed, 1244 insertions(+), 1242 deletions(-) delete mode 100644 assets/js/0abae2e0.597360bd.js create mode 100644 assets/js/0abae2e0.9749355d.js rename assets/js/{935f2afb.10e441fa.js => 935f2afb.c11f4948.js} (87%) rename assets/js/{runtime~main.06495d3f.js => runtime~main.81110349.js} (99%) rename zh-TW/assets/js/{935f2afb.31c47aad.js => 935f2afb.9f1c6e04.js} (85%) create mode 100644 zh-TW/assets/js/955e06fd.87246275.js delete mode 100644 zh-TW/assets/js/955e06fd.efcf7fbc.js rename zh-TW/assets/js/{runtime~main.77adad0a.js => runtime~main.a7cc1ae4.js} (99%) diff --git a/404.html b/404.html index db55fbce43..ce0fdb9491 100644 --- a/404.html +++ b/404.html @@ -4,13 +4,13 @@ Page Not Found | Bybit API Documentation - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/api-explorer/v5/account/account-info.html b/api-explorer/v5/account/account-info.html index 6ec26e7598..940a3dbfd1 100644 --- a/api-explorer/v5/account/account-info.html +++ b/api-explorer/v5/account/account-info.html @@ -4,13 +4,13 @@ Get Account Info | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/account/account.html b/api-explorer/v5/account/account.html index 46c46ab1cb..f1761f9cae 100644 --- a/api-explorer/v5/account/account.html +++ b/api-explorer/v5/account/account.html @@ -4,13 +4,13 @@ Account | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/account/borrow-history.html b/api-explorer/v5/account/borrow-history.html index 8d6bc2ce8d..47742330ba 100644 --- a/api-explorer/v5/account/borrow-history.html +++ b/api-explorer/v5/account/borrow-history.html @@ -4,13 +4,13 @@ Get Borrow History | Bybit API Documentation - +
Skip to main content

Get Borrow History

Get borrow history

Query Parameters
  • currency string

    e.g., USDC, USDT, BTC, ETH

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 20

    Limit per page. 1-50

  • cursor string

    Cusor, used for pagiation

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/coin-greeks.html b/api-explorer/v5/account/coin-greeks.html index 16c9abd0a5..3c05007686 100644 --- a/api-explorer/v5/account/coin-greeks.html +++ b/api-explorer/v5/account/coin-greeks.html @@ -4,13 +4,13 @@ Get Coin Greeks | Bybit API Documentation - +
Skip to main content

Get Coin Greeks

Get coin greek info

Query Parameters
  • baseCoin string

    Base coin

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/collateral-info.html b/api-explorer/v5/account/collateral-info.html index 734f57c0b2..2eb22bf89b 100644 --- a/api-explorer/v5/account/collateral-info.html +++ b/api-explorer/v5/account/collateral-info.html @@ -4,13 +4,13 @@ Get Collateral Info | Bybit API Documentation - +
Skip to main content

Get Collateral Info

Get collateral info

Query Parameters
  • currency string

    Collateral asset

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/fee-rate.html b/api-explorer/v5/account/fee-rate.html index f054248a83..880ea339d3 100644 --- a/api-explorer/v5/account/fee-rate.html +++ b/api-explorer/v5/account/fee-rate.html @@ -4,13 +4,13 @@ Get Fee Rate | Bybit API Documentation - +
Skip to main content

Get Fee Rate

Get fee rate

Query Parameters
  • category string required

    Possible values: [spot, linear, inverse, option]

    Product type. working for spot and option

  • symbol string

    Symbol name. valid for linear,inverse and spot

  • baseCoin string

    Possible values: [SOL, BTC, ETH]

    Base coin. Valid for option

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/set-collateral.html b/api-explorer/v5/account/set-collateral.html index 7845df450f..743ccd4c91 100644 --- a/api-explorer/v5/account/set-collateral.html +++ b/api-explorer/v5/account/set-collateral.html @@ -4,13 +4,13 @@ Set Collateral Coin | Bybit API Documentation - +
Skip to main content

Set Collateral Coin

Set collateral coin

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • coin string required

    coin

  • collateralSwitch string required

    Possible values: [ON, OFF]

    coin

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/set-margin-mode.html b/api-explorer/v5/account/set-margin-mode.html index a03bc87c53..7364e2a2ca 100644 --- a/api-explorer/v5/account/set-margin-mode.html +++ b/api-explorer/v5/account/set-margin-mode.html @@ -4,13 +4,13 @@ Set Margin Mode | Bybit API Documentation - +
Skip to main content

Set Margin Mode

Set margin mode

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • setMarginMode string required

    Possible values: [REGULAR_MARGIN, ISOLATED_MARGIN, PORTFOLIO_MARGIN]

    Margin mode

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/set-spot-hedge.html b/api-explorer/v5/account/set-spot-hedge.html index 8b58fdb7ef..6a9ef9d2f8 100644 --- a/api-explorer/v5/account/set-spot-hedge.html +++ b/api-explorer/v5/account/set-spot-hedge.html @@ -4,13 +4,13 @@ Set Spot Hedging | Bybit API Documentation - +
Skip to main content

Set Spot Hedging

Set spot hedging for Portfolio margin

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • setHedgingMode string required

    Possible values: [ON, OFF]

    on or off spot hedging mode

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/transaction-log.html b/api-explorer/v5/account/transaction-log.html index d55c070be8..cbd222ef79 100644 --- a/api-explorer/v5/account/transaction-log.html +++ b/api-explorer/v5/account/transaction-log.html @@ -4,13 +4,13 @@ Get Transaction Log | Bybit API Documentation - +
Skip to main content

Get Transaction Log

Get transaction log

Query Parameters
  • accountType string

    Possible values: [UNIFIED]

    Support UNIFIED for now

  • category string

    Possible values: [spot, linear, option]

    Product category

  • currency string

    Currency

  • baseCoin string

    Base coin

  • type string

    Possible values: [TRANSFER_IN, TRANSFER_OUT, TRADE, SETTLEMENT, DELIVERY, LIQUIDATION, BONUS, FEE_REFUND, INTEREST, CURRENCY_BUY, CURRENCY_SELL]

    Transaction log type

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 20

    Limit size for each page. 1-50

  • cursor string

    Cursor, used for pagination

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/upgrade-unified-account.html b/api-explorer/v5/account/upgrade-unified-account.html index 911ee82cf6..32db4cec4a 100644 --- a/api-explorer/v5/account/upgrade-unified-account.html +++ b/api-explorer/v5/account/upgrade-unified-account.html @@ -4,13 +4,13 @@ Upgrade to Unified Account | Bybit API Documentation - +
Skip to main content

Upgrade to Unified Account

Upgrade to UTA

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • object
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/account/wallet.html b/api-explorer/v5/account/wallet.html index 9665c0555c..cb84af4474 100644 --- a/api-explorer/v5/account/wallet.html +++ b/api-explorer/v5/account/wallet.html @@ -4,13 +4,13 @@ Get Wallet Balance | Bybit API Documentation - +
Skip to main content

Get Wallet Balance

Get wallet balance

Query Parameters
  • accountType string required

    Possible values: [UNIFIED, CONTRACT, SPOT]

    Account type

  • coin string

    Coin name. You can pass mutiple coins like USDT,USDC

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/account-coin-balance.html b/api-explorer/v5/asset/account-coin-balance.html index 9a7913fabf..88f3846262 100644 --- a/api-explorer/v5/asset/account-coin-balance.html +++ b/api-explorer/v5/asset/account-coin-balance.html @@ -4,13 +4,13 @@ Get Single Coin Balance | Bybit API Documentation - +
Skip to main content

Get Single Coin Balance

Get Single Coin Balance

Query Parameters
  • memberId string

    If query sub user balance, please input sub uid

  • accountType string required

    Possible values: [SPOT, CONTRACT, UNIFIED, OPTION, INVESTMENT, FUND]

    Account type

  • coin string required

    Coin name

  • withBonus integer

    Possible values: [0, 1]

    Query bonus or not. 0=false, 1=true

  • withTransferSafeAmount integer

    Possible values: [0, 1]

    Whether query delay withdraw/transfer safe amount. 0:false, 1;true

Header Parameters
  • apiKey string required

    Use master UID api key

  • secret string required

    Use master UID api secret

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/all-balance.html b/api-explorer/v5/asset/all-balance.html index bf561bc172..8b92fabdb3 100644 --- a/api-explorer/v5/asset/all-balance.html +++ b/api-explorer/v5/asset/all-balance.html @@ -4,13 +4,13 @@ Get All Coins Balance | Bybit API Documentation - +
Skip to main content

Get All Coins Balance

Get All Coins Balance

Query Parameters
  • memberId string

    If query sub user balance, please input sub uid

  • accountType string required

    Possible values: [SPOT, CONTRACT, UNIFIED, OPTION, INVESTMENT, FUND]

    Account type

  • coin string

    Coin name

  • withBonus integer

    Possible values: [0, 1]

    Query bonus or not. 0=false, 1=true

Header Parameters
  • apiKey string required

    Use master UID api key

  • secret string required

    Use master UID api secret

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/asset-info.html b/api-explorer/v5/asset/asset-info.html index 5593812a6d..234706e5bf 100644 --- a/api-explorer/v5/asset/asset-info.html +++ b/api-explorer/v5/asset/asset-info.html @@ -4,13 +4,13 @@ Get Asset Info (Spot) | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/asset.html b/api-explorer/v5/asset/asset.html index 8bade7aed9..73ccf7f501 100644 --- a/api-explorer/v5/asset/asset.html +++ b/api-explorer/v5/asset/asset.html @@ -4,13 +4,13 @@ Asset | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/coin-info.html b/api-explorer/v5/asset/coin-info.html index 6c8be98d67..a4d269aa99 100644 --- a/api-explorer/v5/asset/coin-info.html +++ b/api-explorer/v5/asset/coin-info.html @@ -4,13 +4,13 @@ Get Coin Info | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/create-inter-transfer.html b/api-explorer/v5/asset/create-inter-transfer.html index 1942fa0b30..8c4ae3c551 100644 --- a/api-explorer/v5/asset/create-inter-transfer.html +++ b/api-explorer/v5/asset/create-inter-transfer.html @@ -4,13 +4,13 @@ Create Internal Transfer | Bybit API Documentation - +
Skip to main content

Create Internal Transfer

Create internal transfer

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • transferId string required

    UUID

  • coin string required

    Coin

  • amount string required

    Amount

  • fromAccountType string required

    Possible values: [UNIFIED, CONTRACT, SPOT, OPTION, INVESTMENT, FUND]

    From account type

  • toAccountType string required

    Possible values: [UNIFIED, CONTRACT, SPOT, OPTION, INVESTMENT, FUND]

    To account type

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/delivery.html b/api-explorer/v5/asset/delivery.html index 3232ab3f95..2cd52fcb53 100644 --- a/api-explorer/v5/asset/delivery.html +++ b/api-explorer/v5/asset/delivery.html @@ -4,13 +4,13 @@ Get Delivery Record | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/deposit-coin-spec.html b/api-explorer/v5/asset/deposit-coin-spec.html index 80e93c5f69..d5ae931617 100644 --- a/api-explorer/v5/asset/deposit-coin-spec.html +++ b/api-explorer/v5/asset/deposit-coin-spec.html @@ -4,13 +4,13 @@ Get Allowed Deposit Coin Info | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/deposit-record.html b/api-explorer/v5/asset/deposit-record.html index 451ca73435..9cc2dc08f3 100644 --- a/api-explorer/v5/asset/deposit-record.html +++ b/api-explorer/v5/asset/deposit-record.html @@ -4,13 +4,13 @@ Get Deposit Record (on-chain) | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/exchange.html b/api-explorer/v5/asset/exchange.html index b72469ec5d..4e01bc6663 100644 --- a/api-explorer/v5/asset/exchange.html +++ b/api-explorer/v5/asset/exchange.html @@ -4,13 +4,13 @@ Get Coin Exchange Records | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/inter-transfer-list.html b/api-explorer/v5/asset/inter-transfer-list.html index a2615d39c0..44de85490c 100644 --- a/api-explorer/v5/asset/inter-transfer-list.html +++ b/api-explorer/v5/asset/inter-transfer-list.html @@ -4,13 +4,13 @@ Get Internal Transfer Records | Bybit API Documentation - +
Skip to main content

Get Internal Transfer Records

Get internal transfer records

Query Parameters
  • transferId string

    Transfer id

  • coin string

    Coin name

  • status string

    Possible values: [SUCCESS, PENDING, FAILED]

    Status

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 20

    Limit size. 1-50

  • cursor string

    Cursor, used for pagination

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/internal-deposit-record.html b/api-explorer/v5/asset/internal-deposit-record.html index e30f42023c..3e660cb671 100644 --- a/api-explorer/v5/asset/internal-deposit-record.html +++ b/api-explorer/v5/asset/internal-deposit-record.html @@ -4,13 +4,13 @@ Get Internal Deposit Records (off-chain) | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/master-deposit-addr.html b/api-explorer/v5/asset/master-deposit-addr.html index 938c46ab95..d449510eba 100644 --- a/api-explorer/v5/asset/master-deposit-addr.html +++ b/api-explorer/v5/asset/master-deposit-addr.html @@ -4,13 +4,13 @@ Get Master Deposit Address | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/set-deposit-acct.html b/api-explorer/v5/asset/set-deposit-acct.html index ab882f532b..697dcd7724 100644 --- a/api-explorer/v5/asset/set-deposit-acct.html +++ b/api-explorer/v5/asset/set-deposit-acct.html @@ -4,13 +4,13 @@ Set Deposit Account | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/settlement.html b/api-explorer/v5/asset/settlement.html index 22f826e0c0..0c7bc9c177 100644 --- a/api-explorer/v5/asset/settlement.html +++ b/api-explorer/v5/asset/settlement.html @@ -4,13 +4,13 @@ Get USDC Session Settlement | Bybit API Documentation - +
Skip to main content

Get USDC Session Settlement

Get usdc session settlement record.

Query Parameters
  • category string required

    Possible values: [linear]

    Product type

  • symbol string

    Symbol name. USDC perp or USDC futures

  • limit integer

    Default value: 20

    1-50. max 50

  • cursor string

    cursor, used for pagination

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/sub-deposit-addr.html b/api-explorer/v5/asset/sub-deposit-addr.html index a3ac021ff2..94b3f31fc4 100644 --- a/api-explorer/v5/asset/sub-deposit-addr.html +++ b/api-explorer/v5/asset/sub-deposit-addr.html @@ -4,13 +4,13 @@ Get Sub Deposit Address | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/sub-deposit-record.html b/api-explorer/v5/asset/sub-deposit-record.html index 14fce19b70..fc4739fda4 100644 --- a/api-explorer/v5/asset/sub-deposit-record.html +++ b/api-explorer/v5/asset/sub-deposit-record.html @@ -4,13 +4,13 @@ Get Sub Account Deposit Records (on-chain) | Bybit API Documentation - +
Skip to main content

Get Sub Account Deposit Records (on-chain)

Get sub account deposit record

Query Parameters
  • subMemberId string required

    Sub UID

  • coin string

    Coin name

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 50

    Limit size. 1-50

  • cursor string

    Cursor, used for pagination

Header Parameters
  • apiKey string required

    Use master UID api key

  • secret string required

    Use master UID api secret

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/sub-uid-list.html b/api-explorer/v5/asset/sub-uid-list.html index 66797d5289..342da2abae 100644 --- a/api-explorer/v5/asset/sub-uid-list.html +++ b/api-explorer/v5/asset/sub-uid-list.html @@ -4,13 +4,13 @@ Get Sub UID | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/transferable-coin.html b/api-explorer/v5/asset/transferable-coin.html index 57ee1ce26e..9d7f8a8043 100644 --- a/api-explorer/v5/asset/transferable-coin.html +++ b/api-explorer/v5/asset/transferable-coin.html @@ -4,13 +4,13 @@ Get Transferable Coin | Bybit API Documentation - +
Skip to main content

Get Transferable Coin

Get transferable coins

Query Parameters
  • fromAccountType string required

    Possible values: [UNIFIED, CONTRACT, SPOT, OPTION, INVESTMENT, FUND]

    From account type

  • toAccountType string required

    Possible values: [UNIFIED, CONTRACT, SPOT, OPTION, INVESTMENT, FUND]

    To account type

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/unitransfer-list.html b/api-explorer/v5/asset/unitransfer-list.html index 2bebbd2bd7..8bac88c74c 100644 --- a/api-explorer/v5/asset/unitransfer-list.html +++ b/api-explorer/v5/asset/unitransfer-list.html @@ -4,13 +4,13 @@ Get Universal Transfer Records | Bybit API Documentation - +
Skip to main content

Get Universal Transfer Records

Get universal transfer record

Query Parameters
  • transferId string

    Transfer id

  • coin string

    Coin name

  • status string

    Possible values: [SUCCESS, FAILED, PENDING]

    Status

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 20

    Limit size. 1-50

  • cursor string

    Cursor, used for pagination

Header Parameters
  • apiKey string required

    Use master UID api key

  • secret string required

    Use master UID api secret

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/unitransfer.html b/api-explorer/v5/asset/unitransfer.html index d9b7d76f3e..d3ba038c9a 100644 --- a/api-explorer/v5/asset/unitransfer.html +++ b/api-explorer/v5/asset/unitransfer.html @@ -4,13 +4,13 @@ Create Universal Transfer | Bybit API Documentation - +
Skip to main content

Create Universal Transfer

Create universal transfer

Header Parameters
  • apiKey string required

    Use master UID api key

  • secret string required

    Use master UID api secret

Request Body
  • transferId sting required

    Transfer id. UUID

  • coin sting required

    Coin name

  • amount sting required

    Amount

  • fromMemberId intger required

    From UID

  • toMemberId integer required

    To UID

  • fromAccountType string required

    Possible values: [UNIFIED, CONTRACT, SPOT, INVESTMENT, OPTION, FUND]

    From account type

  • toAccountType string required

    Possible values: [UNIFIED, CONTRACT, SPOT, INVESTMENT, OPTION, FUND]

    To account type

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/asset/withdraw-record.html b/api-explorer/v5/asset/withdraw-record.html index e61fe1a6c9..db3f43bde2 100644 --- a/api-explorer/v5/asset/withdraw-record.html +++ b/api-explorer/v5/asset/withdraw-record.html @@ -4,13 +4,13 @@ Get Withdraw Records | Bybit API Documentation - +
Skip to main content

Get Withdraw Records

Get withdraw record

Query Parameters
  • withdrawID string

    Withdraw ID

  • coin string

    Coin name

  • withdrawType integer

    Possible values: [0, 1, 2]

    Withdraw type. 0=on chain, 1=off chain, 2=all

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 50

    Limit size. 1-50

  • cursor string

    Cursor, used to pagination

Header Parameters
  • apiKey string required

    Use master UID api key

  • secret string required

    Use master UID api secret

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/category.html b/api-explorer/v5/category.html index 7ecc6651bc..02182703ca 100644 --- a/api-explorer/v5/category.html +++ b/api-explorer/v5/category.html @@ -4,13 +4,13 @@ V5 API | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/lt/etp.html b/api-explorer/v5/lt/etp.html index 7b90220374..4ec7437fc8 100644 --- a/api-explorer/v5/lt/etp.html +++ b/api-explorer/v5/lt/etp.html @@ -4,13 +4,13 @@ Spot Leverage Token | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/lt/leverage-token-info.html b/api-explorer/v5/lt/leverage-token-info.html index 392184bc0d..daeb13bc8f 100644 --- a/api-explorer/v5/lt/leverage-token-info.html +++ b/api-explorer/v5/lt/leverage-token-info.html @@ -4,13 +4,13 @@ Get Leverage Token Info | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/lt/leverage-token-reference.html b/api-explorer/v5/lt/leverage-token-reference.html index 9bc837e8de..baab0aa985 100644 --- a/api-explorer/v5/lt/leverage-token-reference.html +++ b/api-explorer/v5/lt/leverage-token-reference.html @@ -4,13 +4,13 @@ Get Leverage Token Market | Bybit API Documentation - +
Skip to main content

Get Leverage Token Market

Get lt market information

Query Parameters
  • ltCoin string required

    Levearage coin name. e.g., BTC3L

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/lt/order-record.html b/api-explorer/v5/lt/order-record.html index 27a12b1f42..f40831f514 100644 --- a/api-explorer/v5/lt/order-record.html +++ b/api-explorer/v5/lt/order-record.html @@ -4,13 +4,13 @@ Get Purchase or Redeem Records | Bybit API Documentation - +
Skip to main content

Get Purchase or Redeem Records

Get the order history of purchase or redeem

Query Parameters
  • ltCoin string

    Levearage coin name. e.g., BTC3L

  • orderId string

    Order id

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 100

    Limit size of each page. 1-500

  • ltOrderType integer

    Possible values: [1, 2]

    LT order type. 1=purchase, 2=redeem

  • serialNo string

    Serial number

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/lt/purchase.html b/api-explorer/v5/lt/purchase.html index b0b47fb358..8b9eea5f93 100644 --- a/api-explorer/v5/lt/purchase.html +++ b/api-explorer/v5/lt/purchase.html @@ -4,13 +4,13 @@ Purchase | Bybit API Documentation - +
Skip to main content

Purchase

Purchase leverage token

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • ltCoin string

    Levearage coin name. e.g., BTC3L

  • ltAmount string

    Purchase amount

  • serialNo string

    Serial number, customised order id

  • required
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/lt/redeem.html b/api-explorer/v5/lt/redeem.html index a663eecf83..b4c7b44536 100644 --- a/api-explorer/v5/lt/redeem.html +++ b/api-explorer/v5/lt/redeem.html @@ -4,13 +4,13 @@ Redeem | Bybit API Documentation - +
Skip to main content

Redeem

Redeem leverage token

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • ltCoin string

    Levearage coin name. e.g., BTC3L

  • quantity string

    Redeem quantity

  • serialNo string

    Serial number, customised order id

  • required
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/delivery-price.html b/api-explorer/v5/market/delivery-price.html index 92c1fe3f8d..5156a6fb91 100644 --- a/api-explorer/v5/market/delivery-price.html +++ b/api-explorer/v5/market/delivery-price.html @@ -4,13 +4,13 @@ Get Delivery Price | Bybit API Documentation - +
Skip to main content

Get Delivery Price

Get delivery price

Query Parameters
  • category string[] required

    Possible values: [linear, inverse, option]

    Product type. linear, inverse, option

  • symbol string

    Symbol name

  • baseCoin string

    Default value: BTC

    Base coin, for option only. Return BTC by default

  • limit string

    Default value: 50

    Maximum 200

  • cursor string

    The cursor, used for pagination

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/history-fund-rate.html b/api-explorer/v5/market/history-fund-rate.html index ec389d6f20..caafe8a641 100644 --- a/api-explorer/v5/market/history-fund-rate.html +++ b/api-explorer/v5/market/history-fund-rate.html @@ -4,13 +4,13 @@ Get Funding Rate History | Bybit API Documentation - +
Skip to main content

Get Funding Rate History

Get historical funding rate

Query Parameters
  • category string[] required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • startTime integer

    The start timstamp (ms)

  • endTime integer

    The end timstamp (ms)

  • limit integer

    Default value: 200

    Maximum 200

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/index-kline.html b/api-explorer/v5/market/index-kline.html index 30e4cb1d46..9985f2a971 100644 --- a/api-explorer/v5/market/index-kline.html +++ b/api-explorer/v5/market/index-kline.html @@ -4,13 +4,13 @@ Get Index Price Kline | Bybit API Documentation - +
Skip to main content

Get Index Price Kline

Get Index Price Kline data

Query Parameters
  • category string[] required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • interval string[] required

    Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

    kline interval

  • start integer

    start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

  • end integer

    end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

  • limit integer

    Default value: 200

    Maximum 1000

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/instrument.html b/api-explorer/v5/market/instrument.html index 219b0a34b1..7da59eb468 100644 --- a/api-explorer/v5/market/instrument.html +++ b/api-explorer/v5/market/instrument.html @@ -4,13 +4,13 @@ Get Instrument Info | Bybit API Documentation - +
Skip to main content

Get Instrument Info

Get launched instruments information.

Query Parameters
  • category string[] required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string

    Symbol name

  • status string

    Possible values: [PreLaunch, Trading, Settling, Delivering, Closed]

    Status filter

  • baseCoin string

    for linear, invere and option ONLY

  • limit integer

    Default value: 500

    Maximum 1000. spot does not have pagination

  • cursor string

    pass cursor from the response param "nagePageCursor" to paginate

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/insurance.html b/api-explorer/v5/market/insurance.html index db88b9cb89..ee03ae7865 100644 --- a/api-explorer/v5/market/insurance.html +++ b/api-explorer/v5/market/insurance.html @@ -4,13 +4,13 @@ Get Insurance | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/market/iv.html b/api-explorer/v5/market/iv.html index 02486c6e18..b41a3f8145 100644 --- a/api-explorer/v5/market/iv.html +++ b/api-explorer/v5/market/iv.html @@ -4,13 +4,13 @@ Get Historical Volatility | Bybit API Documentation - +
Skip to main content

Get Historical Volatility

Get historical volatility

Query Parameters
  • category string[] required

    Possible values: [option]

    Product type

  • baseCoin string

    Default value: BTC

    Base coin. If not passed, BTC returned by default

  • period integer[]

    Possible values: [7, 14, 21, 30, 60, 90, 180, 270]

    Period. If not passed, it returns 7 days by default. SOL does not have 180 and 270

  • startTime integer

    The start timstamp (ms)

  • endTime integer

    The end timstamp (ms)

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/kline.html b/api-explorer/v5/market/kline.html index 1c86045885..400be7f144 100644 --- a/api-explorer/v5/market/kline.html +++ b/api-explorer/v5/market/kline.html @@ -4,13 +4,13 @@ Get Kline | Bybit API Documentation - +
Skip to main content

Get Kline

Get kline data

Query Parameters
  • category string[] required

    Possible values: [linear, inverse, spot]

    Product type

  • symbol string required

    Symbol name

  • interval string[] required

    Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

    kline interval

  • start integer

    start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

  • end integer

    end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

  • limit integer

    Default value: 200

    Maximum 1000

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/long-short-ratio.html b/api-explorer/v5/market/long-short-ratio.html index 7ee5449442..5e17fdfdb7 100644 --- a/api-explorer/v5/market/long-short-ratio.html +++ b/api-explorer/v5/market/long-short-ratio.html @@ -4,13 +4,13 @@ Get Long Short Ratio | Bybit API Documentation - +
Skip to main content

Get Long Short Ratio

Get long short ratio

Query Parameters
  • category string[] required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • period string[] required

    Possible values: [5min, 15min, 30min, 1h, 4h, 1d]

    period

  • limit integer

    Default value: 50

    Maximum 500

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/mark-kline.html b/api-explorer/v5/market/mark-kline.html index 890ad54987..1f6787fbc0 100644 --- a/api-explorer/v5/market/mark-kline.html +++ b/api-explorer/v5/market/mark-kline.html @@ -4,13 +4,13 @@ Get Mark Price Kline | Bybit API Documentation - +
Skip to main content

Get Mark Price Kline

Get Mark Price Kline data

Query Parameters
  • category string[] required

    Possible values: [linear, inverse, spot]

    Product type

  • symbol string required

    Symbol name

  • interval string[] required

    Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

    kline interval

  • start integer

    start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

  • end integer

    end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

  • limit integer

    Default value: 200

    Maximum 1000

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/market.html b/api-explorer/v5/market/market.html index 87a2dbf57c..9a402f2ec3 100644 --- a/api-explorer/v5/market/market.html +++ b/api-explorer/v5/market/market.html @@ -4,13 +4,13 @@ Market | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/market/open-interest.html b/api-explorer/v5/market/open-interest.html index 13b84f908c..f4604edf54 100644 --- a/api-explorer/v5/market/open-interest.html +++ b/api-explorer/v5/market/open-interest.html @@ -4,13 +4,13 @@ Get Open Interest | Bybit API Documentation - +
Skip to main content

Get Open Interest

Get open interest

Query Parameters
  • category string[] required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • intervalTime string[] required

    Possible values: [5min, 15min, 30min, 1h, 4h, 1d]

    interval time

  • startTime integer

    The start timstamp (ms)

  • endTime integer

    The end timstamp (ms)

  • limit integer

    Default value: 50

    Maximum 200

  • cursor string

    pass cursor from the response param "nagePageCursor" to paginate

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/orderbook.html b/api-explorer/v5/market/orderbook.html index 2adb410aef..d9e207c3e0 100644 --- a/api-explorer/v5/market/orderbook.html +++ b/api-explorer/v5/market/orderbook.html @@ -4,13 +4,13 @@ Get Orderbook | Bybit API Documentation - +
Skip to main content

Get Orderbook

Get order book data

Query Parameters
  • category string[] required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string required

    Symbol name

  • limit integer

    spot:1-50,default:1. linear&inverse:1-200,default:25. option:1-25,default:1

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/premium-index-kline.html b/api-explorer/v5/market/premium-index-kline.html index bfff731843..6787eadf0f 100644 --- a/api-explorer/v5/market/premium-index-kline.html +++ b/api-explorer/v5/market/premium-index-kline.html @@ -4,13 +4,13 @@ Get Premium Index Price Kline | Bybit API Documentation - +
Skip to main content

Get Premium Index Price Kline

Get Premium Index Price Kline data

Query Parameters
  • category string[] required

    Possible values: [linear]

    Product type

  • symbol string required

    Symbol name

  • interval string[] required

    Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

    kline interval

  • start integer

    start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

  • end integer

    end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

  • limit integer

    Default value: 200

    Maximum 1000

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/recent-trade.html b/api-explorer/v5/market/recent-trade.html index 9ab6a94eb0..9187054738 100644 --- a/api-explorer/v5/market/recent-trade.html +++ b/api-explorer/v5/market/recent-trade.html @@ -4,13 +4,13 @@ Get Public Recent Trading History | Bybit API Documentation - +
Skip to main content

Get Public Recent Trading History

Get public trade

Query Parameters
  • category string[] required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string required

    Symbol name.

  • baseCoin string

    Default value: BTC

    Base coin. Valid for option. Default is BTC

  • optionType string

    Possible values: [Call, Put]

    Option type. Valid for option.

  • limit integer

    Maximum 60 for spot. Maximum 1000 for others

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/risk-limit.html b/api-explorer/v5/market/risk-limit.html index b04ad4af33..a24f2894fc 100644 --- a/api-explorer/v5/market/risk-limit.html +++ b/api-explorer/v5/market/risk-limit.html @@ -4,13 +4,13 @@ Get Risk Limit | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/market/tickers.html b/api-explorer/v5/market/tickers.html index a1bde02f18..b5e5f4d9cd 100644 --- a/api-explorer/v5/market/tickers.html +++ b/api-explorer/v5/market/tickers.html @@ -4,13 +4,13 @@ Get Tickers | Bybit API Documentation - +
Skip to main content

Get Tickers

Get all latest information of symbols. All parameters are needed for OPTION

Query Parameters
  • category string[] required

    Possible values: [linear, inverse, option, spot]

    Product type

  • baseCoin string

    for option ONLY, baseCoin or symbol must be passed when query option

  • expDate string

    Expiry date. For option only. Default is all, and the parameter format is 25MAR22.

  • symbol string

    Symbol name

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/market/time.html b/api-explorer/v5/market/time.html index e509551f24..80f2ac72ce 100644 --- a/api-explorer/v5/market/time.html +++ b/api-explorer/v5/market/time.html @@ -4,13 +4,13 @@ Get Bybit Server Time | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/position/auto-add-margin.html b/api-explorer/v5/position/auto-add-margin.html index 6687911f66..580be8bba0 100644 --- a/api-explorer/v5/position/auto-add-margin.html +++ b/api-explorer/v5/position/auto-add-margin.html @@ -4,13 +4,13 @@ Set Auto Add Margin | Bybit API Documentation - +
Skip to main content

Set Auto Add Margin

Set Auto Add Margin

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • autoAddMargin integer required

    0 - turn off, 1 - turn on

  • positionIdx integer required

    Possible values: [0, 1, 2]

    Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/close-pnl.html b/api-explorer/v5/position/close-pnl.html index 230c8a9a9f..3956ef50da 100644 --- a/api-explorer/v5/position/close-pnl.html +++ b/api-explorer/v5/position/close-pnl.html @@ -4,13 +4,13 @@ Get Closed PnL | Bybit API Documentation - +
Skip to main content

Get Closed PnL

Get closed pnl

Query Parameters
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string

    Symbol name

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • limit integer

    Default value: 50

    1-200. max 200

  • cursor string

    cursor for pagination

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/cross-isolate.html b/api-explorer/v5/position/cross-isolate.html index 228a56f007..759c5ae24f 100644 --- a/api-explorer/v5/position/cross-isolate.html +++ b/api-explorer/v5/position/cross-isolate.html @@ -4,13 +4,13 @@ Switch Cross/Isolated Margin | Bybit API Documentation - +
Skip to main content

Switch Cross/Isolated Margin

Select cross margin mode or isolated margin mode

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • tradeMode integer required

    Possible values: [0, 1]

    0 - cross margin, 1 - isolated margin

  • buyLeverage string

    Buy side leverage

  • sellLeverage string

    Sell side leverage

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/execution.html b/api-explorer/v5/position/execution.html index bb351912a8..49883b7583 100644 --- a/api-explorer/v5/position/execution.html +++ b/api-explorer/v5/position/execution.html @@ -4,13 +4,13 @@ Get Execution (2 years) | Bybit API Documentation - +
Skip to main content

Get Execution (2 years)

Get execution list

Query Parameters
  • category string required

    Possible values: [linear, inverse, spot, option]

    Product type

  • symbol string

    Symbol name

  • baseCoin string

    Base coin

  • orderId string
  • orderLinkId string

    User customised order id

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • execType string

    Possible values: [Trade, AdlTrade, Funding, BustTrade, Settle]

    Execution type

  • limit integer

    Default value: 50

    1-100. max 100

  • cursor string

    cursor to pagination

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/leverage.html b/api-explorer/v5/position/leverage.html index 5707894e2e..d1e744aaea 100644 --- a/api-explorer/v5/position/leverage.html +++ b/api-explorer/v5/position/leverage.html @@ -4,13 +4,13 @@ Set Leverage | Bybit API Documentation - +
Skip to main content

Set Leverage

Set levearage.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • buyLeverage string

    Buy side leverage

  • sellLeverage string

    Sell side leverage

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/manual-add-margin.html b/api-explorer/v5/position/manual-add-margin.html index 78041ebe4f..d740d23c67 100644 --- a/api-explorer/v5/position/manual-add-margin.html +++ b/api-explorer/v5/position/manual-add-margin.html @@ -4,13 +4,13 @@ Add Or Reduce Margin | Bybit API Documentation - +
Skip to main content

Add Or Reduce Margin

Manually add or reduce margin for isolated margin position

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • margin string required

    10 - add, -10 - reduce

  • positionIdx integer required

    Possible values: [0, 1, 2]

    Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/position-info.html b/api-explorer/v5/position/position-info.html index cf8bb108bc..bd240076d7 100644 --- a/api-explorer/v5/position/position-info.html +++ b/api-explorer/v5/position/position-info.html @@ -4,13 +4,13 @@ Get Position Info | Bybit API Documentation - +
Skip to main content

Get Position Info

Get Position Info

Query Parameters
  • category string required

    Possible values: [linear, inverse, option]

    Product type

  • symbol string

    Symbol name

  • baseCoin string

    Base coin. For option only

  • settleCoin string

    Used for linear & inverse, symbol or settleCoin is required

  • limit integer

    Default value: 20

    1-200. max 200

  • cursor string

    cursor, used for pagination

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/position-mode.html b/api-explorer/v5/position/position-mode.html index bbcebe2e63..398703af9c 100644 --- a/api-explorer/v5/position/position-mode.html +++ b/api-explorer/v5/position/position-mode.html @@ -4,13 +4,13 @@ Switch Position Mode | Bybit API Documentation - +
Skip to main content

Switch Position Mode

Switch Position Mode

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string

    Symbol name

  • coin string

    Coin name

  • mode integer required

    Possible values: [0, 3]

    Position mode. 0 - Merged single, 3 - Both sides

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/position.html b/api-explorer/v5/position/position.html index 373fd2456f..e1d320f449 100644 --- a/api-explorer/v5/position/position.html +++ b/api-explorer/v5/position/position.html @@ -4,13 +4,13 @@ Position | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/position/set-risk-limit.html b/api-explorer/v5/position/set-risk-limit.html index 4b7c6cf1e9..e90ab6b6ce 100644 --- a/api-explorer/v5/position/set-risk-limit.html +++ b/api-explorer/v5/position/set-risk-limit.html @@ -4,13 +4,13 @@ Set Risk Limit | Bybit API Documentation - +
Skip to main content

Set Risk Limit

Set risk limit.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • riskId integer required

    Risk limit id

  • positionIdx integer

    Possible values: [0, 1, 2]

    Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/tpsl-mode.html b/api-explorer/v5/position/tpsl-mode.html index b2df781ccc..3612d792a9 100644 --- a/api-explorer/v5/position/tpsl-mode.html +++ b/api-explorer/v5/position/tpsl-mode.html @@ -4,13 +4,13 @@ Set TP/SL Mode | Bybit API Documentation - +
Skip to main content

Set TP/SL Mode

Set tp/sl mode.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • tpSlMode string required

    Possible values: [Full, Partial]

    Full = full position TP/SL, Partial = partial mode tp/sl

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/position/trading-stop.html b/api-explorer/v5/position/trading-stop.html index e42de2a20d..1324be1dc8 100644 --- a/api-explorer/v5/position/trading-stop.html +++ b/api-explorer/v5/position/trading-stop.html @@ -4,13 +4,13 @@ Set Trading Stop | Bybit API Documentation - +
Skip to main content

Set Trading Stop

Set trade stop.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse]

    Product type

  • symbol string required

    Symbol name

  • takeProfit string

    Take profit price

  • stopLoss string

    Stop loss price

  • tpSize string

    Take profit size

  • slSize string

    Stop loss size

  • tpTriggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    Take profit trigger price type

  • slTriggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    Stop loss trigger price type

  • trailingStop string

    Trailing stop

  • activePrice string

    Trailing stop trigger price

  • positionIdx integer required

    Possible values: [0, 1, 2]

    Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

  • tpLimitPrice string

    The limit order price when take profit price is triggered

  • slLimitPrice string

    The limit order price when stop loss price is triggered

  • tpOrderType string

    Possible values: [Market, Limit]

    The order type when take profit is triggered

  • slOrderType string

    Possible values: [Market, Limit]

    The order type when stop loss is triggered

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/account-info.html b/api-explorer/v5/spot-margin-normal/account-info.html index e6c37c9344..a54c62230b 100644 --- a/api-explorer/v5/spot-margin-normal/account-info.html +++ b/api-explorer/v5/spot-margin-normal/account-info.html @@ -4,13 +4,13 @@ Get Loan Account Info | Bybit API Documentation - +
Skip to main content

Get Loan Account Info

Get Loan Account Info

Header Parameters
  • apiKey string required

    Please use normal mode account API KEY

  • secret string required

    Please use normal mode account API SECRET

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/borrow-order.html b/api-explorer/v5/spot-margin-normal/borrow-order.html index 3d709aea3f..afb6facb72 100644 --- a/api-explorer/v5/spot-margin-normal/borrow-order.html +++ b/api-explorer/v5/spot-margin-normal/borrow-order.html @@ -4,13 +4,13 @@ Get Borrow Order Detail | Bybit API Documentation - +
Skip to main content

Get Borrow Order Detail

Get Borrow Order Detail

Query Parameters
  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • coin string

    Coin name

  • status string

    Possible values: [0, 1, 2]

    Status filter. 0:get all kinds of status, 1:uncleared, 2:cleared

  • limit integer

    Limit for data size per page. 1 - 500. Default:500

Header Parameters
  • apiKey string required

    Please use normal mode account API KEY

  • secret string required

    Please use normal mode account API SECRET

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/borrow.html b/api-explorer/v5/spot-margin-normal/borrow.html index fb9110620e..39d77ead45 100644 --- a/api-explorer/v5/spot-margin-normal/borrow.html +++ b/api-explorer/v5/spot-margin-normal/borrow.html @@ -4,13 +4,13 @@ Borrow | Bybit API Documentation - +
Skip to main content

Borrow

Borrow

Header Parameters
  • apiKey string required

    Please use normal mode account API KEY

  • secret string required

    Please use normal mode account API SECRET

Request Body
  • coin string

    Coin name

  • qty string

    Amount to borrow

  • required
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/borrowable-data.html b/api-explorer/v5/spot-margin-normal/borrowable-data.html index 1d9d639a3f..987c66eb12 100644 --- a/api-explorer/v5/spot-margin-normal/borrowable-data.html +++ b/api-explorer/v5/spot-margin-normal/borrowable-data.html @@ -4,13 +4,13 @@ Get Borrowable Coin Info | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/interest-quota.html b/api-explorer/v5/spot-margin-normal/interest-quota.html index e8428d5563..e16cdfb852 100644 --- a/api-explorer/v5/spot-margin-normal/interest-quota.html +++ b/api-explorer/v5/spot-margin-normal/interest-quota.html @@ -4,13 +4,13 @@ Get Interest & Quota | Bybit API Documentation - +
Skip to main content

Get Interest & Quota

Get Interest & Quota

Query Parameters
  • coin string required

    Coin name

Header Parameters
  • apiKey string required

    Please use normal mode account API KEY

  • secret string required

    Please use normal mode account API SECRET

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/margin-data.html b/api-explorer/v5/spot-margin-normal/margin-data.html index fb37f20f11..01408007e5 100644 --- a/api-explorer/v5/spot-margin-normal/margin-data.html +++ b/api-explorer/v5/spot-margin-normal/margin-data.html @@ -4,13 +4,13 @@ Get Margin Coin Info | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/normal-margin-trade.html b/api-explorer/v5/spot-margin-normal/normal-margin-trade.html index 21390ddc9d..2ee6b4a61a 100644 --- a/api-explorer/v5/spot-margin-normal/normal-margin-trade.html +++ b/api-explorer/v5/spot-margin-normal/normal-margin-trade.html @@ -4,13 +4,13 @@ Spot Margin Trade (Classic) | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/repay-order.html b/api-explorer/v5/spot-margin-normal/repay-order.html index 81a6435898..4dd9410bb7 100644 --- a/api-explorer/v5/spot-margin-normal/repay-order.html +++ b/api-explorer/v5/spot-margin-normal/repay-order.html @@ -4,13 +4,13 @@ Get Repayment Order Detail | Bybit API Documentation - +
Skip to main content

Get Repayment Order Detail

Get Repayment Order Detail

Query Parameters
  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • coin string

    Coin name

  • limit integer

    Limit for data size per page. 1 - 500. Default:500

Header Parameters
  • apiKey string required

    Please use normal mode account API KEY

  • secret string required

    Please use normal mode account API SECRET

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/repay.html b/api-explorer/v5/spot-margin-normal/repay.html index d942e34607..1e17fd5ea9 100644 --- a/api-explorer/v5/spot-margin-normal/repay.html +++ b/api-explorer/v5/spot-margin-normal/repay.html @@ -4,13 +4,13 @@ Repay | Bybit API Documentation - +
Skip to main content

Repay

Repay

Header Parameters
  • apiKey string required

    Please use normal mode account API KEY

  • secret string required

    Please use normal mode account API SECRET

Request Body
  • coin string

    Coin name

  • qty string

    Amount to repay

  • completeRepayment integer

    Possible values: [0, 1]

    Whether to pay off all debts. 0:false, 1:true

  • required
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/switch-mode.html b/api-explorer/v5/spot-margin-normal/switch-mode.html index a13ef1a550..f186a12287 100644 --- a/api-explorer/v5/spot-margin-normal/switch-mode.html +++ b/api-explorer/v5/spot-margin-normal/switch-mode.html @@ -4,13 +4,13 @@ Toggle Margin Trade | Bybit API Documentation - +
Skip to main content

Toggle Margin Trade

Toggle Margin Trade

Header Parameters
  • apiKey string required

    Please use normal mode account API KEY

  • secret string required

    Please use normal mode account API SECRET

Request Body
  • switch integer

    1:on, 0:off

  • required
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-normal/vip-margin.html b/api-explorer/v5/spot-margin-normal/vip-margin.html index 4b7584dc11..15058c1bb8 100644 --- a/api-explorer/v5/spot-margin-normal/vip-margin.html +++ b/api-explorer/v5/spot-margin-normal/vip-margin.html @@ -4,13 +4,13 @@ Get VIP Margin Data | Bybit API Documentation - +
Skip to main content

Get VIP Margin Data

Get vip margin data

Query Parameters
  • vipLevel string[]

    Possible values: [No VIP, VIP-1, VIP-2, VIP-3, VIP-4, VIP-5, PRO-1, PRO-2, PRO-3, PRO-4, PRO-5]

    VIP level

  • currency string

    Coin name

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-uta/set-leverage.html b/api-explorer/v5/spot-margin-uta/set-leverage.html index 85eec5ff9e..30be4fc126 100644 --- a/api-explorer/v5/spot-margin-uta/set-leverage.html +++ b/api-explorer/v5/spot-margin-uta/set-leverage.html @@ -4,13 +4,13 @@ Set Leverage | Bybit API Documentation - +
Skip to main content

Set Leverage

Set leverage for margin trade

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • leverage integer

    Possible values: [2, 3, 4, 5, 6, 7, 8, 9, 10]

    Levearge, support 2-10

  • required
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-uta/status.html b/api-explorer/v5/spot-margin-uta/status.html index a9d3083229..7de65e36e4 100644 --- a/api-explorer/v5/spot-margin-uta/status.html +++ b/api-explorer/v5/spot-margin-uta/status.html @@ -4,13 +4,13 @@ Get Status And Leverage | Bybit API Documentation - +
Skip to main content

Get Status And Leverage

Get status and leverage

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-uta/switch-mode.html b/api-explorer/v5/spot-margin-uta/switch-mode.html index b54f7b8efa..4673ea4df2 100644 --- a/api-explorer/v5/spot-margin-uta/switch-mode.html +++ b/api-explorer/v5/spot-margin-uta/switch-mode.html @@ -4,13 +4,13 @@ Toggle Margin Trade | Bybit API Documentation - +
Skip to main content

Toggle Margin Trade

Toggle margin trade

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • spotMarginMode integer

    Possible values: [0, 1]

    Margin mode. 0=off, 1=on

  • required
Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-uta/uta-margin-trade.html b/api-explorer/v5/spot-margin-uta/uta-margin-trade.html index 4bc4ff1b6c..43bd5800ff 100644 --- a/api-explorer/v5/spot-margin-uta/uta-margin-trade.html +++ b/api-explorer/v5/spot-margin-uta/uta-margin-trade.html @@ -4,13 +4,13 @@ Spot Margin Trade (UTA) | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/spot-margin-uta/vip-margin.html b/api-explorer/v5/spot-margin-uta/vip-margin.html index 4abb8bd5fe..37533a6406 100644 --- a/api-explorer/v5/spot-margin-uta/vip-margin.html +++ b/api-explorer/v5/spot-margin-uta/vip-margin.html @@ -4,13 +4,13 @@ Get VIP Margin Data | Bybit API Documentation - +
Skip to main content

Get VIP Margin Data

Get vip margin data

Query Parameters
  • vipLevel string[]

    Possible values: [No VIP, VIP-1, VIP-2, VIP-3, VIP-4, VIP-5, PRO-1, PRO-2, PRO-3, PRO-4, PRO-5]

    VIP level

  • currency string

    Coin name

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/amend-order.html b/api-explorer/v5/trade/amend-order.html index 60f926699e..16cab4931e 100644 --- a/api-explorer/v5/trade/amend-order.html +++ b/api-explorer/v5/trade/amend-order.html @@ -4,13 +4,13 @@ Amend Order | Bybit API Documentation - +
Skip to main content

Amend Order

Amend an order.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string required

    Symbol name

  • orderId string

    Either orderId or orderLinkId is required

  • orderLinkId string

    Either orderId or orderLinkId is required

  • qty string

    Modify the order qty

  • price string

    Modify the order price

  • orderIv string

    Modify option order iv

  • triggerPrice string

    Modify StopOrder trigger price

  • tpslMode string

    Possible values: [Full, Partial]

    Full:TPSL for full size, Partial:TPSL for partial size

  • takeProfit string

    Modify take profit price

  • stopLoss string

    Modify stop loss price

  • triggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    Modify the type of trigger price

  • tpTriggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    Modify trigger take profit price price type

  • slTriggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    Modify trigger stop loss price price type

  • tpLimitPrice string

    The limit order price when take profit price is triggered

  • slLimitPrice string

    The limit order price when stop loss price is triggered

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/batch-amend.html b/api-explorer/v5/trade/batch-amend.html index c83bedd2fd..edf8a09a5c 100644 --- a/api-explorer/v5/trade/batch-amend.html +++ b/api-explorer/v5/trade/batch-amend.html @@ -4,13 +4,13 @@ Batch Amend Order | Bybit API Documentation - +
Skip to main content

Batch Amend Order

Batch amend orders

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [option, linear]

    Product type

  • request object[] required

    Possible values: <= 10

  • symbol string required

    Symbol name

  • orderId string

    Either orderId or orderLinkId is required

  • orderLinkId string

    Either orderId or orderLinkId is required

  • qty string

    Modify the order qty

  • price string

    Modify the order price

  • orderIv string

    Modify option order iv

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/batch-cancel.html b/api-explorer/v5/trade/batch-cancel.html index 39f9987345..708c629e6f 100644 --- a/api-explorer/v5/trade/batch-cancel.html +++ b/api-explorer/v5/trade/batch-cancel.html @@ -4,13 +4,13 @@ Batch Cancel Order | Bybit API Documentation - +
Skip to main content

Batch Cancel Order

Batch cancel orders

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [option, linear]

    Product type

  • request object[] required

    Possible values: <= 10

  • symbol string required

    Symbol name

  • orderId string

    Either orderId or orderLinkId is required

  • orderLinkId string

    Either orderId or orderLinkId is required

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/batch-place.html b/api-explorer/v5/trade/batch-place.html index 0b3f06a53b..c276fc7a59 100644 --- a/api-explorer/v5/trade/batch-place.html +++ b/api-explorer/v5/trade/batch-place.html @@ -4,13 +4,13 @@ Batch Place Order | Bybit API Documentation - +
Skip to main content

Batch Place Order

Batch place orders

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [option, linear]

    Product type. linear, option

  • request object[] required

    Possible values: <= 10

  • symbol string required

    Symbol name

  • side string required

    Possible values: [Buy, Sell]

  • orderType string required

    Possible values: [Market, Limit]

    Order type

  • qty string required
  • price string
  • orderIv string
  • timeInForce string required

    Possible values: [GTC, IOC, FOK, PostOnly]

    Time in force

  • positionIdx integer

    Possible values: [0]

    Position mode. one-way mode only for unified.

  • orderLinkId string required

    REQUIRED param when place an option order

  • reduceOnly boolean

    Possible values: [true, false]

    specify true if a close position order

  • mmp boolean

    Possible values: [true, false]

    enable market marker protection

  • smpType string

    Possible values: [None, CancelMaker, CancelTaker, CancelBoth]

    Smp execution type

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/cancel-all.html b/api-explorer/v5/trade/cancel-all.html index 2697049305..90de84dc1b 100644 --- a/api-explorer/v5/trade/cancel-all.html +++ b/api-explorer/v5/trade/cancel-all.html @@ -4,13 +4,13 @@ Cancel All Orders | Bybit API Documentation - +
Skip to main content

Cancel All Orders

Cancel all orders.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string

    Symbol name. Required if not passing baseCoin or settleCoin

  • baseCoin string

    Cancel by base coin. Required if not passing symbol or settleCoin

  • settleCoin string

    Cancel by settle coin. Does not support spot. Required if not passing symbol or baseCoin

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/cancel-order.html b/api-explorer/v5/trade/cancel-order.html index 6af78a42f5..773146a309 100644 --- a/api-explorer/v5/trade/cancel-order.html +++ b/api-explorer/v5/trade/cancel-order.html @@ -4,13 +4,13 @@ Cancel Order | Bybit API Documentation - +
Skip to main content

Cancel Order

Cancel a single order.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string required

    Symbol name

  • orderId string

    Either orderId or orderLinkId is required

  • orderLinkId string

    Either orderId or orderLinkId is required

  • orderFilter string

    Possible values: [Order, tpslOrder, StopOrder]

    Default value: Order

    Take profit stop loss or ordinary order. Only valid for spot.

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/create-order.html b/api-explorer/v5/trade/create-order.html index 9b01bb60e7..99e01b29c6 100644 --- a/api-explorer/v5/trade/create-order.html +++ b/api-explorer/v5/trade/create-order.html @@ -4,13 +4,13 @@ Place Order | Bybit API Documentation - +
Skip to main content

Place Order

Place an order.

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • category string required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string required

    Symbol name

  • isLeverage integer

    Possible values: [0, 1]

    Whether to loan, only for spot. 0:No;1:Yes.

  • side string required

    Possible values: [Buy, Sell]

  • orderType string required

    Possible values: [Market, Limit]

    Order type

  • qty string required

    Order qty

  • price string

    ignore it if Market order

  • triggerPrice string

    param for StopOrder

  • triggerDirection integer

    param for StopOrder. 1=rise, 2=fall

  • triggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    param for StopOrder

  • orderFilter string

    Possible values: [Order, tpslOrder, StopOrder]

    Default value: Order

    Take profit stop loss, normal order or conditional order. Only valid for spot.

  • orderIv string

    Implied volatility. param for option order

  • timeInForce string

    Possible values: [GTC, IOC, FOK, PostOnly]

    Time in force

  • positionIdx integer

    Possible values: [0, 1, 2]

    0=one-way mode, 1=buy-hedge-mode, 2=sell-hedge-mode

  • orderLinkId string

    required param for option order

  • takeProfit string

    Take profit price

  • stopLoss string

    Stop loss price

  • tpTriggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    Trigger take profit price price type

  • slTriggerBy string

    Possible values: [LastPrice, MarkPrice, IndexPrice]

    Trigger stop loss price price type

  • reduceOnly boolean

    Possible values: [true, false]

    specify true if a close position order

  • closeOnTrigger boolean

    Possible values: [true, false]

    close on trigger

  • smpType string

    Possible values: [None, CancelMaker, CancelTaker, CancelBoth]

    Smp execution type

  • mmp boolean

    Possible values: [true, false]

    market marker protection. for option order

  • tpslMode string

    Possible values: [Full, Partial]

    TP/SL mode

  • tpLimitPrice string

    The limit order price when take profit price is triggered

  • slLimitPrice string

    The limit order price when stop loss price is triggered

  • tpOrderType string

    Possible values: [Market, Limit]

    The order type when take profit is triggered

  • slOrderType string

    Possible values: [Market, Limit]

    The order type when stop loss is triggered

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/open-order.html b/api-explorer/v5/trade/open-order.html index a199dbc00a..d2ee75a5f9 100644 --- a/api-explorer/v5/trade/open-order.html +++ b/api-explorer/v5/trade/open-order.html @@ -4,13 +4,13 @@ Get Open Orders (real-time) | Bybit API Documentation - +
Skip to main content

Get Open Orders (real-time)

Get unfilled orders or partially filled orders

Query Parameters
  • category string required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string

    Symbol name

  • baseCoin string

    Base coin

  • settleCoin string

    Settle coin. Spot is not available

  • orderId string
  • orderLinkId string

    User customised order id

  • orderFilter string

    Possible values: [Order, StopOrder, tpslOrder]

    Order filter. Default:all kinds of orders

  • openOnly integer

    Possible values: [0, 1, 2]

    Whether to only query active orders, if openOnly = 0, only get active orders. If it is 1, return only the order data of the final status (cancelled/rejected/completely filled, etc.) in the last 10 minutes

  • limit integer

    Default value: 20

    1-50. max 50

  • cursor string

    cursor, used for pagination

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/order-list.html b/api-explorer/v5/trade/order-list.html index 9e2ba3a915..bd9d04a7e4 100644 --- a/api-explorer/v5/trade/order-list.html +++ b/api-explorer/v5/trade/order-list.html @@ -4,13 +4,13 @@ Get Order History (2 years) | Bybit API Documentation - +
Skip to main content

Get Order History (2 years)

Get order history.

Query Parameters
  • category string required

    Possible values: [linear, inverse, option, spot]

    Product type

  • symbol string

    Symbol name

  • baseCoin string

    Base coin

  • orderId string
  • orderLinkId string

    User customised order id

  • startTime integer

    The start timestamp (ms)

  • endTime integer

    The end timestamp (ms)

  • orderStatus string

    Possible values: [Created, New, Rejected, PartiallyFilled, PartillyFilledCancelled, Filled, PendingCancel, Cancelled, Untriggered, Triggered, Deactivated, Active]

    Order status

  • orderFilter string

    Possible values: [Order, StopOrder, tpslOrder]

    Order filter

  • limit integer

    Default value: 20

    1-50. max 50

  • cursor string

    cursor to pagnition

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/query-spot-quota.html b/api-explorer/v5/trade/query-spot-quota.html index 3f92a57bb8..15fbca739d 100644 --- a/api-explorer/v5/trade/query-spot-quota.html +++ b/api-explorer/v5/trade/query-spot-quota.html @@ -4,13 +4,13 @@ Get Borrow Quota (Spot) | Bybit API Documentation - +
Skip to main content

Get Borrow Quota (Spot)

Query user's spot available quota

Query Parameters
  • category string required

    Possible values: [spot]

    Product type

  • symbol string required

    Symbol name

  • side string required

    Possible values: [Buy, Sell]

    Buy or Sell

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/trade/trade.html b/api-explorer/v5/trade/trade.html index e0aa90d428..b7566978c7 100644 --- a/api-explorer/v5/trade/trade.html +++ b/api-explorer/v5/trade/trade.html @@ -4,13 +4,13 @@ Trade | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/user/affiliate-info.html b/api-explorer/v5/user/affiliate-info.html index e30832bd3d..39fd9a6e23 100644 --- a/api-explorer/v5/user/affiliate-info.html +++ b/api-explorer/v5/user/affiliate-info.html @@ -4,13 +4,13 @@ Get Affiliate User Info | Bybit API Documentation - +
Skip to main content

Get Affiliate User Info

Get affiliate user info

Query Parameters
  • uid string required

    The main UID of referral

Header Parameters
  • apiKey string

    Please use the key with "Affiliate" permission

  • secret string

    Please use the key with "Affiliate" permission

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/user/apikey-info.html b/api-explorer/v5/user/apikey-info.html index 0089f0f616..d00969ea6f 100644 --- a/api-explorer/v5/user/apikey-info.html +++ b/api-explorer/v5/user/apikey-info.html @@ -4,13 +4,13 @@ Get API Key Information | Bybit API Documentation - +
Skip to main content

Get API Key Information

Get API Key Information

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/user/list-sub-apikeys.html b/api-explorer/v5/user/list-sub-apikeys.html index a346856eda..35f919f7b7 100644 --- a/api-explorer/v5/user/list-sub-apikeys.html +++ b/api-explorer/v5/user/list-sub-apikeys.html @@ -4,13 +4,13 @@ Get Sub Account All API Keys | Bybit API Documentation - +
Skip to main content

Get Sub Account All API Keys

Get Sub Account All API Keys

Query Parameters
  • subMemberId string required

    Sub UID

  • limit integer

    Default value: 20

    1-20. max 20

  • cursor string

    cursor, used for pagination

Header Parameters
  • apiKey string required

    Please use main account API key

  • secret string required

    Please use main account secret key

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/api-explorer/v5/user/user.html b/api-explorer/v5/user/user.html index 618275c440..bb097a4758 100644 --- a/api-explorer/v5/user/user.html +++ b/api-explorer/v5/user/user.html @@ -4,13 +4,13 @@ User | Bybit API Documentation - +
Skip to main content
- + \ No newline at end of file diff --git a/api-explorer/v5/user/wallet-type.html b/api-explorer/v5/user/wallet-type.html index 7cca29ce40..f303f2f2a3 100644 --- a/api-explorer/v5/user/wallet-type.html +++ b/api-explorer/v5/user/wallet-type.html @@ -4,13 +4,13 @@ Get UID Wallet Type | Bybit API Documentation - +
Skip to main content

Get UID Wallet Type

Get uid wallet type

Query Parameters
  • memberIds string

    Main UID or Sub UIDs

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Responses

successful operation

Loading...
- + \ No newline at end of file diff --git a/assets/js/0abae2e0.597360bd.js b/assets/js/0abae2e0.597360bd.js deleted file mode 100644 index 39535bc265..0000000000 --- a/assets/js/0abae2e0.597360bd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[683],{3905:(e,t,n)=>{n.d(t,{Zo:()=>m,kt:()=>c});var r=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=r.createContext({}),p=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},m=function(e){var t=p(e.components);return r.createElement(s.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,s=e.parentName,m=o(e,["components","mdxType","originalType","parentName"]),u=p(n),c=a,g=u["".concat(s,".").concat(c)]||u[c]||d[c]||l;return n?r.createElement(g,i(i({ref:t},m),{},{components:n})):r.createElement(g,i({ref:t},m))}));function c(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,i=new Array(l);i[0]=u;var o={};for(var s in t)hasOwnProperty.call(t,s)&&(o[s]=t[s]);o.originalType=e,o.mdxType="string"==typeof e?e:a,i[1]=o;for(var p=2;p{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>k,frontMatter:()=>l,metadata:()=>o,toc:()=>p});var r=n(87462),a=(n(67294),n(3905));const l={title:"Set Leverage",sidebar_label:"Set Leverage",sidebar_position:2},i=void 0,o={unversionedId:"v5/position/leverage",id:"v5/position/leverage",title:"Set Leverage",description:"HTTP Request",source:"@site/docs/v5/position/leverage.mdx",sourceDirName:"v5/position",slug:"/v5/position/leverage",permalink:"/docs/v5/position/leverage",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Set Leverage",sidebar_label:"Set Leverage",sidebar_position:2},sidebar:"v5SideBar",previous:{title:"Get Position Info",permalink:"/docs/v5/position/"},next:{title:"Switch Cross/Isolated Margin",permalink:"/docs/v5/position/cross-isolate"}},s={},p=[{value:"HTTP Request",id:"http-request",level:3},{value:"Request Parameters",id:"request-parameters",level:3},{value:"Response Parameters",id:"response-parameters",level:3},{value:"Request Example",id:"request-example",level:3},{value:"Response Example",id:"response-example",level:3}],m=e=>function(t){return console.warn("Component "+e+" was not imported, exported, or provided by MDXProvider as global scope"),(0,a.kt)("div",t)},d=m("Button"),u=m("Tabs"),c=m("TabItem"),g={toc:p};function k(e){let{components:t,...n}=e;return(0,a.kt)("wrapper",(0,r.Z)({},g,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h3",{id:"http-request"},"HTTP Request"),(0,a.kt)("p",null,"POST ",(0,a.kt)("inlineCode",{parentName:"p"},"/v5/position/set-leverage")),(0,a.kt)("h3",{id:"request-parameters"},"Request Parameters"),(0,a.kt)("table",null,(0,a.kt)("thead",{parentName:"table"},(0,a.kt)("tr",{parentName:"thead"},(0,a.kt)("th",{parentName:"tr",align:"left"},"Parameter"),(0,a.kt)("th",{parentName:"tr",align:"left"},"Required"),(0,a.kt)("th",{parentName:"tr",align:"left"},"Type"),(0,a.kt)("th",{parentName:"tr",align:null},"Comments"))),(0,a.kt)("tbody",{parentName:"table"},(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("a",{parentName:"td",href:"../enum#category"},"category")),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"Product type ",(0,a.kt)("ul",null,(0,a.kt)("li",null,(0,a.kt)("a",{parentName:"td",href:"../acct-mode#uta-20"},"UTA2.0"),", ",(0,a.kt)("a",{parentName:"td",href:"../acct-mode#uta-10"},"UTA1.0"),": ",(0,a.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,a.kt)("inlineCode",{parentName:"td"},"inverse")),(0,a.kt)("li",null,"Classic account: ",(0,a.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,a.kt)("inlineCode",{parentName:"td"},"inverse"))))),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"symbol"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"Symbol name, like ",(0,a.kt)("inlineCode",{parentName:"td"},"BTCUSDT"),", uppercase only")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"buyLeverage"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"[",(0,a.kt)("inlineCode",{parentName:"td"},"1"),", max leverage of corresponding ",(0,a.kt)("a",{parentName:"td",href:"../market/risk-limit#"},"risk limit"),"] ",(0,a.kt)("ul",null,(0,a.kt)("li",null,"one-way mode: ",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage")," must be the same as ",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage")),(0,a.kt)("li",null,"Hedge mode: ",(0,a.kt)("br",null),"Classic account & UTA (isolated margin): ",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage")," and ",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage")," can be different; ",(0,a.kt)("br",null),"UTA (cross margin): ",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage")," must be the same as ",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage"))))),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"sellLeverage"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"[",(0,a.kt)("inlineCode",{parentName:"td"},"1"),", max leverage of corresponding risk limit]")))),(0,a.kt)("a",{href:"/api-explorer/v5/position/leverage"},(0,a.kt)(d,{mdxType:"Button"},"RUN >>")),(0,a.kt)("hr",null),(0,a.kt)("h3",{id:"response-parameters"},"Response Parameters"),(0,a.kt)("p",null,"None"),(0,a.kt)("h3",{id:"request-example"},"Request Example"),(0,a.kt)(u,{groupId:"programming-languages",mdxType:"Tabs"},(0,a.kt)(c,{value:"http",label:"HTTP",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-http"},'POST /v5/position/set-leverage HTTP/1.1\nHost: api-testnet.bybit.com\nX-BAPI-SIGN: XXXXX\nX-BAPI-API-KEY: XXXXX\nX-BAPI-TIMESTAMP: 1672281605082\nX-BAPI-RECV-WINDOW: 5000\nContent-Type: application/json\n\n{\n "category": "linear",\n "symbol": "BTCUSDT",\n "buyLeverage": "6",\n "sellLeverage": "6"\n\n}\n'))),(0,a.kt)(c,{value:"python",label:"Python",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-python"},'from pybit.unified_trading import HTTP\nsession = HTTP(\n testnet=True,\n api_key="XXXXX",\n api_secret="XXXXX",\n)\nprint(session.set_leverage(\n category="linear",\n symbol="BTCUSDT",\n buyLeverage="6",\n sellLeverage="6",\n))\n'))),(0,a.kt)(c,{value:"java",label:"Java",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-java"},'import com.bybit.api.client.domain.*;\nimport com.bybit.api.client.domain.position.*;\nimport com.bybit.api.client.domain.position.request.*;\nimport com.bybit.api.client.service.BybitApiClientFactory;\nvar client = BybitApiClientFactory.newInstance().newAsyncPositionRestClient();\nvar setLeverageRequest = PositionDataRequest.builder().category(CategoryType.LINEAR).symbol("BTCUSDT").buyLeverage("5").sellLeverage("5").build();\nclient.setPositionLeverage(setLeverageRequest, System.out::println);\n'))),(0,a.kt)(c,{value:"Node",label:"Node.js",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-n4js"},"const { RestClientV5 } = require('bybit-api');\n\nconst client = new RestClientV5({\n testnet: true,\n key: 'apikey',\n secret: 'apisecret',\n});\n\nclient\n .setLeverage({\n category: 'linear',\n symbol: 'BTCUSDT',\n buyLeverage: '6',\n sellLeverage: '6',\n })\n .then((response) => {\n console.log(response);\n })\n .catch((error) => {\n console.error(error);\n });\n")))),(0,a.kt)("h3",{id:"response-example"},"Response Example"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-json"},'{\n "retCode": 0,\n "retMsg": "OK",\n "result": {},\n "retExtInfo": {},\n "time": 1672281607343\n}\n')))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0abae2e0.9749355d.js b/assets/js/0abae2e0.9749355d.js new file mode 100644 index 0000000000..1ddf5a5dc6 --- /dev/null +++ b/assets/js/0abae2e0.9749355d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[683],{3905:(e,t,n)=>{n.d(t,{Zo:()=>m,kt:()=>c});var a=n(67294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var s=a.createContext({}),p=function(e){var t=a.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},m=function(e){var t=p(e.components);return a.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},d=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,s=e.parentName,m=o(e,["components","mdxType","originalType","parentName"]),d=p(n),c=r,g=d["".concat(s,".").concat(c)]||d[c]||u[c]||l;return n?a.createElement(g,i(i({ref:t},m),{},{components:n})):a.createElement(g,i({ref:t},m))}));function c(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=d;var o={};for(var s in t)hasOwnProperty.call(t,s)&&(o[s]=t[s]);o.originalType=e,o.mdxType="string"==typeof e?e:r,i[1]=o;for(var p=2;p{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>v,frontMatter:()=>l,metadata:()=>o,toc:()=>p});var a=n(87462),r=(n(67294),n(3905));const l={title:"Set Leverage",sidebar_label:"Set Leverage",sidebar_position:2},i=void 0,o={unversionedId:"v5/position/leverage",id:"v5/position/leverage",title:"Set Leverage",description:"According to the risk limit, leverage affects the maximum position value that can be opened,",source:"@site/docs/v5/position/leverage.mdx",sourceDirName:"v5/position",slug:"/v5/position/leverage",permalink:"/docs/v5/position/leverage",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Set Leverage",sidebar_label:"Set Leverage",sidebar_position:2},sidebar:"v5SideBar",previous:{title:"Get Position Info",permalink:"/docs/v5/position/"},next:{title:"Switch Cross/Isolated Margin",permalink:"/docs/v5/position/cross-isolate"}},s={},p=[{value:"HTTP Request",id:"http-request",level:3},{value:"Request Parameters",id:"request-parameters",level:3},{value:"Response Parameters",id:"response-parameters",level:3},{value:"Request Example",id:"request-example",level:3},{value:"Response Example",id:"response-example",level:3}],m=e=>function(t){return console.warn("Component "+e+" was not imported, exported, or provided by MDXProvider as global scope"),(0,r.kt)("div",t)},u=m("Button"),d=m("Tabs"),c=m("TabItem"),g={toc:p};function v(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},g,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("admonition",{type:"info"},(0,r.kt)("p",{parentName:"admonition"},"According to the risk limit, leverage affects the maximum position value that can be opened,\nthat is, the greater the leverage, the smaller the maximum position value that can be opened,\nand vice versa. ",(0,r.kt)("a",{parentName:"p",href:"https://www.bybit.com/en/help-center/article/Risk-Limit-Perpetual-and-FuturesBybit_Perpetual_Contract_mechanism"},"Learn more"))),(0,r.kt)("h3",{id:"http-request"},"HTTP Request"),(0,r.kt)("p",null,"POST ",(0,r.kt)("inlineCode",{parentName:"p"},"/v5/position/set-leverage")),(0,r.kt)("h3",{id:"request-parameters"},"Request Parameters"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Required"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Type"),(0,r.kt)("th",{parentName:"tr",align:null},"Comments"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("a",{parentName:"td",href:"../enum#category"},"category")),(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("strong",{parentName:"td"},"true")),(0,r.kt)("td",{parentName:"tr",align:"left"},"string"),(0,r.kt)("td",{parentName:"tr",align:null},"Product type ",(0,r.kt)("ul",null,(0,r.kt)("li",null,(0,r.kt)("a",{parentName:"td",href:"../acct-mode#uta-20"},"UTA2.0"),", ",(0,r.kt)("a",{parentName:"td",href:"../acct-mode#uta-10"},"UTA1.0"),": ",(0,r.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,r.kt)("inlineCode",{parentName:"td"},"inverse")),(0,r.kt)("li",null,"Classic account: ",(0,r.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,r.kt)("inlineCode",{parentName:"td"},"inverse"))))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"symbol"),(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("strong",{parentName:"td"},"true")),(0,r.kt)("td",{parentName:"tr",align:"left"},"string"),(0,r.kt)("td",{parentName:"tr",align:null},"Symbol name, like ",(0,r.kt)("inlineCode",{parentName:"td"},"BTCUSDT"),", uppercase only")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"buyLeverage"),(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("strong",{parentName:"td"},"true")),(0,r.kt)("td",{parentName:"tr",align:"left"},"string"),(0,r.kt)("td",{parentName:"tr",align:null},"[",(0,r.kt)("inlineCode",{parentName:"td"},"1"),", max leverage]"," ",(0,r.kt)("ul",null,(0,r.kt)("li",null,"one-way mode: ",(0,r.kt)("inlineCode",{parentName:"td"},"buyLeverage")," must be the same as ",(0,r.kt)("inlineCode",{parentName:"td"},"sellLeverage")),(0,r.kt)("li",null,"Hedge mode: ",(0,r.kt)("br",null),"Classic account & UTA (isolated margin): ",(0,r.kt)("inlineCode",{parentName:"td"},"buyLeverage")," and ",(0,r.kt)("inlineCode",{parentName:"td"},"sellLeverage")," can be different; ",(0,r.kt)("br",null),"UTA (cross margin): ",(0,r.kt)("inlineCode",{parentName:"td"},"buyLeverage")," must be the same as ",(0,r.kt)("inlineCode",{parentName:"td"},"sellLeverage"))))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"sellLeverage"),(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("strong",{parentName:"td"},"true")),(0,r.kt)("td",{parentName:"tr",align:"left"},"string"),(0,r.kt)("td",{parentName:"tr",align:null},"[",(0,r.kt)("inlineCode",{parentName:"td"},"1"),", max leverage]")))),(0,r.kt)("a",{href:"/api-explorer/v5/position/leverage"},(0,r.kt)(u,{mdxType:"Button"},"RUN >>")),(0,r.kt)("hr",null),(0,r.kt)("h3",{id:"response-parameters"},"Response Parameters"),(0,r.kt)("p",null,"None"),(0,r.kt)("h3",{id:"request-example"},"Request Example"),(0,r.kt)(d,{groupId:"programming-languages",mdxType:"Tabs"},(0,r.kt)(c,{value:"http",label:"HTTP",mdxType:"TabItem"},(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-http"},'POST /v5/position/set-leverage HTTP/1.1\nHost: api-testnet.bybit.com\nX-BAPI-SIGN: XXXXX\nX-BAPI-API-KEY: XXXXX\nX-BAPI-TIMESTAMP: 1672281605082\nX-BAPI-RECV-WINDOW: 5000\nContent-Type: application/json\n\n{\n "category": "linear",\n "symbol": "BTCUSDT",\n "buyLeverage": "6",\n "sellLeverage": "6"\n\n}\n'))),(0,r.kt)(c,{value:"python",label:"Python",mdxType:"TabItem"},(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-python"},'from pybit.unified_trading import HTTP\nsession = HTTP(\n testnet=True,\n api_key="XXXXX",\n api_secret="XXXXX",\n)\nprint(session.set_leverage(\n category="linear",\n symbol="BTCUSDT",\n buyLeverage="6",\n sellLeverage="6",\n))\n'))),(0,r.kt)(c,{value:"java",label:"Java",mdxType:"TabItem"},(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-java"},'import com.bybit.api.client.domain.*;\nimport com.bybit.api.client.domain.position.*;\nimport com.bybit.api.client.domain.position.request.*;\nimport com.bybit.api.client.service.BybitApiClientFactory;\nvar client = BybitApiClientFactory.newInstance().newAsyncPositionRestClient();\nvar setLeverageRequest = PositionDataRequest.builder().category(CategoryType.LINEAR).symbol("BTCUSDT").buyLeverage("5").sellLeverage("5").build();\nclient.setPositionLeverage(setLeverageRequest, System.out::println);\n'))),(0,r.kt)(c,{value:"Node",label:"Node.js",mdxType:"TabItem"},(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-n4js"},"const { RestClientV5 } = require('bybit-api');\n\nconst client = new RestClientV5({\n testnet: true,\n key: 'apikey',\n secret: 'apisecret',\n});\n\nclient\n .setLeverage({\n category: 'linear',\n symbol: 'BTCUSDT',\n buyLeverage: '6',\n sellLeverage: '6',\n })\n .then((response) => {\n console.log(response);\n })\n .catch((error) => {\n console.error(error);\n });\n")))),(0,r.kt)("h3",{id:"response-example"},"Response Example"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-json"},'{\n "retCode": 0,\n "retMsg": "OK",\n "result": {},\n "retExtInfo": {},\n "time": 1672281607343\n}\n')))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.10e441fa.js b/assets/js/935f2afb.c11f4948.js similarity index 87% rename from assets/js/935f2afb.10e441fa.js rename to assets/js/935f2afb.c11f4948.js index ab92e2e19c..a3fb8fe0f2 100644 --- a/assets/js/935f2afb.10e441fa.js +++ b/assets/js/935f2afb.c11f4948.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"v3SideBar":[{"type":"link","label":"Introduction","href":"/docs/v3/intro","docId":"v3/intro"},{"type":"category","label":"Tax","items":[{"type":"link","label":"Get User Register Date","href":"/docs/tax/time","docId":"v3/tax/register-time"},{"type":"link","label":"Request Export Report","href":"/docs/tax/report","docId":"v3/tax/request-report"},{"type":"link","label":"Get Export Report Status","href":"/docs/tax/status","docId":"v3/tax/report-status"},{"type":"link","label":"Retrieve Data Export","href":"/docs/tax/data-export","docId":"v3/tax/data-export"},{"type":"link","label":"Data Explanation","href":"/docs/tax/explain","docId":"v3/tax/data-explain"},{"type":"link","label":"Enums Definitions","href":"/docs/tax/enum","docId":"v3/tax/enum"}],"collapsed":true,"collapsible":true}],"v5SideBar":[{"type":"link","label":"Introduction","href":"/docs/v5/intro","docId":"v5/intro"},{"type":"link","label":"Integration Guidance","href":"/docs/v5/guide","docId":"v5/guide"},{"type":"link","label":"Different Account Modes","href":"/docs/v5/acct-mode","docId":"v5/acct-mode"},{"type":"link","label":"Get Announcement","href":"/docs/v5/announcement","docId":"v5/announcement"},{"type":"link","label":"Self Match Prevention","href":"/docs/v5/smp","docId":"v5/smp"},{"type":"link","label":"How To Start Copy Trading","href":"/docs/v5/copytrade","docId":"v5/copytrade"},{"type":"link","label":"Demo Trading Service","href":"/docs/v5/demo","docId":"v5/demo"},{"type":"category","label":"Market","items":[{"type":"link","label":"Get Bybit Server Time","href":"/docs/v5/market/time","docId":"v5/market/time"},{"type":"link","label":"Get Kline","href":"/docs/v5/market/kline","docId":"v5/market/kline"},{"type":"link","label":"Get Mark Price Kline","href":"/docs/v5/market/mark-kline","docId":"v5/market/mark-kline"},{"type":"link","label":"Get Index Price Kline","href":"/docs/v5/market/index-kline","docId":"v5/market/index-kline"},{"type":"link","label":"Get Premium Index Price Kline","href":"/docs/v5/market/preimum-index-kline","docId":"v5/market/preimum-index-kline"},{"type":"link","label":"Get Instruments Info","href":"/docs/v5/market/instrument","docId":"v5/market/instrument"},{"type":"link","label":"Get Orderbook","href":"/docs/v5/market/orderbook","docId":"v5/market/orderbook"},{"type":"link","label":"Get Tickers","href":"/docs/v5/market/tickers","docId":"v5/market/tickers"},{"type":"link","label":"Get Funding Rate History","href":"/docs/v5/market/history-fund-rate","docId":"v5/market/history-fund-rate"},{"type":"link","label":"Get Public Recent Trading History","href":"/docs/v5/market/recent-trade","docId":"v5/market/recent-trade"},{"type":"link","label":"Get Open Interest","href":"/docs/v5/market/open-interest","docId":"v5/market/open-interest"},{"type":"link","label":"Get Historical Volatility","href":"/docs/v5/market/iv","docId":"v5/market/iv"},{"type":"link","label":"Get Insurance","href":"/docs/v5/market/insurance","docId":"v5/market/insurance"},{"type":"link","label":"Get Risk Limit","href":"/docs/v5/market/risk-limit","docId":"v5/market/risk-limit"},{"type":"link","label":"Get Delivery Price","href":"/docs/v5/market/delivery-price","docId":"v5/market/delivery-price"},{"type":"link","label":"Get Long Short Ratio","href":"/docs/v5/market/long-short-ratio","docId":"v5/market/long-short-ratio"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Trade","items":[{"type":"link","label":"Place Order","href":"/docs/v5/order/create-order","docId":"v5/order/create-order"},{"type":"link","label":"Amend Order","href":"/docs/v5/order/amend-order","docId":"v5/order/amend-order"},{"type":"link","label":"Cancel Order","href":"/docs/v5/order/cancel-order","docId":"v5/order/cancel-order"},{"type":"link","label":"Get Open & Closed Orders","href":"/docs/v5/order/open-order","docId":"v5/order/open-order"},{"type":"link","label":"Cancel All Orders","href":"/docs/v5/order/cancel-all","docId":"v5/order/cancel-all"},{"type":"link","label":"Get Order History (2 years)","href":"/docs/v5/order/order-list","docId":"v5/order/order-list"},{"type":"link","label":"Get Trade History (2 years)","href":"/docs/v5/order/execution","docId":"v5/order/execution"},{"type":"link","label":"Batch Place Order","href":"/docs/v5/order/batch-place","docId":"v5/order/batch-place"},{"type":"link","label":"Batch Amend Order","href":"/docs/v5/order/batch-amend","docId":"v5/order/batch-amend"},{"type":"link","label":"Batch Cancel Order","href":"/docs/v5/order/batch-cancel","docId":"v5/order/batch-cancel"},{"type":"link","label":"Get Borrow Quota (Spot)","href":"/docs/v5/order/spot-borrow-quota","docId":"v5/order/spot-borrow-quota"},{"type":"link","label":"Set DCP","href":"/docs/v5/order/dcp","docId":"v5/order/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Position","items":[{"type":"link","label":"Get Position Info","href":"/docs/v5/position/","docId":"v5/position/position"},{"type":"link","label":"Set Leverage","href":"/docs/v5/position/leverage","docId":"v5/position/leverage"},{"type":"link","label":"Switch Cross/Isolated Margin","href":"/docs/v5/position/cross-isolate","docId":"v5/position/cross-isolate"},{"type":"link","label":"Switch Position Mode","href":"/docs/v5/position/position-mode","docId":"v5/position/position-mode"},{"type":"link","label":"Set Trading Stop","href":"/docs/v5/position/trading-stop","docId":"v5/position/trading-stop"},{"type":"link","label":"Set Auto Add Margin","href":"/docs/v5/position/auto-add-margin","docId":"v5/position/auto-add-margin"},{"type":"link","label":"Add Or Reduce Margin","href":"/docs/v5/position/manual-add-margin","docId":"v5/position/manual-add-margin"},{"type":"link","label":"Get Closed PnL (2 years)","href":"/docs/v5/position/close-pnl","docId":"v5/position/close-pnl"},{"type":"link","label":"Move Position","href":"/docs/v5/position/move-position","docId":"v5/position/move-position"},{"type":"link","label":"Get Move Position History","href":"/docs/v5/position/move-position-history","docId":"v5/position/move-position-history"},{"type":"link","label":"Confirm New Risk Limit","href":"/docs/v5/position/confirm-mmr","docId":"v5/position/confirm-mmr"},{"type":"link","label":"Set TP/SL Mode (Depreciated)","href":"/docs/v5/position/tpsl-mode","docId":"v5/position/tpsl-mode"},{"type":"link","label":"Set Risk Limit (Depreciated)","href":"/docs/v5/position/set-risk-limit","docId":"v5/position/set-risk-limit"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Pre-upgrade","items":[{"type":"link","label":"Get Pre-upgrade Order History","href":"/docs/v5/pre-upgrade/order-list","docId":"v5/pre-upgrade/order-list"},{"type":"link","label":"Get Pre-upgrade Trade History","href":"/docs/v5/pre-upgrade/execution","docId":"v5/pre-upgrade/execution"},{"type":"link","label":"Get Pre-upgrade Closed PnL","href":"/docs/v5/pre-upgrade/close-pnl","docId":"v5/pre-upgrade/close-pnl"},{"type":"link","label":"Get Pre-upgrade Transaction Log","href":"/docs/v5/pre-upgrade/transaction-log","docId":"v5/pre-upgrade/transaction-log"},{"type":"link","label":"Get Pre-upgrade Delivery Record","href":"/docs/v5/pre-upgrade/delivery","docId":"v5/pre-upgrade/delivery"},{"type":"link","label":"Get Pre-upgrade USDC Session Settlement","href":"/docs/v5/pre-upgrade/settlement","docId":"v5/pre-upgrade/settlement"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Account","items":[{"type":"link","label":"Get Wallet Balance","href":"/docs/v5/account/wallet-balance","docId":"v5/account/wallet-balance"},{"type":"link","label":"Upgrade to Unified Account","href":"/docs/v5/account/upgrade-unified-account","docId":"v5/account/upgrade-unified-account"},{"type":"link","label":"Get Borrow History (2 years)","href":"/docs/v5/account/borrow-history","docId":"v5/account/borrow-history"},{"type":"link","label":"Repay Liability","href":"/docs/v5/account/repay-liability","docId":"v5/account/repay-liability"},{"type":"link","label":"Set Collateral Coin","href":"/docs/v5/account/set-collateral","docId":"v5/account/set-collateral"},{"type":"link","label":"Batch Set Collateral Coin","href":"/docs/v5/account/batch-set-collateral","docId":"v5/account/batch-set-collateral"},{"type":"link","label":"Get Collateral Info","href":"/docs/v5/account/collateral-info","docId":"v5/account/collateral-info"},{"type":"link","label":"Get Coin Greeks","href":"/docs/v5/account/coin-greeks","docId":"v5/account/coin-greeks"},{"type":"link","label":"Get Fee Rate","href":"/docs/v5/account/fee-rate","docId":"v5/account/fee-rate"},{"type":"link","label":"Get Account Info","href":"/docs/v5/account/account-info","docId":"v5/account/account-info"},{"type":"link","label":"Get DCP Info","href":"/docs/v5/account/dcp-info","docId":"v5/account/dcp-info"},{"type":"link","label":"Get Transaction Log (UTA)","href":"/docs/v5/account/transaction-log","docId":"v5/account/transaction-log"},{"type":"link","label":"Get Transaction Log (Classic)","href":"/docs/v5/account/contract-transaction-log","docId":"v5/account/contract-transaction-log"},{"type":"link","label":"Get SMP Group ID","href":"/docs/v5/account/smp-group","docId":"v5/account/smp-group"},{"type":"link","label":"Set Margin Mode","href":"/docs/v5/account/set-margin-mode","docId":"v5/account/set-margin-mode"},{"type":"link","label":"Set Spot Hedging","href":"/docs/v5/account/set-spot-hedge","docId":"v5/account/set-spot-hedge"},{"type":"link","label":"Set MMP","href":"/docs/v5/account/set-mmp","docId":"v5/account/set-mmp"},{"type":"link","label":"Reset MMP","href":"/docs/v5/account/reset-mmp","docId":"v5/account/reset-mmp"},{"type":"link","label":"Get MMP State","href":"/docs/v5/account/get-mmp-state","docId":"v5/account/get-mmp-state"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Asset","items":[{"type":"link","label":"Get Delivery Record (2 years)","href":"/docs/v5/asset/delivery","docId":"v5/asset/delivery"},{"type":"link","label":"Get USDC Session Settlement (2 years)","href":"/docs/v5/asset/settlement","docId":"v5/asset/settlement"},{"type":"link","label":"Get Coin Exchange Records","href":"/docs/v5/asset/exchange","docId":"v5/asset/exchange"},{"type":"link","label":"Get Coin Info","href":"/docs/v5/asset/coin-info","docId":"v5/asset/coin-info"},{"type":"link","label":"Get Sub UID","href":"/docs/v5/asset/sub-uid-list","docId":"v5/asset/sub-uid-list"},{"type":"category","label":"Balances","items":[{"type":"link","label":"Get Asset Info (Spot)","href":"/docs/v5/asset/balance/asset-info","docId":"v5/asset/balance/asset-info"},{"type":"link","label":"Get All Coins Balance","href":"/docs/v5/asset/balance/all-balance","docId":"v5/asset/balance/all-balance"},{"type":"link","label":"Get Single Coin Balance","href":"/docs/v5/asset/balance/account-coin-balance","docId":"v5/asset/balance/account-coin-balance"},{"type":"link","label":"Get Withdrawable Amount","href":"/docs/v5/asset/balance/delay-amount","docId":"v5/asset/balance/delay-amount"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Transfer","items":[{"type":"link","label":"Get Transferable Coin","href":"/docs/v5/asset/transfer/transferable-coin","docId":"v5/asset/transfer/transferable-coin"},{"type":"link","label":"Create Internal Transfer","href":"/docs/v5/asset/transfer/create-inter-transfer","docId":"v5/asset/transfer/create-inter-transfer"},{"type":"link","label":"Get Internal Transfer Records","href":"/docs/v5/asset/transfer/inter-transfer-list","docId":"v5/asset/transfer/inter-transfer-list"},{"type":"link","label":"Create Universal Transfer","href":"/docs/v5/asset/transfer/unitransfer","docId":"v5/asset/transfer/unitransfer"},{"type":"link","label":"Get Universal Transfer Records","href":"/docs/v5/asset/transfer/unitransfer-list","docId":"v5/asset/transfer/unitransfer-list"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Deposit","items":[{"type":"link","label":"Get Allowed Deposit Coin Info","href":"/docs/v5/asset/deposit/deposit-coin-spec","docId":"v5/asset/deposit/deposit-coin-spec"},{"type":"link","label":"Set Deposit Account","href":"/docs/v5/asset/deposit/set-deposit-acct","docId":"v5/asset/deposit/set-deposit-acct"},{"type":"link","label":"Get Deposit Records (on-chain)","href":"/docs/v5/asset/deposit/deposit-record","docId":"v5/asset/deposit/deposit-record"},{"type":"link","label":"Get Sub Deposit Records (on-chain)","href":"/docs/v5/asset/deposit/sub-deposit-record","docId":"v5/asset/deposit/sub-deposit-record"},{"type":"link","label":"Get Internal Deposit Records (off-chain)","href":"/docs/v5/asset/deposit/internal-deposit-record","docId":"v5/asset/deposit/internal-deposit-record"},{"type":"link","label":"Get Master Deposit Address","href":"/docs/v5/asset/deposit/master-deposit-addr","docId":"v5/asset/deposit/master-deposit-addr"},{"type":"link","label":"Get Sub Deposit Address","href":"/docs/v5/asset/deposit/sub-deposit-addr","docId":"v5/asset/deposit/sub-deposit-addr"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Withdraw","items":[{"type":"link","label":"Get Withdrawal Records","href":"/docs/v5/asset/withdraw/withdraw-record","docId":"v5/asset/withdraw/withdraw-record"},{"type":"link","label":"Get Exchange Entity List (KOR)","href":"/docs/v5/asset/withdraw/vasp-list","docId":"v5/asset/withdraw/vasp-list"},{"type":"link","label":"Withdraw","href":"/docs/v5/asset/withdraw/","docId":"v5/asset/withdraw/withdraw"},{"type":"link","label":"Cancel Withdrawal","href":"/docs/v5/asset/withdraw/cancel-withdraw","docId":"v5/asset/withdraw/cancel-withdraw"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Convert","items":[{"type":"link","label":"Guideline","href":"/docs/v5/asset/convert/guideline","docId":"v5/asset/convert/guideline"},{"type":"link","label":"Get Convert Coin List","href":"/docs/v5/asset/convert/convert-coin-list","docId":"v5/asset/convert/convert-coin-list"},{"type":"link","label":"Request a Quote","href":"/docs/v5/asset/convert/apply-quote","docId":"v5/asset/convert/apply-quote"},{"type":"link","label":"Confirm a Quote","href":"/docs/v5/asset/convert/confirm-quote","docId":"v5/asset/convert/confirm-quote"},{"type":"link","label":"Get Convert Status","href":"/docs/v5/asset/convert/get-convert-result","docId":"v5/asset/convert/get-convert-result"},{"type":"link","label":"Get Convert history","href":"/docs/v5/asset/convert/get-convert-history","docId":"v5/asset/convert/get-convert-history"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"User","items":[{"type":"link","label":"Create Sub UID","href":"/docs/v5/user/create-subuid","docId":"v5/user/create-subuid"},{"type":"link","label":"Create Sub UID API Key","href":"/docs/v5/user/create-subuid-apikey","docId":"v5/user/create-subuid-apikey"},{"type":"link","label":"Get Sub UID List (Limited)","href":"/docs/v5/user/subuid-list","docId":"v5/user/subuid-list"},{"type":"link","label":"Get Sub UID List (Unlimited)","href":"/docs/v5/user/page-subuid","docId":"v5/user/page-subuid"},{"type":"link","label":"Freeze Sub UID","href":"/docs/v5/user/froze-subuid","docId":"v5/user/froze-subuid"},{"type":"link","label":"Get API Key Information","href":"/docs/v5/user/apikey-info","docId":"v5/user/apikey-info"},{"type":"link","label":"Get Sub Account All API Keys","href":"/docs/v5/user/list-sub-apikeys","docId":"v5/user/list-sub-apikeys"},{"type":"link","label":"Get UID Wallet Type","href":"/docs/v5/user/wallet-type","docId":"v5/user/wallet-type"},{"type":"link","label":"Modify Master API Key","href":"/docs/v5/user/modify-master-apikey","docId":"v5/user/modify-master-apikey"},{"type":"link","label":"Modify Sub API Key","href":"/docs/v5/user/modify-sub-apikey","docId":"v5/user/modify-sub-apikey"},{"type":"link","label":"Delete Sub UID","href":"/docs/v5/user/rm-subuid","docId":"v5/user/rm-subuid"},{"type":"link","label":"Delete Master API Key","href":"/docs/v5/user/rm-master-apikey","docId":"v5/user/rm-master-apikey"},{"type":"link","label":"Delete Sub API Key","href":"/docs/v5/user/rm-sub-apikey","docId":"v5/user/rm-sub-apikey"},{"type":"link","label":"Get Affiliate User Info","href":"/docs/v5/user/affiliate-info","docId":"v5/user/affiliate-info"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Spot Leverage Token","items":[{"type":"link","label":"Get Leverage Token Info","href":"/docs/v5/lt/leverage-token-info","docId":"v5/lt/leverage-token-info"},{"type":"link","label":"Get Leveraged Token Market","href":"/docs/v5/lt/leverage-token-reference","docId":"v5/lt/leverage-token-reference"},{"type":"link","label":"Purchase","href":"/docs/v5/lt/purchase","docId":"v5/lt/purchase"},{"type":"link","label":"Redeem","href":"/docs/v5/lt/redeem","docId":"v5/lt/redeem"},{"type":"link","label":"Get Purchase/Redemption Records","href":"/docs/v5/lt/order-record","docId":"v5/lt/order-record"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Spot Margin Trade (UTA)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/v5/spot-margin-uta/vip-margin","docId":"v5/spot-margin-uta/vip-margin"},{"type":"link","label":"Get Historical Interest Rate","href":"/docs/v5/spot-margin-uta/historical-interest","docId":"v5/spot-margin-uta/historical-interest"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/v5/spot-margin-uta/switch-mode","docId":"v5/spot-margin-uta/switch-mode"},{"type":"link","label":"Set Leverage","href":"/docs/v5/spot-margin-uta/set-leverage","docId":"v5/spot-margin-uta/set-leverage"},{"type":"link","label":"Get Status And Leverage","href":"/docs/v5/spot-margin-uta/status","docId":"v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Crypto Loan","items":[{"type":"link","label":"Get Collateral Coins","href":"/docs/v5/crypto-loan/collateral-coin","docId":"v5/crypto-loan/collateral-coin"},{"type":"link","label":"Get Borrowable Coins","href":"/docs/v5/crypto-loan/loan-coin","docId":"v5/crypto-loan/loan-coin"},{"type":"link","label":"Get Account Borrow/Collateral Limit","href":"/docs/v5/crypto-loan/acct-borrow-collateral","docId":"v5/crypto-loan/acct-borrow-collateral"},{"type":"link","label":"Borrow","href":"/docs/v5/crypto-loan/borrow","docId":"v5/crypto-loan/borrow"},{"type":"link","label":"Repay","href":"/docs/v5/crypto-loan/repay","docId":"v5/crypto-loan/repay"},{"type":"link","label":"Get Unpaid Loan Orders","href":"/docs/v5/crypto-loan/unpaid-loan-order","docId":"v5/crypto-loan/unpaid-loan-order"},{"type":"link","label":"Get Repayment Transaction History","href":"/docs/v5/crypto-loan/repay-transaction","docId":"v5/crypto-loan/repay-transaction"},{"type":"link","label":"Get Completed Loan Order History","href":"/docs/v5/crypto-loan/comleted-loan-order","docId":"v5/crypto-loan/comleted-loan-order"},{"type":"link","label":"Get Max. Allowed Reduction Collateral Amount","href":"/docs/v5/crypto-loan/reduce-max-collateral-amt","docId":"v5/crypto-loan/reduce-max-collateral-amt"},{"type":"link","label":"Adjust Collateral Amount","href":"/docs/v5/crypto-loan/adjust-collateral","docId":"v5/crypto-loan/adjust-collateral"},{"type":"link","label":"Get Loan LTV Adjustment History","href":"/docs/v5/crypto-loan/ltv-adjust-history","docId":"v5/crypto-loan/ltv-adjust-history"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Institutional Loan","items":[{"type":"link","label":"Get Product Info","href":"/docs/v5/otc/margin-product-info","docId":"v5/otc/margin-product-info"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/v5/otc/margin-coin-convert-info","docId":"v5/otc/margin-coin-convert-info"},{"type":"link","label":"Get Loan Orders","href":"/docs/v5/otc/loan-info","docId":"v5/otc/loan-info"},{"type":"link","label":"Get Repayment Orders","href":"/docs/v5/otc/repay-info","docId":"v5/otc/repay-info"},{"type":"link","label":"Get LTV","href":"/docs/v5/otc/ltv-convert","docId":"v5/otc/ltv-convert"},{"type":"link","label":"Bind Or Unbind UID","href":"/docs/v5/otc/bind-uid","docId":"v5/otc/bind-uid"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Exchange Broker","items":[{"type":"link","label":"Get Earning","href":"/docs/v5/broker/exchange-earning","docId":"v5/broker/exchange-earning"},{"type":"link","label":"Get Account Info","href":"/docs/v5/broker/account-info","docId":"v5/broker/account-info"},{"type":"link","label":"Get Sub Account Deposit Records","href":"/docs/v5/broker/sub-deposit-record","docId":"v5/broker/sub-deposit-record"},{"type":"category","label":"Reward","items":[{"type":"link","label":"Query Voucher Spec","href":"/docs/v5/broker/reward/voucher","docId":"v5/broker/reward/voucher"},{"type":"link","label":"Issue Voucher","href":"/docs/v5/broker/reward/issue-voucher","docId":"v5/broker/reward/issue-voucher"},{"type":"link","label":"Query Issued Voucher","href":"/docs/v5/broker/reward/get-issue-voucher","docId":"v5/broker/reward/get-issue-voucher"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"WebSocket Stream","items":[{"type":"link","label":"Connect","href":"/docs/v5/ws/connect","docId":"v5/websocket/wss-authentication"},{"type":"category","label":"Public","items":[{"type":"link","label":"Orderbook","href":"/docs/v5/websocket/public/orderbook","docId":"v5/websocket/public/orderbook"},{"type":"link","label":"Trade","href":"/docs/v5/websocket/public/trade","docId":"v5/websocket/public/trade"},{"type":"link","label":"Ticker","href":"/docs/v5/websocket/public/ticker","docId":"v5/websocket/public/ticker"},{"type":"link","label":"Kline","href":"/docs/v5/websocket/public/kline","docId":"v5/websocket/public/kline"},{"type":"link","label":"Liquidation","href":"/docs/v5/websocket/public/liquidation","docId":"v5/websocket/public/liquidation"},{"type":"link","label":"LT Kline","href":"/docs/v5/websocket/public/etp-kline","docId":"v5/websocket/public/etp-kline"},{"type":"link","label":"LT Ticker","href":"/docs/v5/websocket/public/etp-ticker","docId":"v5/websocket/public/etp-ticker"},{"type":"link","label":"LT Nav","href":"/docs/v5/websocket/public/etp-nav","docId":"v5/websocket/public/etp-nav"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Private","items":[{"type":"link","label":"Position","href":"/docs/v5/websocket/private/position","docId":"v5/websocket/private/position"},{"type":"link","label":"Execution","href":"/docs/v5/websocket/private/execution","docId":"v5/websocket/private/execution"},{"type":"link","label":"Fast Execution","href":"/docs/v5/websocket/private/fast-execution","docId":"v5/websocket/private/fast-execution"},{"type":"link","label":"Order","href":"/docs/v5/websocket/private/order","docId":"v5/websocket/private/order"},{"type":"link","label":"Wallet","href":"/docs/v5/websocket/private/wallet","docId":"v5/websocket/private/wallet"},{"type":"link","label":"Greek","href":"/docs/v5/websocket/private/greek","docId":"v5/websocket/private/greek"},{"type":"link","label":"Dcp","href":"/docs/v5/websocket/private/dcp","docId":"v5/websocket/private/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Trade","items":[{"type":"link","label":"Websocket Trade Guideline","href":"/docs/v5/websocket/trade/guideline","docId":"v5/websocket/trade/guideline"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"link","label":"Rate Limit","href":"/docs/v5/rate-limit","docId":"v5/rate-limit"},{"type":"link","label":"Enums Definitions","href":"/docs/v5/enum","docId":"v5/enum"},{"type":"link","label":"Error Codes","href":"/docs/v5/error","docId":"v5/error"},{"type":"category","label":"Abandoned Endpoints","items":[{"type":"link","label":"Get Lending Coin Info","href":"/docs/v5/abandon/coin-info","docId":"v5/abandon/coin-info"},{"type":"link","label":"Get LTV","href":"/docs/v5/abandon/ltv","docId":"v5/abandon/ltv"},{"type":"link","label":"Deposit Funds","href":"/docs/v5/abandon/deposit","docId":"v5/abandon/deposit"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/v5/abandon/margin-coin-info","docId":"v5/abandon/margin-coin-info"},{"type":"link","label":"Enable Universal Transfer for Sub UID","href":"/docs/v5/abandon/enable-unitransfer-subuid","docId":"v5/abandon/enable-unitransfer-subuid"},{"type":"link","label":"Redeem Funds","href":"/docs/v5/abandon/redeem","docId":"v5/abandon/redeem"},{"type":"link","label":"Cancel Redeem","href":"/docs/v5/abandon/cancel-redeem","docId":"v5/abandon/cancel-redeem"},{"type":"link","label":"Get Broker Earning","href":"/docs/v5/abandon/earning","docId":"v5/abandon/earning"},{"type":"link","label":"Get Order Records","href":"/docs/v5/abandon/order-record","docId":"v5/abandon/order-record"},{"type":"link","label":"Get Lending Account Info","href":"/docs/v5/abandon/account-info","docId":"v5/abandon/account-info"}],"collapsed":true,"collapsible":true}],"apiExplorerSideBar":[{"type":"category","label":"V5","items":[{"type":"category","label":"Market","items":[{"type":"link","label":"Get Bybit Server Time","href":"/docs/api-explorer/v5/market/time","className":"api-method get","docId":"api-explorer/v5/market/time"},{"type":"link","label":"Get Kline","href":"/docs/api-explorer/v5/market/kline","className":"api-method get","docId":"api-explorer/v5/market/kline"},{"type":"link","label":"Get Mark Price Kline","href":"/docs/api-explorer/v5/market/mark-kline","className":"api-method get","docId":"api-explorer/v5/market/mark-kline"},{"type":"link","label":"Get Index Price Kline","href":"/docs/api-explorer/v5/market/index-kline","className":"api-method get","docId":"api-explorer/v5/market/index-kline"},{"type":"link","label":"Get Premium Index Price Kline","href":"/docs/api-explorer/v5/market/premium-index-kline","className":"api-method get","docId":"api-explorer/v5/market/premium-index-kline"},{"type":"link","label":"Get Instrument Info","href":"/docs/api-explorer/v5/market/instrument","className":"api-method get","docId":"api-explorer/v5/market/instrument"},{"type":"link","label":"Get Orderbook","href":"/docs/api-explorer/v5/market/orderbook","className":"api-method get","docId":"api-explorer/v5/market/orderbook"},{"type":"link","label":"Get Tickers","href":"/docs/api-explorer/v5/market/tickers","className":"api-method get","docId":"api-explorer/v5/market/tickers"},{"type":"link","label":"Get Funding Rate History","href":"/docs/api-explorer/v5/market/history-fund-rate","className":"api-method get","docId":"api-explorer/v5/market/history-fund-rate"},{"type":"link","label":"Get Public Recent Trading History","href":"/docs/api-explorer/v5/market/recent-trade","className":"api-method get","docId":"api-explorer/v5/market/recent-trade"},{"type":"link","label":"Get Open Interest","href":"/docs/api-explorer/v5/market/open-interest","className":"api-method get","docId":"api-explorer/v5/market/open-interest"},{"type":"link","label":"Get Historical Volatility","href":"/docs/api-explorer/v5/market/iv","className":"api-method get","docId":"api-explorer/v5/market/iv"},{"type":"link","label":"Get Insurance","href":"/docs/api-explorer/v5/market/insurance","className":"api-method get","docId":"api-explorer/v5/market/insurance"},{"type":"link","label":"Get Risk Limit","href":"/docs/api-explorer/v5/market/risk-limit","className":"api-method get","docId":"api-explorer/v5/market/risk-limit"},{"type":"link","label":"Get Delivery Price","href":"/docs/api-explorer/v5/market/delivery-price","className":"api-method get","docId":"api-explorer/v5/market/delivery-price"},{"type":"link","label":"Get Long Short Ratio","href":"/docs/api-explorer/v5/market/long-short-ratio","className":"api-method get","docId":"api-explorer/v5/market/long-short-ratio"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/market/market"},{"type":"category","label":"Trade","items":[{"type":"link","label":"Place Order","href":"/docs/api-explorer/v5/trade/create-order","className":"api-method post","docId":"api-explorer/v5/trade/create-order"},{"type":"link","label":"Amend Order","href":"/docs/api-explorer/v5/trade/amend-order","className":"api-method post","docId":"api-explorer/v5/trade/amend-order"},{"type":"link","label":"Cancel Order","href":"/docs/api-explorer/v5/trade/cancel-order","className":"api-method post","docId":"api-explorer/v5/trade/cancel-order"},{"type":"link","label":"Get Open Orders (real-time)","href":"/docs/api-explorer/v5/trade/open-order","className":"api-method get","docId":"api-explorer/v5/trade/open-order"},{"type":"link","label":"Cancel All Orders","href":"/docs/api-explorer/v5/trade/cancel-all","className":"api-method post","docId":"api-explorer/v5/trade/cancel-all"},{"type":"link","label":"Get Order History (2 years)","href":"/docs/api-explorer/v5/trade/order-list","className":"api-method get","docId":"api-explorer/v5/trade/order-list"},{"type":"link","label":"Batch Place Order","href":"/docs/api-explorer/v5/trade/batch-place","className":"api-method post","docId":"api-explorer/v5/trade/batch-place"},{"type":"link","label":"Batch Amend Order","href":"/docs/api-explorer/v5/trade/batch-amend","className":"api-method post","docId":"api-explorer/v5/trade/batch-amend"},{"type":"link","label":"Batch Cancel Order","href":"/docs/api-explorer/v5/trade/batch-cancel","className":"api-method post","docId":"api-explorer/v5/trade/batch-cancel"},{"type":"link","label":"Get Borrow Quota (Spot)","href":"/docs/api-explorer/v5/trade/query-spot-quota","className":"api-method get","docId":"api-explorer/v5/trade/query-spot-quota"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/trade/trade"},{"type":"category","label":"Position","items":[{"type":"link","label":"Get Position Info","href":"/docs/api-explorer/v5/position/position-info","className":"api-method get","docId":"api-explorer/v5/position/position-info"},{"type":"link","label":"Set Leverage","href":"/docs/api-explorer/v5/position/leverage","className":"api-method post","docId":"api-explorer/v5/position/leverage"},{"type":"link","label":"Switch Cross/Isolated Margin","href":"/docs/api-explorer/v5/position/cross-isolate","className":"api-method post","docId":"api-explorer/v5/position/cross-isolate"},{"type":"link","label":"Set TP/SL Mode","href":"/docs/api-explorer/v5/position/tpsl-mode","className":"api-method post","docId":"api-explorer/v5/position/tpsl-mode"},{"type":"link","label":"Switch Position Mode","href":"/docs/api-explorer/v5/position/position-mode","className":"api-method post","docId":"api-explorer/v5/position/position-mode"},{"type":"link","label":"Set Risk Limit","href":"/docs/api-explorer/v5/position/set-risk-limit","className":"api-method post","docId":"api-explorer/v5/position/set-risk-limit"},{"type":"link","label":"Set Trading Stop","href":"/docs/api-explorer/v5/position/trading-stop","className":"api-method post","docId":"api-explorer/v5/position/trading-stop"},{"type":"link","label":"Set Auto Add Margin","href":"/docs/api-explorer/v5/position/auto-add-margin","className":"api-method post","docId":"api-explorer/v5/position/auto-add-margin"},{"type":"link","label":"Add Or Reduce Margin","href":"/docs/api-explorer/v5/position/manual-add-margin","className":"api-method post","docId":"api-explorer/v5/position/manual-add-margin"},{"type":"link","label":"Get Execution (2 years)","href":"/docs/api-explorer/v5/position/execution","className":"api-method get","docId":"api-explorer/v5/position/execution"},{"type":"link","label":"Get Closed PnL","href":"/docs/api-explorer/v5/position/close-pnl","className":"api-method get","docId":"api-explorer/v5/position/close-pnl"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/position/position"},{"type":"category","label":"Account","items":[{"type":"link","label":"Get Wallet Balance","href":"/docs/api-explorer/v5/account/wallet","className":"api-method get","docId":"api-explorer/v5/account/wallet"},{"type":"link","label":"Upgrade to Unified Account","href":"/docs/api-explorer/v5/account/upgrade-unified-account","className":"api-method post","docId":"api-explorer/v5/account/upgrade-unified-account"},{"type":"link","label":"Set Collateral Coin","href":"/docs/api-explorer/v5/account/set-collateral","className":"api-method post","docId":"api-explorer/v5/account/set-collateral"},{"type":"link","label":"Get Borrow History","href":"/docs/api-explorer/v5/account/borrow-history","className":"api-method get","docId":"api-explorer/v5/account/borrow-history"},{"type":"link","label":"Get Collateral Info","href":"/docs/api-explorer/v5/account/collateral-info","className":"api-method get","docId":"api-explorer/v5/account/collateral-info"},{"type":"link","label":"Get Coin Greeks","href":"/docs/api-explorer/v5/account/coin-greeks","className":"api-method get","docId":"api-explorer/v5/account/coin-greeks"},{"type":"link","label":"Get Fee Rate","href":"/docs/api-explorer/v5/account/fee-rate","className":"api-method get","docId":"api-explorer/v5/account/fee-rate"},{"type":"link","label":"Get Account Info","href":"/docs/api-explorer/v5/account/account-info","className":"api-method get","docId":"api-explorer/v5/account/account-info"},{"type":"link","label":"Get Transaction Log","href":"/docs/api-explorer/v5/account/transaction-log","className":"api-method get","docId":"api-explorer/v5/account/transaction-log"},{"type":"link","label":"Set Margin Mode","href":"/docs/api-explorer/v5/account/set-margin-mode","className":"api-method post","docId":"api-explorer/v5/account/set-margin-mode"},{"type":"link","label":"Set Spot Hedging","href":"/docs/api-explorer/v5/account/set-spot-hedge","className":"api-method post","docId":"api-explorer/v5/account/set-spot-hedge"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/account/account"},{"type":"category","label":"Asset","items":[{"type":"link","label":"Get Coin Exchange Records","href":"/docs/api-explorer/v5/asset/exchange","className":"api-method get","docId":"api-explorer/v5/asset/exchange"},{"type":"link","label":"Get Delivery Record","href":"/docs/api-explorer/v5/asset/delivery","className":"api-method get","docId":"api-explorer/v5/asset/delivery"},{"type":"link","label":"Get USDC Session Settlement","href":"/docs/api-explorer/v5/asset/settlement","className":"api-method get","docId":"api-explorer/v5/asset/settlement"},{"type":"link","label":"Get Asset Info (Spot)","href":"/docs/api-explorer/v5/asset/asset-info","className":"api-method get","docId":"api-explorer/v5/asset/asset-info"},{"type":"link","label":"Get All Coins Balance","href":"/docs/api-explorer/v5/asset/all-balance","className":"api-method get","docId":"api-explorer/v5/asset/all-balance"},{"type":"link","label":"Get Single Coin Balance","href":"/docs/api-explorer/v5/asset/account-coin-balance","className":"api-method get","docId":"api-explorer/v5/asset/account-coin-balance"},{"type":"link","label":"Get Transferable Coin","href":"/docs/api-explorer/v5/asset/transferable-coin","className":"api-method get","docId":"api-explorer/v5/asset/transferable-coin"},{"type":"link","label":"Create Internal Transfer","href":"/docs/api-explorer/v5/asset/create-inter-transfer","className":"api-method post","docId":"api-explorer/v5/asset/create-inter-transfer"},{"type":"link","label":"Get Internal Transfer Records","href":"/docs/api-explorer/v5/asset/inter-transfer-list","className":"api-method get","docId":"api-explorer/v5/asset/inter-transfer-list"},{"type":"link","label":"Get Sub UID","href":"/docs/api-explorer/v5/asset/sub-uid-list","className":"api-method get","docId":"api-explorer/v5/asset/sub-uid-list"},{"type":"link","label":"Create Universal Transfer","href":"/docs/api-explorer/v5/asset/unitransfer","className":"api-method post","docId":"api-explorer/v5/asset/unitransfer"},{"type":"link","label":"Get Universal Transfer Records","href":"/docs/api-explorer/v5/asset/unitransfer-list","className":"api-method get","docId":"api-explorer/v5/asset/unitransfer-list"},{"type":"link","label":"Get Allowed Deposit Coin Info","href":"/docs/api-explorer/v5/asset/deposit-coin-spec","className":"api-method get","docId":"api-explorer/v5/asset/deposit-coin-spec"},{"type":"link","label":"Set Deposit Account","href":"/docs/api-explorer/v5/asset/set-deposit-acct","className":"api-method post","docId":"api-explorer/v5/asset/set-deposit-acct"},{"type":"link","label":"Get Deposit Record (on-chain)","href":"/docs/api-explorer/v5/asset/deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/deposit-record"},{"type":"link","label":"Get Sub Account Deposit Records (on-chain)","href":"/docs/api-explorer/v5/asset/sub-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-record"},{"type":"link","label":"Get Internal Deposit Records (off-chain)","href":"/docs/api-explorer/v5/asset/internal-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/internal-deposit-record"},{"type":"link","label":"Get Master Deposit Address","href":"/docs/api-explorer/v5/asset/master-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/master-deposit-addr"},{"type":"link","label":"Get Sub Deposit Address","href":"/docs/api-explorer/v5/asset/sub-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-addr"},{"type":"link","label":"Get Coin Info","href":"/docs/api-explorer/v5/asset/coin-info","className":"api-method get","docId":"api-explorer/v5/asset/coin-info"},{"type":"link","label":"Get Withdraw Records","href":"/docs/api-explorer/v5/asset/withdraw-record","className":"api-method get","docId":"api-explorer/v5/asset/withdraw-record"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/asset/asset"},{"type":"category","label":"User","items":[{"type":"link","label":"Get API Key Information","href":"/docs/api-explorer/v5/user/apikey-info","className":"api-method get","docId":"api-explorer/v5/user/apikey-info"},{"type":"link","label":"Get Sub Account All API Keys","href":"/docs/api-explorer/v5/user/list-sub-apikeys","className":"api-method get","docId":"api-explorer/v5/user/list-sub-apikeys"},{"type":"link","label":"Get UID Wallet Type","href":"/docs/api-explorer/v5/user/wallet-type","className":"api-method get","docId":"api-explorer/v5/user/wallet-type"},{"type":"link","label":"Get Affiliate User Info","href":"/docs/api-explorer/v5/user/affiliate-info","className":"api-method get","docId":"api-explorer/v5/user/affiliate-info"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/user/user"},{"type":"category","label":"Spot Leverage Token","items":[{"type":"link","label":"Get Leverage Token Info","href":"/docs/api-explorer/v5/lt/leverage-token-info","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-info"},{"type":"link","label":"Get Leverage Token Market","href":"/docs/api-explorer/v5/lt/leverage-token-reference","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-reference"},{"type":"link","label":"Purchase","href":"/docs/api-explorer/v5/lt/purchase","className":"api-method post","docId":"api-explorer/v5/lt/purchase"},{"type":"link","label":"Redeem","href":"/docs/api-explorer/v5/lt/redeem","className":"api-method post","docId":"api-explorer/v5/lt/redeem"},{"type":"link","label":"Get Purchase or Redeem Records","href":"/docs/api-explorer/v5/lt/order-record","className":"api-method get","docId":"api-explorer/v5/lt/order-record"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/lt/etp"},{"type":"category","label":"Spot Margin Trade (UTA)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/api-explorer/v5/spot-margin-uta/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/vip-margin"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/api-explorer/v5/spot-margin-uta/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/switch-mode"},{"type":"link","label":"Set Leverage","href":"/docs/api-explorer/v5/spot-margin-uta/set-leverage","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/set-leverage"},{"type":"link","label":"Get Status And Leverage","href":"/docs/api-explorer/v5/spot-margin-uta/status","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/spot-margin-uta/uta-margin-trade"},{"type":"category","label":"Spot Margin Trade (Classic)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/api-explorer/v5/spot-margin-normal/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/vip-margin"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/api-explorer/v5/spot-margin-normal/margin-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/margin-data"},{"type":"link","label":"Get Borrowable Coin Info","href":"/docs/api-explorer/v5/spot-margin-normal/borrowable-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrowable-data"},{"type":"link","label":"Get Interest & Quota","href":"/docs/api-explorer/v5/spot-margin-normal/interest-quota","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/interest-quota"},{"type":"link","label":"Get Loan Account Info","href":"/docs/api-explorer/v5/spot-margin-normal/account-info","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/account-info"},{"type":"link","label":"Borrow","href":"/docs/api-explorer/v5/spot-margin-normal/borrow","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/borrow"},{"type":"link","label":"Repay","href":"/docs/api-explorer/v5/spot-margin-normal/repay","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/repay"},{"type":"link","label":"Get Borrow Order Detail","href":"/docs/api-explorer/v5/spot-margin-normal/borrow-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrow-order"},{"type":"link","label":"Get Repayment Order Detail","href":"/docs/api-explorer/v5/spot-margin-normal/repay-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/repay-order"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/api-explorer/v5/spot-margin-normal/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/switch-mode"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/spot-margin-normal/normal-margin-trade"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/category/"}],"changelogSidebar":[{"type":"link","label":"V5","href":"/docs/changelog/v5","docId":"changelog/v5"}]},"docs":{"api-explorer/v5/account/account":{"id":"api-explorer/v5/account/account","title":"Account","description":"Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/account-info":{"id":"api-explorer/v5/account/account-info","title":"Get Account Info","description":"Get account info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/borrow-history":{"id":"api-explorer/v5/account/borrow-history","title":"Get Borrow History","description":"Get borrow history","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/coin-greeks":{"id":"api-explorer/v5/account/coin-greeks","title":"Get Coin Greeks","description":"Get coin greek info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/collateral-info":{"id":"api-explorer/v5/account/collateral-info","title":"Get Collateral Info","description":"Get collateral info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/fee-rate":{"id":"api-explorer/v5/account/fee-rate","title":"Get Fee Rate","description":"Get fee rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-collateral":{"id":"api-explorer/v5/account/set-collateral","title":"Set Collateral Coin","description":"Set collateral coin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-margin-mode":{"id":"api-explorer/v5/account/set-margin-mode","title":"Set Margin Mode","description":"Set margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-spot-hedge":{"id":"api-explorer/v5/account/set-spot-hedge","title":"Set Spot Hedging","description":"Set spot hedging for Portfolio margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/transaction-log":{"id":"api-explorer/v5/account/transaction-log","title":"Get Transaction Log","description":"Get transaction log","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/upgrade-unified-account":{"id":"api-explorer/v5/account/upgrade-unified-account","title":"Upgrade to Unified Account","description":"Upgrade to UTA","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/wallet":{"id":"api-explorer/v5/account/wallet","title":"Get Wallet Balance","description":"Get wallet balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/account-coin-balance":{"id":"api-explorer/v5/asset/account-coin-balance","title":"Get Single Coin Balance","description":"Get Single Coin Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/all-balance":{"id":"api-explorer/v5/asset/all-balance","title":"Get All Coins Balance","description":"Get All Coins Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset":{"id":"api-explorer/v5/asset/asset","title":"Asset","description":"Asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset-info":{"id":"api-explorer/v5/asset/asset-info","title":"Get Asset Info (Spot)","description":"Get spot asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/coin-info":{"id":"api-explorer/v5/asset/coin-info","title":"Get Coin Info","description":"Get coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/create-inter-transfer":{"id":"api-explorer/v5/asset/create-inter-transfer","title":"Create Internal Transfer","description":"Create internal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/delivery":{"id":"api-explorer/v5/asset/delivery","title":"Get Delivery Record","description":"Get delivery record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-coin-spec":{"id":"api-explorer/v5/asset/deposit-coin-spec","title":"Get Allowed Deposit Coin Info","description":"Get allowed deposit coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-record":{"id":"api-explorer/v5/asset/deposit-record","title":"Get Deposit Record (on-chain)","description":"Get deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/exchange":{"id":"api-explorer/v5/asset/exchange","title":"Get Coin Exchange Records","description":"Get exchange records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/inter-transfer-list":{"id":"api-explorer/v5/asset/inter-transfer-list","title":"Get Internal Transfer Records","description":"Get internal transfer records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/internal-deposit-record":{"id":"api-explorer/v5/asset/internal-deposit-record","title":"Get Internal Deposit Records (off-chain)","description":"Get deposit records through Bybit platform","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/master-deposit-addr":{"id":"api-explorer/v5/asset/master-deposit-addr","title":"Get Master Deposit Address","description":"Get master deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/set-deposit-acct":{"id":"api-explorer/v5/asset/set-deposit-acct","title":"Set Deposit Account","description":"Set Deposit Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/settlement":{"id":"api-explorer/v5/asset/settlement","title":"Get USDC Session Settlement","description":"Get usdc session settlement record.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-addr":{"id":"api-explorer/v5/asset/sub-deposit-addr","title":"Get Sub Deposit Address","description":"Get sub deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-record":{"id":"api-explorer/v5/asset/sub-deposit-record","title":"Get Sub Account Deposit Records (on-chain)","description":"Get sub account deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-uid-list":{"id":"api-explorer/v5/asset/sub-uid-list","title":"Get Sub UID","description":"Get sub uid","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/transferable-coin":{"id":"api-explorer/v5/asset/transferable-coin","title":"Get Transferable Coin","description":"Get transferable coins","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer":{"id":"api-explorer/v5/asset/unitransfer","title":"Create Universal Transfer","description":"Create universal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer-list":{"id":"api-explorer/v5/asset/unitransfer-list","title":"Get Universal Transfer Records","description":"Get universal transfer record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/withdraw-record":{"id":"api-explorer/v5/asset/withdraw-record","title":"Get Withdraw Records","description":"Get withdraw record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/etp":{"id":"api-explorer/v5/lt/etp","title":"Spot Leverage Token","description":"Spot Leverage Token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-info":{"id":"api-explorer/v5/lt/leverage-token-info","title":"Get Leverage Token Info","description":"Get lt information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-reference":{"id":"api-explorer/v5/lt/leverage-token-reference","title":"Get Leverage Token Market","description":"Get lt market information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/order-record":{"id":"api-explorer/v5/lt/order-record","title":"Get Purchase or Redeem Records","description":"Get the order history of purchase or redeem","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/purchase":{"id":"api-explorer/v5/lt/purchase","title":"Purchase","description":"Purchase leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/redeem":{"id":"api-explorer/v5/lt/redeem","title":"Redeem","description":"Redeem leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/delivery-price":{"id":"api-explorer/v5/market/delivery-price","title":"Get Delivery Price","description":"Get delivery price","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/history-fund-rate":{"id":"api-explorer/v5/market/history-fund-rate","title":"Get Funding Rate History","description":"Get historical funding rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/index-kline":{"id":"api-explorer/v5/market/index-kline","title":"Get Index Price Kline","description":"Get Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/instrument":{"id":"api-explorer/v5/market/instrument","title":"Get Instrument Info","description":"Get launched instruments information.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/insurance":{"id":"api-explorer/v5/market/insurance","title":"Get Insurance","description":"Get Insurance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/iv":{"id":"api-explorer/v5/market/iv","title":"Get Historical Volatility","description":"Get historical volatility","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/kline":{"id":"api-explorer/v5/market/kline","title":"Get Kline","description":"Get kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/long-short-ratio":{"id":"api-explorer/v5/market/long-short-ratio","title":"Get Long Short Ratio","description":"Get long short ratio","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/mark-kline":{"id":"api-explorer/v5/market/mark-kline","title":"Get Mark Price Kline","description":"Get Mark Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/market":{"id":"api-explorer/v5/market/market","title":"Market","description":"Market","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/open-interest":{"id":"api-explorer/v5/market/open-interest","title":"Get Open Interest","description":"Get open interest","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/orderbook":{"id":"api-explorer/v5/market/orderbook","title":"Get Orderbook","description":"Get order book data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/premium-index-kline":{"id":"api-explorer/v5/market/premium-index-kline","title":"Get Premium Index Price Kline","description":"Get Premium Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/recent-trade":{"id":"api-explorer/v5/market/recent-trade","title":"Get Public Recent Trading History","description":"Get public trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/risk-limit":{"id":"api-explorer/v5/market/risk-limit","title":"Get Risk Limit","description":"Get risk limit","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/tickers":{"id":"api-explorer/v5/market/tickers","title":"Get Tickers","description":"Get all latest information of symbols. All parameters are needed for OPTION","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/time":{"id":"api-explorer/v5/market/time","title":"Get Bybit Server Time","description":"Get server time","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/auto-add-margin":{"id":"api-explorer/v5/position/auto-add-margin","title":"Set Auto Add Margin","description":"Set Auto Add Margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/close-pnl":{"id":"api-explorer/v5/position/close-pnl","title":"Get Closed PnL","description":"Get closed pnl","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/cross-isolate":{"id":"api-explorer/v5/position/cross-isolate","title":"Switch Cross/Isolated Margin","description":"Select cross margin mode or isolated margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/execution":{"id":"api-explorer/v5/position/execution","title":"Get Execution (2 years)","description":"Get execution list","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/leverage":{"id":"api-explorer/v5/position/leverage","title":"Set Leverage","description":"Set levearage.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/manual-add-margin":{"id":"api-explorer/v5/position/manual-add-margin","title":"Add Or Reduce Margin","description":"Manually add or reduce margin for isolated margin position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position":{"id":"api-explorer/v5/position/position","title":"Position","description":"Position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-info":{"id":"api-explorer/v5/position/position-info","title":"Get Position Info","description":"Get Position Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-mode":{"id":"api-explorer/v5/position/position-mode","title":"Switch Position Mode","description":"Switch Position Mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/set-risk-limit":{"id":"api-explorer/v5/position/set-risk-limit","title":"Set Risk Limit","description":"Set risk limit.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/tpsl-mode":{"id":"api-explorer/v5/position/tpsl-mode","title":"Set TP/SL Mode","description":"Set tp/sl mode.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/trading-stop":{"id":"api-explorer/v5/position/trading-stop","title":"Set Trading Stop","description":"Set trade stop.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/account-info":{"id":"api-explorer/v5/spot-margin-normal/account-info","title":"Get Loan Account Info","description":"Get Loan Account Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow":{"id":"api-explorer/v5/spot-margin-normal/borrow","title":"Borrow","description":"Borrow","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow-order":{"id":"api-explorer/v5/spot-margin-normal/borrow-order","title":"Get Borrow Order Detail","description":"Get Borrow Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrowable-data":{"id":"api-explorer/v5/spot-margin-normal/borrowable-data","title":"Get Borrowable Coin Info","description":"Get Borrowable Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/interest-quota":{"id":"api-explorer/v5/spot-margin-normal/interest-quota","title":"Get Interest & Quota","description":"Get Interest & Quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/margin-data":{"id":"api-explorer/v5/spot-margin-normal/margin-data","title":"Get Margin Coin Info","description":"Get Margin Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/normal-margin-trade":{"id":"api-explorer/v5/spot-margin-normal/normal-margin-trade","title":"Spot Margin Trade (Classic)","description":"Spot Margin Trade (Classic)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay":{"id":"api-explorer/v5/spot-margin-normal/repay","title":"Repay","description":"Repay","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay-order":{"id":"api-explorer/v5/spot-margin-normal/repay-order","title":"Get Repayment Order Detail","description":"Get Repayment Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/switch-mode":{"id":"api-explorer/v5/spot-margin-normal/switch-mode","title":"Toggle Margin Trade","description":"Toggle Margin Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/vip-margin":{"id":"api-explorer/v5/spot-margin-normal/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/set-leverage":{"id":"api-explorer/v5/spot-margin-uta/set-leverage","title":"Set Leverage","description":"Set leverage for margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/status":{"id":"api-explorer/v5/spot-margin-uta/status","title":"Get Status And Leverage","description":"Get status and leverage","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/switch-mode":{"id":"api-explorer/v5/spot-margin-uta/switch-mode","title":"Toggle Margin Trade","description":"Toggle margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/uta-margin-trade":{"id":"api-explorer/v5/spot-margin-uta/uta-margin-trade","title":"Spot Margin Trade (UTA)","description":"Spot Margin Trade (UTA)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/vip-margin":{"id":"api-explorer/v5/spot-margin-uta/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/amend-order":{"id":"api-explorer/v5/trade/amend-order","title":"Amend Order","description":"Amend an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-amend":{"id":"api-explorer/v5/trade/batch-amend","title":"Batch Amend Order","description":"Batch amend orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-cancel":{"id":"api-explorer/v5/trade/batch-cancel","title":"Batch Cancel Order","description":"Batch cancel orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-place":{"id":"api-explorer/v5/trade/batch-place","title":"Batch Place Order","description":"Batch place orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-all":{"id":"api-explorer/v5/trade/cancel-all","title":"Cancel All Orders","description":"Cancel all orders.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-order":{"id":"api-explorer/v5/trade/cancel-order","title":"Cancel Order","description":"Cancel a single order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/create-order":{"id":"api-explorer/v5/trade/create-order","title":"Place Order","description":"Place an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/open-order":{"id":"api-explorer/v5/trade/open-order","title":"Get Open Orders (real-time)","description":"Get unfilled orders or partially filled orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/order-list":{"id":"api-explorer/v5/trade/order-list","title":"Get Order History (2 years)","description":"Get order history.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/query-spot-quota":{"id":"api-explorer/v5/trade/query-spot-quota","title":"Get Borrow Quota (Spot)","description":"Query user\'s spot available quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/trade":{"id":"api-explorer/v5/trade/trade","title":"Trade","description":"Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/affiliate-info":{"id":"api-explorer/v5/user/affiliate-info","title":"Get Affiliate User Info","description":"Get affiliate user info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/apikey-info":{"id":"api-explorer/v5/user/apikey-info","title":"Get API Key Information","description":"Get API Key Information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/list-sub-apikeys":{"id":"api-explorer/v5/user/list-sub-apikeys","title":"Get Sub Account All API Keys","description":"Get Sub Account All API Keys","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/user":{"id":"api-explorer/v5/user/user","title":"User","description":"User","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/wallet-type":{"id":"api-explorer/v5/user/wallet-type","title":"Get UID Wallet Type","description":"Get uid wallet type","sidebar":"apiExplorerSideBar"},"changelog/v5":{"id":"changelog/v5","title":"V5","description":"2024-10-15","sidebar":"changelogSidebar"},"faq":{"id":"faq","title":"Frequently Asked Questions","description":"Where are Bybit\'s servers located?"},"pilot-feature/pilot":{"id":"pilot-feature/pilot","title":"Pilot Features","description":"Inverse Contract Upgrade"},"v3/intro":{"id":"v3/intro","title":"Introduction","description":"Authentication","sidebar":"v3SideBar"},"v3/tax/data-explain":{"id":"v3/tax/data-explain","title":"Data Explanation","description":"Trade History","sidebar":"v3SideBar"},"v3/tax/data-export":{"id":"v3/tax/data-export","title":"Retrieve Data Export","description":"Retrieve data export","sidebar":"v3SideBar"},"v3/tax/enum":{"id":"v3/tax/enum","title":"Enums Definitions","description":"ReportType","sidebar":"v3SideBar"},"v3/tax/register-time":{"id":"v3/tax/register-time","title":"Get User Register Date","description":"Get User Register Date","sidebar":"v3SideBar"},"v3/tax/report-status":{"id":"v3/tax/report-status","title":"Get Export Report Status","description":"Get Export Report Status","sidebar":"v3SideBar"},"v3/tax/request-report":{"id":"v3/tax/request-report","title":"Request Export Report","description":"Request to export report","sidebar":"v3SideBar"},"v5/abandon/account-info":{"id":"v5/abandon/account-info","title":"Get Lending Account Info","description":"HTTP Request","sidebar":"v5SideBar"},"v5/abandon/cancel-redeem":{"id":"v5/abandon/cancel-redeem","title":"Cancel Redeem","description":"Cancel the withdrawal operation.","sidebar":"v5SideBar"},"v5/abandon/coin-info":{"id":"v5/abandon/coin-info","title":"Get Lending Coin Info","description":"Get the basic information of lending coins","sidebar":"v5SideBar"},"v5/abandon/deposit":{"id":"v5/abandon/deposit","title":"Deposit Funds","description":"Lending funds to Bybit asset pool","sidebar":"v5SideBar"},"v5/abandon/earning":{"id":"v5/abandon/earning","title":"Get Broker Earning","description":"This endpoint has been depreciated, please move to new Get Exchange Broker Earning","sidebar":"v5SideBar"},"v5/abandon/enable-unitransfer-subuid":{"id":"v5/abandon/enable-unitransfer-subuid","title":"Enable Universal Transfer for Sub UID","description":"You no longer need to configure transferable sub UIDs. Now, all sub UIDs are automatically enabled for universal transfer.","sidebar":"v5SideBar"},"v5/abandon/ltv":{"id":"v5/abandon/ltv","title":"Get LTV","description":"HTTP Request","sidebar":"v5SideBar"},"v5/abandon/margin-coin-info":{"id":"v5/abandon/margin-coin-info","title":"Get Margin Coin Info","description":"HTTP Request","sidebar":"v5SideBar"},"v5/abandon/order-record":{"id":"v5/abandon/order-record","title":"Get Order Records","description":"Get lending or redeem history","sidebar":"v5SideBar"},"v5/abandon/redeem":{"id":"v5/abandon/redeem","title":"Redeem Funds","description":"Withdraw funds from the Bybit asset pool.","sidebar":"v5SideBar"},"v5/account/account-info":{"id":"v5/account/account-info","title":"Get Account Info","description":"Query the account information, like margin mode, account mode, etc.","sidebar":"v5SideBar"},"v5/account/batch-set-collateral":{"id":"v5/account/batch-set-collateral","title":"Batch Set Collateral Coin","description":"HTTP Request","sidebar":"v5SideBar"},"v5/account/borrow-history":{"id":"v5/account/borrow-history","title":"Get Borrow History","description":"Get interest records, sorted in reverse order of creation time.","sidebar":"v5SideBar"},"v5/account/coin-greeks":{"id":"v5/account/coin-greeks","title":"Get Coin Greeks","description":"Get current account Greeks information","sidebar":"v5SideBar"},"v5/account/collateral-info":{"id":"v5/account/collateral-info","title":"Get Collateral Info","description":"Get the collateral information of the current unified margin account, including loan interest rate, loanable amount,","sidebar":"v5SideBar"},"v5/account/contract-transaction-log":{"id":"v5/account/contract-transaction-log","title":"Get Transaction Log","description":"Query transaction logs in the derivatives wallet (classic account), and inverse derivatives account (upgraded to UTA)","sidebar":"v5SideBar"},"v5/account/dcp-info":{"id":"v5/account/dcp-info","title":"Get DCP Info","description":"Query the DCP configuration of the account. Before calling the interface, please make sure you have applied for the UTA account DCP configuration with your account manager","sidebar":"v5SideBar"},"v5/account/fee-rate":{"id":"v5/account/fee-rate","title":"Get Fee Rate","description":"Get the trading fee rate.","sidebar":"v5SideBar"},"v5/account/get-mmp-state":{"id":"v5/account/get-mmp-state","title":"Get MMP State","description":"HTTP Request","sidebar":"v5SideBar"},"v5/account/repay-liability":{"id":"v5/account/repay-liability","title":"Repay Liability","description":"You can manually repay the liabilities of Unified account","sidebar":"v5SideBar"},"v5/account/reset-mmp":{"id":"v5/account/reset-mmp","title":"Reset MMP","description":"* Once the mmp triggered, you can unfreeze the account by this endpoint, then qtyLimit and deltaLimit will be reset to 0.","sidebar":"v5SideBar"},"v5/account/set-collateral":{"id":"v5/account/set-collateral","title":"Set Collateral Coin","description":"You can decide whether the assets in the Unified account needs to be collateral coins.","sidebar":"v5SideBar"},"v5/account/set-margin-mode":{"id":"v5/account/set-margin-mode","title":"Set Margin Mode","description":"Default is regular margin mode","sidebar":"v5SideBar"},"v5/account/set-mmp":{"id":"v5/account/set-mmp","title":"Set MMP","description":"What is MMP?","sidebar":"v5SideBar"},"v5/account/set-spot-hedge":{"id":"v5/account/set-spot-hedge","title":"Set Spot Hedging","description":"You can turn on/off Spot hedging feature in Portfolio margin for Unified account","sidebar":"v5SideBar"},"v5/account/smp-group":{"id":"v5/account/smp-group","title":"Get SMP Group ID","description":"Query the SMP group ID of self match prevention","sidebar":"v5SideBar"},"v5/account/transaction-log":{"id":"v5/account/transaction-log","title":"Get Transaction Log","description":"Query transaction logs in Unified account, it supports up to 2 years data","sidebar":"v5SideBar"},"v5/account/upgrade-unified-account":{"id":"v5/account/upgrade-unified-account","title":"Upgrade to Unified Account","description":"Check your current account status by calling this Get Account Info","sidebar":"v5SideBar"},"v5/account/wallet-balance":{"id":"v5/account/wallet-balance","title":"Get Wallet Balance","description":"Obtain wallet balance, query asset information of each currency. By default, currency","sidebar":"v5SideBar"},"v5/acct-mode":{"id":"v5/acct-mode","title":"Different Account Modes","description":"There are currently three account modes existing on the Bybit platform, namely classic account, unified account 1.0, and unified account 2.0.","sidebar":"v5SideBar"},"v5/announcement":{"id":"v5/announcement","title":"Get Announcement","description":"HTTP Request","sidebar":"v5SideBar"},"v5/asset/balance/account-coin-balance":{"id":"v5/asset/balance/account-coin-balance","title":"Get Single Coin Balance","description":"Query the balance of a specific coin in a specific account type. Supports querying sub UID\'s balance.","sidebar":"v5SideBar"},"v5/asset/balance/all-balance":{"id":"v5/asset/balance/all-balance","title":"Get All Coins Balance","description":"You could get all coin balance of all account types under the master account, and sub account.","sidebar":"v5SideBar"},"v5/asset/balance/asset-info":{"id":"v5/asset/balance/asset-info","title":"Get Asset Info","description":"Query Spot asset information","sidebar":"v5SideBar"},"v5/asset/balance/delay-amount":{"id":"v5/asset/balance/delay-amount","title":"Get Withdrawable Amount","description":"How can partial funds be subject to delayed withdrawal requests?","sidebar":"v5SideBar"},"v5/asset/coin-info":{"id":"v5/asset/coin-info","title":"Get Coin Info","description":"Query coin information, including chain information, withdraw and deposit status.","sidebar":"v5SideBar"},"v5/asset/convert/apply-quote":{"id":"v5/asset/convert/apply-quote","title":"Request a Quote","description":"HTTP Request","sidebar":"v5SideBar"},"v5/asset/convert/confirm-quote":{"id":"v5/asset/convert/confirm-quote","title":"Confirm a Quote","description":"1. The exchange is async, please check the final status by calling query result API.","sidebar":"v5SideBar"},"v5/asset/convert/convert-coin-list":{"id":"v5/asset/convert/convert-coin-list","title":"Get Convert Coin List","description":"You can query the coin list of convert from (to).","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-history":{"id":"v5/asset/convert/get-convert-history","title":"Get Convert history","description":"Those confirmed quotes no matter status are showns by this API.","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-result":{"id":"v5/asset/convert/get-convert-result","title":"Get Convert Status","description":"You can query the exchange result by sending quoteTxId.","sidebar":"v5SideBar"},"v5/asset/convert/guideline":{"id":"v5/asset/convert/guideline","title":"Convert Guideline","description":"* All convert api need authentication","sidebar":"v5SideBar"},"v5/asset/delivery":{"id":"v5/asset/delivery","title":"Get Delivery Record","description":"Query delivery records of Invese Futures, USDC Futures and Options, sorted by deliveryTime in descending order","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-coin-spec":{"id":"v5/asset/deposit/deposit-coin-spec","title":"Get Allowed Deposit Coin Info","description":"Query allowed deposit coin information. To find out paired chain of coin, please refer coin info api.","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-record":{"id":"v5/asset/deposit/deposit-record","title":"Get Deposit Records (on-chain)","description":"Query deposit records.","sidebar":"v5SideBar"},"v5/asset/deposit/internal-deposit-record":{"id":"v5/asset/deposit/internal-deposit-record","title":"Get Internal Deposit Records (off-chain)","description":"Query deposit records within the Bybit platform. These transactions are not on the blockchain.","sidebar":"v5SideBar"},"v5/asset/deposit/master-deposit-addr":{"id":"v5/asset/deposit/master-deposit-addr","title":"Get Master Deposit Address","description":"Query the deposit address information of MASTER account.","sidebar":"v5SideBar"},"v5/asset/deposit/set-deposit-acct":{"id":"v5/asset/deposit/set-deposit-acct","title":"Set Deposit Account","description":"Set auto transfer account after deposit. The same function as the setting for Deposit on web GUI","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-addr":{"id":"v5/asset/deposit/sub-deposit-addr","title":"Get Sub Deposit Address","description":"Query the deposit address information of SUB account.","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-record":{"id":"v5/asset/deposit/sub-deposit-record","title":"Get Sub Deposit Records (on-chain)","description":"Query subaccount\'s deposit records by main UID\'s API key.","sidebar":"v5SideBar"},"v5/asset/exchange":{"id":"v5/asset/exchange","title":"Get Coin Exchange Records","description":"Query the coin exchange records.","sidebar":"v5SideBar"},"v5/asset/settlement":{"id":"v5/asset/settlement","title":"Get USDC Session Settlement","description":"Query session settlement records of USDC perpetual and futures","sidebar":"v5SideBar"},"v5/asset/sub-uid-list":{"id":"v5/asset/sub-uid-list","title":"Get Sub UID","description":"Query the sub UIDs under a main UID. It returns up to 2000 sub accounts, if you need more, please call this endpoint.","sidebar":"v5SideBar"},"v5/asset/transfer/create-inter-transfer":{"id":"v5/asset/transfer/create-inter-transfer","title":"Create Internal Transfer","description":"Create the internal transfer between different account types under the same UID.","sidebar":"v5SideBar"},"v5/asset/transfer/inter-transfer-list":{"id":"v5/asset/transfer/inter-transfer-list","title":"Get Internal Transfer Records","description":"Query the internal transfer records between different account types under the same UID.","sidebar":"v5SideBar"},"v5/asset/transfer/transferable-coin":{"id":"v5/asset/transfer/transferable-coin","title":"Get Transferable Coin","description":"Query the transferable coin list between each account type","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer":{"id":"v5/asset/transfer/unitransfer","title":"Create Universal Transfer","description":"Transfer between sub-sub or main-sub.","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer-list":{"id":"v5/asset/transfer/unitransfer-list","title":"Get Universal Transfer Records","description":"Query universal transfer records","sidebar":"v5SideBar"},"v5/asset/withdraw/cancel-withdraw":{"id":"v5/asset/withdraw/cancel-withdraw","title":"Cancel Withdrawal","description":"Cancel the withdrawal","sidebar":"v5SideBar"},"v5/asset/withdraw/vasp-list":{"id":"v5/asset/withdraw/vasp-list","title":"Get Exchange Entity List","description":"This endpoint is particularly used for kyc=KOR users. When withdraw funds, you need to fill entity id.","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw":{"id":"v5/asset/withdraw/withdraw","title":"Withdraw","description":"Withdraw assets from your Bybit account. You can make an off-chain transfer if the target wallet address is from Bybit. This means that no blockchain fee will be charged.","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw-record":{"id":"v5/asset/withdraw/withdraw-record","title":"Get Withdrawal Records","description":"Query withdrawal records.","sidebar":"v5SideBar"},"v5/backup/set-pledge-token":{"id":"v5/backup/set-pledge-token","title":"Set Pledge Token","description":"Set Pledge Token in cross margin"},"v5/broker/account-info":{"id":"v5/broker/account-info","title":"Get Account Info","description":"* Use exchange broker master account to query","sidebar":"v5SideBar"},"v5/broker/exchange-earning":{"id":"v5/broker/exchange-earning","title":"Get Earning","description":"* Use exchange broker master account to query","sidebar":"v5SideBar"},"v5/broker/reward/get-issue-voucher":{"id":"v5/broker/reward/get-issue-voucher","title":"Query Issued Voucher","description":"HTTP Request","sidebar":"v5SideBar"},"v5/broker/reward/issue-voucher":{"id":"v5/broker/reward/issue-voucher","title":"Issue Voucher","description":"HTTP Request","sidebar":"v5SideBar"},"v5/broker/reward/voucher":{"id":"v5/broker/reward/voucher","title":"Query Voucher Spec","description":"HTTP Request","sidebar":"v5SideBar"},"v5/broker/sub-deposit-record":{"id":"v5/broker/sub-deposit-record","title":"Get Sub Account Deposit Records","description":"Exchange broker can query subaccount\'s deposit records by main UID\'s API key without specifying uid.","sidebar":"v5SideBar"},"v5/copytrade":{"id":"v5/copytrade","title":"How To Start Copy Trading","description":"Become A Master Trader","sidebar":"v5SideBar"},"v5/crypto-loan/acct-borrow-collateral":{"id":"v5/crypto-loan/acct-borrow-collateral","title":"Get Account Borrow/Collateral Limit","description":"Query the account borrowable/collateral limit","sidebar":"v5SideBar"},"v5/crypto-loan/adjust-collateral":{"id":"v5/crypto-loan/adjust-collateral","title":"Adjust Collateral Amount","description":"You can increase or reduce collateral amount. When you reduce, please follow the max. allowed reduction amount.","sidebar":"v5SideBar"},"v5/crypto-loan/borrow":{"id":"v5/crypto-loan/borrow","title":"Borrow","description":"Permission: \\"Spot trade\\"","sidebar":"v5SideBar"},"v5/crypto-loan/collateral-coin":{"id":"v5/crypto-loan/collateral-coin","title":"Get Collateral Coins","description":"Do not need authentication","sidebar":"v5SideBar"},"v5/crypto-loan/comleted-loan-order":{"id":"v5/crypto-loan/comleted-loan-order","title":"Get Completed Loan Order History","description":"Query the completed loan orders","sidebar":"v5SideBar"},"v5/crypto-loan/loan-coin":{"id":"v5/crypto-loan/loan-coin","title":"Get Borrowable Coins","description":"Do not need authentication","sidebar":"v5SideBar"},"v5/crypto-loan/ltv-adjust-history":{"id":"v5/crypto-loan/ltv-adjust-history","title":"Get Loan LTV Adjustment History","description":"Query the transaction history of collateral amount adjustment","sidebar":"v5SideBar"},"v5/crypto-loan/reduce-max-collateral-amt":{"id":"v5/crypto-loan/reduce-max-collateral-amt","title":"Get Max. Allowed Reduction Collateral Amount","description":"Query the maximum allowed reduction collateral amount","sidebar":"v5SideBar"},"v5/crypto-loan/repay":{"id":"v5/crypto-loan/repay","title":"Repay","description":"You can repay partial loan. If there is interest occurred, interest will be repaid in priority","sidebar":"v5SideBar"},"v5/crypto-loan/repay-transaction":{"id":"v5/crypto-loan/repay-transaction","title":"Get Repayment Transaction History","description":"Query repaid transaction history","sidebar":"v5SideBar"},"v5/crypto-loan/unpaid-loan-order":{"id":"v5/crypto-loan/unpaid-loan-order","title":"Get Unpaid Loan Orders","description":"Query the ongoing loan orders, which are not fully repaid","sidebar":"v5SideBar"},"v5/demo":{"id":"v5/demo","title":"Demo Trading Service","description":"Introduction","sidebar":"v5SideBar"},"v5/enum":{"id":"v5/enum","title":"Enums Definitions","description":"locale","sidebar":"v5SideBar"},"v5/error":{"id":"v5/error","title":"Error Codes","description":"HTTP Code","sidebar":"v5SideBar"},"v5/guide":{"id":"v5/guide","title":"Integration Guidance","description":"To learn more about the V5 API, please read the Introduction.","sidebar":"v5SideBar"},"v5/intro":{"id":"v5/intro","title":"Introduction","description":"Overview","sidebar":"v5SideBar"},"v5/lt/leverage-token-info":{"id":"v5/lt/leverage-token-info","title":"Get Leverage Token Info","description":"Query leverage token information","sidebar":"v5SideBar"},"v5/lt/leverage-token-reference":{"id":"v5/lt/leverage-token-reference","title":"Get Leveraged Token Market","description":"Get leverage token market information","sidebar":"v5SideBar"},"v5/lt/order-record":{"id":"v5/lt/order-record","title":"Get Purchase/Redemption Records","description":"Get purchase or redeem history","sidebar":"v5SideBar"},"v5/lt/purchase":{"id":"v5/lt/purchase","title":"Purchase","description":"Purchase levearge token","sidebar":"v5SideBar"},"v5/lt/redeem":{"id":"v5/lt/redeem","title":"Redeem","description":"Redeem leverage token","sidebar":"v5SideBar"},"v5/market/delivery-price":{"id":"v5/market/delivery-price","title":"Get Delivery Price","description":"Get the delivery price.","sidebar":"v5SideBar"},"v5/market/history-fund-rate":{"id":"v5/market/history-fund-rate","title":"Get Funding Rate History","description":"Query for historical funding rates. Each symbol has a different funding interval. For example, if the interval is 8 hours and the current time is UTC 12, then it returns the last funding rate, which settled at UTC 8.","sidebar":"v5SideBar"},"v5/market/index-kline":{"id":"v5/market/index-kline","title":"Get Index Price Kline","description":"Query for historical index price klines. Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/instrument":{"id":"v5/market/instrument","title":"Get Instruments Info","description":"Query for the instrument specification of online trading pairs.","sidebar":"v5SideBar"},"v5/market/insurance":{"id":"v5/market/insurance","title":"Get Insurance","description":"Query for Bybit insurance pool data (BTC/USDT/USDC etc). The data is updated every 24 hours.","sidebar":"v5SideBar"},"v5/market/iv":{"id":"v5/market/iv","title":"Get Historical Volatility","description":"Query option historical volatility","sidebar":"v5SideBar"},"v5/market/kline":{"id":"v5/market/kline","title":"Get Kline","description":"Query for historical klines (also known as candles/candlesticks). Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/long-short-ratio":{"id":"v5/market/long-short-ratio","title":"Get Long Short Ratio","description":"HTTP Request","sidebar":"v5SideBar"},"v5/market/mark-kline":{"id":"v5/market/mark-kline","title":"Get Mark Price Kline","description":"Query for historical mark price klines. Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/open-interest":{"id":"v5/market/open-interest","title":"Get Open Interest","description":"Get the open interest of each symbol.","sidebar":"v5SideBar"},"v5/market/orderbook":{"id":"v5/market/orderbook","title":"Get Orderbook","description":"Query for orderbook depth data.","sidebar":"v5SideBar"},"v5/market/preimum-index-kline":{"id":"v5/market/preimum-index-kline","title":"Get Premium Index Price Kline","description":"Query for historical premium index klines. Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/recent-trade":{"id":"v5/market/recent-trade","title":"Get Public Recent Trading History","description":"Query recent public trading data in Bybit.","sidebar":"v5SideBar"},"v5/market/risk-limit":{"id":"v5/market/risk-limit","title":"Get Risk Limit","description":"Query for the risk limit.","sidebar":"v5SideBar"},"v5/market/tickers":{"id":"v5/market/tickers","title":"Get Tickers","description":"Query for the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours.","sidebar":"v5SideBar"},"v5/market/time":{"id":"v5/market/time","title":"Get Bybit Server Time","description":"HTTP Request","sidebar":"v5SideBar"},"v5/order/amend-order":{"id":"v5/order/amend-order","title":"Amend Order","description":"You can only modify unfilled or partially filled orders.","sidebar":"v5SideBar"},"v5/order/batch-amend":{"id":"v5/order/batch-amend","title":"Batch Amend Order","description":"This endpoint allows you to amend more than one open order in a single request.","sidebar":"v5SideBar"},"v5/order/batch-cancel":{"id":"v5/order/batch-cancel","title":"Batch Cancel Order","description":"This endpoint allows you to cancel more than one open order in a single request.","sidebar":"v5SideBar"},"v5/order/batch-place":{"id":"v5/order/batch-place","title":"Batch Place Order","description":"This endpoint allows you to place more than one order in a single request.","sidebar":"v5SideBar"},"v5/order/cancel-all":{"id":"v5/order/cancel-all","title":"Cancel All Orders","description":"Cancel all open orders","sidebar":"v5SideBar"},"v5/order/cancel-order":{"id":"v5/order/cancel-order","title":"Cancel Order","description":"- You must specify orderId or orderLinkId to cancel the order.","sidebar":"v5SideBar"},"v5/order/create-order":{"id":"v5/order/create-order","title":"Place Order","description":"This endpoint supports to create the order for Spot, Margin trading, USDT perpetual, USDC perpetual, USDC futures, Inverse Futures and Options.","sidebar":"v5SideBar"},"v5/order/dcp":{"id":"v5/order/dcp","title":"Set Disconnect Cancel All","description":"What is Disconnection Protect (DCP)?","sidebar":"v5SideBar"},"v5/order/execution":{"id":"v5/order/execution","title":"Get Trade History","description":"Query users\' execution records, sorted by execTime in descending order. However, for Classic spot, they are sorted by execId in descending order.","sidebar":"v5SideBar"},"v5/order/open-order":{"id":"v5/order/open-order","title":"Get Open & Closed Orders","description":"Primarily query unfilled or partially filled orders in real-time, but also supports querying recent 500 closed status (Cancelled, Filled) orders. Please see the usage of request param openOnly.","sidebar":"v5SideBar"},"v5/order/order-list":{"id":"v5/order/order-list","title":"Get Order History","description":"Query order history. As order creation/cancellation is asynchronous, the data returned from this endpoint may delay. If you want to get","sidebar":"v5SideBar"},"v5/order/spot-borrow-quota":{"id":"v5/order/spot-borrow-quota","title":"Get Borrow Quota (Spot)","description":"Query the available balance for Spot trading and Margin trading","sidebar":"v5SideBar"},"v5/otc/bind-uid":{"id":"v5/otc/bind-uid","title":"Bind Or Unbind UID","description":"For the institutional loan product, you can bind new UIDs to the risk unit or unbind UID from the risk unit.","sidebar":"v5SideBar"},"v5/otc/loan-info":{"id":"v5/otc/loan-info","title":"Get Loan Orders","description":"Get loan orders information","sidebar":"v5SideBar"},"v5/otc/ltv-convert":{"id":"v5/otc/ltv-convert","title":"Get LTV","description":"Get your loan-to-value (LTV) ratio.","sidebar":"v5SideBar"},"v5/otc/margin-coin-convert-info":{"id":"v5/otc/margin-coin-convert-info","title":"Get Margin Coin Info","description":"* This endpoint can be queried without api key and secret, then it returns public margin data","sidebar":"v5SideBar"},"v5/otc/margin-product-info":{"id":"v5/otc/margin-product-info","title":"Get Product Info","description":"* This endpoint can be queried without api key and secret, then it returns public product data","sidebar":"v5SideBar"},"v5/otc/repay-info":{"id":"v5/otc/repay-info","title":"Get Repayment Orders","description":"Get a list of your loan repayment orders (orders which repaid the loan).","sidebar":"v5SideBar"},"v5/position/auto-add-margin":{"id":"v5/position/auto-add-margin","title":"Set Auto Add Margin","description":"Turn on/off auto-add-margin for isolated margin position","sidebar":"v5SideBar"},"v5/position/close-pnl":{"id":"v5/position/close-pnl","title":"Get Closed PnL","description":"Query user\'s closed profit and loss records","sidebar":"v5SideBar"},"v5/position/confirm-mmr":{"id":"v5/position/confirm-mmr","title":"Confirm New Risk Limit","description":"It is only applicable when the user is marked as only reducing positions (please see the isReduceOnly field in","sidebar":"v5SideBar"},"v5/position/cross-isolate":{"id":"v5/position/cross-isolate","title":"Switch Cross/Isolated Margin","description":"Select cross margin mode or isolated margin mode per symbol level","sidebar":"v5SideBar"},"v5/position/leverage":{"id":"v5/position/leverage","title":"Set Leverage","description":"HTTP Request","sidebar":"v5SideBar"},"v5/position/manual-add-margin":{"id":"v5/position/manual-add-margin","title":"Add Or Reduce Margin","description":"Manually add or reduce margin for isolated margin position","sidebar":"v5SideBar"},"v5/position/move-position":{"id":"v5/position/move-position","title":"Move Position","description":"You can move positions between sub-master, master-sub, or sub-sub UIDs when necessary","sidebar":"v5SideBar"},"v5/position/move-position-history":{"id":"v5/position/move-position-history","title":"Get Move Position History","description":"You can query moved position data by master UID api key","sidebar":"v5SideBar"},"v5/position/position":{"id":"v5/position/position","title":"Get Position Info","description":"Query real-time position data, such as position size, cumulative realizedPNL.","sidebar":"v5SideBar"},"v5/position/position-mode":{"id":"v5/position/position-mode","title":"Switch Position Mode","description":"It supports to switch the position mode for USDT perpetual and Inverse futures. If you are in one-way Mode, you can only open one position on Buy or Sell side. If you are in hedge mode, you can open both Buy and Sell side positions simultaneously.","sidebar":"v5SideBar"},"v5/position/set-risk-limit":{"id":"v5/position/set-risk-limit","title":"Set Risk Limit","description":"Since bybit has launched auto risk limit on 12 March 2024, please click here to learn more, so it will not take effect even you set it successfully.","sidebar":"v5SideBar"},"v5/position/tpsl-mode":{"id":"v5/position/tpsl-mode","title":"Set TP/SL Mode","description":"_To some extent, this endpoint is depreciated because now tpsl is based on order level. This API was used for position level","sidebar":"v5SideBar"},"v5/position/trading-stop":{"id":"v5/position/trading-stop","title":"Set Trading Stop","description":"Set the take profit, stop loss or trailing stop for the position.","sidebar":"v5SideBar"},"v5/pre-upgrade/close-pnl":{"id":"v5/pre-upgrade/close-pnl","title":"Get Pre-upgrade Closed PnL","description":"Query user\'s closed profit and loss records from before you upgraded the account to a Unified account. The results are sorted by updatedTime in descending order.","sidebar":"v5SideBar"},"v5/pre-upgrade/delivery":{"id":"v5/pre-upgrade/delivery","title":"Get Pre-upgrade Delivery Record","description":"Query delivery records of Options before you upgraded the account to a Unified account, sorted by deliveryTime in descending order","sidebar":"v5SideBar"},"v5/pre-upgrade/execution":{"id":"v5/pre-upgrade/execution","title":"Get Pre-upgrade Trade History","description":"Get users\' execution records which occurred before you upgraded the account to a Unified account, sorted by execTime in descending order","sidebar":"v5SideBar"},"v5/pre-upgrade/order-list":{"id":"v5/pre-upgrade/order-list","title":"Get Pre-upgrade Order History","description":"After the account is upgraded to a Unified account, you can get the orders which occurred before the upgrade.","sidebar":"v5SideBar"},"v5/pre-upgrade/settlement":{"id":"v5/pre-upgrade/settlement","title":"Get Pre-upgrade USDC Session Settlement","description":"Query session settlement records of USDC perpetual before you upgrade the account to Unified account.","sidebar":"v5SideBar"},"v5/pre-upgrade/transaction-log":{"id":"v5/pre-upgrade/transaction-log","title":"Get Pre-upgrade Transaction Log","description":"Query transaction logs which occurred in the USDC Derivatives wallet before the account was upgraded to a Unified account.","sidebar":"v5SideBar"},"v5/rate-limit":{"id":"v5/rate-limit","title":"Rate Limit","description":"IP Rate Limit","sidebar":"v5SideBar"},"v5/smp":{"id":"v5/smp","title":"Self Match Prevention","description":"What is SMP?","sidebar":"v5SideBar"},"v5/spot-margin-normal/account-info":{"id":"v5/spot-margin-normal/account-info","title":"Get Loan Account Info","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/borrow":{"id":"v5/spot-margin-normal/borrow","title":"Borrow","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/borrow-order":{"id":"v5/spot-margin-normal/borrow-order","title":"Get Borrow Order Detail","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/borrowable-data":{"id":"v5/spot-margin-normal/borrowable-data","title":"Get Borrowable Coin Info","description":"Do not need authentication"},"v5/spot-margin-normal/interest-quota":{"id":"v5/spot-margin-normal/interest-quota","title":"Get Interest & Quota","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/margin-data":{"id":"v5/spot-margin-normal/margin-data","title":"Get Margin Coin Info","description":"Do not need authentication"},"v5/spot-margin-normal/repay":{"id":"v5/spot-margin-normal/repay","title":"Repay","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/repay-order":{"id":"v5/spot-margin-normal/repay-order","title":"Get Repayment Order Detail","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/switch-mode":{"id":"v5/spot-margin-normal/switch-mode","title":"Toggle Margin Trade","description":"Turn on / off spot margin trade"},"v5/spot-margin-normal/vip-margin":{"id":"v5/spot-margin-normal/vip-margin","title":"Get VIP Margin Data","description":"This margin data is for Classic account in particular."},"v5/spot-margin-uta/historical-interest":{"id":"v5/spot-margin-uta/historical-interest","title":"Get Historical Interest Rate","description":"You can query up to six months borrowing interest rate of Margin trading.","sidebar":"v5SideBar"},"v5/spot-margin-uta/set-leverage":{"id":"v5/spot-margin-uta/set-leverage","title":"Set Leverage","description":"Set the user\'s maximum leverage in spot cross margin","sidebar":"v5SideBar"},"v5/spot-margin-uta/status":{"id":"v5/spot-margin-uta/status","title":"Get Status And Leverage","description":"Query the Spot margin status and leverage of Unified account","sidebar":"v5SideBar"},"v5/spot-margin-uta/switch-mode":{"id":"v5/spot-margin-uta/switch-mode","title":"Toggle Margin Trade","description":"Turn on / off spot margin trade","sidebar":"v5SideBar"},"v5/spot-margin-uta/vip-margin":{"id":"v5/spot-margin-uta/vip-margin","title":"Get VIP Margin Data","description":"This margin data is for Unified account in particular.","sidebar":"v5SideBar"},"v5/user/affiliate-info":{"id":"v5/user/affiliate-info","title":"Get Affiliate User Info","description":"To use this endpoint, you should have an affiliate account and only tick \\"affiliate\\" permission while creating the API key.","sidebar":"v5SideBar"},"v5/user/apikey-info":{"id":"v5/user/apikey-info","title":"Get API Key Information","description":"Get the information of the api key. Use the api key pending to be checked to call the endpoint. Both master and sub user\'s api key are applicable.","sidebar":"v5SideBar"},"v5/user/create-subuid":{"id":"v5/user/create-subuid","title":"Create Sub UID","description":"Create a new sub user id. Use master account\'s api key.","sidebar":"v5SideBar"},"v5/user/create-subuid-apikey":{"id":"v5/user/create-subuid-apikey","title":"Create Sub UID API Key","description":"To create new API key for those newly created sub UID. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/froze-subuid":{"id":"v5/user/froze-subuid","title":"Freeze Sub UID","description":"Freeze Sub UID. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/list-sub-apikeys":{"id":"v5/user/list-sub-apikeys","title":"Get Sub Account All API Keys","description":"Query all api keys information of a sub UID.","sidebar":"v5SideBar"},"v5/user/modify-master-apikey":{"id":"v5/user/modify-master-apikey","title":"Modify Master API Key","description":"Modify the settings of master api key. Use the api key pending to be modified to call the endpoint. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/modify-sub-apikey":{"id":"v5/user/modify-sub-apikey","title":"Modify Sub API Key","description":"Modify the settings of sub api key. Use the sub account api key pending to be modified to call the endpoint or use master","sidebar":"v5SideBar"},"v5/user/page-subuid":{"id":"v5/user/page-subuid","title":"Get Sub UID List (Unlimited)","description":"This API is applicable to the client who has over 10k sub accounts. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/rm-master-apikey":{"id":"v5/user/rm-master-apikey","title":"Delete Master API Key","description":"Delete the api key of master account. Use the api key pending to be delete to call the endpoint. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/rm-sub-apikey":{"id":"v5/user/rm-sub-apikey","title":"Delete Sub API Key","description":"Delete the api key of sub account. Use the sub api key pending to be delete to call the endpoint or use the master api key","sidebar":"v5SideBar"},"v5/user/rm-subuid":{"id":"v5/user/rm-subuid","title":"Delete Sub UID","description":"Delete a sub UID. Before deleting the UID, please make sure there is no asset.","sidebar":"v5SideBar"},"v5/user/subuid-list":{"id":"v5/user/subuid-list","title":"Get Sub UID List (Limited)","description":"Get at most 10k sub UID of master account. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/wallet-type":{"id":"v5/user/wallet-type","title":"Get UID Wallet Type","description":"Get available wallet types for the master account or sub account","sidebar":"v5SideBar"},"v5/websocket/private/dcp":{"id":"v5/websocket/private/dcp","title":"Dcp","description":"Subscribe to the dcp stream to trigger DCP function.","sidebar":"v5SideBar"},"v5/websocket/private/execution":{"id":"v5/websocket/private/execution","title":"Execution","description":"Subscribe to the execution stream to see your executions in real-time.","sidebar":"v5SideBar"},"v5/websocket/private/fast-execution":{"id":"v5/websocket/private/fast-execution","title":"Fast Execution","description":"Fast execution stream significantly reduces data latency compared original \\"execution\\" stream. However, it pushes limited","sidebar":"v5SideBar"},"v5/websocket/private/greek":{"id":"v5/websocket/private/greek","title":"Greek","description":"Subscribe to the greeks stream to see changes to your greeks data in real-time. option only.","sidebar":"v5SideBar"},"v5/websocket/private/order":{"id":"v5/websocket/private/order","title":"Order","description":"Subscribe to the order stream to see changes to your orders in real-time.","sidebar":"v5SideBar"},"v5/websocket/private/position":{"id":"v5/websocket/private/position","title":"Position","description":"Subscribe to the position stream to see changes to your position data in real-time.","sidebar":"v5SideBar"},"v5/websocket/private/wallet":{"id":"v5/websocket/private/wallet","title":"Wallet","description":"Subscribe to the wallet stream to see changes to your wallet in real-time.","sidebar":"v5SideBar"},"v5/websocket/public/etp-kline":{"id":"v5/websocket/public/etp-kline","title":"LT Kline","description":"Subscribe to the leveraged token kline stream.","sidebar":"v5SideBar"},"v5/websocket/public/etp-nav":{"id":"v5/websocket/public/etp-nav","title":"LT Nav","description":"Subscribe to the leveraged token nav stream.","sidebar":"v5SideBar"},"v5/websocket/public/etp-ticker":{"id":"v5/websocket/public/etp-ticker","title":"LT Ticker","description":"Subscribe to the leveraged token ticker stream.","sidebar":"v5SideBar"},"v5/websocket/public/kline":{"id":"v5/websocket/public/kline","title":"Kline","description":"Subscribe to the klines stream.","sidebar":"v5SideBar"},"v5/websocket/public/liquidation":{"id":"v5/websocket/public/liquidation","title":"Liquidation","description":"Subscribe to the liquidation stream. Pushes at most one order per second per symbol. As such, this feed does not push all liquidations that occur on Bybit.","sidebar":"v5SideBar"},"v5/websocket/public/orderbook":{"id":"v5/websocket/public/orderbook","title":"Orderbook","description":"Subscribe to the orderbook stream. Supports different depths.","sidebar":"v5SideBar"},"v5/websocket/public/ticker":{"id":"v5/websocket/public/ticker","title":"Ticker","description":"Subscribe to the ticker stream.","sidebar":"v5SideBar"},"v5/websocket/public/trade":{"id":"v5/websocket/public/trade","title":"Trade","description":"Subscribe to the recent trades stream.","sidebar":"v5SideBar"},"v5/websocket/trade/guideline":{"id":"v5/websocket/trade/guideline","title":"Websocket Trade Guideline","description":"URL","sidebar":"v5SideBar"},"v5/websocket/wss-authentication":{"id":"v5/websocket/wss-authentication","title":"Connect","description":"WebSocket public stream:","sidebar":"v5SideBar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"v3SideBar":[{"type":"link","label":"Introduction","href":"/docs/v3/intro","docId":"v3/intro"},{"type":"category","label":"Tax","items":[{"type":"link","label":"Get User Register Date","href":"/docs/tax/time","docId":"v3/tax/register-time"},{"type":"link","label":"Request Export Report","href":"/docs/tax/report","docId":"v3/tax/request-report"},{"type":"link","label":"Get Export Report Status","href":"/docs/tax/status","docId":"v3/tax/report-status"},{"type":"link","label":"Retrieve Data Export","href":"/docs/tax/data-export","docId":"v3/tax/data-export"},{"type":"link","label":"Data Explanation","href":"/docs/tax/explain","docId":"v3/tax/data-explain"},{"type":"link","label":"Enums Definitions","href":"/docs/tax/enum","docId":"v3/tax/enum"}],"collapsed":true,"collapsible":true}],"v5SideBar":[{"type":"link","label":"Introduction","href":"/docs/v5/intro","docId":"v5/intro"},{"type":"link","label":"Integration Guidance","href":"/docs/v5/guide","docId":"v5/guide"},{"type":"link","label":"Different Account Modes","href":"/docs/v5/acct-mode","docId":"v5/acct-mode"},{"type":"link","label":"Get Announcement","href":"/docs/v5/announcement","docId":"v5/announcement"},{"type":"link","label":"Self Match Prevention","href":"/docs/v5/smp","docId":"v5/smp"},{"type":"link","label":"How To Start Copy Trading","href":"/docs/v5/copytrade","docId":"v5/copytrade"},{"type":"link","label":"Demo Trading Service","href":"/docs/v5/demo","docId":"v5/demo"},{"type":"category","label":"Market","items":[{"type":"link","label":"Get Bybit Server Time","href":"/docs/v5/market/time","docId":"v5/market/time"},{"type":"link","label":"Get Kline","href":"/docs/v5/market/kline","docId":"v5/market/kline"},{"type":"link","label":"Get Mark Price Kline","href":"/docs/v5/market/mark-kline","docId":"v5/market/mark-kline"},{"type":"link","label":"Get Index Price Kline","href":"/docs/v5/market/index-kline","docId":"v5/market/index-kline"},{"type":"link","label":"Get Premium Index Price Kline","href":"/docs/v5/market/preimum-index-kline","docId":"v5/market/preimum-index-kline"},{"type":"link","label":"Get Instruments Info","href":"/docs/v5/market/instrument","docId":"v5/market/instrument"},{"type":"link","label":"Get Orderbook","href":"/docs/v5/market/orderbook","docId":"v5/market/orderbook"},{"type":"link","label":"Get Tickers","href":"/docs/v5/market/tickers","docId":"v5/market/tickers"},{"type":"link","label":"Get Funding Rate History","href":"/docs/v5/market/history-fund-rate","docId":"v5/market/history-fund-rate"},{"type":"link","label":"Get Public Recent Trading History","href":"/docs/v5/market/recent-trade","docId":"v5/market/recent-trade"},{"type":"link","label":"Get Open Interest","href":"/docs/v5/market/open-interest","docId":"v5/market/open-interest"},{"type":"link","label":"Get Historical Volatility","href":"/docs/v5/market/iv","docId":"v5/market/iv"},{"type":"link","label":"Get Insurance","href":"/docs/v5/market/insurance","docId":"v5/market/insurance"},{"type":"link","label":"Get Risk Limit","href":"/docs/v5/market/risk-limit","docId":"v5/market/risk-limit"},{"type":"link","label":"Get Delivery Price","href":"/docs/v5/market/delivery-price","docId":"v5/market/delivery-price"},{"type":"link","label":"Get Long Short Ratio","href":"/docs/v5/market/long-short-ratio","docId":"v5/market/long-short-ratio"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Trade","items":[{"type":"link","label":"Place Order","href":"/docs/v5/order/create-order","docId":"v5/order/create-order"},{"type":"link","label":"Amend Order","href":"/docs/v5/order/amend-order","docId":"v5/order/amend-order"},{"type":"link","label":"Cancel Order","href":"/docs/v5/order/cancel-order","docId":"v5/order/cancel-order"},{"type":"link","label":"Get Open & Closed Orders","href":"/docs/v5/order/open-order","docId":"v5/order/open-order"},{"type":"link","label":"Cancel All Orders","href":"/docs/v5/order/cancel-all","docId":"v5/order/cancel-all"},{"type":"link","label":"Get Order History (2 years)","href":"/docs/v5/order/order-list","docId":"v5/order/order-list"},{"type":"link","label":"Get Trade History (2 years)","href":"/docs/v5/order/execution","docId":"v5/order/execution"},{"type":"link","label":"Batch Place Order","href":"/docs/v5/order/batch-place","docId":"v5/order/batch-place"},{"type":"link","label":"Batch Amend Order","href":"/docs/v5/order/batch-amend","docId":"v5/order/batch-amend"},{"type":"link","label":"Batch Cancel Order","href":"/docs/v5/order/batch-cancel","docId":"v5/order/batch-cancel"},{"type":"link","label":"Get Borrow Quota (Spot)","href":"/docs/v5/order/spot-borrow-quota","docId":"v5/order/spot-borrow-quota"},{"type":"link","label":"Set DCP","href":"/docs/v5/order/dcp","docId":"v5/order/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Position","items":[{"type":"link","label":"Get Position Info","href":"/docs/v5/position/","docId":"v5/position/position"},{"type":"link","label":"Set Leverage","href":"/docs/v5/position/leverage","docId":"v5/position/leverage"},{"type":"link","label":"Switch Cross/Isolated Margin","href":"/docs/v5/position/cross-isolate","docId":"v5/position/cross-isolate"},{"type":"link","label":"Switch Position Mode","href":"/docs/v5/position/position-mode","docId":"v5/position/position-mode"},{"type":"link","label":"Set Trading Stop","href":"/docs/v5/position/trading-stop","docId":"v5/position/trading-stop"},{"type":"link","label":"Set Auto Add Margin","href":"/docs/v5/position/auto-add-margin","docId":"v5/position/auto-add-margin"},{"type":"link","label":"Add Or Reduce Margin","href":"/docs/v5/position/manual-add-margin","docId":"v5/position/manual-add-margin"},{"type":"link","label":"Get Closed PnL (2 years)","href":"/docs/v5/position/close-pnl","docId":"v5/position/close-pnl"},{"type":"link","label":"Move Position","href":"/docs/v5/position/move-position","docId":"v5/position/move-position"},{"type":"link","label":"Get Move Position History","href":"/docs/v5/position/move-position-history","docId":"v5/position/move-position-history"},{"type":"link","label":"Confirm New Risk Limit","href":"/docs/v5/position/confirm-mmr","docId":"v5/position/confirm-mmr"},{"type":"link","label":"Set TP/SL Mode (Depreciated)","href":"/docs/v5/position/tpsl-mode","docId":"v5/position/tpsl-mode"},{"type":"link","label":"Set Risk Limit (Depreciated)","href":"/docs/v5/position/set-risk-limit","docId":"v5/position/set-risk-limit"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Pre-upgrade","items":[{"type":"link","label":"Get Pre-upgrade Order History","href":"/docs/v5/pre-upgrade/order-list","docId":"v5/pre-upgrade/order-list"},{"type":"link","label":"Get Pre-upgrade Trade History","href":"/docs/v5/pre-upgrade/execution","docId":"v5/pre-upgrade/execution"},{"type":"link","label":"Get Pre-upgrade Closed PnL","href":"/docs/v5/pre-upgrade/close-pnl","docId":"v5/pre-upgrade/close-pnl"},{"type":"link","label":"Get Pre-upgrade Transaction Log","href":"/docs/v5/pre-upgrade/transaction-log","docId":"v5/pre-upgrade/transaction-log"},{"type":"link","label":"Get Pre-upgrade Delivery Record","href":"/docs/v5/pre-upgrade/delivery","docId":"v5/pre-upgrade/delivery"},{"type":"link","label":"Get Pre-upgrade USDC Session Settlement","href":"/docs/v5/pre-upgrade/settlement","docId":"v5/pre-upgrade/settlement"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Account","items":[{"type":"link","label":"Get Wallet Balance","href":"/docs/v5/account/wallet-balance","docId":"v5/account/wallet-balance"},{"type":"link","label":"Upgrade to Unified Account","href":"/docs/v5/account/upgrade-unified-account","docId":"v5/account/upgrade-unified-account"},{"type":"link","label":"Get Borrow History (2 years)","href":"/docs/v5/account/borrow-history","docId":"v5/account/borrow-history"},{"type":"link","label":"Repay Liability","href":"/docs/v5/account/repay-liability","docId":"v5/account/repay-liability"},{"type":"link","label":"Set Collateral Coin","href":"/docs/v5/account/set-collateral","docId":"v5/account/set-collateral"},{"type":"link","label":"Batch Set Collateral Coin","href":"/docs/v5/account/batch-set-collateral","docId":"v5/account/batch-set-collateral"},{"type":"link","label":"Get Collateral Info","href":"/docs/v5/account/collateral-info","docId":"v5/account/collateral-info"},{"type":"link","label":"Get Coin Greeks","href":"/docs/v5/account/coin-greeks","docId":"v5/account/coin-greeks"},{"type":"link","label":"Get Fee Rate","href":"/docs/v5/account/fee-rate","docId":"v5/account/fee-rate"},{"type":"link","label":"Get Account Info","href":"/docs/v5/account/account-info","docId":"v5/account/account-info"},{"type":"link","label":"Get DCP Info","href":"/docs/v5/account/dcp-info","docId":"v5/account/dcp-info"},{"type":"link","label":"Get Transaction Log (UTA)","href":"/docs/v5/account/transaction-log","docId":"v5/account/transaction-log"},{"type":"link","label":"Get Transaction Log (Classic)","href":"/docs/v5/account/contract-transaction-log","docId":"v5/account/contract-transaction-log"},{"type":"link","label":"Get SMP Group ID","href":"/docs/v5/account/smp-group","docId":"v5/account/smp-group"},{"type":"link","label":"Set Margin Mode","href":"/docs/v5/account/set-margin-mode","docId":"v5/account/set-margin-mode"},{"type":"link","label":"Set Spot Hedging","href":"/docs/v5/account/set-spot-hedge","docId":"v5/account/set-spot-hedge"},{"type":"link","label":"Set MMP","href":"/docs/v5/account/set-mmp","docId":"v5/account/set-mmp"},{"type":"link","label":"Reset MMP","href":"/docs/v5/account/reset-mmp","docId":"v5/account/reset-mmp"},{"type":"link","label":"Get MMP State","href":"/docs/v5/account/get-mmp-state","docId":"v5/account/get-mmp-state"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Asset","items":[{"type":"link","label":"Get Delivery Record (2 years)","href":"/docs/v5/asset/delivery","docId":"v5/asset/delivery"},{"type":"link","label":"Get USDC Session Settlement (2 years)","href":"/docs/v5/asset/settlement","docId":"v5/asset/settlement"},{"type":"link","label":"Get Coin Exchange Records","href":"/docs/v5/asset/exchange","docId":"v5/asset/exchange"},{"type":"link","label":"Get Coin Info","href":"/docs/v5/asset/coin-info","docId":"v5/asset/coin-info"},{"type":"link","label":"Get Sub UID","href":"/docs/v5/asset/sub-uid-list","docId":"v5/asset/sub-uid-list"},{"type":"category","label":"Balances","items":[{"type":"link","label":"Get Asset Info (Spot)","href":"/docs/v5/asset/balance/asset-info","docId":"v5/asset/balance/asset-info"},{"type":"link","label":"Get All Coins Balance","href":"/docs/v5/asset/balance/all-balance","docId":"v5/asset/balance/all-balance"},{"type":"link","label":"Get Single Coin Balance","href":"/docs/v5/asset/balance/account-coin-balance","docId":"v5/asset/balance/account-coin-balance"},{"type":"link","label":"Get Withdrawable Amount","href":"/docs/v5/asset/balance/delay-amount","docId":"v5/asset/balance/delay-amount"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Transfer","items":[{"type":"link","label":"Get Transferable Coin","href":"/docs/v5/asset/transfer/transferable-coin","docId":"v5/asset/transfer/transferable-coin"},{"type":"link","label":"Create Internal Transfer","href":"/docs/v5/asset/transfer/create-inter-transfer","docId":"v5/asset/transfer/create-inter-transfer"},{"type":"link","label":"Get Internal Transfer Records","href":"/docs/v5/asset/transfer/inter-transfer-list","docId":"v5/asset/transfer/inter-transfer-list"},{"type":"link","label":"Create Universal Transfer","href":"/docs/v5/asset/transfer/unitransfer","docId":"v5/asset/transfer/unitransfer"},{"type":"link","label":"Get Universal Transfer Records","href":"/docs/v5/asset/transfer/unitransfer-list","docId":"v5/asset/transfer/unitransfer-list"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Deposit","items":[{"type":"link","label":"Get Allowed Deposit Coin Info","href":"/docs/v5/asset/deposit/deposit-coin-spec","docId":"v5/asset/deposit/deposit-coin-spec"},{"type":"link","label":"Set Deposit Account","href":"/docs/v5/asset/deposit/set-deposit-acct","docId":"v5/asset/deposit/set-deposit-acct"},{"type":"link","label":"Get Deposit Records (on-chain)","href":"/docs/v5/asset/deposit/deposit-record","docId":"v5/asset/deposit/deposit-record"},{"type":"link","label":"Get Sub Deposit Records (on-chain)","href":"/docs/v5/asset/deposit/sub-deposit-record","docId":"v5/asset/deposit/sub-deposit-record"},{"type":"link","label":"Get Internal Deposit Records (off-chain)","href":"/docs/v5/asset/deposit/internal-deposit-record","docId":"v5/asset/deposit/internal-deposit-record"},{"type":"link","label":"Get Master Deposit Address","href":"/docs/v5/asset/deposit/master-deposit-addr","docId":"v5/asset/deposit/master-deposit-addr"},{"type":"link","label":"Get Sub Deposit Address","href":"/docs/v5/asset/deposit/sub-deposit-addr","docId":"v5/asset/deposit/sub-deposit-addr"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Withdraw","items":[{"type":"link","label":"Get Withdrawal Records","href":"/docs/v5/asset/withdraw/withdraw-record","docId":"v5/asset/withdraw/withdraw-record"},{"type":"link","label":"Get Exchange Entity List (KOR)","href":"/docs/v5/asset/withdraw/vasp-list","docId":"v5/asset/withdraw/vasp-list"},{"type":"link","label":"Withdraw","href":"/docs/v5/asset/withdraw/","docId":"v5/asset/withdraw/withdraw"},{"type":"link","label":"Cancel Withdrawal","href":"/docs/v5/asset/withdraw/cancel-withdraw","docId":"v5/asset/withdraw/cancel-withdraw"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Convert","items":[{"type":"link","label":"Guideline","href":"/docs/v5/asset/convert/guideline","docId":"v5/asset/convert/guideline"},{"type":"link","label":"Get Convert Coin List","href":"/docs/v5/asset/convert/convert-coin-list","docId":"v5/asset/convert/convert-coin-list"},{"type":"link","label":"Request a Quote","href":"/docs/v5/asset/convert/apply-quote","docId":"v5/asset/convert/apply-quote"},{"type":"link","label":"Confirm a Quote","href":"/docs/v5/asset/convert/confirm-quote","docId":"v5/asset/convert/confirm-quote"},{"type":"link","label":"Get Convert Status","href":"/docs/v5/asset/convert/get-convert-result","docId":"v5/asset/convert/get-convert-result"},{"type":"link","label":"Get Convert history","href":"/docs/v5/asset/convert/get-convert-history","docId":"v5/asset/convert/get-convert-history"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"User","items":[{"type":"link","label":"Create Sub UID","href":"/docs/v5/user/create-subuid","docId":"v5/user/create-subuid"},{"type":"link","label":"Create Sub UID API Key","href":"/docs/v5/user/create-subuid-apikey","docId":"v5/user/create-subuid-apikey"},{"type":"link","label":"Get Sub UID List (Limited)","href":"/docs/v5/user/subuid-list","docId":"v5/user/subuid-list"},{"type":"link","label":"Get Sub UID List (Unlimited)","href":"/docs/v5/user/page-subuid","docId":"v5/user/page-subuid"},{"type":"link","label":"Freeze Sub UID","href":"/docs/v5/user/froze-subuid","docId":"v5/user/froze-subuid"},{"type":"link","label":"Get API Key Information","href":"/docs/v5/user/apikey-info","docId":"v5/user/apikey-info"},{"type":"link","label":"Get Sub Account All API Keys","href":"/docs/v5/user/list-sub-apikeys","docId":"v5/user/list-sub-apikeys"},{"type":"link","label":"Get UID Wallet Type","href":"/docs/v5/user/wallet-type","docId":"v5/user/wallet-type"},{"type":"link","label":"Modify Master API Key","href":"/docs/v5/user/modify-master-apikey","docId":"v5/user/modify-master-apikey"},{"type":"link","label":"Modify Sub API Key","href":"/docs/v5/user/modify-sub-apikey","docId":"v5/user/modify-sub-apikey"},{"type":"link","label":"Delete Sub UID","href":"/docs/v5/user/rm-subuid","docId":"v5/user/rm-subuid"},{"type":"link","label":"Delete Master API Key","href":"/docs/v5/user/rm-master-apikey","docId":"v5/user/rm-master-apikey"},{"type":"link","label":"Delete Sub API Key","href":"/docs/v5/user/rm-sub-apikey","docId":"v5/user/rm-sub-apikey"},{"type":"link","label":"Get Affiliate User Info","href":"/docs/v5/user/affiliate-info","docId":"v5/user/affiliate-info"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Spot Leverage Token","items":[{"type":"link","label":"Get Leverage Token Info","href":"/docs/v5/lt/leverage-token-info","docId":"v5/lt/leverage-token-info"},{"type":"link","label":"Get Leveraged Token Market","href":"/docs/v5/lt/leverage-token-reference","docId":"v5/lt/leverage-token-reference"},{"type":"link","label":"Purchase","href":"/docs/v5/lt/purchase","docId":"v5/lt/purchase"},{"type":"link","label":"Redeem","href":"/docs/v5/lt/redeem","docId":"v5/lt/redeem"},{"type":"link","label":"Get Purchase/Redemption Records","href":"/docs/v5/lt/order-record","docId":"v5/lt/order-record"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Spot Margin Trade (UTA)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/v5/spot-margin-uta/vip-margin","docId":"v5/spot-margin-uta/vip-margin"},{"type":"link","label":"Get Historical Interest Rate","href":"/docs/v5/spot-margin-uta/historical-interest","docId":"v5/spot-margin-uta/historical-interest"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/v5/spot-margin-uta/switch-mode","docId":"v5/spot-margin-uta/switch-mode"},{"type":"link","label":"Set Leverage","href":"/docs/v5/spot-margin-uta/set-leverage","docId":"v5/spot-margin-uta/set-leverage"},{"type":"link","label":"Get Status And Leverage","href":"/docs/v5/spot-margin-uta/status","docId":"v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Crypto Loan","items":[{"type":"link","label":"Get Collateral Coins","href":"/docs/v5/crypto-loan/collateral-coin","docId":"v5/crypto-loan/collateral-coin"},{"type":"link","label":"Get Borrowable Coins","href":"/docs/v5/crypto-loan/loan-coin","docId":"v5/crypto-loan/loan-coin"},{"type":"link","label":"Get Account Borrow/Collateral Limit","href":"/docs/v5/crypto-loan/acct-borrow-collateral","docId":"v5/crypto-loan/acct-borrow-collateral"},{"type":"link","label":"Borrow","href":"/docs/v5/crypto-loan/borrow","docId":"v5/crypto-loan/borrow"},{"type":"link","label":"Repay","href":"/docs/v5/crypto-loan/repay","docId":"v5/crypto-loan/repay"},{"type":"link","label":"Get Unpaid Loan Orders","href":"/docs/v5/crypto-loan/unpaid-loan-order","docId":"v5/crypto-loan/unpaid-loan-order"},{"type":"link","label":"Get Repayment Transaction History","href":"/docs/v5/crypto-loan/repay-transaction","docId":"v5/crypto-loan/repay-transaction"},{"type":"link","label":"Get Completed Loan Order History","href":"/docs/v5/crypto-loan/comleted-loan-order","docId":"v5/crypto-loan/comleted-loan-order"},{"type":"link","label":"Get Max. Allowed Reduction Collateral Amount","href":"/docs/v5/crypto-loan/reduce-max-collateral-amt","docId":"v5/crypto-loan/reduce-max-collateral-amt"},{"type":"link","label":"Adjust Collateral Amount","href":"/docs/v5/crypto-loan/adjust-collateral","docId":"v5/crypto-loan/adjust-collateral"},{"type":"link","label":"Get Loan LTV Adjustment History","href":"/docs/v5/crypto-loan/ltv-adjust-history","docId":"v5/crypto-loan/ltv-adjust-history"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Institutional Loan","items":[{"type":"link","label":"Get Product Info","href":"/docs/v5/otc/margin-product-info","docId":"v5/otc/margin-product-info"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/v5/otc/margin-coin-convert-info","docId":"v5/otc/margin-coin-convert-info"},{"type":"link","label":"Get Loan Orders","href":"/docs/v5/otc/loan-info","docId":"v5/otc/loan-info"},{"type":"link","label":"Get Repayment Orders","href":"/docs/v5/otc/repay-info","docId":"v5/otc/repay-info"},{"type":"link","label":"Get LTV","href":"/docs/v5/otc/ltv-convert","docId":"v5/otc/ltv-convert"},{"type":"link","label":"Bind Or Unbind UID","href":"/docs/v5/otc/bind-uid","docId":"v5/otc/bind-uid"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Exchange Broker","items":[{"type":"link","label":"Get Earning","href":"/docs/v5/broker/exchange-earning","docId":"v5/broker/exchange-earning"},{"type":"link","label":"Get Account Info","href":"/docs/v5/broker/account-info","docId":"v5/broker/account-info"},{"type":"link","label":"Get Sub Account Deposit Records","href":"/docs/v5/broker/sub-deposit-record","docId":"v5/broker/sub-deposit-record"},{"type":"category","label":"Reward","items":[{"type":"link","label":"Query Voucher Spec","href":"/docs/v5/broker/reward/voucher","docId":"v5/broker/reward/voucher"},{"type":"link","label":"Issue Voucher","href":"/docs/v5/broker/reward/issue-voucher","docId":"v5/broker/reward/issue-voucher"},{"type":"link","label":"Query Issued Voucher","href":"/docs/v5/broker/reward/get-issue-voucher","docId":"v5/broker/reward/get-issue-voucher"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"WebSocket Stream","items":[{"type":"link","label":"Connect","href":"/docs/v5/ws/connect","docId":"v5/websocket/wss-authentication"},{"type":"category","label":"Public","items":[{"type":"link","label":"Orderbook","href":"/docs/v5/websocket/public/orderbook","docId":"v5/websocket/public/orderbook"},{"type":"link","label":"Trade","href":"/docs/v5/websocket/public/trade","docId":"v5/websocket/public/trade"},{"type":"link","label":"Ticker","href":"/docs/v5/websocket/public/ticker","docId":"v5/websocket/public/ticker"},{"type":"link","label":"Kline","href":"/docs/v5/websocket/public/kline","docId":"v5/websocket/public/kline"},{"type":"link","label":"Liquidation","href":"/docs/v5/websocket/public/liquidation","docId":"v5/websocket/public/liquidation"},{"type":"link","label":"LT Kline","href":"/docs/v5/websocket/public/etp-kline","docId":"v5/websocket/public/etp-kline"},{"type":"link","label":"LT Ticker","href":"/docs/v5/websocket/public/etp-ticker","docId":"v5/websocket/public/etp-ticker"},{"type":"link","label":"LT Nav","href":"/docs/v5/websocket/public/etp-nav","docId":"v5/websocket/public/etp-nav"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Private","items":[{"type":"link","label":"Position","href":"/docs/v5/websocket/private/position","docId":"v5/websocket/private/position"},{"type":"link","label":"Execution","href":"/docs/v5/websocket/private/execution","docId":"v5/websocket/private/execution"},{"type":"link","label":"Fast Execution","href":"/docs/v5/websocket/private/fast-execution","docId":"v5/websocket/private/fast-execution"},{"type":"link","label":"Order","href":"/docs/v5/websocket/private/order","docId":"v5/websocket/private/order"},{"type":"link","label":"Wallet","href":"/docs/v5/websocket/private/wallet","docId":"v5/websocket/private/wallet"},{"type":"link","label":"Greek","href":"/docs/v5/websocket/private/greek","docId":"v5/websocket/private/greek"},{"type":"link","label":"Dcp","href":"/docs/v5/websocket/private/dcp","docId":"v5/websocket/private/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Trade","items":[{"type":"link","label":"Websocket Trade Guideline","href":"/docs/v5/websocket/trade/guideline","docId":"v5/websocket/trade/guideline"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"link","label":"Rate Limit","href":"/docs/v5/rate-limit","docId":"v5/rate-limit"},{"type":"link","label":"Enums Definitions","href":"/docs/v5/enum","docId":"v5/enum"},{"type":"link","label":"Error Codes","href":"/docs/v5/error","docId":"v5/error"},{"type":"category","label":"Abandoned Endpoints","items":[{"type":"link","label":"Get Lending Coin Info","href":"/docs/v5/abandon/coin-info","docId":"v5/abandon/coin-info"},{"type":"link","label":"Get LTV","href":"/docs/v5/abandon/ltv","docId":"v5/abandon/ltv"},{"type":"link","label":"Deposit Funds","href":"/docs/v5/abandon/deposit","docId":"v5/abandon/deposit"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/v5/abandon/margin-coin-info","docId":"v5/abandon/margin-coin-info"},{"type":"link","label":"Enable Universal Transfer for Sub UID","href":"/docs/v5/abandon/enable-unitransfer-subuid","docId":"v5/abandon/enable-unitransfer-subuid"},{"type":"link","label":"Redeem Funds","href":"/docs/v5/abandon/redeem","docId":"v5/abandon/redeem"},{"type":"link","label":"Cancel Redeem","href":"/docs/v5/abandon/cancel-redeem","docId":"v5/abandon/cancel-redeem"},{"type":"link","label":"Get Broker Earning","href":"/docs/v5/abandon/earning","docId":"v5/abandon/earning"},{"type":"link","label":"Get Order Records","href":"/docs/v5/abandon/order-record","docId":"v5/abandon/order-record"},{"type":"link","label":"Get Lending Account Info","href":"/docs/v5/abandon/account-info","docId":"v5/abandon/account-info"}],"collapsed":true,"collapsible":true}],"apiExplorerSideBar":[{"type":"category","label":"V5","items":[{"type":"category","label":"Market","items":[{"type":"link","label":"Get Bybit Server Time","href":"/docs/api-explorer/v5/market/time","className":"api-method get","docId":"api-explorer/v5/market/time"},{"type":"link","label":"Get Kline","href":"/docs/api-explorer/v5/market/kline","className":"api-method get","docId":"api-explorer/v5/market/kline"},{"type":"link","label":"Get Mark Price Kline","href":"/docs/api-explorer/v5/market/mark-kline","className":"api-method get","docId":"api-explorer/v5/market/mark-kline"},{"type":"link","label":"Get Index Price Kline","href":"/docs/api-explorer/v5/market/index-kline","className":"api-method get","docId":"api-explorer/v5/market/index-kline"},{"type":"link","label":"Get Premium Index Price Kline","href":"/docs/api-explorer/v5/market/premium-index-kline","className":"api-method get","docId":"api-explorer/v5/market/premium-index-kline"},{"type":"link","label":"Get Instrument Info","href":"/docs/api-explorer/v5/market/instrument","className":"api-method get","docId":"api-explorer/v5/market/instrument"},{"type":"link","label":"Get Orderbook","href":"/docs/api-explorer/v5/market/orderbook","className":"api-method get","docId":"api-explorer/v5/market/orderbook"},{"type":"link","label":"Get Tickers","href":"/docs/api-explorer/v5/market/tickers","className":"api-method get","docId":"api-explorer/v5/market/tickers"},{"type":"link","label":"Get Funding Rate History","href":"/docs/api-explorer/v5/market/history-fund-rate","className":"api-method get","docId":"api-explorer/v5/market/history-fund-rate"},{"type":"link","label":"Get Public Recent Trading History","href":"/docs/api-explorer/v5/market/recent-trade","className":"api-method get","docId":"api-explorer/v5/market/recent-trade"},{"type":"link","label":"Get Open Interest","href":"/docs/api-explorer/v5/market/open-interest","className":"api-method get","docId":"api-explorer/v5/market/open-interest"},{"type":"link","label":"Get Historical Volatility","href":"/docs/api-explorer/v5/market/iv","className":"api-method get","docId":"api-explorer/v5/market/iv"},{"type":"link","label":"Get Insurance","href":"/docs/api-explorer/v5/market/insurance","className":"api-method get","docId":"api-explorer/v5/market/insurance"},{"type":"link","label":"Get Risk Limit","href":"/docs/api-explorer/v5/market/risk-limit","className":"api-method get","docId":"api-explorer/v5/market/risk-limit"},{"type":"link","label":"Get Delivery Price","href":"/docs/api-explorer/v5/market/delivery-price","className":"api-method get","docId":"api-explorer/v5/market/delivery-price"},{"type":"link","label":"Get Long Short Ratio","href":"/docs/api-explorer/v5/market/long-short-ratio","className":"api-method get","docId":"api-explorer/v5/market/long-short-ratio"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/market/market"},{"type":"category","label":"Trade","items":[{"type":"link","label":"Place Order","href":"/docs/api-explorer/v5/trade/create-order","className":"api-method post","docId":"api-explorer/v5/trade/create-order"},{"type":"link","label":"Amend Order","href":"/docs/api-explorer/v5/trade/amend-order","className":"api-method post","docId":"api-explorer/v5/trade/amend-order"},{"type":"link","label":"Cancel Order","href":"/docs/api-explorer/v5/trade/cancel-order","className":"api-method post","docId":"api-explorer/v5/trade/cancel-order"},{"type":"link","label":"Get Open Orders (real-time)","href":"/docs/api-explorer/v5/trade/open-order","className":"api-method get","docId":"api-explorer/v5/trade/open-order"},{"type":"link","label":"Cancel All Orders","href":"/docs/api-explorer/v5/trade/cancel-all","className":"api-method post","docId":"api-explorer/v5/trade/cancel-all"},{"type":"link","label":"Get Order History (2 years)","href":"/docs/api-explorer/v5/trade/order-list","className":"api-method get","docId":"api-explorer/v5/trade/order-list"},{"type":"link","label":"Batch Place Order","href":"/docs/api-explorer/v5/trade/batch-place","className":"api-method post","docId":"api-explorer/v5/trade/batch-place"},{"type":"link","label":"Batch Amend Order","href":"/docs/api-explorer/v5/trade/batch-amend","className":"api-method post","docId":"api-explorer/v5/trade/batch-amend"},{"type":"link","label":"Batch Cancel Order","href":"/docs/api-explorer/v5/trade/batch-cancel","className":"api-method post","docId":"api-explorer/v5/trade/batch-cancel"},{"type":"link","label":"Get Borrow Quota (Spot)","href":"/docs/api-explorer/v5/trade/query-spot-quota","className":"api-method get","docId":"api-explorer/v5/trade/query-spot-quota"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/trade/trade"},{"type":"category","label":"Position","items":[{"type":"link","label":"Get Position Info","href":"/docs/api-explorer/v5/position/position-info","className":"api-method get","docId":"api-explorer/v5/position/position-info"},{"type":"link","label":"Set Leverage","href":"/docs/api-explorer/v5/position/leverage","className":"api-method post","docId":"api-explorer/v5/position/leverage"},{"type":"link","label":"Switch Cross/Isolated Margin","href":"/docs/api-explorer/v5/position/cross-isolate","className":"api-method post","docId":"api-explorer/v5/position/cross-isolate"},{"type":"link","label":"Set TP/SL Mode","href":"/docs/api-explorer/v5/position/tpsl-mode","className":"api-method post","docId":"api-explorer/v5/position/tpsl-mode"},{"type":"link","label":"Switch Position Mode","href":"/docs/api-explorer/v5/position/position-mode","className":"api-method post","docId":"api-explorer/v5/position/position-mode"},{"type":"link","label":"Set Risk Limit","href":"/docs/api-explorer/v5/position/set-risk-limit","className":"api-method post","docId":"api-explorer/v5/position/set-risk-limit"},{"type":"link","label":"Set Trading Stop","href":"/docs/api-explorer/v5/position/trading-stop","className":"api-method post","docId":"api-explorer/v5/position/trading-stop"},{"type":"link","label":"Set Auto Add Margin","href":"/docs/api-explorer/v5/position/auto-add-margin","className":"api-method post","docId":"api-explorer/v5/position/auto-add-margin"},{"type":"link","label":"Add Or Reduce Margin","href":"/docs/api-explorer/v5/position/manual-add-margin","className":"api-method post","docId":"api-explorer/v5/position/manual-add-margin"},{"type":"link","label":"Get Execution (2 years)","href":"/docs/api-explorer/v5/position/execution","className":"api-method get","docId":"api-explorer/v5/position/execution"},{"type":"link","label":"Get Closed PnL","href":"/docs/api-explorer/v5/position/close-pnl","className":"api-method get","docId":"api-explorer/v5/position/close-pnl"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/position/position"},{"type":"category","label":"Account","items":[{"type":"link","label":"Get Wallet Balance","href":"/docs/api-explorer/v5/account/wallet","className":"api-method get","docId":"api-explorer/v5/account/wallet"},{"type":"link","label":"Upgrade to Unified Account","href":"/docs/api-explorer/v5/account/upgrade-unified-account","className":"api-method post","docId":"api-explorer/v5/account/upgrade-unified-account"},{"type":"link","label":"Set Collateral Coin","href":"/docs/api-explorer/v5/account/set-collateral","className":"api-method post","docId":"api-explorer/v5/account/set-collateral"},{"type":"link","label":"Get Borrow History","href":"/docs/api-explorer/v5/account/borrow-history","className":"api-method get","docId":"api-explorer/v5/account/borrow-history"},{"type":"link","label":"Get Collateral Info","href":"/docs/api-explorer/v5/account/collateral-info","className":"api-method get","docId":"api-explorer/v5/account/collateral-info"},{"type":"link","label":"Get Coin Greeks","href":"/docs/api-explorer/v5/account/coin-greeks","className":"api-method get","docId":"api-explorer/v5/account/coin-greeks"},{"type":"link","label":"Get Fee Rate","href":"/docs/api-explorer/v5/account/fee-rate","className":"api-method get","docId":"api-explorer/v5/account/fee-rate"},{"type":"link","label":"Get Account Info","href":"/docs/api-explorer/v5/account/account-info","className":"api-method get","docId":"api-explorer/v5/account/account-info"},{"type":"link","label":"Get Transaction Log","href":"/docs/api-explorer/v5/account/transaction-log","className":"api-method get","docId":"api-explorer/v5/account/transaction-log"},{"type":"link","label":"Set Margin Mode","href":"/docs/api-explorer/v5/account/set-margin-mode","className":"api-method post","docId":"api-explorer/v5/account/set-margin-mode"},{"type":"link","label":"Set Spot Hedging","href":"/docs/api-explorer/v5/account/set-spot-hedge","className":"api-method post","docId":"api-explorer/v5/account/set-spot-hedge"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/account/account"},{"type":"category","label":"Asset","items":[{"type":"link","label":"Get Coin Exchange Records","href":"/docs/api-explorer/v5/asset/exchange","className":"api-method get","docId":"api-explorer/v5/asset/exchange"},{"type":"link","label":"Get Delivery Record","href":"/docs/api-explorer/v5/asset/delivery","className":"api-method get","docId":"api-explorer/v5/asset/delivery"},{"type":"link","label":"Get USDC Session Settlement","href":"/docs/api-explorer/v5/asset/settlement","className":"api-method get","docId":"api-explorer/v5/asset/settlement"},{"type":"link","label":"Get Asset Info (Spot)","href":"/docs/api-explorer/v5/asset/asset-info","className":"api-method get","docId":"api-explorer/v5/asset/asset-info"},{"type":"link","label":"Get All Coins Balance","href":"/docs/api-explorer/v5/asset/all-balance","className":"api-method get","docId":"api-explorer/v5/asset/all-balance"},{"type":"link","label":"Get Single Coin Balance","href":"/docs/api-explorer/v5/asset/account-coin-balance","className":"api-method get","docId":"api-explorer/v5/asset/account-coin-balance"},{"type":"link","label":"Get Transferable Coin","href":"/docs/api-explorer/v5/asset/transferable-coin","className":"api-method get","docId":"api-explorer/v5/asset/transferable-coin"},{"type":"link","label":"Create Internal Transfer","href":"/docs/api-explorer/v5/asset/create-inter-transfer","className":"api-method post","docId":"api-explorer/v5/asset/create-inter-transfer"},{"type":"link","label":"Get Internal Transfer Records","href":"/docs/api-explorer/v5/asset/inter-transfer-list","className":"api-method get","docId":"api-explorer/v5/asset/inter-transfer-list"},{"type":"link","label":"Get Sub UID","href":"/docs/api-explorer/v5/asset/sub-uid-list","className":"api-method get","docId":"api-explorer/v5/asset/sub-uid-list"},{"type":"link","label":"Create Universal Transfer","href":"/docs/api-explorer/v5/asset/unitransfer","className":"api-method post","docId":"api-explorer/v5/asset/unitransfer"},{"type":"link","label":"Get Universal Transfer Records","href":"/docs/api-explorer/v5/asset/unitransfer-list","className":"api-method get","docId":"api-explorer/v5/asset/unitransfer-list"},{"type":"link","label":"Get Allowed Deposit Coin Info","href":"/docs/api-explorer/v5/asset/deposit-coin-spec","className":"api-method get","docId":"api-explorer/v5/asset/deposit-coin-spec"},{"type":"link","label":"Set Deposit Account","href":"/docs/api-explorer/v5/asset/set-deposit-acct","className":"api-method post","docId":"api-explorer/v5/asset/set-deposit-acct"},{"type":"link","label":"Get Deposit Record (on-chain)","href":"/docs/api-explorer/v5/asset/deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/deposit-record"},{"type":"link","label":"Get Sub Account Deposit Records (on-chain)","href":"/docs/api-explorer/v5/asset/sub-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-record"},{"type":"link","label":"Get Internal Deposit Records (off-chain)","href":"/docs/api-explorer/v5/asset/internal-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/internal-deposit-record"},{"type":"link","label":"Get Master Deposit Address","href":"/docs/api-explorer/v5/asset/master-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/master-deposit-addr"},{"type":"link","label":"Get Sub Deposit Address","href":"/docs/api-explorer/v5/asset/sub-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-addr"},{"type":"link","label":"Get Coin Info","href":"/docs/api-explorer/v5/asset/coin-info","className":"api-method get","docId":"api-explorer/v5/asset/coin-info"},{"type":"link","label":"Get Withdraw Records","href":"/docs/api-explorer/v5/asset/withdraw-record","className":"api-method get","docId":"api-explorer/v5/asset/withdraw-record"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/asset/asset"},{"type":"category","label":"User","items":[{"type":"link","label":"Get API Key Information","href":"/docs/api-explorer/v5/user/apikey-info","className":"api-method get","docId":"api-explorer/v5/user/apikey-info"},{"type":"link","label":"Get Sub Account All API Keys","href":"/docs/api-explorer/v5/user/list-sub-apikeys","className":"api-method get","docId":"api-explorer/v5/user/list-sub-apikeys"},{"type":"link","label":"Get UID Wallet Type","href":"/docs/api-explorer/v5/user/wallet-type","className":"api-method get","docId":"api-explorer/v5/user/wallet-type"},{"type":"link","label":"Get Affiliate User Info","href":"/docs/api-explorer/v5/user/affiliate-info","className":"api-method get","docId":"api-explorer/v5/user/affiliate-info"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/user/user"},{"type":"category","label":"Spot Leverage Token","items":[{"type":"link","label":"Get Leverage Token Info","href":"/docs/api-explorer/v5/lt/leverage-token-info","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-info"},{"type":"link","label":"Get Leverage Token Market","href":"/docs/api-explorer/v5/lt/leverage-token-reference","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-reference"},{"type":"link","label":"Purchase","href":"/docs/api-explorer/v5/lt/purchase","className":"api-method post","docId":"api-explorer/v5/lt/purchase"},{"type":"link","label":"Redeem","href":"/docs/api-explorer/v5/lt/redeem","className":"api-method post","docId":"api-explorer/v5/lt/redeem"},{"type":"link","label":"Get Purchase or Redeem Records","href":"/docs/api-explorer/v5/lt/order-record","className":"api-method get","docId":"api-explorer/v5/lt/order-record"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/lt/etp"},{"type":"category","label":"Spot Margin Trade (UTA)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/api-explorer/v5/spot-margin-uta/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/vip-margin"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/api-explorer/v5/spot-margin-uta/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/switch-mode"},{"type":"link","label":"Set Leverage","href":"/docs/api-explorer/v5/spot-margin-uta/set-leverage","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/set-leverage"},{"type":"link","label":"Get Status And Leverage","href":"/docs/api-explorer/v5/spot-margin-uta/status","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/spot-margin-uta/uta-margin-trade"},{"type":"category","label":"Spot Margin Trade (Classic)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/api-explorer/v5/spot-margin-normal/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/vip-margin"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/api-explorer/v5/spot-margin-normal/margin-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/margin-data"},{"type":"link","label":"Get Borrowable Coin Info","href":"/docs/api-explorer/v5/spot-margin-normal/borrowable-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrowable-data"},{"type":"link","label":"Get Interest & Quota","href":"/docs/api-explorer/v5/spot-margin-normal/interest-quota","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/interest-quota"},{"type":"link","label":"Get Loan Account Info","href":"/docs/api-explorer/v5/spot-margin-normal/account-info","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/account-info"},{"type":"link","label":"Borrow","href":"/docs/api-explorer/v5/spot-margin-normal/borrow","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/borrow"},{"type":"link","label":"Repay","href":"/docs/api-explorer/v5/spot-margin-normal/repay","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/repay"},{"type":"link","label":"Get Borrow Order Detail","href":"/docs/api-explorer/v5/spot-margin-normal/borrow-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrow-order"},{"type":"link","label":"Get Repayment Order Detail","href":"/docs/api-explorer/v5/spot-margin-normal/repay-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/repay-order"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/api-explorer/v5/spot-margin-normal/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/switch-mode"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/spot-margin-normal/normal-margin-trade"}],"collapsed":true,"collapsible":true,"href":"/docs/api-explorer/v5/category/"}],"changelogSidebar":[{"type":"link","label":"V5","href":"/docs/changelog/v5","docId":"changelog/v5"}]},"docs":{"api-explorer/v5/account/account":{"id":"api-explorer/v5/account/account","title":"Account","description":"Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/account-info":{"id":"api-explorer/v5/account/account-info","title":"Get Account Info","description":"Get account info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/borrow-history":{"id":"api-explorer/v5/account/borrow-history","title":"Get Borrow History","description":"Get borrow history","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/coin-greeks":{"id":"api-explorer/v5/account/coin-greeks","title":"Get Coin Greeks","description":"Get coin greek info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/collateral-info":{"id":"api-explorer/v5/account/collateral-info","title":"Get Collateral Info","description":"Get collateral info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/fee-rate":{"id":"api-explorer/v5/account/fee-rate","title":"Get Fee Rate","description":"Get fee rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-collateral":{"id":"api-explorer/v5/account/set-collateral","title":"Set Collateral Coin","description":"Set collateral coin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-margin-mode":{"id":"api-explorer/v5/account/set-margin-mode","title":"Set Margin Mode","description":"Set margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-spot-hedge":{"id":"api-explorer/v5/account/set-spot-hedge","title":"Set Spot Hedging","description":"Set spot hedging for Portfolio margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/transaction-log":{"id":"api-explorer/v5/account/transaction-log","title":"Get Transaction Log","description":"Get transaction log","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/upgrade-unified-account":{"id":"api-explorer/v5/account/upgrade-unified-account","title":"Upgrade to Unified Account","description":"Upgrade to UTA","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/wallet":{"id":"api-explorer/v5/account/wallet","title":"Get Wallet Balance","description":"Get wallet balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/account-coin-balance":{"id":"api-explorer/v5/asset/account-coin-balance","title":"Get Single Coin Balance","description":"Get Single Coin Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/all-balance":{"id":"api-explorer/v5/asset/all-balance","title":"Get All Coins Balance","description":"Get All Coins Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset":{"id":"api-explorer/v5/asset/asset","title":"Asset","description":"Asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset-info":{"id":"api-explorer/v5/asset/asset-info","title":"Get Asset Info (Spot)","description":"Get spot asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/coin-info":{"id":"api-explorer/v5/asset/coin-info","title":"Get Coin Info","description":"Get coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/create-inter-transfer":{"id":"api-explorer/v5/asset/create-inter-transfer","title":"Create Internal Transfer","description":"Create internal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/delivery":{"id":"api-explorer/v5/asset/delivery","title":"Get Delivery Record","description":"Get delivery record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-coin-spec":{"id":"api-explorer/v5/asset/deposit-coin-spec","title":"Get Allowed Deposit Coin Info","description":"Get allowed deposit coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-record":{"id":"api-explorer/v5/asset/deposit-record","title":"Get Deposit Record (on-chain)","description":"Get deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/exchange":{"id":"api-explorer/v5/asset/exchange","title":"Get Coin Exchange Records","description":"Get exchange records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/inter-transfer-list":{"id":"api-explorer/v5/asset/inter-transfer-list","title":"Get Internal Transfer Records","description":"Get internal transfer records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/internal-deposit-record":{"id":"api-explorer/v5/asset/internal-deposit-record","title":"Get Internal Deposit Records (off-chain)","description":"Get deposit records through Bybit platform","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/master-deposit-addr":{"id":"api-explorer/v5/asset/master-deposit-addr","title":"Get Master Deposit Address","description":"Get master deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/set-deposit-acct":{"id":"api-explorer/v5/asset/set-deposit-acct","title":"Set Deposit Account","description":"Set Deposit Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/settlement":{"id":"api-explorer/v5/asset/settlement","title":"Get USDC Session Settlement","description":"Get usdc session settlement record.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-addr":{"id":"api-explorer/v5/asset/sub-deposit-addr","title":"Get Sub Deposit Address","description":"Get sub deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-record":{"id":"api-explorer/v5/asset/sub-deposit-record","title":"Get Sub Account Deposit Records (on-chain)","description":"Get sub account deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-uid-list":{"id":"api-explorer/v5/asset/sub-uid-list","title":"Get Sub UID","description":"Get sub uid","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/transferable-coin":{"id":"api-explorer/v5/asset/transferable-coin","title":"Get Transferable Coin","description":"Get transferable coins","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer":{"id":"api-explorer/v5/asset/unitransfer","title":"Create Universal Transfer","description":"Create universal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer-list":{"id":"api-explorer/v5/asset/unitransfer-list","title":"Get Universal Transfer Records","description":"Get universal transfer record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/withdraw-record":{"id":"api-explorer/v5/asset/withdraw-record","title":"Get Withdraw Records","description":"Get withdraw record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/etp":{"id":"api-explorer/v5/lt/etp","title":"Spot Leverage Token","description":"Spot Leverage Token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-info":{"id":"api-explorer/v5/lt/leverage-token-info","title":"Get Leverage Token Info","description":"Get lt information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-reference":{"id":"api-explorer/v5/lt/leverage-token-reference","title":"Get Leverage Token Market","description":"Get lt market information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/order-record":{"id":"api-explorer/v5/lt/order-record","title":"Get Purchase or Redeem Records","description":"Get the order history of purchase or redeem","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/purchase":{"id":"api-explorer/v5/lt/purchase","title":"Purchase","description":"Purchase leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/redeem":{"id":"api-explorer/v5/lt/redeem","title":"Redeem","description":"Redeem leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/delivery-price":{"id":"api-explorer/v5/market/delivery-price","title":"Get Delivery Price","description":"Get delivery price","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/history-fund-rate":{"id":"api-explorer/v5/market/history-fund-rate","title":"Get Funding Rate History","description":"Get historical funding rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/index-kline":{"id":"api-explorer/v5/market/index-kline","title":"Get Index Price Kline","description":"Get Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/instrument":{"id":"api-explorer/v5/market/instrument","title":"Get Instrument Info","description":"Get launched instruments information.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/insurance":{"id":"api-explorer/v5/market/insurance","title":"Get Insurance","description":"Get Insurance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/iv":{"id":"api-explorer/v5/market/iv","title":"Get Historical Volatility","description":"Get historical volatility","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/kline":{"id":"api-explorer/v5/market/kline","title":"Get Kline","description":"Get kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/long-short-ratio":{"id":"api-explorer/v5/market/long-short-ratio","title":"Get Long Short Ratio","description":"Get long short ratio","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/mark-kline":{"id":"api-explorer/v5/market/mark-kline","title":"Get Mark Price Kline","description":"Get Mark Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/market":{"id":"api-explorer/v5/market/market","title":"Market","description":"Market","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/open-interest":{"id":"api-explorer/v5/market/open-interest","title":"Get Open Interest","description":"Get open interest","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/orderbook":{"id":"api-explorer/v5/market/orderbook","title":"Get Orderbook","description":"Get order book data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/premium-index-kline":{"id":"api-explorer/v5/market/premium-index-kline","title":"Get Premium Index Price Kline","description":"Get Premium Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/recent-trade":{"id":"api-explorer/v5/market/recent-trade","title":"Get Public Recent Trading History","description":"Get public trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/risk-limit":{"id":"api-explorer/v5/market/risk-limit","title":"Get Risk Limit","description":"Get risk limit","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/tickers":{"id":"api-explorer/v5/market/tickers","title":"Get Tickers","description":"Get all latest information of symbols. All parameters are needed for OPTION","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/time":{"id":"api-explorer/v5/market/time","title":"Get Bybit Server Time","description":"Get server time","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/auto-add-margin":{"id":"api-explorer/v5/position/auto-add-margin","title":"Set Auto Add Margin","description":"Set Auto Add Margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/close-pnl":{"id":"api-explorer/v5/position/close-pnl","title":"Get Closed PnL","description":"Get closed pnl","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/cross-isolate":{"id":"api-explorer/v5/position/cross-isolate","title":"Switch Cross/Isolated Margin","description":"Select cross margin mode or isolated margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/execution":{"id":"api-explorer/v5/position/execution","title":"Get Execution (2 years)","description":"Get execution list","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/leverage":{"id":"api-explorer/v5/position/leverage","title":"Set Leverage","description":"Set levearage.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/manual-add-margin":{"id":"api-explorer/v5/position/manual-add-margin","title":"Add Or Reduce Margin","description":"Manually add or reduce margin for isolated margin position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position":{"id":"api-explorer/v5/position/position","title":"Position","description":"Position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-info":{"id":"api-explorer/v5/position/position-info","title":"Get Position Info","description":"Get Position Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-mode":{"id":"api-explorer/v5/position/position-mode","title":"Switch Position Mode","description":"Switch Position Mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/set-risk-limit":{"id":"api-explorer/v5/position/set-risk-limit","title":"Set Risk Limit","description":"Set risk limit.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/tpsl-mode":{"id":"api-explorer/v5/position/tpsl-mode","title":"Set TP/SL Mode","description":"Set tp/sl mode.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/trading-stop":{"id":"api-explorer/v5/position/trading-stop","title":"Set Trading Stop","description":"Set trade stop.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/account-info":{"id":"api-explorer/v5/spot-margin-normal/account-info","title":"Get Loan Account Info","description":"Get Loan Account Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow":{"id":"api-explorer/v5/spot-margin-normal/borrow","title":"Borrow","description":"Borrow","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow-order":{"id":"api-explorer/v5/spot-margin-normal/borrow-order","title":"Get Borrow Order Detail","description":"Get Borrow Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrowable-data":{"id":"api-explorer/v5/spot-margin-normal/borrowable-data","title":"Get Borrowable Coin Info","description":"Get Borrowable Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/interest-quota":{"id":"api-explorer/v5/spot-margin-normal/interest-quota","title":"Get Interest & Quota","description":"Get Interest & Quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/margin-data":{"id":"api-explorer/v5/spot-margin-normal/margin-data","title":"Get Margin Coin Info","description":"Get Margin Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/normal-margin-trade":{"id":"api-explorer/v5/spot-margin-normal/normal-margin-trade","title":"Spot Margin Trade (Classic)","description":"Spot Margin Trade (Classic)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay":{"id":"api-explorer/v5/spot-margin-normal/repay","title":"Repay","description":"Repay","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay-order":{"id":"api-explorer/v5/spot-margin-normal/repay-order","title":"Get Repayment Order Detail","description":"Get Repayment Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/switch-mode":{"id":"api-explorer/v5/spot-margin-normal/switch-mode","title":"Toggle Margin Trade","description":"Toggle Margin Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/vip-margin":{"id":"api-explorer/v5/spot-margin-normal/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/set-leverage":{"id":"api-explorer/v5/spot-margin-uta/set-leverage","title":"Set Leverage","description":"Set leverage for margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/status":{"id":"api-explorer/v5/spot-margin-uta/status","title":"Get Status And Leverage","description":"Get status and leverage","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/switch-mode":{"id":"api-explorer/v5/spot-margin-uta/switch-mode","title":"Toggle Margin Trade","description":"Toggle margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/uta-margin-trade":{"id":"api-explorer/v5/spot-margin-uta/uta-margin-trade","title":"Spot Margin Trade (UTA)","description":"Spot Margin Trade (UTA)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/vip-margin":{"id":"api-explorer/v5/spot-margin-uta/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/amend-order":{"id":"api-explorer/v5/trade/amend-order","title":"Amend Order","description":"Amend an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-amend":{"id":"api-explorer/v5/trade/batch-amend","title":"Batch Amend Order","description":"Batch amend orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-cancel":{"id":"api-explorer/v5/trade/batch-cancel","title":"Batch Cancel Order","description":"Batch cancel orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-place":{"id":"api-explorer/v5/trade/batch-place","title":"Batch Place Order","description":"Batch place orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-all":{"id":"api-explorer/v5/trade/cancel-all","title":"Cancel All Orders","description":"Cancel all orders.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-order":{"id":"api-explorer/v5/trade/cancel-order","title":"Cancel Order","description":"Cancel a single order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/create-order":{"id":"api-explorer/v5/trade/create-order","title":"Place Order","description":"Place an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/open-order":{"id":"api-explorer/v5/trade/open-order","title":"Get Open Orders (real-time)","description":"Get unfilled orders or partially filled orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/order-list":{"id":"api-explorer/v5/trade/order-list","title":"Get Order History (2 years)","description":"Get order history.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/query-spot-quota":{"id":"api-explorer/v5/trade/query-spot-quota","title":"Get Borrow Quota (Spot)","description":"Query user\'s spot available quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/trade":{"id":"api-explorer/v5/trade/trade","title":"Trade","description":"Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/affiliate-info":{"id":"api-explorer/v5/user/affiliate-info","title":"Get Affiliate User Info","description":"Get affiliate user info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/apikey-info":{"id":"api-explorer/v5/user/apikey-info","title":"Get API Key Information","description":"Get API Key Information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/list-sub-apikeys":{"id":"api-explorer/v5/user/list-sub-apikeys","title":"Get Sub Account All API Keys","description":"Get Sub Account All API Keys","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/user":{"id":"api-explorer/v5/user/user","title":"User","description":"User","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/wallet-type":{"id":"api-explorer/v5/user/wallet-type","title":"Get UID Wallet Type","description":"Get uid wallet type","sidebar":"apiExplorerSideBar"},"changelog/v5":{"id":"changelog/v5","title":"V5","description":"2024-10-15","sidebar":"changelogSidebar"},"faq":{"id":"faq","title":"Frequently Asked Questions","description":"Where are Bybit\'s servers located?"},"pilot-feature/pilot":{"id":"pilot-feature/pilot","title":"Pilot Features","description":"Inverse Contract Upgrade"},"v3/intro":{"id":"v3/intro","title":"Introduction","description":"Authentication","sidebar":"v3SideBar"},"v3/tax/data-explain":{"id":"v3/tax/data-explain","title":"Data Explanation","description":"Trade History","sidebar":"v3SideBar"},"v3/tax/data-export":{"id":"v3/tax/data-export","title":"Retrieve Data Export","description":"Retrieve data export","sidebar":"v3SideBar"},"v3/tax/enum":{"id":"v3/tax/enum","title":"Enums Definitions","description":"ReportType","sidebar":"v3SideBar"},"v3/tax/register-time":{"id":"v3/tax/register-time","title":"Get User Register Date","description":"Get User Register Date","sidebar":"v3SideBar"},"v3/tax/report-status":{"id":"v3/tax/report-status","title":"Get Export Report Status","description":"Get Export Report Status","sidebar":"v3SideBar"},"v3/tax/request-report":{"id":"v3/tax/request-report","title":"Request Export Report","description":"Request to export report","sidebar":"v3SideBar"},"v5/abandon/account-info":{"id":"v5/abandon/account-info","title":"Get Lending Account Info","description":"HTTP Request","sidebar":"v5SideBar"},"v5/abandon/cancel-redeem":{"id":"v5/abandon/cancel-redeem","title":"Cancel Redeem","description":"Cancel the withdrawal operation.","sidebar":"v5SideBar"},"v5/abandon/coin-info":{"id":"v5/abandon/coin-info","title":"Get Lending Coin Info","description":"Get the basic information of lending coins","sidebar":"v5SideBar"},"v5/abandon/deposit":{"id":"v5/abandon/deposit","title":"Deposit Funds","description":"Lending funds to Bybit asset pool","sidebar":"v5SideBar"},"v5/abandon/earning":{"id":"v5/abandon/earning","title":"Get Broker Earning","description":"This endpoint has been depreciated, please move to new Get Exchange Broker Earning","sidebar":"v5SideBar"},"v5/abandon/enable-unitransfer-subuid":{"id":"v5/abandon/enable-unitransfer-subuid","title":"Enable Universal Transfer for Sub UID","description":"You no longer need to configure transferable sub UIDs. Now, all sub UIDs are automatically enabled for universal transfer.","sidebar":"v5SideBar"},"v5/abandon/ltv":{"id":"v5/abandon/ltv","title":"Get LTV","description":"HTTP Request","sidebar":"v5SideBar"},"v5/abandon/margin-coin-info":{"id":"v5/abandon/margin-coin-info","title":"Get Margin Coin Info","description":"HTTP Request","sidebar":"v5SideBar"},"v5/abandon/order-record":{"id":"v5/abandon/order-record","title":"Get Order Records","description":"Get lending or redeem history","sidebar":"v5SideBar"},"v5/abandon/redeem":{"id":"v5/abandon/redeem","title":"Redeem Funds","description":"Withdraw funds from the Bybit asset pool.","sidebar":"v5SideBar"},"v5/account/account-info":{"id":"v5/account/account-info","title":"Get Account Info","description":"Query the account information, like margin mode, account mode, etc.","sidebar":"v5SideBar"},"v5/account/batch-set-collateral":{"id":"v5/account/batch-set-collateral","title":"Batch Set Collateral Coin","description":"HTTP Request","sidebar":"v5SideBar"},"v5/account/borrow-history":{"id":"v5/account/borrow-history","title":"Get Borrow History","description":"Get interest records, sorted in reverse order of creation time.","sidebar":"v5SideBar"},"v5/account/coin-greeks":{"id":"v5/account/coin-greeks","title":"Get Coin Greeks","description":"Get current account Greeks information","sidebar":"v5SideBar"},"v5/account/collateral-info":{"id":"v5/account/collateral-info","title":"Get Collateral Info","description":"Get the collateral information of the current unified margin account, including loan interest rate, loanable amount,","sidebar":"v5SideBar"},"v5/account/contract-transaction-log":{"id":"v5/account/contract-transaction-log","title":"Get Transaction Log","description":"Query transaction logs in the derivatives wallet (classic account), and inverse derivatives account (upgraded to UTA)","sidebar":"v5SideBar"},"v5/account/dcp-info":{"id":"v5/account/dcp-info","title":"Get DCP Info","description":"Query the DCP configuration of the account. Before calling the interface, please make sure you have applied for the UTA account DCP configuration with your account manager","sidebar":"v5SideBar"},"v5/account/fee-rate":{"id":"v5/account/fee-rate","title":"Get Fee Rate","description":"Get the trading fee rate.","sidebar":"v5SideBar"},"v5/account/get-mmp-state":{"id":"v5/account/get-mmp-state","title":"Get MMP State","description":"HTTP Request","sidebar":"v5SideBar"},"v5/account/repay-liability":{"id":"v5/account/repay-liability","title":"Repay Liability","description":"You can manually repay the liabilities of Unified account","sidebar":"v5SideBar"},"v5/account/reset-mmp":{"id":"v5/account/reset-mmp","title":"Reset MMP","description":"* Once the mmp triggered, you can unfreeze the account by this endpoint, then qtyLimit and deltaLimit will be reset to 0.","sidebar":"v5SideBar"},"v5/account/set-collateral":{"id":"v5/account/set-collateral","title":"Set Collateral Coin","description":"You can decide whether the assets in the Unified account needs to be collateral coins.","sidebar":"v5SideBar"},"v5/account/set-margin-mode":{"id":"v5/account/set-margin-mode","title":"Set Margin Mode","description":"Default is regular margin mode","sidebar":"v5SideBar"},"v5/account/set-mmp":{"id":"v5/account/set-mmp","title":"Set MMP","description":"What is MMP?","sidebar":"v5SideBar"},"v5/account/set-spot-hedge":{"id":"v5/account/set-spot-hedge","title":"Set Spot Hedging","description":"You can turn on/off Spot hedging feature in Portfolio margin for Unified account","sidebar":"v5SideBar"},"v5/account/smp-group":{"id":"v5/account/smp-group","title":"Get SMP Group ID","description":"Query the SMP group ID of self match prevention","sidebar":"v5SideBar"},"v5/account/transaction-log":{"id":"v5/account/transaction-log","title":"Get Transaction Log","description":"Query transaction logs in Unified account, it supports up to 2 years data","sidebar":"v5SideBar"},"v5/account/upgrade-unified-account":{"id":"v5/account/upgrade-unified-account","title":"Upgrade to Unified Account","description":"Check your current account status by calling this Get Account Info","sidebar":"v5SideBar"},"v5/account/wallet-balance":{"id":"v5/account/wallet-balance","title":"Get Wallet Balance","description":"Obtain wallet balance, query asset information of each currency. By default, currency","sidebar":"v5SideBar"},"v5/acct-mode":{"id":"v5/acct-mode","title":"Different Account Modes","description":"There are currently three account modes existing on the Bybit platform, namely classic account, unified account 1.0, and unified account 2.0.","sidebar":"v5SideBar"},"v5/announcement":{"id":"v5/announcement","title":"Get Announcement","description":"HTTP Request","sidebar":"v5SideBar"},"v5/asset/balance/account-coin-balance":{"id":"v5/asset/balance/account-coin-balance","title":"Get Single Coin Balance","description":"Query the balance of a specific coin in a specific account type. Supports querying sub UID\'s balance.","sidebar":"v5SideBar"},"v5/asset/balance/all-balance":{"id":"v5/asset/balance/all-balance","title":"Get All Coins Balance","description":"You could get all coin balance of all account types under the master account, and sub account.","sidebar":"v5SideBar"},"v5/asset/balance/asset-info":{"id":"v5/asset/balance/asset-info","title":"Get Asset Info","description":"Query Spot asset information","sidebar":"v5SideBar"},"v5/asset/balance/delay-amount":{"id":"v5/asset/balance/delay-amount","title":"Get Withdrawable Amount","description":"How can partial funds be subject to delayed withdrawal requests?","sidebar":"v5SideBar"},"v5/asset/coin-info":{"id":"v5/asset/coin-info","title":"Get Coin Info","description":"Query coin information, including chain information, withdraw and deposit status.","sidebar":"v5SideBar"},"v5/asset/convert/apply-quote":{"id":"v5/asset/convert/apply-quote","title":"Request a Quote","description":"HTTP Request","sidebar":"v5SideBar"},"v5/asset/convert/confirm-quote":{"id":"v5/asset/convert/confirm-quote","title":"Confirm a Quote","description":"1. The exchange is async, please check the final status by calling query result API.","sidebar":"v5SideBar"},"v5/asset/convert/convert-coin-list":{"id":"v5/asset/convert/convert-coin-list","title":"Get Convert Coin List","description":"You can query the coin list of convert from (to).","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-history":{"id":"v5/asset/convert/get-convert-history","title":"Get Convert history","description":"Those confirmed quotes no matter status are showns by this API.","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-result":{"id":"v5/asset/convert/get-convert-result","title":"Get Convert Status","description":"You can query the exchange result by sending quoteTxId.","sidebar":"v5SideBar"},"v5/asset/convert/guideline":{"id":"v5/asset/convert/guideline","title":"Convert Guideline","description":"* All convert api need authentication","sidebar":"v5SideBar"},"v5/asset/delivery":{"id":"v5/asset/delivery","title":"Get Delivery Record","description":"Query delivery records of Invese Futures, USDC Futures and Options, sorted by deliveryTime in descending order","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-coin-spec":{"id":"v5/asset/deposit/deposit-coin-spec","title":"Get Allowed Deposit Coin Info","description":"Query allowed deposit coin information. To find out paired chain of coin, please refer coin info api.","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-record":{"id":"v5/asset/deposit/deposit-record","title":"Get Deposit Records (on-chain)","description":"Query deposit records.","sidebar":"v5SideBar"},"v5/asset/deposit/internal-deposit-record":{"id":"v5/asset/deposit/internal-deposit-record","title":"Get Internal Deposit Records (off-chain)","description":"Query deposit records within the Bybit platform. These transactions are not on the blockchain.","sidebar":"v5SideBar"},"v5/asset/deposit/master-deposit-addr":{"id":"v5/asset/deposit/master-deposit-addr","title":"Get Master Deposit Address","description":"Query the deposit address information of MASTER account.","sidebar":"v5SideBar"},"v5/asset/deposit/set-deposit-acct":{"id":"v5/asset/deposit/set-deposit-acct","title":"Set Deposit Account","description":"Set auto transfer account after deposit. The same function as the setting for Deposit on web GUI","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-addr":{"id":"v5/asset/deposit/sub-deposit-addr","title":"Get Sub Deposit Address","description":"Query the deposit address information of SUB account.","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-record":{"id":"v5/asset/deposit/sub-deposit-record","title":"Get Sub Deposit Records (on-chain)","description":"Query subaccount\'s deposit records by main UID\'s API key.","sidebar":"v5SideBar"},"v5/asset/exchange":{"id":"v5/asset/exchange","title":"Get Coin Exchange Records","description":"Query the coin exchange records.","sidebar":"v5SideBar"},"v5/asset/settlement":{"id":"v5/asset/settlement","title":"Get USDC Session Settlement","description":"Query session settlement records of USDC perpetual and futures","sidebar":"v5SideBar"},"v5/asset/sub-uid-list":{"id":"v5/asset/sub-uid-list","title":"Get Sub UID","description":"Query the sub UIDs under a main UID. It returns up to 2000 sub accounts, if you need more, please call this endpoint.","sidebar":"v5SideBar"},"v5/asset/transfer/create-inter-transfer":{"id":"v5/asset/transfer/create-inter-transfer","title":"Create Internal Transfer","description":"Create the internal transfer between different account types under the same UID.","sidebar":"v5SideBar"},"v5/asset/transfer/inter-transfer-list":{"id":"v5/asset/transfer/inter-transfer-list","title":"Get Internal Transfer Records","description":"Query the internal transfer records between different account types under the same UID.","sidebar":"v5SideBar"},"v5/asset/transfer/transferable-coin":{"id":"v5/asset/transfer/transferable-coin","title":"Get Transferable Coin","description":"Query the transferable coin list between each account type","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer":{"id":"v5/asset/transfer/unitransfer","title":"Create Universal Transfer","description":"Transfer between sub-sub or main-sub.","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer-list":{"id":"v5/asset/transfer/unitransfer-list","title":"Get Universal Transfer Records","description":"Query universal transfer records","sidebar":"v5SideBar"},"v5/asset/withdraw/cancel-withdraw":{"id":"v5/asset/withdraw/cancel-withdraw","title":"Cancel Withdrawal","description":"Cancel the withdrawal","sidebar":"v5SideBar"},"v5/asset/withdraw/vasp-list":{"id":"v5/asset/withdraw/vasp-list","title":"Get Exchange Entity List","description":"This endpoint is particularly used for kyc=KOR users. When withdraw funds, you need to fill entity id.","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw":{"id":"v5/asset/withdraw/withdraw","title":"Withdraw","description":"Withdraw assets from your Bybit account. You can make an off-chain transfer if the target wallet address is from Bybit. This means that no blockchain fee will be charged.","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw-record":{"id":"v5/asset/withdraw/withdraw-record","title":"Get Withdrawal Records","description":"Query withdrawal records.","sidebar":"v5SideBar"},"v5/backup/set-pledge-token":{"id":"v5/backup/set-pledge-token","title":"Set Pledge Token","description":"Set Pledge Token in cross margin"},"v5/broker/account-info":{"id":"v5/broker/account-info","title":"Get Account Info","description":"* Use exchange broker master account to query","sidebar":"v5SideBar"},"v5/broker/exchange-earning":{"id":"v5/broker/exchange-earning","title":"Get Earning","description":"* Use exchange broker master account to query","sidebar":"v5SideBar"},"v5/broker/reward/get-issue-voucher":{"id":"v5/broker/reward/get-issue-voucher","title":"Query Issued Voucher","description":"HTTP Request","sidebar":"v5SideBar"},"v5/broker/reward/issue-voucher":{"id":"v5/broker/reward/issue-voucher","title":"Issue Voucher","description":"HTTP Request","sidebar":"v5SideBar"},"v5/broker/reward/voucher":{"id":"v5/broker/reward/voucher","title":"Query Voucher Spec","description":"HTTP Request","sidebar":"v5SideBar"},"v5/broker/sub-deposit-record":{"id":"v5/broker/sub-deposit-record","title":"Get Sub Account Deposit Records","description":"Exchange broker can query subaccount\'s deposit records by main UID\'s API key without specifying uid.","sidebar":"v5SideBar"},"v5/copytrade":{"id":"v5/copytrade","title":"How To Start Copy Trading","description":"Become A Master Trader","sidebar":"v5SideBar"},"v5/crypto-loan/acct-borrow-collateral":{"id":"v5/crypto-loan/acct-borrow-collateral","title":"Get Account Borrow/Collateral Limit","description":"Query the account borrowable/collateral limit","sidebar":"v5SideBar"},"v5/crypto-loan/adjust-collateral":{"id":"v5/crypto-loan/adjust-collateral","title":"Adjust Collateral Amount","description":"You can increase or reduce collateral amount. When you reduce, please follow the max. allowed reduction amount.","sidebar":"v5SideBar"},"v5/crypto-loan/borrow":{"id":"v5/crypto-loan/borrow","title":"Borrow","description":"Permission: \\"Spot trade\\"","sidebar":"v5SideBar"},"v5/crypto-loan/collateral-coin":{"id":"v5/crypto-loan/collateral-coin","title":"Get Collateral Coins","description":"Do not need authentication","sidebar":"v5SideBar"},"v5/crypto-loan/comleted-loan-order":{"id":"v5/crypto-loan/comleted-loan-order","title":"Get Completed Loan Order History","description":"Query the completed loan orders","sidebar":"v5SideBar"},"v5/crypto-loan/loan-coin":{"id":"v5/crypto-loan/loan-coin","title":"Get Borrowable Coins","description":"Do not need authentication","sidebar":"v5SideBar"},"v5/crypto-loan/ltv-adjust-history":{"id":"v5/crypto-loan/ltv-adjust-history","title":"Get Loan LTV Adjustment History","description":"Query the transaction history of collateral amount adjustment","sidebar":"v5SideBar"},"v5/crypto-loan/reduce-max-collateral-amt":{"id":"v5/crypto-loan/reduce-max-collateral-amt","title":"Get Max. Allowed Reduction Collateral Amount","description":"Query the maximum allowed reduction collateral amount","sidebar":"v5SideBar"},"v5/crypto-loan/repay":{"id":"v5/crypto-loan/repay","title":"Repay","description":"You can repay partial loan. If there is interest occurred, interest will be repaid in priority","sidebar":"v5SideBar"},"v5/crypto-loan/repay-transaction":{"id":"v5/crypto-loan/repay-transaction","title":"Get Repayment Transaction History","description":"Query repaid transaction history","sidebar":"v5SideBar"},"v5/crypto-loan/unpaid-loan-order":{"id":"v5/crypto-loan/unpaid-loan-order","title":"Get Unpaid Loan Orders","description":"Query the ongoing loan orders, which are not fully repaid","sidebar":"v5SideBar"},"v5/demo":{"id":"v5/demo","title":"Demo Trading Service","description":"Introduction","sidebar":"v5SideBar"},"v5/enum":{"id":"v5/enum","title":"Enums Definitions","description":"locale","sidebar":"v5SideBar"},"v5/error":{"id":"v5/error","title":"Error Codes","description":"HTTP Code","sidebar":"v5SideBar"},"v5/guide":{"id":"v5/guide","title":"Integration Guidance","description":"To learn more about the V5 API, please read the Introduction.","sidebar":"v5SideBar"},"v5/intro":{"id":"v5/intro","title":"Introduction","description":"Overview","sidebar":"v5SideBar"},"v5/lt/leverage-token-info":{"id":"v5/lt/leverage-token-info","title":"Get Leverage Token Info","description":"Query leverage token information","sidebar":"v5SideBar"},"v5/lt/leverage-token-reference":{"id":"v5/lt/leverage-token-reference","title":"Get Leveraged Token Market","description":"Get leverage token market information","sidebar":"v5SideBar"},"v5/lt/order-record":{"id":"v5/lt/order-record","title":"Get Purchase/Redemption Records","description":"Get purchase or redeem history","sidebar":"v5SideBar"},"v5/lt/purchase":{"id":"v5/lt/purchase","title":"Purchase","description":"Purchase levearge token","sidebar":"v5SideBar"},"v5/lt/redeem":{"id":"v5/lt/redeem","title":"Redeem","description":"Redeem leverage token","sidebar":"v5SideBar"},"v5/market/delivery-price":{"id":"v5/market/delivery-price","title":"Get Delivery Price","description":"Get the delivery price.","sidebar":"v5SideBar"},"v5/market/history-fund-rate":{"id":"v5/market/history-fund-rate","title":"Get Funding Rate History","description":"Query for historical funding rates. Each symbol has a different funding interval. For example, if the interval is 8 hours and the current time is UTC 12, then it returns the last funding rate, which settled at UTC 8.","sidebar":"v5SideBar"},"v5/market/index-kline":{"id":"v5/market/index-kline","title":"Get Index Price Kline","description":"Query for historical index price klines. Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/instrument":{"id":"v5/market/instrument","title":"Get Instruments Info","description":"Query for the instrument specification of online trading pairs.","sidebar":"v5SideBar"},"v5/market/insurance":{"id":"v5/market/insurance","title":"Get Insurance","description":"Query for Bybit insurance pool data (BTC/USDT/USDC etc). The data is updated every 24 hours.","sidebar":"v5SideBar"},"v5/market/iv":{"id":"v5/market/iv","title":"Get Historical Volatility","description":"Query option historical volatility","sidebar":"v5SideBar"},"v5/market/kline":{"id":"v5/market/kline","title":"Get Kline","description":"Query for historical klines (also known as candles/candlesticks). Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/long-short-ratio":{"id":"v5/market/long-short-ratio","title":"Get Long Short Ratio","description":"HTTP Request","sidebar":"v5SideBar"},"v5/market/mark-kline":{"id":"v5/market/mark-kline","title":"Get Mark Price Kline","description":"Query for historical mark price klines. Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/open-interest":{"id":"v5/market/open-interest","title":"Get Open Interest","description":"Get the open interest of each symbol.","sidebar":"v5SideBar"},"v5/market/orderbook":{"id":"v5/market/orderbook","title":"Get Orderbook","description":"Query for orderbook depth data.","sidebar":"v5SideBar"},"v5/market/preimum-index-kline":{"id":"v5/market/preimum-index-kline","title":"Get Premium Index Price Kline","description":"Query for historical premium index klines. Charts are returned in groups based on the requested interval.","sidebar":"v5SideBar"},"v5/market/recent-trade":{"id":"v5/market/recent-trade","title":"Get Public Recent Trading History","description":"Query recent public trading data in Bybit.","sidebar":"v5SideBar"},"v5/market/risk-limit":{"id":"v5/market/risk-limit","title":"Get Risk Limit","description":"Query for the risk limit.","sidebar":"v5SideBar"},"v5/market/tickers":{"id":"v5/market/tickers","title":"Get Tickers","description":"Query for the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours.","sidebar":"v5SideBar"},"v5/market/time":{"id":"v5/market/time","title":"Get Bybit Server Time","description":"HTTP Request","sidebar":"v5SideBar"},"v5/order/amend-order":{"id":"v5/order/amend-order","title":"Amend Order","description":"You can only modify unfilled or partially filled orders.","sidebar":"v5SideBar"},"v5/order/batch-amend":{"id":"v5/order/batch-amend","title":"Batch Amend Order","description":"This endpoint allows you to amend more than one open order in a single request.","sidebar":"v5SideBar"},"v5/order/batch-cancel":{"id":"v5/order/batch-cancel","title":"Batch Cancel Order","description":"This endpoint allows you to cancel more than one open order in a single request.","sidebar":"v5SideBar"},"v5/order/batch-place":{"id":"v5/order/batch-place","title":"Batch Place Order","description":"This endpoint allows you to place more than one order in a single request.","sidebar":"v5SideBar"},"v5/order/cancel-all":{"id":"v5/order/cancel-all","title":"Cancel All Orders","description":"Cancel all open orders","sidebar":"v5SideBar"},"v5/order/cancel-order":{"id":"v5/order/cancel-order","title":"Cancel Order","description":"- You must specify orderId or orderLinkId to cancel the order.","sidebar":"v5SideBar"},"v5/order/create-order":{"id":"v5/order/create-order","title":"Place Order","description":"This endpoint supports to create the order for Spot, Margin trading, USDT perpetual, USDC perpetual, USDC futures, Inverse Futures and Options.","sidebar":"v5SideBar"},"v5/order/dcp":{"id":"v5/order/dcp","title":"Set Disconnect Cancel All","description":"What is Disconnection Protect (DCP)?","sidebar":"v5SideBar"},"v5/order/execution":{"id":"v5/order/execution","title":"Get Trade History","description":"Query users\' execution records, sorted by execTime in descending order. However, for Classic spot, they are sorted by execId in descending order.","sidebar":"v5SideBar"},"v5/order/open-order":{"id":"v5/order/open-order","title":"Get Open & Closed Orders","description":"Primarily query unfilled or partially filled orders in real-time, but also supports querying recent 500 closed status (Cancelled, Filled) orders. Please see the usage of request param openOnly.","sidebar":"v5SideBar"},"v5/order/order-list":{"id":"v5/order/order-list","title":"Get Order History","description":"Query order history. As order creation/cancellation is asynchronous, the data returned from this endpoint may delay. If you want to get","sidebar":"v5SideBar"},"v5/order/spot-borrow-quota":{"id":"v5/order/spot-borrow-quota","title":"Get Borrow Quota (Spot)","description":"Query the available balance for Spot trading and Margin trading","sidebar":"v5SideBar"},"v5/otc/bind-uid":{"id":"v5/otc/bind-uid","title":"Bind Or Unbind UID","description":"For the institutional loan product, you can bind new UIDs to the risk unit or unbind UID from the risk unit.","sidebar":"v5SideBar"},"v5/otc/loan-info":{"id":"v5/otc/loan-info","title":"Get Loan Orders","description":"Get loan orders information","sidebar":"v5SideBar"},"v5/otc/ltv-convert":{"id":"v5/otc/ltv-convert","title":"Get LTV","description":"Get your loan-to-value (LTV) ratio.","sidebar":"v5SideBar"},"v5/otc/margin-coin-convert-info":{"id":"v5/otc/margin-coin-convert-info","title":"Get Margin Coin Info","description":"* This endpoint can be queried without api key and secret, then it returns public margin data","sidebar":"v5SideBar"},"v5/otc/margin-product-info":{"id":"v5/otc/margin-product-info","title":"Get Product Info","description":"* This endpoint can be queried without api key and secret, then it returns public product data","sidebar":"v5SideBar"},"v5/otc/repay-info":{"id":"v5/otc/repay-info","title":"Get Repayment Orders","description":"Get a list of your loan repayment orders (orders which repaid the loan).","sidebar":"v5SideBar"},"v5/position/auto-add-margin":{"id":"v5/position/auto-add-margin","title":"Set Auto Add Margin","description":"Turn on/off auto-add-margin for isolated margin position","sidebar":"v5SideBar"},"v5/position/close-pnl":{"id":"v5/position/close-pnl","title":"Get Closed PnL","description":"Query user\'s closed profit and loss records","sidebar":"v5SideBar"},"v5/position/confirm-mmr":{"id":"v5/position/confirm-mmr","title":"Confirm New Risk Limit","description":"It is only applicable when the user is marked as only reducing positions (please see the isReduceOnly field in","sidebar":"v5SideBar"},"v5/position/cross-isolate":{"id":"v5/position/cross-isolate","title":"Switch Cross/Isolated Margin","description":"Select cross margin mode or isolated margin mode per symbol level","sidebar":"v5SideBar"},"v5/position/leverage":{"id":"v5/position/leverage","title":"Set Leverage","description":"According to the risk limit, leverage affects the maximum position value that can be opened,","sidebar":"v5SideBar"},"v5/position/manual-add-margin":{"id":"v5/position/manual-add-margin","title":"Add Or Reduce Margin","description":"Manually add or reduce margin for isolated margin position","sidebar":"v5SideBar"},"v5/position/move-position":{"id":"v5/position/move-position","title":"Move Position","description":"You can move positions between sub-master, master-sub, or sub-sub UIDs when necessary","sidebar":"v5SideBar"},"v5/position/move-position-history":{"id":"v5/position/move-position-history","title":"Get Move Position History","description":"You can query moved position data by master UID api key","sidebar":"v5SideBar"},"v5/position/position":{"id":"v5/position/position","title":"Get Position Info","description":"Query real-time position data, such as position size, cumulative realizedPNL.","sidebar":"v5SideBar"},"v5/position/position-mode":{"id":"v5/position/position-mode","title":"Switch Position Mode","description":"It supports to switch the position mode for USDT perpetual and Inverse futures. If you are in one-way Mode, you can only open one position on Buy or Sell side. If you are in hedge mode, you can open both Buy and Sell side positions simultaneously.","sidebar":"v5SideBar"},"v5/position/set-risk-limit":{"id":"v5/position/set-risk-limit","title":"Set Risk Limit","description":"Since bybit has launched auto risk limit on 12 March 2024, please click here to learn more, so it will not take effect even you set it successfully.","sidebar":"v5SideBar"},"v5/position/tpsl-mode":{"id":"v5/position/tpsl-mode","title":"Set TP/SL Mode","description":"_To some extent, this endpoint is depreciated because now tpsl is based on order level. This API was used for position level","sidebar":"v5SideBar"},"v5/position/trading-stop":{"id":"v5/position/trading-stop","title":"Set Trading Stop","description":"Set the take profit, stop loss or trailing stop for the position.","sidebar":"v5SideBar"},"v5/pre-upgrade/close-pnl":{"id":"v5/pre-upgrade/close-pnl","title":"Get Pre-upgrade Closed PnL","description":"Query user\'s closed profit and loss records from before you upgraded the account to a Unified account. The results are sorted by updatedTime in descending order.","sidebar":"v5SideBar"},"v5/pre-upgrade/delivery":{"id":"v5/pre-upgrade/delivery","title":"Get Pre-upgrade Delivery Record","description":"Query delivery records of Options before you upgraded the account to a Unified account, sorted by deliveryTime in descending order","sidebar":"v5SideBar"},"v5/pre-upgrade/execution":{"id":"v5/pre-upgrade/execution","title":"Get Pre-upgrade Trade History","description":"Get users\' execution records which occurred before you upgraded the account to a Unified account, sorted by execTime in descending order","sidebar":"v5SideBar"},"v5/pre-upgrade/order-list":{"id":"v5/pre-upgrade/order-list","title":"Get Pre-upgrade Order History","description":"After the account is upgraded to a Unified account, you can get the orders which occurred before the upgrade.","sidebar":"v5SideBar"},"v5/pre-upgrade/settlement":{"id":"v5/pre-upgrade/settlement","title":"Get Pre-upgrade USDC Session Settlement","description":"Query session settlement records of USDC perpetual before you upgrade the account to Unified account.","sidebar":"v5SideBar"},"v5/pre-upgrade/transaction-log":{"id":"v5/pre-upgrade/transaction-log","title":"Get Pre-upgrade Transaction Log","description":"Query transaction logs which occurred in the USDC Derivatives wallet before the account was upgraded to a Unified account.","sidebar":"v5SideBar"},"v5/rate-limit":{"id":"v5/rate-limit","title":"Rate Limit","description":"IP Rate Limit","sidebar":"v5SideBar"},"v5/smp":{"id":"v5/smp","title":"Self Match Prevention","description":"What is SMP?","sidebar":"v5SideBar"},"v5/spot-margin-normal/account-info":{"id":"v5/spot-margin-normal/account-info","title":"Get Loan Account Info","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/borrow":{"id":"v5/spot-margin-normal/borrow","title":"Borrow","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/borrow-order":{"id":"v5/spot-margin-normal/borrow-order","title":"Get Borrow Order Detail","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/borrowable-data":{"id":"v5/spot-margin-normal/borrowable-data","title":"Get Borrowable Coin Info","description":"Do not need authentication"},"v5/spot-margin-normal/interest-quota":{"id":"v5/spot-margin-normal/interest-quota","title":"Get Interest & Quota","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/margin-data":{"id":"v5/spot-margin-normal/margin-data","title":"Get Margin Coin Info","description":"Do not need authentication"},"v5/spot-margin-normal/repay":{"id":"v5/spot-margin-normal/repay","title":"Repay","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/repay-order":{"id":"v5/spot-margin-normal/repay-order","title":"Get Repayment Order Detail","description":"Covers: Margin trade (Classic Account)"},"v5/spot-margin-normal/switch-mode":{"id":"v5/spot-margin-normal/switch-mode","title":"Toggle Margin Trade","description":"Turn on / off spot margin trade"},"v5/spot-margin-normal/vip-margin":{"id":"v5/spot-margin-normal/vip-margin","title":"Get VIP Margin Data","description":"This margin data is for Classic account in particular."},"v5/spot-margin-uta/historical-interest":{"id":"v5/spot-margin-uta/historical-interest","title":"Get Historical Interest Rate","description":"You can query up to six months borrowing interest rate of Margin trading.","sidebar":"v5SideBar"},"v5/spot-margin-uta/set-leverage":{"id":"v5/spot-margin-uta/set-leverage","title":"Set Leverage","description":"Set the user\'s maximum leverage in spot cross margin","sidebar":"v5SideBar"},"v5/spot-margin-uta/status":{"id":"v5/spot-margin-uta/status","title":"Get Status And Leverage","description":"Query the Spot margin status and leverage of Unified account","sidebar":"v5SideBar"},"v5/spot-margin-uta/switch-mode":{"id":"v5/spot-margin-uta/switch-mode","title":"Toggle Margin Trade","description":"Turn on / off spot margin trade","sidebar":"v5SideBar"},"v5/spot-margin-uta/vip-margin":{"id":"v5/spot-margin-uta/vip-margin","title":"Get VIP Margin Data","description":"This margin data is for Unified account in particular.","sidebar":"v5SideBar"},"v5/user/affiliate-info":{"id":"v5/user/affiliate-info","title":"Get Affiliate User Info","description":"To use this endpoint, you should have an affiliate account and only tick \\"affiliate\\" permission while creating the API key.","sidebar":"v5SideBar"},"v5/user/apikey-info":{"id":"v5/user/apikey-info","title":"Get API Key Information","description":"Get the information of the api key. Use the api key pending to be checked to call the endpoint. Both master and sub user\'s api key are applicable.","sidebar":"v5SideBar"},"v5/user/create-subuid":{"id":"v5/user/create-subuid","title":"Create Sub UID","description":"Create a new sub user id. Use master account\'s api key.","sidebar":"v5SideBar"},"v5/user/create-subuid-apikey":{"id":"v5/user/create-subuid-apikey","title":"Create Sub UID API Key","description":"To create new API key for those newly created sub UID. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/froze-subuid":{"id":"v5/user/froze-subuid","title":"Freeze Sub UID","description":"Freeze Sub UID. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/list-sub-apikeys":{"id":"v5/user/list-sub-apikeys","title":"Get Sub Account All API Keys","description":"Query all api keys information of a sub UID.","sidebar":"v5SideBar"},"v5/user/modify-master-apikey":{"id":"v5/user/modify-master-apikey","title":"Modify Master API Key","description":"Modify the settings of master api key. Use the api key pending to be modified to call the endpoint. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/modify-sub-apikey":{"id":"v5/user/modify-sub-apikey","title":"Modify Sub API Key","description":"Modify the settings of sub api key. Use the sub account api key pending to be modified to call the endpoint or use master","sidebar":"v5SideBar"},"v5/user/page-subuid":{"id":"v5/user/page-subuid","title":"Get Sub UID List (Unlimited)","description":"This API is applicable to the client who has over 10k sub accounts. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/rm-master-apikey":{"id":"v5/user/rm-master-apikey","title":"Delete Master API Key","description":"Delete the api key of master account. Use the api key pending to be delete to call the endpoint. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/rm-sub-apikey":{"id":"v5/user/rm-sub-apikey","title":"Delete Sub API Key","description":"Delete the api key of sub account. Use the sub api key pending to be delete to call the endpoint or use the master api key","sidebar":"v5SideBar"},"v5/user/rm-subuid":{"id":"v5/user/rm-subuid","title":"Delete Sub UID","description":"Delete a sub UID. Before deleting the UID, please make sure there is no asset.","sidebar":"v5SideBar"},"v5/user/subuid-list":{"id":"v5/user/subuid-list","title":"Get Sub UID List (Limited)","description":"Get at most 10k sub UID of master account. Use master user\'s api key only.","sidebar":"v5SideBar"},"v5/user/wallet-type":{"id":"v5/user/wallet-type","title":"Get UID Wallet Type","description":"Get available wallet types for the master account or sub account","sidebar":"v5SideBar"},"v5/websocket/private/dcp":{"id":"v5/websocket/private/dcp","title":"Dcp","description":"Subscribe to the dcp stream to trigger DCP function.","sidebar":"v5SideBar"},"v5/websocket/private/execution":{"id":"v5/websocket/private/execution","title":"Execution","description":"Subscribe to the execution stream to see your executions in real-time.","sidebar":"v5SideBar"},"v5/websocket/private/fast-execution":{"id":"v5/websocket/private/fast-execution","title":"Fast Execution","description":"Fast execution stream significantly reduces data latency compared original \\"execution\\" stream. However, it pushes limited","sidebar":"v5SideBar"},"v5/websocket/private/greek":{"id":"v5/websocket/private/greek","title":"Greek","description":"Subscribe to the greeks stream to see changes to your greeks data in real-time. option only.","sidebar":"v5SideBar"},"v5/websocket/private/order":{"id":"v5/websocket/private/order","title":"Order","description":"Subscribe to the order stream to see changes to your orders in real-time.","sidebar":"v5SideBar"},"v5/websocket/private/position":{"id":"v5/websocket/private/position","title":"Position","description":"Subscribe to the position stream to see changes to your position data in real-time.","sidebar":"v5SideBar"},"v5/websocket/private/wallet":{"id":"v5/websocket/private/wallet","title":"Wallet","description":"Subscribe to the wallet stream to see changes to your wallet in real-time.","sidebar":"v5SideBar"},"v5/websocket/public/etp-kline":{"id":"v5/websocket/public/etp-kline","title":"LT Kline","description":"Subscribe to the leveraged token kline stream.","sidebar":"v5SideBar"},"v5/websocket/public/etp-nav":{"id":"v5/websocket/public/etp-nav","title":"LT Nav","description":"Subscribe to the leveraged token nav stream.","sidebar":"v5SideBar"},"v5/websocket/public/etp-ticker":{"id":"v5/websocket/public/etp-ticker","title":"LT Ticker","description":"Subscribe to the leveraged token ticker stream.","sidebar":"v5SideBar"},"v5/websocket/public/kline":{"id":"v5/websocket/public/kline","title":"Kline","description":"Subscribe to the klines stream.","sidebar":"v5SideBar"},"v5/websocket/public/liquidation":{"id":"v5/websocket/public/liquidation","title":"Liquidation","description":"Subscribe to the liquidation stream. Pushes at most one order per second per symbol. As such, this feed does not push all liquidations that occur on Bybit.","sidebar":"v5SideBar"},"v5/websocket/public/orderbook":{"id":"v5/websocket/public/orderbook","title":"Orderbook","description":"Subscribe to the orderbook stream. Supports different depths.","sidebar":"v5SideBar"},"v5/websocket/public/ticker":{"id":"v5/websocket/public/ticker","title":"Ticker","description":"Subscribe to the ticker stream.","sidebar":"v5SideBar"},"v5/websocket/public/trade":{"id":"v5/websocket/public/trade","title":"Trade","description":"Subscribe to the recent trades stream.","sidebar":"v5SideBar"},"v5/websocket/trade/guideline":{"id":"v5/websocket/trade/guideline","title":"Websocket Trade Guideline","description":"URL","sidebar":"v5SideBar"},"v5/websocket/wss-authentication":{"id":"v5/websocket/wss-authentication","title":"Connect","description":"WebSocket public stream:","sidebar":"v5SideBar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.06495d3f.js b/assets/js/runtime~main.81110349.js similarity index 99% rename from assets/js/runtime~main.06495d3f.js rename to assets/js/runtime~main.81110349.js index badb451769..a217a0a26a 100644 --- a/assets/js/runtime~main.06495d3f.js +++ b/assets/js/runtime~main.81110349.js @@ -1 +1 @@ -(()=>{"use strict";var e,d,a,c,b,f={},r={};function t(e){var d=r[e];if(void 0!==d)return d.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return f[e].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=f,e=[],t.O=(d,a,c,b)=>{if(!a){var f=1/0;for(i=0;i=b)&&Object.keys(t.O).every((e=>t.O[e](a[o])))?a.splice(o--,1):(r=!1,b0&&e[i-1][2]>b;i--)e[i]=e[i-1];e[i]=[a,c,b]},t.n=e=>{var d=e&&e.__esModule?()=>e.default:()=>e;return t.d(d,{a:d}),d},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var b=Object.create(null);t.r(b);var f={};d=d||[null,a({}),a([]),a(a)];for(var r=2&c&&e;"object"==typeof r&&!~d.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach((d=>f[d]=()=>e[d]));return f.default=()=>e,t.d(b,f),b},t.d=(e,d)=>{for(var a in d)t.o(d,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:d[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((d,a)=>(t.f[a](e,d),d)),[])),t.u=e=>"assets/js/"+({42:"2518c83b",53:"935f2afb",67:"246367e0",73:"359a0a8d",114:"8740ec05",235:"a7d19085",271:"577a5299",293:"fa570740",332:"39fee459",367:"05a3c259",520:"fb1a77b4",536:"17c91901",561:"bc670d5c",567:"df36d98d",601:"e5d84bc0",633:"b50c9021",683:"0abae2e0",701:"1ce0a301",771:"4445f991",783:"84002310",797:"80238aff",838:"22bdf908",916:"e4459066",926:"05bb3e6b",971:"7e133bf4",1003:"d0d62bb5",1005:"c127b609",1013:"e8acd80e",1053:"7205acf7",1094:"8675103a",1106:"dd813bf5",1177:"8ce69432",1304:"8d5fe6f9",1389:"a005ddbc",1396:"e3e28d8f",1404:"3e301362",1451:"563d7403",1493:"79022373",1600:"397d4a7e",1714:"6c068fb7",1723:"0328b0c9",1739:"510acf22",1759:"ec202e26",1802:"96368f4f",1864:"7c3dacb8",1871:"ce32ce4d",1893:"4c5e977b",1910:"2a3724f5",1943:"62029e95",1969:"b9f011e4",1981:"c8450cf2",2050:"f54e89d1",2062:"988ba51e",2069:"9a6be05d",2146:"53d93800",2197:"eb357560",2214:"bdd5207c",2311:"f965b663",2333:"650716b7",2338:"5b157bd1",2353:"35d50d77",2375:"1c94925b",2379:"9dba6800",2452:"7dde15d7",2457:"30e5c1aa",2474:"4507e508",2486:"de127d6b",2605:"4797ab58",2717:"0b0bc04d",2755:"7e04e77d",2809:"540cb455",2860:"3d49fc0e",2885:"acdbee8e",2903:"84ee34f2",2921:"12f49e0c",2933:"b6036b82",2957:"d5a10f7c",2982:"f041af6f",3006:"5be4f4f7",3022:"e0a5c1d2",3027:"bc8bd5d6",3085:"1f391b9e",3166:"8ed64af4",3224:"1bd0c971",3240:"0ab53148",3258:"b5961036",3299:"7e3ea763",3300:"655c39d2",3312:"8cd2105d",3375:"94fe2afe",3387:"007a6c32",3389:"9041aea1",3398:"9f602629",3404:"afdda5b6",3408:"4694df8d",3418:"49dbb45e",3425:"602542a3",3497:"b8541bfd",3501:"7795e3fe",3509:"786f71e5",3522:"abf6ee25",3543:"510addcb",3602:"696ed493",3616:"0d16b667",3634:"e0bec19d",3705:"b3a5153e",3739:"5e33bc00",3750:"c77ce8fa",3771:"8c02dfd8",3827:"ee9a33f4",3905:"d288e937",3959:"2d0f081e",3994:"b2ae77a0",4024:"99f24057",4029:"e286ec4c",4030:"c5d3bb95",4052:"1dc390ba",4053:"24e3585b",4069:"41ce3377",4089:"d9ffe17e",4190:"84cf2087",4194:"4b3e38af",4195:"c4f5d8e4",4209:"278665dc",4243:"0744e06b",4268:"7cf3a727",4280:"95a35da8",4288:"af1ac92b",4298:"48db5030",4319:"d0816b53",4428:"53d82fc0",4492:"702fba60",4506:"fd03cc72",4531:"b25d4024",4549:"788d9fe0",4582:"fed448c0",4637:"b65b34ba",4681:"1be75057",4694:"98dc0d0e",4730:"f4b2f868",4758:"0a13a0e4",4777:"269ec971",4796:"a41d5bc2",4804:"440f78e7",4811:"cf33a5bc",4851:"a592f1e4",4869:"1360b8cf",4907:"29f28a73",4925:"7ee339c8",4971:"0ed89c29",5063:"cf69f832",5114:"ee7f03d8",5159:"9d6ed550",5167:"da88d543",5229:"2fcfad90",5361:"4d2ad36f",5365:"b82d00b2",5368:"cc468388",5370:"af4a2ad4",5381:"cfc9c16e",5382:"632d2515",5416:"cc68b255",5480:"006095b2",5662:"caaad1b0",5669:"5220550c",5690:"f4bc196f",5701:"d02347dc",5708:"41eb0037",5733:"735936a9",5760:"31e78686",5787:"c4ae09d4",5818:"ae255275",5832:"b745f339",5836:"bf0b75c4",5872:"587e3d47",5886:"31d96af4",5897:"6b3775fc",5943:"bc53881b",5953:"b700f6c8",5957:"e4627c87",5968:"156751cf",5969:"07ca0209",5975:"0de52270",6025:"c3aed80f",6072:"26183636",6106:"c2ebbb3e",6225:"d02b6e20",6235:"7fc2b4c9",6247:"6ab4df05",6276:"8aadacf1",6282:"cd8b4f9a",6286:"13d7a585",6361:"3aecebcc",6370:"36f93d19",6428:"418c923e",6434:"40878283",6467:"302d24dc",6473:"a83fc124",6549:"7a65c859",6553:"18a5e8d6",6554:"9d979a6d",6597:"44177285",6668:"b9fa1d17",6675:"036e14f3",6739:"2dd5aaa1",6849:"548bc066",6874:"8b221193",6886:"4b7a6889",6904:"637cfff4",6912:"197a4930",6963:"1b80e345",6976:"70b01d77",6979:"d005934a",7044:"89e5bdec",7070:"c78b1140",7074:"6268d0ca",7133:"92e99bf6",7137:"47f09a6b",7184:"11b4dd89",7188:"5036ec9d",7212:"e6cbd2ed",7213:"f93f119a",7238:"e298e99e",7267:"c9713a6d",7287:"bde9fb45",7328:"6daf901a",7365:"18f77871",7383:"225c9eb6",7414:"393be207",7421:"c8a855a5",7482:"4a3e680b",7486:"dcc6b54d",7487:"a9bf2227",7500:"d63a00cf",7593:"50219e10",7615:"84ebbbbf",7655:"40230f21",7710:"c11bd48d",7719:"51c3befa",7758:"48df5aa4",7813:"8894256f",7828:"f72af8b9",7879:"e9d56634",7920:"1a4e3797",7937:"ea313555",7944:"6bc64de5",7950:"8825024b",7979:"c5059afe",7999:"3af651bf",8016:"ffb2e417",8023:"2b20c80a",8099:"ad577885",8104:"7ab943be",8135:"89179ad6",8179:"136658e4",8207:"7622c6de",8235:"3bdeaa89",8270:"5393ce94",8347:"8b988d57",8349:"3d3a07f6",8460:"dd3ced3a",8492:"9931c5c6",8591:"a61cb094",8608:"0cadbdb9",8630:"68e9a632",8692:"67044a7a",8704:"8338c5ef",8776:"f46c4408",8831:"3c8da607",8848:"99d44459",8890:"d5603669",8948:"65e0cd55",8954:"b0bdb7f3",8960:"4ade5613",8966:"16ef1cd9",8970:"eaafcd74",8972:"a0c0c9f6",9010:"8c2621f5",9014:"e77a5489",9043:"9ad8637e",9047:"856bceac",9054:"722ec584",9061:"4fd81f4e",9065:"65246720",9082:"6a9a7317",9083:"db4f0c5e",9131:"3b0223df",9209:"198290f4",9376:"6249c7de",9389:"2a8d8e88",9438:"b5511831",9475:"1db45fbc",9480:"7c767e9e",9486:"e72cf26a",9514:"1be78505",9538:"4c950052",9580:"75ecb4f9",9607:"25f376d4",9624:"3042b185",9626:"fd867f7c",9681:"a1fd7cfe",9717:"a5962d55",9728:"aa5bd2a7",9743:"6623a699",9753:"7e31db45",9766:"5bf23af0",9817:"14eb3368",9822:"595b2ce9",9833:"26987f39",9849:"fdf22a50",9856:"e5c88a3e",9865:"e8ee0390",9889:"f56b8973",9905:"e23eefc0",9910:"16142a34"}[e]||e)+"."+{42:"5b7f1fd6",53:"10e441fa",67:"8c2d187a",73:"813e7d97",114:"ad8c6266",235:"bc2d5b8b",271:"e632d71b",293:"25cc3872",332:"d97b5fc9",367:"07088b4a",520:"1e6c946b",536:"b923c78e",561:"6e1bbdf3",567:"9a984abb",601:"c7f9933d",633:"c5893749",683:"597360bd",701:"c5a3e9eb",771:"feb9101e",783:"184afb1c",797:"7529d5b2",838:"1a05adb4",916:"62aea897",926:"53817a31",971:"161cddbf",1003:"b59ff330",1005:"754f69ab",1013:"56fd3b2b",1053:"8696ec97",1094:"2d82eabd",1106:"36197eef",1177:"c0285a17",1304:"22a11e37",1389:"fd8a50b4",1396:"7b605dab",1404:"504e237d",1451:"27223f53",1493:"d3eec127",1600:"a14c789e",1714:"ccce9d34",1723:"4d9c2a4a",1739:"3d437425",1759:"7012cb15",1802:"751ec081",1814:"827f84be",1864:"efb6ae86",1871:"0af5e3da",1893:"4a98b5fe",1910:"693fc344",1943:"8a80dedb",1969:"ffec10a8",1981:"b7d1bea2",2050:"823155de",2062:"859419b2",2069:"47046534",2146:"1bc57e1a",2197:"40387d90",2214:"0059e515",2311:"956fde10",2333:"58304cea",2338:"10f411d2",2353:"b5d8bb5a",2375:"2c98d1be",2379:"6c3cebda",2452:"e80d1c41",2457:"f2e7ed6b",2474:"f656a6dd",2486:"fd9bc555",2605:"cd58d91e",2717:"64417181",2755:"2a86fc08",2761:"8e83ef1a",2809:"873a3cb3",2860:"388b174c",2885:"41167b24",2903:"4963b7fb",2921:"dc949d5e",2933:"d848d5d3",2957:"36a427fe",2982:"ac0ffae7",3006:"a2d19bfc",3022:"f4998f1d",3027:"9dfa2cdf",3085:"6a026f2c",3166:"f4df26ac",3224:"2fd9720c",3240:"74d67f49",3258:"6a57572f",3299:"7d0d6113",3300:"5190d89e",3312:"7f1acfe9",3375:"e61cd0e5",3387:"c539f2ec",3389:"85dd694e",3398:"8928b603",3404:"ac60b0bb",3408:"38a2aa2b",3418:"9a9faf05",3425:"11a834a2",3497:"65464db3",3501:"f33caf4d",3509:"acafee0b",3522:"cd5009f7",3543:"832ed532",3602:"fbc995ff",3616:"c4362a08",3634:"844e6d1c",3705:"a8fc058b",3739:"4a37417b",3750:"9bff8498",3771:"6aca7657",3827:"86e615fc",3905:"bab3d6eb",3959:"184b6fde",3994:"4a829ef3",4024:"6c1ecbee",4029:"f6ec998a",4030:"741708a2",4052:"6524cb6a",4053:"e8b6a91c",4069:"fb98b43f",4089:"c70dc3ed",4190:"42390dd8",4194:"f0a9049d",4195:"80802ec2",4209:"83b67bec",4243:"b2f9ea77",4268:"c3237ac6",4280:"0c96a09f",4288:"368da1be",4298:"446f9844",4319:"075b555c",4428:"46b33db6",4492:"4a0ee0ae",4506:"60cb8342",4531:"d6ff8d9c",4549:"679fd1ce",4582:"fbdc13d2",4637:"85eb2003",4681:"99c0e58b",4694:"b5334a0e",4730:"350fcf15",4758:"e7a85e6c",4777:"afac9729",4796:"fe120798",4804:"9e0c05dc",4811:"295cfb84",4851:"bb39a720",4869:"c21a8a00",4907:"b3eb14b1",4925:"3def856b",4971:"bf2901c0",4972:"c1e0c51c",5063:"75ee001d",5114:"366d56f6",5159:"2218c8e5",5167:"a99bae34",5229:"cd2430db",5361:"e3695854",5365:"0164c216",5368:"07cbf622",5370:"26cc3084",5381:"aeca6fe8",5382:"0e0b34da",5416:"86bfb9c4",5480:"f8b27f18",5662:"b1d5e9ad",5669:"be2ff975",5690:"7f47a111",5701:"8b190886",5708:"ab02ff7f",5733:"432c43f4",5760:"2a3dc357",5787:"2b19c39b",5818:"ae4dd252",5832:"e477d834",5836:"77e39566",5872:"aaf95284",5886:"d9475a2e",5897:"36870df6",5943:"4d3edecb",5953:"b266fbf2",5957:"f4095493",5968:"252d316b",5969:"101ec44b",5975:"3250fdff",6025:"7e1cc508",6072:"0aae5f71",6106:"49dc478f",6225:"7eafbac0",6235:"4e6a57ca",6247:"49931daf",6276:"23ba3822",6282:"493493c1",6286:"d882b23b",6338:"a4b54b32",6361:"e5bf13d8",6370:"dd7f179c",6428:"7ee026ff",6434:"8b3543b1",6467:"0eda0528",6473:"73106d28",6549:"52d02b41",6553:"ba57e0ce",6554:"2bd509ef",6597:"ff241663",6668:"c8a2de69",6675:"a9f56922",6739:"587c1c8a",6780:"72080071",6849:"a8b9cf93",6874:"5a9125b3",6886:"e152c44f",6904:"2192ea36",6912:"95592292",6945:"669d5d2e",6963:"8aab214a",6976:"f13977f1",6979:"509fcf73",7044:"e52f236e",7070:"19c6c47c",7074:"271b5a20",7133:"f5b41a1d",7137:"1ceff154",7184:"a41a7d3d",7188:"42109774",7212:"b1d03f7d",7213:"e7617507",7238:"14606b56",7267:"e5c093aa",7287:"b6f9f8c4",7328:"59a20e2a",7365:"9b1a913e",7383:"e657b235",7414:"e650351e",7421:"1016a56a",7482:"5212d288",7486:"2b00e8c9",7487:"7933fba2",7500:"c861f476",7593:"0d86de1b",7615:"23ccdc8b",7655:"d93f5e37",7710:"1ea37644",7719:"30109b7e",7758:"5b342a40",7813:"56a8cdb8",7828:"eff4cfcc",7879:"c22d4ba0",7920:"a0fe2f07",7937:"9b548842",7944:"a45f13b6",7950:"12aded11",7979:"4e8f1ff7",7999:"8c6bde5a",8016:"04d7f677",8023:"cc9cb86c",8099:"1ace9939",8104:"0fa104ac",8135:"5ec25a46",8179:"d929c0f4",8207:"d5ed12e6",8235:"7a99469b",8270:"2f3f4af0",8347:"b4d9ec33",8349:"460708e3",8460:"ef740498",8492:"68243b19",8591:"ed12389a",8608:"bfca247d",8630:"f81eea0c",8692:"fbf4cfec",8704:"39a81257",8724:"b1c38f59",8776:"5d21f0e7",8831:"7df025eb",8848:"3ec878d3",8890:"4fb01fd3",8894:"9d414334",8948:"15f9b0ed",8954:"ce2a46bc",8960:"822e750c",8966:"033e5acf",8970:"9888a6f3",8972:"af106b6a",9010:"8066f661",9014:"ce328fd1",9043:"7133d7c1",9047:"e5f4a7b4",9054:"b027e96e",9061:"61f2b3f3",9065:"2238493a",9082:"75cf1abc",9083:"a57d0194",9131:"f90ff869",9209:"2e7a34a1",9376:"bf96ecc6",9389:"69ea5d40",9438:"6e12f2b0",9475:"5d3d716b",9480:"16eb8597",9486:"d7d227d7",9514:"bc66cda9",9538:"1ada3e11",9580:"992e1868",9607:"f49640bf",9624:"ace35f3d",9626:"93a45ecc",9681:"42861c3f",9717:"b5d41938",9728:"abb280e4",9743:"29385469",9753:"4cf85695",9766:"f4153819",9799:"51815cbe",9817:"f9d79ca6",9822:"bb329d95",9833:"e3181006",9849:"d0beeb5f",9856:"5d434616",9865:"e6214d15",9889:"50e9dbcb",9905:"bfc0ac80",9910:"e41a17e0"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,d)=>Object.prototype.hasOwnProperty.call(e,d),c={},b="docusaurus-docs:",t.l=(e,d,a,f)=>{if(c[e])c[e].push(d);else{var r,o;if(void 0!==a)for(var n=document.getElementsByTagName("script"),i=0;i{r.onerror=r.onload=null,clearTimeout(l);var b=c[e];if(delete c[e],r.parentNode&&r.parentNode.removeChild(r),b&&b.forEach((e=>e(a))),d)return d(a)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),o&&document.head.appendChild(r)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.p="/docs/",t.gca=function(e){return e={26183636:"6072",40878283:"6434",44177285:"6597",65246720:"9065",79022373:"1493",84002310:"783","2518c83b":"42","935f2afb":"53","246367e0":"67","359a0a8d":"73","8740ec05":"114",a7d19085:"235","577a5299":"271",fa570740:"293","39fee459":"332","05a3c259":"367",fb1a77b4:"520","17c91901":"536",bc670d5c:"561",df36d98d:"567",e5d84bc0:"601",b50c9021:"633","0abae2e0":"683","1ce0a301":"701","4445f991":"771","80238aff":"797","22bdf908":"838",e4459066:"916","05bb3e6b":"926","7e133bf4":"971",d0d62bb5:"1003",c127b609:"1005",e8acd80e:"1013","7205acf7":"1053","8675103a":"1094",dd813bf5:"1106","8ce69432":"1177","8d5fe6f9":"1304",a005ddbc:"1389",e3e28d8f:"1396","3e301362":"1404","563d7403":"1451","397d4a7e":"1600","6c068fb7":"1714","0328b0c9":"1723","510acf22":"1739",ec202e26:"1759","96368f4f":"1802","7c3dacb8":"1864",ce32ce4d:"1871","4c5e977b":"1893","2a3724f5":"1910","62029e95":"1943",b9f011e4:"1969",c8450cf2:"1981",f54e89d1:"2050","988ba51e":"2062","9a6be05d":"2069","53d93800":"2146",eb357560:"2197",bdd5207c:"2214",f965b663:"2311","650716b7":"2333","5b157bd1":"2338","35d50d77":"2353","1c94925b":"2375","9dba6800":"2379","7dde15d7":"2452","30e5c1aa":"2457","4507e508":"2474",de127d6b:"2486","4797ab58":"2605","0b0bc04d":"2717","7e04e77d":"2755","540cb455":"2809","3d49fc0e":"2860",acdbee8e:"2885","84ee34f2":"2903","12f49e0c":"2921",b6036b82:"2933",d5a10f7c:"2957",f041af6f:"2982","5be4f4f7":"3006",e0a5c1d2:"3022",bc8bd5d6:"3027","1f391b9e":"3085","8ed64af4":"3166","1bd0c971":"3224","0ab53148":"3240",b5961036:"3258","7e3ea763":"3299","655c39d2":"3300","8cd2105d":"3312","94fe2afe":"3375","007a6c32":"3387","9041aea1":"3389","9f602629":"3398",afdda5b6:"3404","4694df8d":"3408","49dbb45e":"3418","602542a3":"3425",b8541bfd:"3497","7795e3fe":"3501","786f71e5":"3509",abf6ee25:"3522","510addcb":"3543","696ed493":"3602","0d16b667":"3616",e0bec19d:"3634",b3a5153e:"3705","5e33bc00":"3739",c77ce8fa:"3750","8c02dfd8":"3771",ee9a33f4:"3827",d288e937:"3905","2d0f081e":"3959",b2ae77a0:"3994","99f24057":"4024",e286ec4c:"4029",c5d3bb95:"4030","1dc390ba":"4052","24e3585b":"4053","41ce3377":"4069",d9ffe17e:"4089","84cf2087":"4190","4b3e38af":"4194",c4f5d8e4:"4195","278665dc":"4209","0744e06b":"4243","7cf3a727":"4268","95a35da8":"4280",af1ac92b:"4288","48db5030":"4298",d0816b53:"4319","53d82fc0":"4428","702fba60":"4492",fd03cc72:"4506",b25d4024:"4531","788d9fe0":"4549",fed448c0:"4582",b65b34ba:"4637","1be75057":"4681","98dc0d0e":"4694",f4b2f868:"4730","0a13a0e4":"4758","269ec971":"4777",a41d5bc2:"4796","440f78e7":"4804",cf33a5bc:"4811",a592f1e4:"4851","1360b8cf":"4869","29f28a73":"4907","7ee339c8":"4925","0ed89c29":"4971",cf69f832:"5063",ee7f03d8:"5114","9d6ed550":"5159",da88d543:"5167","2fcfad90":"5229","4d2ad36f":"5361",b82d00b2:"5365",cc468388:"5368",af4a2ad4:"5370",cfc9c16e:"5381","632d2515":"5382",cc68b255:"5416","006095b2":"5480",caaad1b0:"5662","5220550c":"5669",f4bc196f:"5690",d02347dc:"5701","41eb0037":"5708","735936a9":"5733","31e78686":"5760",c4ae09d4:"5787",ae255275:"5818",b745f339:"5832",bf0b75c4:"5836","587e3d47":"5872","31d96af4":"5886","6b3775fc":"5897",bc53881b:"5943",b700f6c8:"5953",e4627c87:"5957","156751cf":"5968","07ca0209":"5969","0de52270":"5975",c3aed80f:"6025",c2ebbb3e:"6106",d02b6e20:"6225","7fc2b4c9":"6235","6ab4df05":"6247","8aadacf1":"6276",cd8b4f9a:"6282","13d7a585":"6286","3aecebcc":"6361","36f93d19":"6370","418c923e":"6428","302d24dc":"6467",a83fc124:"6473","7a65c859":"6549","18a5e8d6":"6553","9d979a6d":"6554",b9fa1d17:"6668","036e14f3":"6675","2dd5aaa1":"6739","548bc066":"6849","8b221193":"6874","4b7a6889":"6886","637cfff4":"6904","197a4930":"6912","1b80e345":"6963","70b01d77":"6976",d005934a:"6979","89e5bdec":"7044",c78b1140:"7070","6268d0ca":"7074","92e99bf6":"7133","47f09a6b":"7137","11b4dd89":"7184","5036ec9d":"7188",e6cbd2ed:"7212",f93f119a:"7213",e298e99e:"7238",c9713a6d:"7267",bde9fb45:"7287","6daf901a":"7328","18f77871":"7365","225c9eb6":"7383","393be207":"7414",c8a855a5:"7421","4a3e680b":"7482",dcc6b54d:"7486",a9bf2227:"7487",d63a00cf:"7500","50219e10":"7593","84ebbbbf":"7615","40230f21":"7655",c11bd48d:"7710","51c3befa":"7719","48df5aa4":"7758","8894256f":"7813",f72af8b9:"7828",e9d56634:"7879","1a4e3797":"7920",ea313555:"7937","6bc64de5":"7944","8825024b":"7950",c5059afe:"7979","3af651bf":"7999",ffb2e417:"8016","2b20c80a":"8023",ad577885:"8099","7ab943be":"8104","89179ad6":"8135","136658e4":"8179","7622c6de":"8207","3bdeaa89":"8235","5393ce94":"8270","8b988d57":"8347","3d3a07f6":"8349",dd3ced3a:"8460","9931c5c6":"8492",a61cb094:"8591","0cadbdb9":"8608","68e9a632":"8630","67044a7a":"8692","8338c5ef":"8704",f46c4408:"8776","3c8da607":"8831","99d44459":"8848",d5603669:"8890","65e0cd55":"8948",b0bdb7f3:"8954","4ade5613":"8960","16ef1cd9":"8966",eaafcd74:"8970",a0c0c9f6:"8972","8c2621f5":"9010",e77a5489:"9014","9ad8637e":"9043","856bceac":"9047","722ec584":"9054","4fd81f4e":"9061","6a9a7317":"9082",db4f0c5e:"9083","3b0223df":"9131","198290f4":"9209","6249c7de":"9376","2a8d8e88":"9389",b5511831:"9438","1db45fbc":"9475","7c767e9e":"9480",e72cf26a:"9486","1be78505":"9514","4c950052":"9538","75ecb4f9":"9580","25f376d4":"9607","3042b185":"9624",fd867f7c:"9626",a1fd7cfe:"9681",a5962d55:"9717",aa5bd2a7:"9728","6623a699":"9743","7e31db45":"9753","5bf23af0":"9766","14eb3368":"9817","595b2ce9":"9822","26987f39":"9833",fdf22a50:"9849",e5c88a3e:"9856",e8ee0390:"9865",f56b8973:"9889",e23eefc0:"9905","16142a34":"9910"}[e]||e,t.p+t.u(e)},(()=>{var e={1303:0,532:0};t.f.j=(d,a)=>{var c=t.o(e,d)?e[d]:void 0;if(0!==c)if(c)a.push(c[2]);else if(/^(1303|532)$/.test(d))e[d]=0;else{var b=new Promise(((a,b)=>c=e[d]=[a,b]));a.push(c[2]=b);var f=t.p+t.u(d),r=new Error;t.l(f,(a=>{if(t.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var b=a&&("load"===a.type?"missing":a.type),f=a&&a.target&&a.target.src;r.message="Loading chunk "+d+" failed.\n("+b+": "+f+")",r.name="ChunkLoadError",r.type=b,r.request=f,c[1](r)}}),"chunk-"+d,d)}},t.O.j=d=>0===e[d];var d=(d,a)=>{var c,b,f=a[0],r=a[1],o=a[2],n=0;if(f.some((d=>0!==e[d]))){for(c in r)t.o(r,c)&&(t.m[c]=r[c]);if(o)var i=o(t)}for(d&&d(a);n{"use strict";var e,d,a,c,b,f={},r={};function t(e){var d=r[e];if(void 0!==d)return d.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return f[e].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=f,e=[],t.O=(d,a,c,b)=>{if(!a){var f=1/0;for(i=0;i=b)&&Object.keys(t.O).every((e=>t.O[e](a[o])))?a.splice(o--,1):(r=!1,b0&&e[i-1][2]>b;i--)e[i]=e[i-1];e[i]=[a,c,b]},t.n=e=>{var d=e&&e.__esModule?()=>e.default:()=>e;return t.d(d,{a:d}),d},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var b=Object.create(null);t.r(b);var f={};d=d||[null,a({}),a([]),a(a)];for(var r=2&c&&e;"object"==typeof r&&!~d.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach((d=>f[d]=()=>e[d]));return f.default=()=>e,t.d(b,f),b},t.d=(e,d)=>{for(var a in d)t.o(d,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:d[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((d,a)=>(t.f[a](e,d),d)),[])),t.u=e=>"assets/js/"+({42:"2518c83b",53:"935f2afb",67:"246367e0",73:"359a0a8d",114:"8740ec05",235:"a7d19085",271:"577a5299",293:"fa570740",332:"39fee459",367:"05a3c259",520:"fb1a77b4",536:"17c91901",561:"bc670d5c",567:"df36d98d",601:"e5d84bc0",633:"b50c9021",683:"0abae2e0",701:"1ce0a301",771:"4445f991",783:"84002310",797:"80238aff",838:"22bdf908",916:"e4459066",926:"05bb3e6b",971:"7e133bf4",1003:"d0d62bb5",1005:"c127b609",1013:"e8acd80e",1053:"7205acf7",1094:"8675103a",1106:"dd813bf5",1177:"8ce69432",1304:"8d5fe6f9",1389:"a005ddbc",1396:"e3e28d8f",1404:"3e301362",1451:"563d7403",1493:"79022373",1600:"397d4a7e",1714:"6c068fb7",1723:"0328b0c9",1739:"510acf22",1759:"ec202e26",1802:"96368f4f",1864:"7c3dacb8",1871:"ce32ce4d",1893:"4c5e977b",1910:"2a3724f5",1943:"62029e95",1969:"b9f011e4",1981:"c8450cf2",2050:"f54e89d1",2062:"988ba51e",2069:"9a6be05d",2146:"53d93800",2197:"eb357560",2214:"bdd5207c",2311:"f965b663",2333:"650716b7",2338:"5b157bd1",2353:"35d50d77",2375:"1c94925b",2379:"9dba6800",2452:"7dde15d7",2457:"30e5c1aa",2474:"4507e508",2486:"de127d6b",2605:"4797ab58",2717:"0b0bc04d",2755:"7e04e77d",2809:"540cb455",2860:"3d49fc0e",2885:"acdbee8e",2903:"84ee34f2",2921:"12f49e0c",2933:"b6036b82",2957:"d5a10f7c",2982:"f041af6f",3006:"5be4f4f7",3022:"e0a5c1d2",3027:"bc8bd5d6",3085:"1f391b9e",3166:"8ed64af4",3224:"1bd0c971",3240:"0ab53148",3258:"b5961036",3299:"7e3ea763",3300:"655c39d2",3312:"8cd2105d",3375:"94fe2afe",3387:"007a6c32",3389:"9041aea1",3398:"9f602629",3404:"afdda5b6",3408:"4694df8d",3418:"49dbb45e",3425:"602542a3",3497:"b8541bfd",3501:"7795e3fe",3509:"786f71e5",3522:"abf6ee25",3543:"510addcb",3602:"696ed493",3616:"0d16b667",3634:"e0bec19d",3705:"b3a5153e",3739:"5e33bc00",3750:"c77ce8fa",3771:"8c02dfd8",3827:"ee9a33f4",3905:"d288e937",3959:"2d0f081e",3994:"b2ae77a0",4024:"99f24057",4029:"e286ec4c",4030:"c5d3bb95",4052:"1dc390ba",4053:"24e3585b",4069:"41ce3377",4089:"d9ffe17e",4190:"84cf2087",4194:"4b3e38af",4195:"c4f5d8e4",4209:"278665dc",4243:"0744e06b",4268:"7cf3a727",4280:"95a35da8",4288:"af1ac92b",4298:"48db5030",4319:"d0816b53",4428:"53d82fc0",4492:"702fba60",4506:"fd03cc72",4531:"b25d4024",4549:"788d9fe0",4582:"fed448c0",4637:"b65b34ba",4681:"1be75057",4694:"98dc0d0e",4730:"f4b2f868",4758:"0a13a0e4",4777:"269ec971",4796:"a41d5bc2",4804:"440f78e7",4811:"cf33a5bc",4851:"a592f1e4",4869:"1360b8cf",4907:"29f28a73",4925:"7ee339c8",4971:"0ed89c29",5063:"cf69f832",5114:"ee7f03d8",5159:"9d6ed550",5167:"da88d543",5229:"2fcfad90",5361:"4d2ad36f",5365:"b82d00b2",5368:"cc468388",5370:"af4a2ad4",5381:"cfc9c16e",5382:"632d2515",5416:"cc68b255",5480:"006095b2",5662:"caaad1b0",5669:"5220550c",5690:"f4bc196f",5701:"d02347dc",5708:"41eb0037",5733:"735936a9",5760:"31e78686",5787:"c4ae09d4",5818:"ae255275",5832:"b745f339",5836:"bf0b75c4",5872:"587e3d47",5886:"31d96af4",5897:"6b3775fc",5943:"bc53881b",5953:"b700f6c8",5957:"e4627c87",5968:"156751cf",5969:"07ca0209",5975:"0de52270",6025:"c3aed80f",6072:"26183636",6106:"c2ebbb3e",6225:"d02b6e20",6235:"7fc2b4c9",6247:"6ab4df05",6276:"8aadacf1",6282:"cd8b4f9a",6286:"13d7a585",6361:"3aecebcc",6370:"36f93d19",6428:"418c923e",6434:"40878283",6467:"302d24dc",6473:"a83fc124",6549:"7a65c859",6553:"18a5e8d6",6554:"9d979a6d",6597:"44177285",6668:"b9fa1d17",6675:"036e14f3",6739:"2dd5aaa1",6849:"548bc066",6874:"8b221193",6886:"4b7a6889",6904:"637cfff4",6912:"197a4930",6963:"1b80e345",6976:"70b01d77",6979:"d005934a",7044:"89e5bdec",7070:"c78b1140",7074:"6268d0ca",7133:"92e99bf6",7137:"47f09a6b",7184:"11b4dd89",7188:"5036ec9d",7212:"e6cbd2ed",7213:"f93f119a",7238:"e298e99e",7267:"c9713a6d",7287:"bde9fb45",7328:"6daf901a",7365:"18f77871",7383:"225c9eb6",7414:"393be207",7421:"c8a855a5",7482:"4a3e680b",7486:"dcc6b54d",7487:"a9bf2227",7500:"d63a00cf",7593:"50219e10",7615:"84ebbbbf",7655:"40230f21",7710:"c11bd48d",7719:"51c3befa",7758:"48df5aa4",7813:"8894256f",7828:"f72af8b9",7879:"e9d56634",7920:"1a4e3797",7937:"ea313555",7944:"6bc64de5",7950:"8825024b",7979:"c5059afe",7999:"3af651bf",8016:"ffb2e417",8023:"2b20c80a",8099:"ad577885",8104:"7ab943be",8135:"89179ad6",8179:"136658e4",8207:"7622c6de",8235:"3bdeaa89",8270:"5393ce94",8347:"8b988d57",8349:"3d3a07f6",8460:"dd3ced3a",8492:"9931c5c6",8591:"a61cb094",8608:"0cadbdb9",8630:"68e9a632",8692:"67044a7a",8704:"8338c5ef",8776:"f46c4408",8831:"3c8da607",8848:"99d44459",8890:"d5603669",8948:"65e0cd55",8954:"b0bdb7f3",8960:"4ade5613",8966:"16ef1cd9",8970:"eaafcd74",8972:"a0c0c9f6",9010:"8c2621f5",9014:"e77a5489",9043:"9ad8637e",9047:"856bceac",9054:"722ec584",9061:"4fd81f4e",9065:"65246720",9082:"6a9a7317",9083:"db4f0c5e",9131:"3b0223df",9209:"198290f4",9376:"6249c7de",9389:"2a8d8e88",9438:"b5511831",9475:"1db45fbc",9480:"7c767e9e",9486:"e72cf26a",9514:"1be78505",9538:"4c950052",9580:"75ecb4f9",9607:"25f376d4",9624:"3042b185",9626:"fd867f7c",9681:"a1fd7cfe",9717:"a5962d55",9728:"aa5bd2a7",9743:"6623a699",9753:"7e31db45",9766:"5bf23af0",9817:"14eb3368",9822:"595b2ce9",9833:"26987f39",9849:"fdf22a50",9856:"e5c88a3e",9865:"e8ee0390",9889:"f56b8973",9905:"e23eefc0",9910:"16142a34"}[e]||e)+"."+{42:"5b7f1fd6",53:"c11f4948",67:"8c2d187a",73:"813e7d97",114:"ad8c6266",235:"bc2d5b8b",271:"e632d71b",293:"25cc3872",332:"d97b5fc9",367:"07088b4a",520:"1e6c946b",536:"b923c78e",561:"6e1bbdf3",567:"9a984abb",601:"c7f9933d",633:"c5893749",683:"9749355d",701:"c5a3e9eb",771:"feb9101e",783:"184afb1c",797:"7529d5b2",838:"1a05adb4",916:"62aea897",926:"53817a31",971:"161cddbf",1003:"b59ff330",1005:"754f69ab",1013:"56fd3b2b",1053:"8696ec97",1094:"2d82eabd",1106:"36197eef",1177:"c0285a17",1304:"22a11e37",1389:"fd8a50b4",1396:"7b605dab",1404:"504e237d",1451:"27223f53",1493:"d3eec127",1600:"a14c789e",1714:"ccce9d34",1723:"4d9c2a4a",1739:"3d437425",1759:"7012cb15",1802:"751ec081",1814:"827f84be",1864:"efb6ae86",1871:"0af5e3da",1893:"4a98b5fe",1910:"693fc344",1943:"8a80dedb",1969:"ffec10a8",1981:"b7d1bea2",2050:"823155de",2062:"859419b2",2069:"47046534",2146:"1bc57e1a",2197:"40387d90",2214:"0059e515",2311:"956fde10",2333:"58304cea",2338:"10f411d2",2353:"b5d8bb5a",2375:"2c98d1be",2379:"6c3cebda",2452:"e80d1c41",2457:"f2e7ed6b",2474:"f656a6dd",2486:"fd9bc555",2605:"cd58d91e",2717:"64417181",2755:"2a86fc08",2761:"8e83ef1a",2809:"873a3cb3",2860:"388b174c",2885:"41167b24",2903:"4963b7fb",2921:"dc949d5e",2933:"d848d5d3",2957:"36a427fe",2982:"ac0ffae7",3006:"a2d19bfc",3022:"f4998f1d",3027:"9dfa2cdf",3085:"6a026f2c",3166:"f4df26ac",3224:"2fd9720c",3240:"74d67f49",3258:"6a57572f",3299:"7d0d6113",3300:"5190d89e",3312:"7f1acfe9",3375:"e61cd0e5",3387:"c539f2ec",3389:"85dd694e",3398:"8928b603",3404:"ac60b0bb",3408:"38a2aa2b",3418:"9a9faf05",3425:"11a834a2",3497:"65464db3",3501:"f33caf4d",3509:"acafee0b",3522:"cd5009f7",3543:"832ed532",3602:"fbc995ff",3616:"c4362a08",3634:"844e6d1c",3705:"a8fc058b",3739:"4a37417b",3750:"9bff8498",3771:"6aca7657",3827:"86e615fc",3905:"bab3d6eb",3959:"184b6fde",3994:"4a829ef3",4024:"6c1ecbee",4029:"f6ec998a",4030:"741708a2",4052:"6524cb6a",4053:"e8b6a91c",4069:"fb98b43f",4089:"c70dc3ed",4190:"42390dd8",4194:"f0a9049d",4195:"80802ec2",4209:"83b67bec",4243:"b2f9ea77",4268:"c3237ac6",4280:"0c96a09f",4288:"368da1be",4298:"446f9844",4319:"075b555c",4428:"46b33db6",4492:"4a0ee0ae",4506:"60cb8342",4531:"d6ff8d9c",4549:"679fd1ce",4582:"fbdc13d2",4637:"85eb2003",4681:"99c0e58b",4694:"b5334a0e",4730:"350fcf15",4758:"e7a85e6c",4777:"afac9729",4796:"fe120798",4804:"9e0c05dc",4811:"295cfb84",4851:"bb39a720",4869:"c21a8a00",4907:"b3eb14b1",4925:"3def856b",4971:"bf2901c0",4972:"c1e0c51c",5063:"75ee001d",5114:"366d56f6",5159:"2218c8e5",5167:"a99bae34",5229:"cd2430db",5361:"e3695854",5365:"0164c216",5368:"07cbf622",5370:"26cc3084",5381:"aeca6fe8",5382:"0e0b34da",5416:"86bfb9c4",5480:"f8b27f18",5662:"b1d5e9ad",5669:"be2ff975",5690:"7f47a111",5701:"8b190886",5708:"ab02ff7f",5733:"432c43f4",5760:"2a3dc357",5787:"2b19c39b",5818:"ae4dd252",5832:"e477d834",5836:"77e39566",5872:"aaf95284",5886:"d9475a2e",5897:"36870df6",5943:"4d3edecb",5953:"b266fbf2",5957:"f4095493",5968:"252d316b",5969:"101ec44b",5975:"3250fdff",6025:"7e1cc508",6072:"0aae5f71",6106:"49dc478f",6225:"7eafbac0",6235:"4e6a57ca",6247:"49931daf",6276:"23ba3822",6282:"493493c1",6286:"d882b23b",6338:"a4b54b32",6361:"e5bf13d8",6370:"dd7f179c",6428:"7ee026ff",6434:"8b3543b1",6467:"0eda0528",6473:"73106d28",6549:"52d02b41",6553:"ba57e0ce",6554:"2bd509ef",6597:"ff241663",6668:"c8a2de69",6675:"a9f56922",6739:"587c1c8a",6780:"72080071",6849:"a8b9cf93",6874:"5a9125b3",6886:"e152c44f",6904:"2192ea36",6912:"95592292",6945:"669d5d2e",6963:"8aab214a",6976:"f13977f1",6979:"509fcf73",7044:"e52f236e",7070:"19c6c47c",7074:"271b5a20",7133:"f5b41a1d",7137:"1ceff154",7184:"a41a7d3d",7188:"42109774",7212:"b1d03f7d",7213:"e7617507",7238:"14606b56",7267:"e5c093aa",7287:"b6f9f8c4",7328:"59a20e2a",7365:"9b1a913e",7383:"e657b235",7414:"e650351e",7421:"1016a56a",7482:"5212d288",7486:"2b00e8c9",7487:"7933fba2",7500:"c861f476",7593:"0d86de1b",7615:"23ccdc8b",7655:"d93f5e37",7710:"1ea37644",7719:"30109b7e",7758:"5b342a40",7813:"56a8cdb8",7828:"eff4cfcc",7879:"c22d4ba0",7920:"a0fe2f07",7937:"9b548842",7944:"a45f13b6",7950:"12aded11",7979:"4e8f1ff7",7999:"8c6bde5a",8016:"04d7f677",8023:"cc9cb86c",8099:"1ace9939",8104:"0fa104ac",8135:"5ec25a46",8179:"d929c0f4",8207:"d5ed12e6",8235:"7a99469b",8270:"2f3f4af0",8347:"b4d9ec33",8349:"460708e3",8460:"ef740498",8492:"68243b19",8591:"ed12389a",8608:"bfca247d",8630:"f81eea0c",8692:"fbf4cfec",8704:"39a81257",8724:"b1c38f59",8776:"5d21f0e7",8831:"7df025eb",8848:"3ec878d3",8890:"4fb01fd3",8894:"9d414334",8948:"15f9b0ed",8954:"ce2a46bc",8960:"822e750c",8966:"033e5acf",8970:"9888a6f3",8972:"af106b6a",9010:"8066f661",9014:"ce328fd1",9043:"7133d7c1",9047:"e5f4a7b4",9054:"b027e96e",9061:"61f2b3f3",9065:"2238493a",9082:"75cf1abc",9083:"a57d0194",9131:"f90ff869",9209:"2e7a34a1",9376:"bf96ecc6",9389:"69ea5d40",9438:"6e12f2b0",9475:"5d3d716b",9480:"16eb8597",9486:"d7d227d7",9514:"bc66cda9",9538:"1ada3e11",9580:"992e1868",9607:"f49640bf",9624:"ace35f3d",9626:"93a45ecc",9681:"42861c3f",9717:"b5d41938",9728:"abb280e4",9743:"29385469",9753:"4cf85695",9766:"f4153819",9799:"51815cbe",9817:"f9d79ca6",9822:"bb329d95",9833:"e3181006",9849:"d0beeb5f",9856:"5d434616",9865:"e6214d15",9889:"50e9dbcb",9905:"bfc0ac80",9910:"e41a17e0"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,d)=>Object.prototype.hasOwnProperty.call(e,d),c={},b="docusaurus-docs:",t.l=(e,d,a,f)=>{if(c[e])c[e].push(d);else{var r,o;if(void 0!==a)for(var n=document.getElementsByTagName("script"),i=0;i{r.onerror=r.onload=null,clearTimeout(l);var b=c[e];if(delete c[e],r.parentNode&&r.parentNode.removeChild(r),b&&b.forEach((e=>e(a))),d)return d(a)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),o&&document.head.appendChild(r)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.p="/docs/",t.gca=function(e){return e={26183636:"6072",40878283:"6434",44177285:"6597",65246720:"9065",79022373:"1493",84002310:"783","2518c83b":"42","935f2afb":"53","246367e0":"67","359a0a8d":"73","8740ec05":"114",a7d19085:"235","577a5299":"271",fa570740:"293","39fee459":"332","05a3c259":"367",fb1a77b4:"520","17c91901":"536",bc670d5c:"561",df36d98d:"567",e5d84bc0:"601",b50c9021:"633","0abae2e0":"683","1ce0a301":"701","4445f991":"771","80238aff":"797","22bdf908":"838",e4459066:"916","05bb3e6b":"926","7e133bf4":"971",d0d62bb5:"1003",c127b609:"1005",e8acd80e:"1013","7205acf7":"1053","8675103a":"1094",dd813bf5:"1106","8ce69432":"1177","8d5fe6f9":"1304",a005ddbc:"1389",e3e28d8f:"1396","3e301362":"1404","563d7403":"1451","397d4a7e":"1600","6c068fb7":"1714","0328b0c9":"1723","510acf22":"1739",ec202e26:"1759","96368f4f":"1802","7c3dacb8":"1864",ce32ce4d:"1871","4c5e977b":"1893","2a3724f5":"1910","62029e95":"1943",b9f011e4:"1969",c8450cf2:"1981",f54e89d1:"2050","988ba51e":"2062","9a6be05d":"2069","53d93800":"2146",eb357560:"2197",bdd5207c:"2214",f965b663:"2311","650716b7":"2333","5b157bd1":"2338","35d50d77":"2353","1c94925b":"2375","9dba6800":"2379","7dde15d7":"2452","30e5c1aa":"2457","4507e508":"2474",de127d6b:"2486","4797ab58":"2605","0b0bc04d":"2717","7e04e77d":"2755","540cb455":"2809","3d49fc0e":"2860",acdbee8e:"2885","84ee34f2":"2903","12f49e0c":"2921",b6036b82:"2933",d5a10f7c:"2957",f041af6f:"2982","5be4f4f7":"3006",e0a5c1d2:"3022",bc8bd5d6:"3027","1f391b9e":"3085","8ed64af4":"3166","1bd0c971":"3224","0ab53148":"3240",b5961036:"3258","7e3ea763":"3299","655c39d2":"3300","8cd2105d":"3312","94fe2afe":"3375","007a6c32":"3387","9041aea1":"3389","9f602629":"3398",afdda5b6:"3404","4694df8d":"3408","49dbb45e":"3418","602542a3":"3425",b8541bfd:"3497","7795e3fe":"3501","786f71e5":"3509",abf6ee25:"3522","510addcb":"3543","696ed493":"3602","0d16b667":"3616",e0bec19d:"3634",b3a5153e:"3705","5e33bc00":"3739",c77ce8fa:"3750","8c02dfd8":"3771",ee9a33f4:"3827",d288e937:"3905","2d0f081e":"3959",b2ae77a0:"3994","99f24057":"4024",e286ec4c:"4029",c5d3bb95:"4030","1dc390ba":"4052","24e3585b":"4053","41ce3377":"4069",d9ffe17e:"4089","84cf2087":"4190","4b3e38af":"4194",c4f5d8e4:"4195","278665dc":"4209","0744e06b":"4243","7cf3a727":"4268","95a35da8":"4280",af1ac92b:"4288","48db5030":"4298",d0816b53:"4319","53d82fc0":"4428","702fba60":"4492",fd03cc72:"4506",b25d4024:"4531","788d9fe0":"4549",fed448c0:"4582",b65b34ba:"4637","1be75057":"4681","98dc0d0e":"4694",f4b2f868:"4730","0a13a0e4":"4758","269ec971":"4777",a41d5bc2:"4796","440f78e7":"4804",cf33a5bc:"4811",a592f1e4:"4851","1360b8cf":"4869","29f28a73":"4907","7ee339c8":"4925","0ed89c29":"4971",cf69f832:"5063",ee7f03d8:"5114","9d6ed550":"5159",da88d543:"5167","2fcfad90":"5229","4d2ad36f":"5361",b82d00b2:"5365",cc468388:"5368",af4a2ad4:"5370",cfc9c16e:"5381","632d2515":"5382",cc68b255:"5416","006095b2":"5480",caaad1b0:"5662","5220550c":"5669",f4bc196f:"5690",d02347dc:"5701","41eb0037":"5708","735936a9":"5733","31e78686":"5760",c4ae09d4:"5787",ae255275:"5818",b745f339:"5832",bf0b75c4:"5836","587e3d47":"5872","31d96af4":"5886","6b3775fc":"5897",bc53881b:"5943",b700f6c8:"5953",e4627c87:"5957","156751cf":"5968","07ca0209":"5969","0de52270":"5975",c3aed80f:"6025",c2ebbb3e:"6106",d02b6e20:"6225","7fc2b4c9":"6235","6ab4df05":"6247","8aadacf1":"6276",cd8b4f9a:"6282","13d7a585":"6286","3aecebcc":"6361","36f93d19":"6370","418c923e":"6428","302d24dc":"6467",a83fc124:"6473","7a65c859":"6549","18a5e8d6":"6553","9d979a6d":"6554",b9fa1d17:"6668","036e14f3":"6675","2dd5aaa1":"6739","548bc066":"6849","8b221193":"6874","4b7a6889":"6886","637cfff4":"6904","197a4930":"6912","1b80e345":"6963","70b01d77":"6976",d005934a:"6979","89e5bdec":"7044",c78b1140:"7070","6268d0ca":"7074","92e99bf6":"7133","47f09a6b":"7137","11b4dd89":"7184","5036ec9d":"7188",e6cbd2ed:"7212",f93f119a:"7213",e298e99e:"7238",c9713a6d:"7267",bde9fb45:"7287","6daf901a":"7328","18f77871":"7365","225c9eb6":"7383","393be207":"7414",c8a855a5:"7421","4a3e680b":"7482",dcc6b54d:"7486",a9bf2227:"7487",d63a00cf:"7500","50219e10":"7593","84ebbbbf":"7615","40230f21":"7655",c11bd48d:"7710","51c3befa":"7719","48df5aa4":"7758","8894256f":"7813",f72af8b9:"7828",e9d56634:"7879","1a4e3797":"7920",ea313555:"7937","6bc64de5":"7944","8825024b":"7950",c5059afe:"7979","3af651bf":"7999",ffb2e417:"8016","2b20c80a":"8023",ad577885:"8099","7ab943be":"8104","89179ad6":"8135","136658e4":"8179","7622c6de":"8207","3bdeaa89":"8235","5393ce94":"8270","8b988d57":"8347","3d3a07f6":"8349",dd3ced3a:"8460","9931c5c6":"8492",a61cb094:"8591","0cadbdb9":"8608","68e9a632":"8630","67044a7a":"8692","8338c5ef":"8704",f46c4408:"8776","3c8da607":"8831","99d44459":"8848",d5603669:"8890","65e0cd55":"8948",b0bdb7f3:"8954","4ade5613":"8960","16ef1cd9":"8966",eaafcd74:"8970",a0c0c9f6:"8972","8c2621f5":"9010",e77a5489:"9014","9ad8637e":"9043","856bceac":"9047","722ec584":"9054","4fd81f4e":"9061","6a9a7317":"9082",db4f0c5e:"9083","3b0223df":"9131","198290f4":"9209","6249c7de":"9376","2a8d8e88":"9389",b5511831:"9438","1db45fbc":"9475","7c767e9e":"9480",e72cf26a:"9486","1be78505":"9514","4c950052":"9538","75ecb4f9":"9580","25f376d4":"9607","3042b185":"9624",fd867f7c:"9626",a1fd7cfe:"9681",a5962d55:"9717",aa5bd2a7:"9728","6623a699":"9743","7e31db45":"9753","5bf23af0":"9766","14eb3368":"9817","595b2ce9":"9822","26987f39":"9833",fdf22a50:"9849",e5c88a3e:"9856",e8ee0390:"9865",f56b8973:"9889",e23eefc0:"9905","16142a34":"9910"}[e]||e,t.p+t.u(e)},(()=>{var e={1303:0,532:0};t.f.j=(d,a)=>{var c=t.o(e,d)?e[d]:void 0;if(0!==c)if(c)a.push(c[2]);else if(/^(1303|532)$/.test(d))e[d]=0;else{var b=new Promise(((a,b)=>c=e[d]=[a,b]));a.push(c[2]=b);var f=t.p+t.u(d),r=new Error;t.l(f,(a=>{if(t.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var b=a&&("load"===a.type?"missing":a.type),f=a&&a.target&&a.target.src;r.message="Loading chunk "+d+" failed.\n("+b+": "+f+")",r.name="ChunkLoadError",r.type=b,r.request=f,c[1](r)}}),"chunk-"+d,d)}},t.O.j=d=>0===e[d];var d=(d,a)=>{var c,b,f=a[0],r=a[1],o=a[2],n=0;if(f.some((d=>0!==e[d]))){for(c in r)t.o(r,c)&&(t.m[c]=r[c]);if(o)var i=o(t)}for(d&&d(a);n V5 | Bybit API Documentation - + @@ -15,7 +15,7 @@ USDTPerpetualLeverage, symbol, leverage, USDCContractLeverage
  • Get Loan Orders
    • Add new Response fields: USDTPerpetualOpenLine, USDCContractOpenLine, USDCOptionsOpenLine, USDTPerpetualCloseLine, USDCContractCloseLine, USDCOptionsCloseLine, USDCContractSymbols, USDCOptionsSymbols, marginLeverage, USDTPerpetualLeverage, symbol, leverage, USDCContractLeverage
  • Get Single Coin Balance
    • Add new request param: toAccountType, toMemberId, withLtvTransferSafeAmount
    • Add new response field: ltvTransferSafeAmount
  • Add error codes for UTA with OTC loan when trade Spot, Futures and Option
  • New error codeDescription
    30133USDT Perp: When the trading pair is not in the whitelist
    30134USDC Contract: When the trading pair is not in the whitelist
    30135USDT Perp: When you try to change a leverage higher than the maximum leverage in OTC loan
    30136USDC Contract: When you try to change a leverage higher than the maximum leverage in OTC loan
    3200316Option: restrict to trade
    3200317Option: restrict to buy
    170709Spot: When the trading pair is not in the whitelist
    170215Spot: restrict to buy
    170216Spot: margin leverage exceeded
    170220Spot: restrict to trade

    2023-07-13

    REST API

    2023-07-04

    REST API

    2023-06-26

    WebSocket API

    • Orderbook [Spot]
      • Improve the push frequency from 100ms to 20ms of level 50

    2023-06-24

    REST API

    • Get Instruments Info [UPDATE]
      • When category=linear, add a new response params copyTrading to indicate this trading pair supporting copy trade or not for UTA and normal account

    2023-06-15

    REST API

    2023-06-14

    REST API

    2023-06-08

    REST API

    • Get Fee Rate [UPDATE]
      • Support to get USDC perp & USDC futures trading fee rate

    2023-06-07

    REST API

    • Withdraw [UPDATE]
      • Add new request param feeType, which is used to select the withdrawal fee operation type when withdraw

    2023-06-02

    REST API

    • Get Affiliate User Info [New]
      • A brand new endpoint, which is used for affiliate to check the basic information of their users

    2023-06-01

    REST API

    • Set Margin Mode [UPDATE]
      • UTA account supports isolated margin, a new enum ISOLATED_MARGIN for request param "setMarginMode"
    • Switch Position Mode [UPDATE]
      • UTA account supports Hedge mode for USDT Perp when it is isolated margin or cross margin mode
    • Get Position Info [UPDATE]
      • Add new response field positionBalance
    • Get Account Info [UPDATE]
      • "marginTrade" field has a new enum value - ISOLATED_MARGIN
    • Set Auto Add Margin [UPDATE]
      • add category enum linear for UTA
    • Add Or Reduce Margin [UPDATE]
      • A brand new endpoint is used to add or reduce specific margin you want

    WebSocket API

    • Position [UPDATE]
      • Add new response param positionBalance

    2023-05-30

    REST API

    • Get Instruments Info [UPDATE]
      • When category=spot, add a new response params marginTrading to indicate this trading pair supporting margin trade or not for UTA and normal account

    2023-05-23

    REST API

    • Place Order [UPDATE]
      • Add new request params for new TP/SL tpslMode, tpLimitPrice, slLimitPrice, tpOrderType, slOrderType
    • Amend Order [UPDATE]
      • Add new request params for new TP/SL tpLimitPrice, slLimitPrice
    • Get Open Orders [UPDATE]
      • Add new response params for new TP/SL tpslMode, tpLimitPrice, slLimitPrice
    • Get Order History [UPDATE]
      • Add new response params for new TP/SL tpslMode, tpLimitPrice, slLimitPrice
    • Get Position Info [UPDATE]
      • tpslMode in the position is depreciated
    • Set Trading Stop [UPDATE]
      • Add new request params for new TP/SL tpslMode, tpLimitPrice, slLimitPrice, tpOrderType, slOrderType

    WebSocket API

    • Position [UPDATE]
      • tpslMode in the position is depreciated
    • Order [UPDATE]
      • Add new response params for new TP/SL tpslMode, tpLimitPrice, slLimitPrice

    2023-05-10

    REST API

    Old error codeNew error codeMsg
    10001110075RiskId is not modified

    2023-05-05

    REST API

    2023-05-04

    REST API

    • Get Trade History [UPDATE]
      • symbol is no longer mandatory for normal account when get derivatives
    • Get Closed PnL [UPDATE]
      • symbol is no longer mandatory for normal account when get derivatives

    2023-04-20

    REST API

    • Place Order [UPDATE]
      • add new request param smpType used to select SMP execution type
    • Get Open Orders [UPDATE]
      • add new response fields smpType, smpOrderId, smpGroup
      • add new enum cancelBySmp of cancelType
    • Get Order History [UPDATE]
      • add new response fields smpType, smpOrderId, smpGroup
      • add new enum cancelBySmp of cancelType
    • Get Account Info [UPDATE]
      • add new response fields dcpStatus, timeWindow, smpGroup

    WebSocket API

    • Order [UPDATE]
      • add new response fields smpType, smpOrderId, smpGroup
      • add new enum cancelBySmp of cancelType

    2023-04-06

    REST API

    2023-04-04

    REST API

    • Get Instruments Info [UPDATE]
      • add request param startTime endTime, effective for UTA mode
      • add response param placeType, used for option

    2023-04-04

    REST API

    WebSocket API

    • Position [UPDATE]
      • add response param adlRankIndicator
      • category field is added to UTA stream
    • Order [UPDATE]
      • add response param placeType, used for option
    • Execution [UPDATE]
      • add response param closedSize

    2023-03-24

    REST API

    2023-03-23

    REST API

    WebSocket API

    • Wallet [UPDATE]
      • Add a new response field accountLTV

    2023-03-22

    REST API

    2023-03-15

    REST API

    • Get Single Coin Balance [UPDATE]
      • Add a new request param withTransferSafeAmount and a new response field transferSafeAmount

    2023-03-10

    REST API

    • Get Instruments Info [UPDATE]
      • Unify the enums of status for Spot, Derivatives and Options. Use Trading, Closed, Settling, PreLaunch, Deliverying
      • Remove duplicate category field in the Options response
    • Get Fee Rate [UPDATE]
      • Support to get Options trading fee rate

    2023-03-09

    REST API

    • Set Leverage [UPDATE]
      • UTA user can set up to 10X for margin trade
    • Get Wallet Balance [UPDATE]
      • Before adjustment: normal account gets error code and message when call accountType=UNIFIED.
        After adjustment: normal account gets http code 400 when call accountType=UNIFIED

    2023-02-28

    REST API

    WebSocket API

    • Wallet [UPDATE]
      • Add a new field bonus

    2023-02-20

    REST API

    2023-02-15

    REST API

    • User [NEW]
      • Add a set of user & api key related endpoints for V5

    2023-02-14

    REST API

    • Get Fee Rate (Derivatives) [NEW]
      • Get the trading fee rate for derivatives
    • Withdraw [UPDATE]
      • Select the wallet to be withdrawn from
      • The default withdrawn wallet is Spot wallet
    Req paramRequiredTypeComments
    accountTypefalsestringSelect the wallet to be withdrawn from
    • SPOT:spot wallet (default)
    • FUND:Funding wallet

    2023-02-09

    REST API

    2023-01-19

    REST API

    • Set Margin Mode [UPDATE]
      • Portfolio margin mode supports USDT Perpetual
    • Get Position Info [UPDATE]
      • For portfolio margin mode, positionIM, positionMM, leverage, riskLimitValue returns "", riskId returns 0
    • Get Wallet Balance [UPDATE]
      • For portfolio margin mode, totalOrderIM, totalPositionIM, totoalPositionMM returns ""

    WebSocket API

    • Position [UPDATE]
      • For portfolio margin mode, positionIM, positionMM, leverage, riskLimitValue returns "", riskId returns 0
    • Wallet [UPDATE]
      • For portfolio margin mode, totalOrderIM, totalPositionIM, totoalPositionMM returns ""

    2023-01-16

    REST API

    • Get Tickers [spot]
      • usdIndexPrice has been added to response. It means USD index price, which can be empty.

    WebSocket API

    • Tickers [spot]
      • usdIndexPrice has been added to stream. It means USD index price, which can be empty.
    • Orderbook [linear contract & inverse contract]
      • Add 500 level depth, push frequency is 100ms

    2023-01-09

    WebSocket API

    • Tickers [linear contract & inverse contract]
      • nextFundingTime has been changed from dataTime 2023-01-05T08:00:00Z to timestamp (ms) 1672905600000
      • predicatedFundingRate has been removed from stream
    - + \ No newline at end of file diff --git a/faq.html b/faq.html index 9d4a1476c5..7752200c7b 100644 --- a/faq.html +++ b/faq.html @@ -4,14 +4,14 @@ Frequently Asked Questions | Bybit API Documentation - +

    Frequently Asked Questions

    Where are Bybit's servers located?

    AWS Singapore, Availability Zone ID apse1-az3.

    reduceOnly and closeOnTrigger - what's the difference?

    • To close your position, submit an order and specify reduceOnly to true. closeOnTrigger is not strictly applicable here, but you can also set it to true if it's required.
    • reduceOnly is the one that really matters for closing position, and we will improve the interface in the future.
    • Be careful when you specify closeOnTrigger to true as it could cause conflict when reduceOnly is false.

    Why aren't all my orders showing on the website?

    • Users who have bots which place large numbers of laddered orders will be restricted by the frontend interface, which only shows a maximum of 50 orders on-screen.
    • Don't worry, your orders are still in the system and can be queried by the API, but the frontend cannot show more than 50.

    Calculating order size based on available wallet balance

    • price * availableBalance * leverage * perc * (1 - (0.0006 * 2))
    • Unfortunately this is not a perfectly accurate formula; the real calculation is complex and may be published in the docs at a later date.
      • price - last price (or your entry price) - can be found with the Tickers.
      • availableBalance - can be found with the Position Info endpoint.
      • leverage - up to the respective maximum leverage for the market and your risk limit (eg 2, 10, 50).
      • perc - 0.1 for 10%, 0.25 for 25%, etc.
      • 1 - (0.0006 * 2) - used to calculate the maximum order cost (always assumes entry & exit orders use taker fee regardless actual fee).

    Can I exchange assets with the API?

    How do I get funds for testnet?

    To get testnet funds, just go to master account asset page to request.

    Why are my Closed PNL prices inaccurate?

    • The entryPrice and exitPrice returned by Closed PNL endpoints are not the actual execution prices of the orders.
    • It is based on the total costs of the order (whether or not the position was only opened/closed by one order executed at one price - it is more complicated if multiple orders opened/closed a position.)
    • For instance, the entry_price and exit_price reported by this endpoint are influenced by the fee paid/received on the orders.

    How can I ensure I am using up-to-date data?

    • It is possible, although unlikely, that the REST API or (even less likely) the websocket could return/push old data.
    • For the greatest level of data resilience, we recommend clients to:
      • firstly, rely on the websocket, which will not only ensure you get the latest data as fast as possible, but will also ensure you get complete data
      • secondly, query the REST API to fill in any discrepencies in data - or between websocket disconnections.
    • The best practice is to save all of this data locally in your own database or cache.
    • This frees up your rate limits for other requests and also ensures a level of redundancy against the exchange in case of data delays.

    What is the difference between turnover and volume?

    • Turnover: is in the opposite currency to the quantity's currency
    • Volume: is in the same currency as the quantity's currency

    Why is the price returned in the place market order response wrong?

    Market orders are (in the backend) just limit orders submitted at a worse price. This is to reduce the chance of a flash crash or a similar event, where a trader might submit a market order which executes at a significantly worse price than they expected it to. The price returned here is that internal limit order price. This "inaccurate" price is returned because the place order endpoint is asynchronous, meaning the response is returned to you before the order is actually executed.

    If you want the true execution price (execPrice) you should subscribe to the execution websocket.

    How can I process WebSocket snapshot and delta messages?

    Please refer to the orderbook topic's documentation.

    Note that if you're using pybit, it handles these messages for you and always delivers a complete orderbook. Working code examples:

    • Python: _process_delta_orderbook() method within pybit (the Python SDK)
    • Node.js: orderbooks, a library made by the creator of bybit-api (the Node.js SDK)
    - + \ No newline at end of file diff --git a/index.html b/index.html index a3d073e484..360073f1b5 100644 --- a/index.html +++ b/index.html @@ -4,13 +4,13 @@ Hello from Bybit API Documentation | Bybit API Documentation - +

    Unified APIs

    Bybit's latest v5 suite of APIs allow for a smooth and easy integration.

    Learn Exchange Mechanisms

    Learn the intricate details of Bybit's market rules to fully maximise your API usage.

    Historical Market Data

    Get comprehensive public market data in CSV format to speedily backtest and build strategies.

    - + \ No newline at end of file diff --git a/markdown-page.html b/markdown-page.html index 44cf3f9a51..0f53784e87 100644 --- a/markdown-page.html +++ b/markdown-page.html @@ -4,13 +4,13 @@ Markdown page example | Bybit API Documentation - + - + \ No newline at end of file diff --git a/pilot-feature.html b/pilot-feature.html index 6a9aa78d7d..ba805a7115 100644 --- a/pilot-feature.html +++ b/pilot-feature.html @@ -4,7 +4,7 @@ Pilot Features | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Pilot Features

    Inverse Contract Upgrade

    • Available date: Testnet - alive, Mainnet - 13 Sep 2024 (gradully released)
    • Cover: Unified Trading Account
    • Details: 1. Upgrade inverse derivatives account to Unified Trading.
      2. Refer to Different Account Modes

    Open API Supports Demo Trading

    • Available date: Testnet - alive, Mainnet - 3 Apr 2024
    • Cover: demo trading account
    • Details: You can refer to this page to start demo trading API

    Websocket Place Order Feature

    • Available date: Testnet - alive, Mainnet - TBD
    • Cover: UTA Spot/Linear/Option
    • Details: You can use websocket to place/amend/cancel the order

    Batch APIs are ready for Spot

    • Available date: Testnet - alive, Mainnet - 5 Mar 2024
    • Cover: UTA Spot
    • Details: You can use batch API to start Spot trading

    Spot supports bidirectional Tp/Sl

    • Available date: Testnet - alive, Mainnet - 15 Jan 2024
    • Cover: UTA Spot
    • Details: You can set takeProfit, stopLoss when creating Spot order

    Spot Hedging Feature Is Available

    • Available date: Testnet - alive, Mainnet - 16 Nov 2023
    • Cover: Unified account - Portfolio Margin mode
    • Details: You can enable Spot Hedging function for Portfolio Margin via Set Spot Hedging

    Spot Supports Amend Order

    • Available date: Testnet - alive, Mainnet - 1 Nov 2023
    • Cover: Classic & Unified account Spot
    • Details: You can amend your spot orders via Amend Order

    Unified Account Spot Stop Orders logic is changed

    • Available date: Testnet - alive, Mainnet - 26 Oct 2023 (grey scale period, all are effective est. 2th Nov 2023)
    • Cover: Unified account Spot Stop Orders
    • Details: Once the TP/SL order or Conditional order is triggered, the order ID will be kept the same

    UTA Pro Batch Feature

    • Available date: Testnet - alive, Mainnet - 31 Aug 2023
    • Cover: UTA Pro, USDT Perpetual, USDC Perpetual & USDC Futures (linear)
    • Details: UTA Pro user can batch create/amend/cancel linear orders
    Sample code
    POST https://api-testnet.bybit.com/v5/order/create-batch

    > Request Body
    {
    "category": "linear",
    "request": [
    {

    "symbol": "BTCUSDT",
    "orderType": "Limit",
    "side": "Buy",
    "qty": "0.1",
    "price": "25500",
    "timeInForce": "GTC",
    "orderLinkId": "test-03",
    "reduceOnly": false,
    "tpslMode": "Full",
    "takeProfit": "26300",
    "stopLoss": "24800",
    "triggerDirection": null,
    "triggerPrice": null,
    "triggerBy": null,
    "positioIdx": 0,
    "smpType": null,
    "tpLimitPrice": null,
    "slLimitPrice": null,
    "slOrderType": null,
    "tpOrderType": null

    },
    {

    "symbol": "ETHUSDT",
    "orderType": "Limit",
    "side": "Buy",
    "qty": "0.1",
    "price": "1550",
    "timeInForce": "GTC",
    "orderLinkId": "test-04",
    "reduceOnly": false,
    "tpslMode": "Full",
    "takeProfit": "1680",
    "stopLoss": "1490",
    "triggerDirection": null,
    "triggerPrice": null,
    "triggerBy": null,
    "positioIdx": 0,
    "smpType": null,
    "tpLimitPrice": null,
    "slLimitPrice": null,
    "slOrderType": null,
    "tpOrderType": null
    }
    ]
    }
    > Response
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "orderId": "6afd7e83-7176-4f73-93e0-44a8f2babd14",
    "orderLinkId": "test-03",
    "createAt": "1693212677410"
    },
    {
    "category": "linear",
    "symbol": "ETHUSDT",
    "orderId": "9eeef30c-c682-42b2-a4a7-7e403db8506c",
    "orderLinkId": "test-04",
    "createAt": "1693212677410"
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 0,
    "msg": "OK"
    }
    ]
    },
    "time": 1693212677411
    }

    Add Customised Disconnection Configuration

    • Available date: Testnet - alive, Mainnet - 16 Aug 2023
    • Cover: All kinds of accounts - V5 Websocket Private Connection
    • Details: Set /v5/private?max_active_time=, supported range is from 30s to 600s. For more info, please check here

    Adjust error code

    Old error codeNew error codeMsg
    34001283200320Operations Restriction: The current LTV ratio of your Institutional Loan has hit the liquidation threshold. Assets in your account are being liquidated.
    1760363200320Operations Restriction: The current LTV ratio of your Institutional Loan has hit the liquidation threshold. Assets in your account are being liquidated.

    UTA borrow quota is shared across main-sub uids

    • Available date: Testnet - alive, Mainnet - 11 Aug 2023
    • Cover: UTA account
    • Details: Before each uid has an independent borrow quota, but now, main-sub uids share the same borrow quota

    UTA user can set collateral coin

    • Available date: Testnet - alive, Mainnet - 10 Aug 2023
    • Cover: UTA account
    • Details: User can set collateral coin via API

    User can upgrade account to UTA Pro manually

    • Available date: Testnet - alive, Mainnet - 08 Aug 2023
    • Cover: Normal account, UTA account
    • Details: User can upgrade account to UTA Pro via API

    OpenAPI supports Spot Conditional Order

    • Available date: Testnet - alive, Mainnet - 07 Aug 2023
    • Cover: Normal account, UTA account
    • Details: User can place Spot conditional order

    UTA Supports Institutional Lending

    • Available date: Testnet - alive, Mainnet - 24 July 2023
    • Cover: UTA
    • Details: UTA can have OTC loan

    Support Funding For USDC Perp

    • Available date: Testnet - alive, Mainnet - 13 July 2023
    • Cover: UTA USDC Perpetual
    • Details: There was no execType=Funding in Get Trade History and websocket execution stream update. Now you will it.

    New Copy Trading

    • Available date: Testnet - alive, Mainnet - 24 June 2023
    • Cover: Copy trading
    • Details: Bybit will release uids that allow upgrades in batches starting from 23 June, and if you select to upgrade it, you can only use V5 to copy trade

    Unified Account Supports Isolated Margin And Hedge Mode

    • Available date: Testnet - alive, Mainnet - 1 June 2023
    • Cover: Unified trading account only
    • Details: Isolated margin mode for UTA is account level. Hedge mode supports USDT perpetual only

    New TP/SL

    • Available date: Testnet - alive, Mainnet - 23 May 2023
    • Cover: V5 API
    • Details: UTA account: USDT Perpetual, USDC Perpetual and Futures, Inverse contract, Inverse contract
      Normal account: USDT Perpetual, Inverse contract

    Query Pre-upgrade Records

    • Available date: Testnet - alive, Mainnet - 27 Apr 2023
    • Cover: UTA account
    • Details: After upgraded to UTA, you can get those order information before upgraded.

    C2C Lending (Abandoned)

    • Available date: Testnet - alive, Mainnet - 22 Apr 2023
    • Cover: All users (grey scale in the progress right now)
    • Details: You can lend your available assets to platform to earn yield

    Self Match Prevention

    • Available date: Testnet - alive, Mainnet - 20 Apr 2023
    • Cover: read here
    • Details: Support spot, futures and options

    Upgrade to UTA without closing positions

    • Available date: Testnet - alive, Mainnet - 04 Apr 2023
    • Cover: Normal account is upgraded to Unified account
    • Details: Do not need to close positions when upgrade. For more details. please refer to upgrade API information

    UTA can trade USDC Futures via V5

    • Available date: Testnet - alive, Mainnet - 20 Mar 2023
    • Cover: Unified trading account users only
    • Details: Add USDC Futures trading pair

    Institutional Lending V5 API

    • Available date: Testnet - alive, Mainnet - 13 Mar 2023
    • Cover: Institutional clients who applied OTC
    • Details: Clients can get LTV, lends and repayment information

    Normal account can trade Spot via V5

    • Available date: Testnet - alive, Mainnet - 10 Mar 2023
    • Cover: Normal account
    • Details: Use V5 API to trade Spot for normal account

    Unify symbol status enums

    • Available date: Testnet - alive, Mainnet - 10 Mar 2023
    • Cover: /v5/market/instruments-info status field
    • Details: Use Trading, Closed, Settling, PreLaunch, Deliverying

    Release V5 Margin trade (normal account) API

    • Available date: Testnet - alive, Mainnet - 3 Mar 2023
    • Cover: Normal account can operate margin trade via V5
    • Details: able to loan, repay margins with V5

    UTA can trade Inverse Contract

    • Available date: Testnet - alive, Mainnet - 21 Feb 2023
    • Cover: UTA has ability to trade inverse contract via V5 API
    • Details: Please note that inverse contract trade is conducted though the CONTRACT wallet

    Merge SPOT account into UNIFIED account(IMPORTANT)

    • Available date: est. March 3rd, 2023
    • Cover: UTA users only
    • Details: You need to adjust withdrawal logic by transfer funds to FUND account first, then call withdraw API

    Use RSA keys to authenticate

    • Available date: Testnet - alive, Mainnet - 21 Feb 2023
    • Cover: All V3 & V5 the endpoints need authentication
    • Details: Please refer to this guideline to have a quick start

    Add a new enum type for execType

    • Available date: Testnet - alive, Mainnet - 20 Feb 2023
    • Cover: Contract V3 - Websocket private channel - execution topic
    • Details: Funding execution stream will be pushed depending on the funding interval of the symbol.

    Normal account is supported by V5 API

    • Available date: Testnet - alive, Mainnet - 9 Feb 2023
    • Cover: non-unified account can trade USDT perpetual and Inverse contract
    • Details: After this release, you may get some 401 errors or 404 errors if you have following actions:

    401: You are using v1/v2 way to pass authentication params:

    GET https://api.bybit.com/v5/position/list?api_key=xxx&category=linear&recv_window=5000&symbol=ETHUSDT&timestamp=1675929695887&sign=xxx

    You should pass them in the request header:

    Host: api-testnet.bybit.com
    -H 'X-BAPI-SIGN: XXXXXXXXXX' \
    -H 'X-BAPI-API-KEY: XXXXXXXXXX' \
    -H 'X-BAPI-TIMESTAMP: 1658384431891' \
    -H 'X-BAPI-RECV-WINDOW: 5000'

    404: For below APIs, if you use unsuitable category, i.e., you use Normal account to access category=option/spot


    Adjust error code

    Old error codeNew error codeMsg
    3400045110073Set margin mode failed
    34009910016Server error

    Add level 500 depth

    • Available date: Testnet - 13 JAN 2023, Mainnet - 16 JAN 2023
    • Cover: V5 orderbook
    • Details: Linear contract and inverse contract supports 500 depth, and the push frequency is 100ms.
    - + \ No newline at end of file diff --git a/search.html b/search.html index 45e7db67d3..4beb6008df 100644 --- a/search.html +++ b/search.html @@ -4,13 +4,13 @@ Search the documentation | Bybit API Documentation - + - + \ No newline at end of file diff --git a/tax/data-export.html b/tax/data-export.html index ec02f16650..8264b73112 100644 --- a/tax/data-export.html +++ b/tax/data-export.html @@ -4,13 +4,13 @@ Retrieve Data Export | Bybit API Documentation - +

    Retrieve Data Export

    Retrieve data export

    HTTP Request

    POST /fht/compliance/tax/v3/private/url

    Request Parameters

    ParameterRequiredTypeComments
    queryIdtruestringReport Request ID

    Response Parameters

    ParameterTypeComments
    urlstringURL of files (Basepath + Files). To shorten the time it takes to generate the report, it could generate multiple files. Do take note of this and combine the several files using the same base path when requesting the data export
    info

    Convert S3 Files To CSV using python script

    Sample Python Script


    import pandas as pd
    import os

    class Bases(object):
    @staticmethod
    def path_list(path):
    """
    :param path:
    :return: list of file paths
    """
    file_list = []
    if os.path.isdir(path):
    print("it's a directory")
    for root, dirs, files in os.walk(path):
    for f in files:
    file = os.path.join(root, f)
    file_list.append(file)
    return file_list
    elif os.path.isfile(path):
    print("it's a normal file")
    return [path]

    class pd_service(Bases):
    def get_data(self, file_path):
    """
    Read s3 files, merge forms
    :param file_path:
    :return:
    """
    df_all = pd.DataFrame()
    for paths in self.path_list(path=file_path):
    df_all = pd.concat([df_all, pd.read_orc(paths)], axis=0)
    print('Row number of tables:', df_all[df_all.columns[1]].count())
    print(df_all.columns.values)
    df_all.sort_values("TradeTime", inplace=True)
    df_all.to_csv("test_data_s3.csv", header=True, index=False)
    print(df_all)
    return df_all

    if __name__ == '__main__':
    # file path
    path = 'XXXX'
    test = pd_service()
    test.get_data(file_path=path)

    Request Example

    POST /fht/compliance/tax/v3/private/url HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671184057480
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {"queryId":"12312312415325325"}

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "url": "{\"Files\":[\"20221216/adfsf34234-8e87-4c72-bc70-dsa234234daf/_SUCCESS\",\"20221216/dafasdf34243-8e87-4c72-bc70-dafsd34234/part-00000-adfsd34-00bd-4fe9-9591-adfasr343-c000\"],\"Basepath\":\"https://prod-bybit-tax-api-1705-rz.s3.ap-southeast-1.amazonaws.com/\"}"
    },
    "retExtInfo": {},
    "time": 1671184057646
    }
    - + \ No newline at end of file diff --git a/tax/enum.html b/tax/enum.html index 54283161cb..ed59e9b4ab 100644 --- a/tax/enum.html +++ b/tax/enum.html @@ -4,13 +4,13 @@ Enums Definitions | Bybit API Documentation - +

    Enums Definitions

    ReportType

    • TRADE - TradeHistory
    • P&L - P&L History
    • EARN - Earn History
    • DEPOSIT&WITHDRAWAL - Deposit and Withdrawal History
    • BONUS - Bonus History
    • AIRDROP - Airdrop History

    ReportNumber

    ReportType = "TRADE"

    • 1 - Get Spot Trade History
    • 2 - Get Contract Trade History
    • 3 - Get USDC Options Trade History
    • 4 - Get NFT Trade History

    ReportType = "P&L"

    • 1 - Get Contract Closed P&L History

    ReportType = "EARN"

    • 1 - Get BybitSavings Yield History
    • 2 - Get LiquidityMining Liquidity History
    • 3 - Get LiquidityMining Yield History
    • 4 - Get LiquidityMining Swap History
    • 5 - Get DualAsset Swap History
    • 6 - Get DeFiMining Yield History
    • 7 - Get Launchpool Yield History
    • 8 - Get Sharkfin Yield History

    ReportType = "DEPOSIT&WITHDRAWAL"

    • 1 - Get Crypto Deposit History
    • 2 - Get P2P Deposit History
    • 3 - Get Fiat Deposit and Withdraw History
    • 4 - Get Express Order Deposit History
    • 5 - Get Third Party Deposit History
    • 6 - Get Crypto Withdraw History
    • 7 - Get NFT Deposit and Withdrawal History

    ReportType = "BONUS"

    • 1 - Get Coupon History
    • 2 - Get Bonus History

    ReportType = "AIRDROP"

    • 1 - Get Airdrop History
    - + \ No newline at end of file diff --git a/tax/explain.html b/tax/explain.html index e201cf7fa4..14088ebdb3 100644 --- a/tax/explain.html +++ b/tax/explain.html @@ -4,13 +4,13 @@ Data Explanation | Bybit API Documentation - +

    Data Explanation

    Trade History

    1. Spot Trade History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID of the closing order
    TradeIDstringTrade ID of the closing order
    SymbolstringName of the trading pair in the form of
    SidestringSide. Either Buy or Sell direction
    QuoteCoinstringSymbol of the Quote Coin
    BaseCoinstringSymbol of the Executed Coin
    ExecPricestringExecution Price
    ExecValuestringTransacted volume
    TradingFeestringTrading fee for a single fill
    FeeTokenstringToken of the Trading Fee
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    2. Contract Trade History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID of the closing order.
    TradeIDstringTrade ID of the closing order.
    ContractTypestringTypes of Contract. Inverse Contracts, Linear Contracts, Future Contracts
    SymbolstringName of the trading pair in the form of
    SidestringSide. Either Buy or Sell direction
    QuoteCoinstringSymbol of the Quote Coin
    BaseCoinstringSymbol of the Executed Coin
    ExecPricestringExecution Price
    ExecQtystringTransaction Quantity
    ExecTypestringExecution Types. Trade, ADL, BustTrade
    ExecValuestringTransacted volume
    FeeRatestringRates for Maker or taker fee
    FeeTokenstringToken of the Trading Fee
    TradingFeestringTrading fee for a single fill
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed
    ClosedSizestringClosed postion size
    OrderTypestringOrder type

    3. USDC Options Trade History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID of the closing order.
    TradeIDstringTrade ID of the closing order.
    ContractTypestringTypes of Contract. Inverse Contracts, Linear Contracts, Future Contracts
    SymbolstringName of the trading pair in the form of
    SidestringSide. Either Buy or Sell direction
    QuoteCoinstringSymbol of the Quote Coin
    BaseCoinstringSymbol of the Executed Coin
    ExecPricestringExecution Price
    ExecQtystringTransaction Quantity
    ExecTypestringExecution Types. Trade, ADL, BustTrade
    ExecValuestringTransacted volume
    FeeRatestringRates for Maker or taker fee
    FeeTokenstringToken of the Trading Fee
    TradingFeestringTrading fee for a single fill
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    4. NFT Trade History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID of the closing order.
    NetworkstringName of Network.
    SidestringSide. Either Buy or Sell direction
    NftIdstringID of the NFT collection
    ExecValuestringTransacted volume
    BaseCoinstringSymbol of the Executed Coin
    PlatformFeestringFees for Platform, Fee is as per Base coin
    ShareFeestringFees for Sharing, Fee is as per Base coin
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    P&L History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID of the closing order.
    ContractTypestringTypes of Contract. Inverse Contracts, Linear Contracts, Future Contracts
    SymbolstringName of the trading pair in the form of
    SidestringSide. Either Buy or Sell direction
    ClosedSizestringClosed Size
    CumEntryValuestringCumulative entry value
    AvgEntryPricestringAverage entry price
    CumExitValuestringCumulative exit value
    AvgExitPricestringAverage exit price
    SettleCoinstringSettle Coin. Coin for Profit and Loss
    ClosedPNLstringClosed Profit and Loss
    FillCountstringThe number of fills in a single order
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    Earn History

    1. BybitSavings Yield History

    Response Parameters

    ParameterTypeComments
    AssetStakedCoinstringCoin that was used to staked in the Bybit Savings Product
    StakingTypestringType of Staking. Flexible and Fixed Term
    AssetEarnedCoinstringCoin that the Interest is given out in
    EffectiveStakingAmountstringTotal amount staked with the Asset Staked coin
    YieldstringAmount of the Interest coin that was given out based on
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    2. LiquidityMining Liquidity History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID of the closing order.
    SymbolstringName of the trading pair in the form of
    OrderTypestringIncludes the different types of liquidity mining. Add, Remove, Reduce Leverage, Reinvest
    EntryPricestringEntry price of principal coin pair at time of order
    LeveragestringLeverage Multiples
    SlippagestringDifference between price of an order and the price when the order actually executes
    LiquiditystringLiquidity = Principal Change multiplied by Leverage
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    3. LiquidityMining Yield History

    Response Parameters

    ParameterTypeComments
    AssetEarnedCoinstringCoin that the Interest is given out in
    YieldstringAmount of the Interest coin that was given out based on
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    4. LiquidityMining Swap History

    Response Parameters

    ParameterTypeComments
    OrderIdstringtranslation missing: en.taxOrderID
    InitialCoinstringThe coin in the pair that you are trying to swap from.
    DepositAmountstringQuantity of the selected coin in the pair that you are trying to swap from
    SwapCoinstringThe coin in the pair that you are trying to swap into.
    SwapAmountstringQuantity of the selected coin in the pair that you are trying to swap to
    SwapFeeTokenstringFee will be in the swap coin.
    SwapFeestringFee incurred after the swap was successfully performed. Fee will be in the swap coin
    SlippagestringDifference between price of an order and the price when the order actually executes
    TradeTimestringUNIX Time. This is in milliseconds. Time when the trade was executed

    5. DualAsset Swap History

    Response Parameters

    ParameterTypeComments
    OrderIdstringOrder ID
    InitialCoinstringThe coin in the pair that you are trying to swap from.
    DepositAmountstringQuantity of the selected coin in the pair that you are trying to swap from
    SwapCoinstringThe coin in the pair that you are trying to swap into.
    SwapAmountstringQuantity of the selected coin in the pair that you are trying to swap to
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    TradeTimenumberUNIX Time. This is in milliseconds. Time when the trade was executed

    6. DeFiMining Yield History

    Response Parameters

    ParameterTypeComments
    OrderIdstringtranslation missing: en.taxOrderID
    AssetStakedCoinstringCoin that was used to staked in the Bybit Savings Product
    YieldstringAmount of the Interest coin that was given out based on
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    TradeTimenumberUNIX Time. This is in milliseconds. Time when the trade was executed

    7. Launchpool Yield History

    Response Parameters

    ParameterTypeComments
    AssetEarnedCoinstringCoin that the Interest is given out in
    EffectiveStakingAmountstringTotal amount staked with the Asset Staked coin
    YieldstringAmount of the Interest coin that was given out based on
    TradeTimenumberUNIX Time. This is in milliseconds. Time when the trade was executed

    8. Sharkfin Yield History

    Response Parameters

    ParameterTypeComments
    AssetEarnedCoinstringCoin that the Interest is given out in
    YieldstringAmount of the Interest coin that was given out based on
    TradeTimenumberUNIX Time. This is in milliseconds. Time when the trade was executed

    Deposit And Withdraw History

    1. Crypto Deposit History

    Response Parameters

    ParameterTypeComments
    TxidstringTransactionID
    DepositTypestringType of Deposit. On-chain Deposit
    ChainTypestringChain name
    SymbolstringName of the trading pair in the form of
    FinalAmountstringQuantity of Crypto
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    CompletedTimenumberComplete timestamp (ms)

    2. P2P Deposit History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID
    OrderTypestringIncludes the different types of liquidity mining. Add, Remove, Reduce Leverage, Reinvest
    P2pSidestringFor P2P Buyer, this represents the buyer bought the respective Coin and using Fiat currency. For P2P Seller, this represents the buyer sold the respective Coin and receive Fiat currency in return.
    FiatstringFiat type
    FiatAmountstringFiat deposited
    CoinstringSymbol of coin purchased
    CoinPricestringPrice of coin purchased
    CoinAmountstringQuantity of coin that is purchased
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    CompletedTimenumberComplete timestamp (ms)

    3. Fiat Deposit and Withdraw History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID
    TypestringType. DEPOSIT, WITHDRAW
    FiatstringFiat type
    DepositAmountstringQuantity of the selected coin in the pair that you are trying to swap from
    FinalAmountstringQuantity of Crypto
    FeestringFee for Fiat Deposit
    PaymentMethodsstringDifferent payment methods
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    CompletedTimenumberComplete timestamp (ms)

    4. Express Order Deposit History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID
    SidestringType of Order. Buy
    FiatstringFiat type
    DepositAmountstringFiat deposited via Credit card.
    DestinationCoinstringSymbol of coin purchased
    CoinPricestringPrice of coin purchased
    FinalAmountstringQuantity of Crypto
    FeestringAny fees in fiat involved when depositing via Credit card
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    CompletedTimenumberComplete timestamp (ms)

    5. Third Party Deposit History

    Response Parameters

    ParameterTypeComments
    OrderIDstringOrder ID
    TxidstringTransactionID
    PlatformstringPayment Platform methods
    FiatstringFiat type
    DepositAmountstringQuantity of the selected coin in the pair that you are trying to swap from
    DestinationCoinstringSymbol of coin purchased
    CoinPricestringPrice of coin purchased
    FinalAmountstringQuantity of Crypto
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    CompletedTimenumberComplete timestamp (ms)

    6. Crypto Withdraw History

    Response Parameters

    ParameterTypeComments
    TxidstringTransactionID
    ChainTypestringChain name
    CoinstringSymbol of coin purchased
    FinalAmountstringQuantity of Crypto
    FeestringWithdrawal fee as per the withdrawal coin
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    CompletedTimenumberComplete timestamp (ms)

    7. NFT Deposit and Withdrawal History

    Response Parameters

    ParameterTypeComments
    OrderIdstringtranslation missing: en.taxOrderID
    TxHashstringUnique IDs recording each NFT transaction
    TokenIdstringAll NFTs have a uint256 variable that identifies different NFT
    TransferTypestringType. Deposit, Withdrawal
    NetworkstringName of Network.
    FeeTokenstringToken of the Trading Fee
    FeestringAny fee incurred using the transaction of the NFT
    OrderTimenumberUNIX Time. This is in milliseconds. Time which the order was ordered
    CompletedTimenumberComplete timestamp (ms)

    Bonus History

    tip
  • Bonus - The experience bonus can be used to open a position and deduct the handling fee and the funding rate fee because it is paid directly to the user's asset account. All bonuses shown are already applied by the users.
  • Coupon - Money from coupons are deductible will only be used to offset the handling fee. It will not be added to the user's asset account. It will be refunded to the user's asset account following the deduction. All coupons shown are already applied by the users.
  • 1. Coupon History

    Response Parameters

    ParameterTypeComments
    CoinstringCoin that is given to user as coupon
    FinalAmountstringAmount of the coin given to user
    CompletedTimenumberComplete timestamp (ms)

    2. Bonus History

    Response Parameters

    ParameterTypeComments
    CoinstringCoin that is given to user as coupon
    FinalAmountstringAmount of the coin given to user
    CompletedTimenumberComplete timestamp (ms)

    Airdrop History

    Response Parameters

    ParameterTypeComments
    CoinstringCoin that is airdropped to user
    FinalAmountstringAmount of the airdrop given to user
    TransferTypestringType of Airdrop. Airdrop Deposit, Airdrop Withdrawal
    TransferDescriptionstringDescription of the Transfer
    CompletedTimenumberComplete timestamp (ms)
    - + \ No newline at end of file diff --git a/tax/report.html b/tax/report.html index 30ea9ece2c..1653927a1b 100644 --- a/tax/report.html +++ b/tax/report.html @@ -4,13 +4,13 @@ Request Export Report | Bybit API Documentation - +

    Request Export Report

    Request to export report

    HTTP Request

    POST /fht/compliance/tax/v3/private/create

    Request Parameters

    ParameterRequiredTypeComments
    typetruestringReport Type
    numbertruestringReport Number
    startTimetruestringUNIX Time. This is in seconds. Timestamp for report start time. The StartTime is included in the Time range for the Data Export.
    endTimetruestringUNIX Time. This is in seconds. Timestamp for report end time. The EndTime is not included in the Time range for the Data Export. Do note that for each request, we will only allow up to 2 months time range search from the StartTime

    Response Parameters

    ParameterTypeComments
    queryIdstringReport Request ID

    Request Example

    POST /fht/compliance/tax/v3/private/create HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671183681683
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {"startTime":"1667264621","endTime":"1669261057","type":"TRADE","number":"2"}

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "queryId": "12312312415325325"
    },
    "retExtInfo": {},
    "time": 1671183681990
    }
    - + \ No newline at end of file diff --git a/tax/status.html b/tax/status.html index 4599862951..bb93942020 100644 --- a/tax/status.html +++ b/tax/status.html @@ -4,13 +4,13 @@ Get Export Report Status | Bybit API Documentation - +

    Get Export Report Status

    Get Export Report Status

    HTTP Request

    POST /fht/compliance/tax/v3/private/status

    Request Parameters

    ParameterRequiredTypeComments
    queryIdtruestringReport Request ID

    Response Parameters

    ParameterTypeComments
    statusstring
    • -1: Failed
    • 0: Queued
    • 1: Processing
    • 2: Processed
    • 3: Expired

    Request Example

    POST /fht/compliance/tax/v3/private/status HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671183923110
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {"queryId":"12312312415325325"}

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "status": "2"
    },
    "retExtInfo": {},
    "time": 1671183923244
    }
    - + \ No newline at end of file diff --git a/tax/time.html b/tax/time.html index edd212c868..9237627263 100644 --- a/tax/time.html +++ b/tax/time.html @@ -4,13 +4,13 @@ Get User Register Date | Bybit API Documentation - +

    Get User Register Date

    Get User Register Date

    HTTP Request

    POST /fht/compliance/tax/v3/private/registertime

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    registerTimestringUNIX Time. This is in seconds. Date that the specific user registers on the platform

    Request Example

    POST /fht/compliance/tax/v3/private/registertime HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671183584043
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {}

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "registerTime": "1634515200"
    },
    "retExtInfo": {},
    "time": 1671183584270
    }
    - + \ No newline at end of file diff --git a/v3/intro.html b/v3/intro.html index d72af0ec71..37ac4f9101 100644 --- a/v3/intro.html +++ b/v3/intro.html @@ -4,7 +4,7 @@ Introduction | Bybit API Documentation - + @@ -14,7 +14,7 @@ keys through the software, and then only provide the public key to Bybit, we will never hold your private key.

    1.Use api-rsa-generator to create RSA private and public key
    2.Follow RSA sample scripts to complete encryption procedures.

    Parameters for Authenticated Endpoints

    The following parameters must be used for authentication:

    • X-BAPI-API-KEY - api key
    • X-BAPI-TIMESTAMP - UTC timestamp in milliseconds
    • X-BAPI-SIGN - a signature derived from the request's parameters
    • X-Referer or Referer - the header for broker users only

    We also provide X-BAPI-RECV-WINDOW (unit in millisecond and default value is 5,000) to specify how long an HTTP request is valid. It is also used to prevent replay attacks.

    A smaller X-BAPI-RECV-WINDOW is more secure, but your request may fail if the transmission time is greater than your X-BAPI-RECV-WINDOW.

    caution

    Please make sure that the timestamp parameter adheres to the following rule:
    server_time - recv_window <= timestamp < server_time + 1000

    Create A Request

    info

    Example signature algorithms can be found here

    Basic steps:

    1. timestamp + api-key + (recv_window) + (queryString | jsonBodyString)
    2. Use the HMAC_SHA256 or RSA_SHA256 algorithm to sign the string in step 1, and convert it to a hex string (HMAC_SHA256) / base64 (RSA_SHA256) to obtain the sign parameter.
    3. Append the sign parameter to request header, and send the HTTP request. Note: the plain text for GET and POST requests is different. Please refer to blew examples.

    An example for how to generate plain text to encrypt

    # rule:
    timestamp+api_key+recv_window+queryString

    # param_str
    "1658384314791XXXXXXXXXX5000category=option&symbol=BTC-29JUL22-25000-C"

    # parse
    timestamp = "1658384314791"
    api_key = "XXXXXXXXXX"
    recv_window = "5000"
    queryString = "category=option&symbol=BTC-29JUL22-25000-C"

    http request examples

    GET /unified/v3/private/order/list?category=option&symbol=BTC-29JUL22-25000-C HTTP/1.1
    Host: api-testnet.bybit.com
    -H 'X-BAPI-SIGN: XXXXXXXXXX' \
    -H 'X-BAPI-API-KEY: XXXXXXXXXX' \
    -H 'X-BAPI-TIMESTAMP: 1658384431891' \
    -H 'X-BAPI-RECV-WINDOW: 5000'
    -H 'cdn-request-id: test-001'

    Common response parameters

    Derivatives

    ParameterTypeComments
    retCodenumberSuccess/Error code
    retMsgstringSuccess/Error msg. Can be OK,success,Success for Success message
    resultObjectBusiness data result
    retExtInfoObjectExtend info. Most of time, it is {}
    timenumberCurrent timestamp (ms)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017473888
    }

    {
    "retCode": 0,
    "retMsg": "Success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017572923
    }

    Spot

    ParameterTypeComments
    retCodenumberSuccess/Error code
    retMsgstringSuccess/Error msg. Can be OK,success,Success for Success message
    resultObjectBusiness data result
    retExtInfoObjectExtend info. Most of time, it is {}
    timenumberCurrent timestamp (ms)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017473888
    }

    {
    "retCode": 0,
    "retMsg": "Success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017572923
    }

    Account Asset

    ParameterTypeComments
    retCodenumberSuccess/Error code
    retMsgstringSuccess/Error msg. Can be OK,success,Success for Success message
    resultObjectBusiness data result
    retExtInfoObjectExtend info. Most of time, it is {}
    timenumberCurrent timestamp (ms)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017473888
    }

    {
    "retCode": 0,
    "retMsg": "Success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017572923
    }
    - + \ No newline at end of file diff --git a/v5/abandon/account-info.html b/v5/abandon/account-info.html index ae575fcc8a..e590f8293d 100644 --- a/v5/abandon/account-info.html +++ b/v5/abandon/account-info.html @@ -4,13 +4,13 @@ Get Lending Account Info | Bybit API Documentation - +

    Get Lending Account Info

    HTTP Request

    GET /v5/lending/account

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name

    Response Parameters

    ParameterTypeComments
    coinstringCoin name
    principalIntereststringUser Redeemable interest
    principalQtystringLeftover quantity you can redeem for today (measured from 0 - 24 UTC), formula: min(the rest amount of principle, the amount that the user can redeem on the day)
    principalTotalstringTotal amount redeemable by user
    quantitystringCurrent deposit quantity

    Request Example

    GET /v5/lending/account?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682049556563
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "coin": "BTC",
    "principalInterest": "0",
    "principalQty": "1",
    "principalTotal": "1",
    "quantity": "1"
    },
    "retExtInfo": {},
    "time": 1682049706988
    }
    - + \ No newline at end of file diff --git a/v5/abandon/cancel-redeem.html b/v5/abandon/cancel-redeem.html index 5e5f6bc96a..d66fcdf05b 100644 --- a/v5/abandon/cancel-redeem.html +++ b/v5/abandon/cancel-redeem.html @@ -4,13 +4,13 @@ Cancel Redeem | Bybit API Documentation - +

    Cancel Redeem

    Cancel the withdrawal operation.

    HTTP Request

    POST /v5/lending/redeem-cancel

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin name
    orderIdfalsestringThe order ID of redemption
    serialNofalsestringSerial no. The customised ID of redemption

    Response Parameters

    ParameterTypeComments
    orderIdstringOrder ID
    serialNostringSerial No
    updatedTimestringUpdated timestamp (ms)

    Request Example

    POST /v5/lending/redeem-cancel HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682048277724
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "coin": "BTC",
    "orderId": "1403517113428086272",
    "serialNo": null
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "1403517113428086272",
    "serialNo": "linear004",
    "updatedTime": "1682048277963"
    },
    "retExtInfo": {},
    "time": 1682048278001
    }
    - + \ No newline at end of file diff --git a/v5/abandon/coin-info.html b/v5/abandon/coin-info.html index 57a529c8f2..aaf4798daf 100644 --- a/v5/abandon/coin-info.html +++ b/v5/abandon/coin-info.html @@ -4,13 +4,13 @@ Get Lending Coin Info | Bybit API Documentation - +

    Get Lending Coin Info

    Get the basic information of lending coins

    info

    All v5/lending APIs need SPOT permission.

    HTTP Request

    GET /v5/lending/info

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin name. Return all currencies by default

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > coinstringCoin name
    > maxRedeemQtystringThe maximum redeemable qty per day (measured from 0 - 24 UTC)
    > minPurchaseQtystringThe minimum qty that can be deposited per request
    > precisionstringDeposit quantity accuracy
    > ratestringAnnualized interest rate. e.g. 0.0002 means 0.02%
    > loanToPoolRatiostringCapital utilization rate. e.g. 0.0004 means 0.04%
    > actualApystringThe actual annualized interest rate

    Request Example

    GET /v5/lending/info?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682045949295
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "actualApy": "0.003688421873941958",
    "coin": "ETH",
    "loanToPoolRatio": "0.16855491872747133044",
    "maxRedeemQty": "161",
    "minPurchaseQty": "0.03",
    "precision": "8",
    "rate": "0.003411300771389848"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1682045942972
    }
    - + \ No newline at end of file diff --git a/v5/abandon/deposit.html b/v5/abandon/deposit.html index 137d0d217f..a97a0b8e86 100644 --- a/v5/abandon/deposit.html +++ b/v5/abandon/deposit.html @@ -4,13 +4,13 @@ Deposit Funds | Bybit API Documentation - +

    Deposit Funds

    Lending funds to Bybit asset pool

    info
    • normal & UMA account: deduct funds from Spot wallet
    • UTA account: deduct funds from Unified wallet

    HTTP Request

    POST /v5/lending/purchase

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name
    quantitytruestringDeposit quantity
    serialNofalsestringCustomised ID. If not passed, system will create one by default

    Response Parameters

    ParameterTypeComments
    coinstringCoin name
    createdTimestringCreated timestamp (ms)
    orderIdstringOrder ID
    quantitystringDeposit quantity
    serialNostringSerial No
    statusstringOrder status. 0: Initial, 1: Processing, 2: Success, 10: Failed
    updatedTimestringUpdated timestamp (ms)

    Request Example

    POST /v5/lending/purchase HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682046368938
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "coin": "USDC",
    "quantity": "20.00005",
    "serialNo": "test-00007"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "coin": "USDC",
    "createdTime": "1682046369112",
    "orderId": "1403501100816928256",
    "quantity": "20.00005",
    "serialNo": "test-00007",
    "status": "0",
    "updatedTime": "1682046369112"
    },
    "retExtInfo": {},
    "time": 1682046369120
    }
    - + \ No newline at end of file diff --git a/v5/abandon/earning.html b/v5/abandon/earning.html index f33cd81943..6f6ffd77ab 100644 --- a/v5/abandon/earning.html +++ b/v5/abandon/earning.html @@ -4,13 +4,13 @@ Get Broker Earning | Bybit API Documentation - +

    Get Broker Earning

    danger

    This endpoint has been depreciated, please move to new Get Exchange Broker Earning

    info
    • Use exchange broker master account to query
    • The data can support up to past 6 months until T-1
    • startTime & endTime are either entered at the same time or not entered

    HTTP Request

    GET /v5/broker/earning-record

    Request Parameters

    ParameterRequiredTypeComments
    bizTypefalsestringBusiness type. SPOT, DERIVATIVES, OPTIONS
    startTimefalseintegerThe start timestamp(ms)
    endTimefalseintegerThe end timestamp(ms)
    limitfalseintegerLimit for data size per page. [1, 1000]. Default: 1000
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > userIdstringUID
    > bizTypestringBusiness type
    > symbolstringSymbol name
    > coinstringCoin name. The currency of earning
    > earningstringCommission
    > orderIdstringOrder ID
    > execTimestringExecution timestamp (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/broker/earning-record?bizType=SPOT&startTime=1686240000000&endTime=1686326400000&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686708862669
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "userId": "xxxx",
    "bizType": "SPOT",
    "symbol": "BTCUSDT",
    "coin": "BTC",
    "earning": "0.000015",
    "orderId": "1531607271849858304",
    "execTime": "1686306035957"
    }
    ],
    "nextPageCursor": "0%2C1"
    },
    "retExtInfo": {},
    "time": 1686708863283
    }
    - + \ No newline at end of file diff --git a/v5/abandon/enable-unitransfer-subuid.html b/v5/abandon/enable-unitransfer-subuid.html index 5082d4aae3..b6a2122bb8 100644 --- a/v5/abandon/enable-unitransfer-subuid.html +++ b/v5/abandon/enable-unitransfer-subuid.html @@ -4,13 +4,13 @@ Enable Universal Transfer for Sub UID | Bybit API Documentation - +

    Enable Universal Transfer for Sub UID

    info

    You no longer need to configure transferable sub UIDs. Now, all sub UIDs are automatically enabled for universal transfer.

    Transfer between sub-sub or main-sub

    Use this endpoint to enable a subaccount to take part in a universal transfer. It is a one-time switch which, once thrown, enables a subaccount permanently. If not set, your subaccount cannot use universal transfers.

    caution

    Can query by the master UID's api key only

    HTTP Request

    POST /v5/asset/transfer/save-transfer-sub-member

    Request Parameters

    ParameterRequiredTypeComments
    subMemberIdstruearrayThis list has a single item. Separate multiple UIDs by comma, e.g., "uid1,uid2,uid3"

    Response Parameters

    None

    Request Example

    POST /v5/asset/transfer/save-transfer-sub-member HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672147595971
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "subMemberIds": ["554117,592324,592334"]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {},
    "retExtInfo": {},
    "time": 1672147593188
    }
    - + \ No newline at end of file diff --git a/v5/abandon/ltv.html b/v5/abandon/ltv.html index 70d3fc3aac..4c054c17ef 100644 --- a/v5/abandon/ltv.html +++ b/v5/abandon/ltv.html @@ -4,13 +4,13 @@ Get LTV | Bybit API Documentation - +

    Get LTV

    HTTP Request

    GET /v5/ins-loan/ltv

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    ltvInfoarrayObject
    > ltvstringRisk rate
    > parentUidstringUser id
    > subAccountUidsarrayBound user id
    > unpaidAmountstringTotal debt(USDT)
    > unpaidInfoarrayDebt details
    >> tokenstringcoin
    >> unpaidQtystringUnpaid principle
    >> unpaidIntereststringUnpaid interest
    > balancestringTotal asset. (margin coins converted to USDT). Please read here to understand the calculation
    > spotBalanceInfoarraySpot asset details
    >> tokenstringSpot margin coin
    >> pricestringSpot margin coin price
    >> qtystringSpot margin coin quantity
    > contractInfoarrayContract asset details
    >> tokenstringContract margin coin
    >> pricestringContract margin coin index price
    >> qtystringContract margin coin quantity (available balance of Contract account, and it is not involved with LTV calculation)

    Request Example

    GET /v5/ins-loan/ltv HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1678688069538
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "ltvInfo": [
    {
    "ltv": "0.1147",
    "parentUid": "999805",
    "subAccountUids": [
    "999805"
    ],
    "unpaidAmount": "",
    "unpaidInfo": [
    {
    "token": "USDT",
    "unpaidQty": "6351.49614274",
    "unpaidInterest": "264.0137162"
    }
    ],
    "balance": "57626.875915433333333332400000000",
    "spotBalanceInfo": [
    {
    "token": "BTC",
    "price": "16375.621333333333333332",
    "qty": "0.2"
    },
    ....
    {
    "token": "XRP",
    "price": "0.409517",
    "qty": "10000"
    }
    ],
    "contractInfo": [
    {
    "token": "USDT",
    "price": "1",
    "qty": "0"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1669367335608
    }
    - + \ No newline at end of file diff --git a/v5/abandon/margin-coin-info.html b/v5/abandon/margin-coin-info.html index 8bce17d707..66ea70b807 100644 --- a/v5/abandon/margin-coin-info.html +++ b/v5/abandon/margin-coin-info.html @@ -4,13 +4,13 @@ Get Margin Coin Info | Bybit API Documentation - +

    Get Margin Coin Info

    HTTP Request

    GET /v5/ins-loan/ensure-tokens

    Request Parameters

    ParameterRequiredTypeComments
    productIdfalsestringProductId. If not passed, then return all product margin coin. For spot, it returns coin that convertRation greater than 0.

    Response Parameters

    ParameterTypeComments
    marginTokenarrayObject
    > productIdstringProduct Id
    > spotTokenarraySpot margin coin
    >> tokenstringMargin coin
    >> convertRatiostringMargin coin convert ratio
    > contractTokenarrayContract margin coin
    >> tokenstringMargin coin
    >> convertRatiostringMargin coin convert ratio

    Request Example

    GET /v5/ins-loan/ensure-tokens?productId=70 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "marginToken": [
    {
    "productId": "70",
    "spotToken": [
    {
    "token": "BTC",
    "convertRatio": "1.00000000"
    },
    {
    "token": "ETH",
    "convertRatio": "1.00000000"
    },
    {
    "token": "USDT",
    "convertRatio": "1"
    }
    ],
    "contractToken": [
    {
    "token": "USDT",
    "convertRatio": "1"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1669363954802
    }
    - + \ No newline at end of file diff --git a/v5/abandon/order-record.html b/v5/abandon/order-record.html index 0e2d542157..436dfcf00f 100644 --- a/v5/abandon/order-record.html +++ b/v5/abandon/order-record.html @@ -4,13 +4,13 @@ Get Order Records | Bybit API Documentation - +

    Get Order Records

    Get lending or redeem history

    HTTP Request

    GET /v5/lending/history-order

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin name
    orderIdfalsestringOrder ID
    startTimefalselongThe start timestamp (ms)
    endTimefalselongThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 500]. Default: 50
    orderTypefalsestringOrder type. 1: deposit, 2: redemption, 3: Payment of proceeds

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > coinstringCoin name
    > createdTimestringCreated timestamp (ms)
    > orderIdstringOrder ID
    > quantitystringquantity
    > serialNostringSerial No
    > statusstringOrder status. 0: Initial, 1: Processing, 2: Success, 10: Failed, 11: Cancelled
    > updatedTimestringUpdated timestamp (ms)

    Request Example

    GET /v5/lending/history-order?orderNo=1403517113428086272 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: 9pXyrhxTlXXXXXaVQGSaP3n
    X-BAPI-TIMESTAMP: 1682049395799
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "coin": "BTC",
    "createdTime": "1682048277963",
    "orderId": "1403517113428086272",
    "orderType": "2",
    "quantity": "0.1",
    "serialNo": "14035171132183710722373",
    "status": "2",
    "updatedTime": "1682048278245"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1682049395967
    }
    - + \ No newline at end of file diff --git a/v5/abandon/redeem.html b/v5/abandon/redeem.html index 369c2fa478..ccb47086b8 100644 --- a/v5/abandon/redeem.html +++ b/v5/abandon/redeem.html @@ -4,13 +4,13 @@ Redeem Funds | Bybit API Documentation - +

    Redeem Funds

    Withdraw funds from the Bybit asset pool.

    tip

    There will be two redemption records: one for the redeemed quantity, and the other one is for the total interest occurred.

    HTTP Request

    POST /v5/lending/redeem

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name
    quantityturestringRedemption quantity
    serialNofalsestringSerial no. A customised ID, and it will automatically generated if not passed

    Response Parameters

    ParameterTypeComments
    coinstringCoin name
    createdTimestringCreated timestamp (ms)
    orderIdstringOrder ID
    principalQtystringRedemption quantity
    serialNostringSerial No
    statusstringOrder status. 0: Initial, 1: Processing, 2: Success, 10: Failed
    updatedTimestringUpdated timestamp (ms)

    Request Example

    POST /v5/lending/redeem HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682048277724
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "coin": "BTC",
    "quantity": "0.1",
    "serialNo": null
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "coin": "BTC",
    "createdTime": "1682048277963",
    "orderId": "1403517113428086272",
    "principalQty": "0.1",
    "serialNo": "14035171132183710722373",
    "status": "0",
    "updatedTime": "1682048277963"
    },
    "retExtInfo": {},
    "time": 1682048278001
    }
    - + \ No newline at end of file diff --git a/v5/account/account-info.html b/v5/account/account-info.html index 58549c531e..f631424305 100644 --- a/v5/account/account-info.html +++ b/v5/account/account-info.html @@ -4,13 +4,13 @@ Get Account Info | Bybit API Documentation - +

    Get Account Info

    Query the account information, like margin mode, account mode, etc.

    HTTP Request

    GET /v5/account/info

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    unifiedMarginStatusintegerAccount status
    marginModestringISOLATED_MARGIN, REGULAR_MARGIN, PORTFOLIO_MARGIN
    isMasterTraderbooleanWhether this account is a leader (copytrading). true, false
    spotHedgingStatusstringWhether the unified account enables Spot hedging. ON, OFF
    updatedTimestringAccount data updated timestamp (ms)
    dcpStatusstringDepreciated, always OFF. Please use Get DCP Info
    timeWindowintegerDepreciated, always 0. Please use Get DCP Info
    smpGroupintegerDepreciated, always 0. Please query Get SMP Group ID endpoint

    Request Example

    GET /v5/account/info HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672129307221
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "marginMode": "REGULAR_MARGIN",
    "updatedTime": "1697078946000",
    "unifiedMarginStatus": 4,
    "dcpStatus": "OFF",
    "timeWindow": 10,
    "smpGroup": 0,
    "isMasterTrader": false,
    "spotHedgingStatus": "OFF"
    }
    }
    - + \ No newline at end of file diff --git a/v5/account/batch-set-collateral.html b/v5/account/batch-set-collateral.html index 5427f65e0c..022463888f 100644 --- a/v5/account/batch-set-collateral.html +++ b/v5/account/batch-set-collateral.html @@ -4,13 +4,13 @@ Batch Set Collateral Coin | Bybit API Documentation - +

    Batch Set Collateral Coin

    HTTP Request

    POST /v5/account/set-collateral-switch-batch

    Request Parameters

    ParameterRequiredTypeComments
    requesttruearrayObject
    > cointruestringCoin name, uppercase only
    • You can get collateral coin from here
    • USDT, USDC cannot be set
    > collateralSwitchtruestringON: switch on collateral, OFF: switch off collateral

    Response Parameters

    ParameterTypeComments
    resultObject
    > listarrayObject
    >> coinstringCoin name
    >> collateralSwitchstringON: switch on collateral, OFF: switch off collateral

    Request Example

    POST /v5/account/set-collateral-switch-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1704782042755
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 371

    {
    "request": [
    {
    "coin": "MATIC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "BTC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "ETH",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "SOL",
    "collateralSwitch": "OFF"
    }
    ]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "result": {
    "list": [
    {
    "coin": "MATIC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "BTC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "ETH",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "SOL",
    "collateralSwitch": "OFF"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1704782042913
    }
    - + \ No newline at end of file diff --git a/v5/account/borrow-history.html b/v5/account/borrow-history.html index 991f7ec2c4..da1b260692 100644 --- a/v5/account/borrow-history.html +++ b/v5/account/borrow-history.html @@ -4,13 +4,13 @@ Get Borrow History | Bybit API Documentation - +

    Get Borrow History

    Get interest records, sorted in reverse order of creation time.

    HTTP Request

    GET /v5/account/borrow-history

    Request Parameters

    ParameterRequiredTypeComments
    currencyfalsestringUSDC,USDT,BTC,ETH etc, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 30 days by default
    • Only startTime is passed, return range between startTime and startTime+30 days
    • Only endTime is passed, return range between endTime-30 days and endTime
    • If both are passed, the rule is endTime - startTime <= 30 days
    endTimefalseintegerThe end time. timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > currencystringUSDC,USDT,BTC,ETH
    > createdTimeintegerCreated timestamp (ms)
    > borrowCoststringInterest
    > hourlyBorrowRatestringHourly Borrow Rate
    > InterestBearingBorrowSizestringInterest Bearing Borrow Size
    > costExemptionstringCost exemption
    > borrowAmountstringTotal borrow amount
    > unrealisedLossstringUnrealised loss
    > freeBorrowedAmountstringThe borrowed amount for interest free
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/account/borrow-history?currency=BTC&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672277745427
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "2671153%3A1%2C2671153%3A1",
    "list": [
    {
    "borrowAmount": "1.06333265702840778",
    "costExemption": "0",
    "freeBorrowedAmount": "0",
    "createdTime": 1697439900204,
    "InterestBearingBorrowSize": "1.06333265702840778",
    "currency": "BTC",
    "unrealisedLoss": "0",
    "hourlyBorrowRate": "0.000001216904",
    "borrowCost": "0.00000129"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1697442206478
    }
    - + \ No newline at end of file diff --git a/v5/account/coin-greeks.html b/v5/account/coin-greeks.html index 9fd6862fde..9e8276522c 100644 --- a/v5/account/coin-greeks.html +++ b/v5/account/coin-greeks.html @@ -4,13 +4,13 @@ Get Coin Greeks | Bybit API Documentation - +

    Get Coin Greeks

    Get current account Greeks information

    HTTP Request

    GET /v5/asset/coin-greeks

    Request Parameters

    ParameterRequiredTypeComments
    baseCoinfalsestringBase coin, uppercase only. If not passed, all supported base coin greeks will be returned by default

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > baseCoinstringBase coin. e.g.,BTC,ETH,SOL
    > totalDeltastringDelta value
    > totalGammastringGamma value
    > totalVegastringVega value
    > totalThetastringTheta value

    Request Example

    GET /v5/asset/coin-greeks?baseCoin=BTC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672287887610
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "baseCoin": "BTC",
    "totalDelta": "0.00004001",
    "totalGamma": "-0.00000009",
    "totalVega": "-0.00039689",
    "totalTheta": "0.01243824"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672287887942
    }
    - + \ No newline at end of file diff --git a/v5/account/collateral-info.html b/v5/account/collateral-info.html index 668d3ecfa1..40887b208c 100644 --- a/v5/account/collateral-info.html +++ b/v5/account/collateral-info.html @@ -4,14 +4,14 @@ Get Collateral Info | Bybit API Documentation - +

    Get Collateral Info

    Get the collateral information of the current unified margin account, including loan interest rate, loanable amount, collateral conversion rate, whether it can be mortgaged as margin, etc.

    HTTP Request

    GET /v5/account/collateral-info

    Request Parameters

    ParameterRequiredTypeComments
    currencyfalsestringAsset currency of all current collateral, uppercase only

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > currencystringCurrency of all current collateral
    > hourlyBorrowRatestringHourly borrow rate
    > maxBorrowingAmountstringMax borrow amount. This value is shared across main-sub UIDs
    > freeBorrowingLimitstringThe maximum limit for interest-free borrowing
    • Only the borrowing caused by contracts unrealised loss has interest-free amount
    • Spot margin borrowing always has interest
    > freeBorrowAmountstringThe amount of borrowing within your total borrowing amount that is exempt from interest charges
    > borrowAmountstringBorrow amount
    > freeBorrowingAmountstringDepreciated field, always return "", please refer to freeBorrowingLimit
    > availableToBorrowstringAvailable amount to borrow. This value is shared across main-sub UIDs
    > borrowablebooleanWhether currency can be borrowed
    > borrowUsageRatestringBorrow usage rate: sum of main & sub accounts borrowAmount/maxBorrowingAmount, it is an actual value, 0.5 means 50%
    > marginCollateralbooleanWhether it can be used as a margin collateral currency (platform), true: YES, false: NO
  • When marginCollateral=false, then collateralSwitch is meaningless
  • > collateralSwitchbooleanWhether the collateral is turned on by user (user), true: ON, false: OFF
  • When marginCollateral=true, then collateralSwitch is meaningful
  • > collateralRatiostringCollateral ratio

    Request Example

    GET /v5/account/collateral-info?currency=BTC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672127952719
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "availableToBorrow": "3",
    "freeBorrowingAmount": "",
    "freeBorrowAmount": "0",
    "maxBorrowingAmount": "3",
    "hourlyBorrowRate": "0.00000147",
    "borrowUsageRate": "0",
    "collateralSwitch": true,
    "borrowAmount": "0",
    "borrowable": true,
    "currency": "BTC",
    "marginCollateral": true,
    "freeBorrowingLimit": "0",
    "collateralRatio": "0.95"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1691565901952
    }
    - + \ No newline at end of file diff --git a/v5/account/contract-transaction-log.html b/v5/account/contract-transaction-log.html index 44bca6ba74..815a9d0174 100644 --- a/v5/account/contract-transaction-log.html +++ b/v5/account/contract-transaction-log.html @@ -4,14 +4,14 @@ Get Transaction Log | Bybit API Documentation - +

    Get Transaction Log

    Query transaction logs in the derivatives wallet (classic account), and inverse derivatives account (upgraded to UTA)

    Permission: "Contract - Position"
    Apply to: classic account, UTA1.0(inverse)

    HTTP Request

    GET /v5/account/contract-transaction-log

    Request Parameters

    ParameterRequiredTypeComments
    currencyfalsestringCurrency, uppercase only
    baseCoinfalsestringBaseCoin, uppercase only. e.g., BTC of BTCPERP
    typefalsestringTypes of transaction logs
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > idstringUnique id
    > symbolstringSymbol name
    > categorystringProduct type
    > sidestringSide. Buy,Sell,None
    > transactionTimestringTransaction timestamp (ms)
    > typestringType
    > qtystringQuantity
  • Perps & Futures: it is the quantity for each trade entry and it does not have direction
  • > sizestringSize. The rest position size after the trade is executed, and it has direction, i.e., short with "-"
    > currencystringcurrency
    > tradePricestringTrade price
    > fundingstringFunding fee
    • Positive value means deducting funding fee
    • Negative value means receiving funding fee
    > feestringTrading fee
    • Positive fee value means expense
    • Negative fee value means rebates
    > cashFlowstringCash flow, e.g., (1) close the position, and unRPL converts to RPL, (2) transfer in or transfer out. This does not include trading fee, funding fee
    > changestringChange = cashFlow - funding - fee
    > cashBalancestringCash balance. This is the wallet balance after a cash change
    > feeRatestring
    • When type=TRADE, then it is trading fee rate
    • When type=SETTLEMENT, it means funding fee rate. For side=Buy, feeRate=market fee rate; For side=Sell, feeRate= - market fee rate
    > bonusChangestringThe change of bonus
    > tradeIdstringTrade ID
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/account/contract-transaction-log?limit=1&symbol=BTCUSD HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1714035117255
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "id": "467153",
    "symbol": "BTCUSD",
    "category": "inverse",
    "side": "Sell",
    "transactionTime": "1714032000000",
    "type": "SETTLEMENT",
    "qty": "1000",
    "size": "-1000",
    "currency": "BTC",
    "tradePrice": "63974.88",
    "funding": "-0.00000156",
    "fee": "",
    "cashFlow": "0.00000000",
    "change": "0.00000156",
    "cashBalance": "1.1311",
    "feeRate": "-0.00010000",
    "bonusChange": "",
    "tradeId": "423a565c-f1b6-4c81-bc62-760cd7dd89e7",
    "orderId": "",
    "orderLinkId": ""
    }
    ],
    "nextPageCursor": "cursor_id%3D467153%26"
    },
    "retExtInfo": {},
    "time": 1714035117258
    }
    - + \ No newline at end of file diff --git a/v5/account/dcp-info.html b/v5/account/dcp-info.html index b5c657053c..600a710d4c 100644 --- a/v5/account/dcp-info.html +++ b/v5/account/dcp-info.html @@ -4,13 +4,13 @@ Get DCP Info | Bybit API Documentation - +

    Get DCP Info

    Query the DCP configuration of the account. Before calling the interface, please make sure you have applied for the UTA account DCP configuration with your account manager

    • Only the configured main / sub account can query information from this API. Calling this API by an account always returns empty.

    • If you only request to activate Spot trading for DCP, the contract and options data will not be returned.

    info
    • Support UTA2.0:
      USDT Perpetuals, USDC Perpetuals, USDC Futures, Inverse Perpetuals, Inverse Futures [DERIVATIVES]
      Spot [SPOT]
      Options [OPTIONS]
    • Support UTA1.0:
      USDT Perpetuals, USDC Perpetuals, USDC Futures [DERIVATIVES]
      Spot [SPOT]
      Options [OPTIONS]

    HTTP Request

    GET /v5/account/query-dcp-info

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    dcpInfosarray<object>DCP config for each product
    > productstringSPOT, DERIVATIVES, OPTIONS
    > dcpStatusstringDisconnected-CancelAll-Prevention status: ON
    > timeWindowstringDCP trigger time window which user pre-set. Between [3, 300] seconds, default: 10 sec

    Request Example

    GET /v5/account/query-dcp-info HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1717065530867
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    // it means my account enables Spot and Deriviatvies on the backend
    // Options is not enabled with DCP
    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "dcpInfos": [
    {
    "product": "SPOT",
    "dcpStatus": "ON",
    "timeWindow": "10"
    },
    {
    "product": "DERIVATIVES",
    "dcpStatus": "ON",
    "timeWindow": "10"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1717065531697
    }
    - + \ No newline at end of file diff --git a/v5/account/fee-rate.html b/v5/account/fee-rate.html index ad2553c8b0..9027cbe10b 100644 --- a/v5/account/fee-rate.html +++ b/v5/account/fee-rate.html @@ -4,13 +4,13 @@ Get Fee Rate | Bybit API Documentation - +

    Get Fee Rate

    Get the trading fee rate.

    HTTP Request

    GET /v5/account/fee-rate

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. spot, linear, inverse, option
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only. Valid for linear, inverse, spot
    baseCoinfalsestringBase coin, uppercase only. SOL, BTC, ETH. Valid for option

    Response Parameters

    ParameterTypeComments
    categorystringProduct type. spot, option. Derivatives does not have this field
    listarrayObject
    > symbolstringSymbol name. Keeps "" for Options
    > baseCoinstringBase coin. SOL, BTC, ETH
    • Derivatives does not have this field
    • Keeps "" for Spot
    > takerFeeRatestringTaker fee rate
    > makerFeeRatestringMaker fee rate

    Request Example

    GET /v5/account/fee-rate?symbol=ETHUSDT HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1676360412362
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "ETHUSDT",
    "takerFeeRate": "0.0006",
    "makerFeeRate": "0.0001"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1676360412576
    }
    - + \ No newline at end of file diff --git a/v5/account/get-mmp-state.html b/v5/account/get-mmp-state.html index d99e63edab..1b795fbdfd 100644 --- a/v5/account/get-mmp-state.html +++ b/v5/account/get-mmp-state.html @@ -4,13 +4,13 @@ Get MMP State | Bybit API Documentation - +

    Get MMP State

    HTTP Request

    GET /v5/account/mmp-state

    Request Parameters

    ParameterRequiredTypeComments
    baseCointruestringBase coin, uppercase only

    Response Parameters

    ParameterTypeComments
    resultarrayObject
    > baseCoinstringBase coin
    > mmpEnabledbooleanWhether the account is enabled mmp
    > windowstringTime window (ms)
    > frozenPeriodstringFrozen period (ms)
    > qtyLimitstringTrade qty limit
    > deltaLimitstringDelta limit
    > mmpFrozenUntilstringUnfreeze timestamp (ms)
    > mmpFrozenbooleanWhether the mmp is triggered.
    • true: mmpFrozenUntil is meaningful
    • false: please ignore the value of mmpFrozenUntil

    Request Example

    POST /v5/account/mmp-reset HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675842997277
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "baseCoin": "ETH"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "result": [
    {
    "baseCoin": "BTC",
    "mmpEnabled": true,
    "window": "5000",
    "frozenPeriod": "100000",
    "qtyLimit": "0.01",
    "deltaLimit": "0.01",
    "mmpFrozenUntil": "1675760625519",
    "mmpFrozen": false
    }
    ]
    },
    "retExtInfo": {},
    "time": 1675843188984
    }
    - + \ No newline at end of file diff --git a/v5/account/repay-liability.html b/v5/account/repay-liability.html index 59e54b079d..dd4b9b2483 100644 --- a/v5/account/repay-liability.html +++ b/v5/account/repay-liability.html @@ -4,13 +4,13 @@ Repay Liability | Bybit API Documentation - +

    Repay Liability

    You can manually repay the liabilities of Unified account

    Permission: USDC Contracts

    HTTP Request

    POST /v5/account/quick-repayment

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringThe coin with liability, uppercase only
    • Input the specific coin: repay the liability of this coin in particular
    • No coin specified: repay the liability of all coins

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > coinstringCoin used for repayment
    • The order of currencies used to repay liability is based on liquidationOrder from this endpoint
    > repaymentQtystringRepayment qty

    Request Example

    POST /v5/account/quick-repayment HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1701848610019
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 22

    {
    "coin": "USDT"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "result": {
    "list": [
    {
    "coin": "BTC",
    "repaymentQty": "0.10549670"
    },
    {
    "coin": "ETH",
    "repaymentQty": "2.27768114"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1701848610941
    }
    - + \ No newline at end of file diff --git a/v5/account/reset-mmp.html b/v5/account/reset-mmp.html index c9e74381fc..e887320b86 100644 --- a/v5/account/reset-mmp.html +++ b/v5/account/reset-mmp.html @@ -4,13 +4,13 @@ Reset MMP | Bybit API Documentation - +

    Reset MMP

    info
    • Once the mmp triggered, you can unfreeze the account by this endpoint, then qtyLimit and deltaLimit will be reset to 0.
    • If the account is not frozen, reset action can also remove previous accumulation, i.e., qtyLimit and deltaLimit will be reset to 0.

    HTTP Request

    POST /v5/account/mmp-reset

    Request Parameters

    ParameterRequiredTypeComments
    baseCointruestringBase coin, uppercase only

    Response Parameters

    None

    Request Example

    POST /v5/account/mmp-reset HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675842997277
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "baseCoin": "ETH"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success"
    }
    - + \ No newline at end of file diff --git a/v5/account/set-collateral.html b/v5/account/set-collateral.html index 842ad095c9..7d8bfefa42 100644 --- a/v5/account/set-collateral.html +++ b/v5/account/set-collateral.html @@ -4,13 +4,13 @@ Set Collateral Coin | Bybit API Documentation - +

    Set Collateral Coin

    You can decide whether the assets in the Unified account needs to be collateral coins.

    HTTP Request

    POST /v5/account/set-collateral-switch

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name, uppercase only
    • You can get collateral coin from here
    • USDT, USDC cannot be set
    collateralSwitchtruestringON: switch on collateral, OFF: switch off collateral

    Response Parameters

    None


    Request Example

    POST /v5/account/set-collateral-switch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1690513916181
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 55

    {
    "coin": "BTC",
    "collateralSwitch": "ON"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "result": {},
    "retExtInfo": {},
    "time": 1690515818656
    }
    - + \ No newline at end of file diff --git a/v5/account/set-margin-mode.html b/v5/account/set-margin-mode.html index d0f32b1b57..adf79dc624 100644 --- a/v5/account/set-margin-mode.html +++ b/v5/account/set-margin-mode.html @@ -4,13 +4,13 @@ Set Margin Mode | Bybit API Documentation - +

    Set Margin Mode

    Default is regular margin mode

    info

    HTTP Request

    POST /v5/account/set-margin-mode

    Request Parameters

    ParameterRequiredTypeComments
    setMarginModetruestringISOLATED_MARGIN, REGULAR_MARGIN(i.e. Cross margin), PORTFOLIO_MARGIN

    Response Parameters

    ParameterTypeComments
    reasonsarrayObject. If requested successfully, it is an empty array
    > reasonCodestringFail reason code
    > reasonMsgstringFail reason msg

    Request Example

    POST /v5/account/set-margin-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672134396332
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "setMarginMode": "PORTFOLIO_MARGIN"
    }

    Response Example

    {
    "retCode": 3400045,
    "retMsg": "Set margin mode failed",
    "result": {
    "reasons": [
    {
    "reasonCode": "3400000",
    "reasonMsg": "Equity needs to be equal to or greater than 1000 USDC"
    }
    ]
    }
    }
    - + \ No newline at end of file diff --git a/v5/account/set-mmp.html b/v5/account/set-mmp.html index 744423f6a2..5c72af48fd 100644 --- a/v5/account/set-mmp.html +++ b/v5/account/set-mmp.html @@ -4,7 +4,7 @@ Set MMP | Bybit API Documentation - + @@ -16,7 +16,7 @@ and new orders tagged as MMP will be rejected for a specific duration — known as the frozen period — so that MM can reassess the market and modify the quotes.

    How to enable MMP

    Send an email to Bybit (financial.inst@bybit.com) or contact your business development (BD) manager to apply for MMP. After processed, the default settings are as below table:

    ParameterTypeCommentsDefault value
    baseCoinstringBase coinBTC
    windowstringTime window (millisecond)5000
    frozenPeriodstringFrozen period (millisecond)100
    qtyLimitstringQuantity limit100
    deltaLimitstringDelta limit100

    Applicable

    Effective for options only. When you place an option order, set mmp=true, which means you mark this order as a mmp order.

    Some points to note

    1. Only maker order qty and delta will be counted into qtyLimit and deltaLimit.
    2. qty_limit is the sum of absolute value of qty of each trade executions. delta_limit is the absolute value of the sum of qty*delta. If any of these reaches or exceeds the limit amount, the account's market maker protection will be triggered.

    HTTP Request

    POST /v5/account/mmp-modify

    Request Parameters

    ParameterRequiredTypeComments
    baseCointruestringBase coin, uppercase only
    windowtruestringTime window (ms)
    frozenPeriodtruestringFrozen period (ms). "0" means the trade will remain frozen until manually reset
    qtyLimittruestringTrade qty limit (positive and up to 2 decimal places)
    deltaLimittruestringDelta limit (positive and up to 2 decimal places)

    Response Parameters

    None

    Request Example

    POST /v5/account/mmp-modify HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675833524616
    X-BAPI-RECV-WINDOW: 50000
    Content-Type: application/json

    {
    "baseCoin": "ETH",
    "window": "5000",
    "frozenPeriod": "100000",
    "qtyLimit": "50",
    "deltaLimit": "20"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success"
    }
    - + \ No newline at end of file diff --git a/v5/account/set-spot-hedge.html b/v5/account/set-spot-hedge.html index cc1235ff60..ef5f43c481 100644 --- a/v5/account/set-spot-hedge.html +++ b/v5/account/set-spot-hedge.html @@ -4,13 +4,13 @@ Set Spot Hedging | Bybit API Documentation - +

    Set Spot Hedging

    You can turn on/off Spot hedging feature in Portfolio margin for Unified account

    HTTP Request

    POST /v5/account/set-hedging-mode

    Request Parameters

    ParameterRequiredTypeComments
    setHedgingModetruestringON, OFF

    Response Parameters

    ParameterTypeComments
    retCodeintegerResult code
    retMsgstringResult message

    Request Example

    POST /v5/account/set-hedging-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1700117968580
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 31

    {
    "setHedgingMode": "OFF"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "SUCCESS"
    }
    - + \ No newline at end of file diff --git a/v5/account/smp-group.html b/v5/account/smp-group.html index 81a2c6c2bc..ed97633ccc 100644 --- a/v5/account/smp-group.html +++ b/v5/account/smp-group.html @@ -4,13 +4,13 @@ Get SMP Group ID | Bybit API Documentation - +

    Get SMP Group ID

    Query the SMP group ID of self match prevention

    HTTP Request

    GET /v5/account/smp-group

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    smpGroupintegerSmp group ID. If the UID has no group, it is 0 by default

    Request Example

    GET /v5/account/smp-group HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1702363848192
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "smpGroup": 0
    },
    "retExtInfo": {},
    "time": 1702363848539
    }
    - + \ No newline at end of file diff --git a/v5/account/transaction-log.html b/v5/account/transaction-log.html index b888f4bce6..58bd8d4e17 100644 --- a/v5/account/transaction-log.html +++ b/v5/account/transaction-log.html @@ -4,13 +4,13 @@ Get Transaction Log | Bybit API Documentation - +

    Get Transaction Log

    Query transaction logs in Unified account, it supports up to 2 years data

    Apply to: UTA2.0, UTA1.0(execept inverse)

    HTTP Request

    GET /v5/account/transaction-log

    Request Parameters

    ParameterRequiredTypeComments
    accountTypefalsestringAccount Type. UNIFIED
    categoryfalsestringProduct type
  • UTA2.0: spot,linear,option,inverse
  • UTA1.0: spot,linear,option
  • currencyfalsestringCurrency, uppercase only
    baseCoinfalsestringBaseCoin, uppercase only. e.g., BTC of BTCPERP
    typefalsestringTypes of transaction logs
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > idstringUnique id
    > symbolstringSymbol name
    > categorystringProduct type
    > sidestringSide. Buy,Sell,None
    > transactionTimestringTransaction timestamp (ms)
    > typestringType
    > qtystringQuantity
  • Spot: the negative means the qty of this currency is decreased, the positive means the qty of this currency is increased
  • Perps & Futures: it is the quantity for each trade entry and it does not have direction
  • > sizestringSize. The rest position size after the trade is executed, and it has direction, i.e., short with "-"
    > currencystringUSDC、USDT、BTC、ETH
    > tradePricestringTrade price
    > fundingstringFunding fee
    • Positive value means receiving funding fee
    • Negative value means deducting funding fee
    • For USDC Perp, as funding settlement and session settlement are occurred at the same time, so they are in the same log. Please refer to funding to understand funding fee, and cashFlow to understand 8-hour P&L
    > feestringTrading fee
    • Positive fee value means expense
    • Negative fee value means rebates
    > cashFlowstringCash flow, e.g., (1) close the position, and unRPL converts to RPL, (2) 8-hour session settlement for USDC Perp and Futures, (3) transfer in or transfer out. This does not include trading fee, funding fee
    > changestringChange = cashFlow + funding - fee
    > cashBalancestringCash balance. This is the wallet balance after a cash change
    > feeRatestring
    • When type=TRADE, then it is trading fee rate
    • When type=SETTLEMENT, it means funding fee rate. For side=Buy, feeRate=market fee rate; For side=Sell, feeRate= - market fee rate
    > bonusChangestringThe change of bonus
    > tradeIdstringTrade ID
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/account/transaction-log?accountType=UNIFIED&category=linear&currency=USDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672132480085
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "21963%3A1%2C14954%3A1",
    "list": [
    {
    "id": "592324_XRPUSDT_161440249321",
    "symbol": "XRPUSDT",
    "side": "Buy",
    "funding": "-0.003676",
    "orderLinkId": "",
    "orderId": "1672128000-8-592324-1-2",
    "fee": "0.00000000",
    "change": "-0.003676",
    "cashFlow": "0",
    "transactionTime": "1672128000000",
    "type": "SETTLEMENT",
    "feeRate": "0.0001",
    "bonusChange": "",
    "size": "100",
    "qty": "100",
    "cashBalance": "5086.55825002",
    "currency": "USDT",
    "category": "linear",
    "tradePrice": "0.3676",
    "tradeId": "534c0003-4bf7-486f-aa02-78cee36825e4"
    },
    {
    "id": "592324_XRPUSDT_161440249321",
    "symbol": "XRPUSDT",
    "side": "Buy",
    "funding": "",
    "orderLinkId": "linear-order",
    "orderId": "592b7e41-78fd-42e2-9aa3-91e1835ef3e1",
    "fee": "0.01908720",
    "change": "-0.0190872",
    "cashFlow": "0",
    "transactionTime": "1672121182224",
    "type": "TRADE",
    "feeRate": "0.0006",
    "bonusChange": "-0.1430544",
    "size": "100",
    "qty": "88",
    "cashBalance": "5086.56192602",
    "currency": "USDT",
    "category": "linear",
    "tradePrice": "0.3615",
    "tradeId": "5184f079-88ec-54c7-8774-5173cafd2b4e"
    },
    {
    "id": "592324_XRPUSDT_161407743011",
    "symbol": "XRPUSDT",
    "side": "Buy",
    "funding": "",
    "orderLinkId": "linear-order",
    "orderId": "592b7e41-78fd-42e2-9aa3-91e1835ef3e1",
    "fee": "0.00260280",
    "change": "-0.0026028",
    "cashFlow": "0",
    "transactionTime": "1672121182224",
    "type": "TRADE",
    "feeRate": "0.0006",
    "bonusChange": "",
    "size": "12",
    "qty": "12",
    "cashBalance": "5086.58101322",
    "currency": "USDT",
    "category": "linear",
    "tradePrice": "0.3615",
    "tradeId": "8569c10f-5061-5891-81c4-a54929847eb3"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672132481405
    }
    - + \ No newline at end of file diff --git a/v5/account/upgrade-unified-account.html b/v5/account/upgrade-unified-account.html index 02e43a4c95..163ae8628f 100644 --- a/v5/account/upgrade-unified-account.html +++ b/v5/account/upgrade-unified-account.html @@ -4,7 +4,7 @@ Upgrade to Unified Account | Bybit API Documentation - + @@ -17,7 +17,7 @@ If it is Portfolio Margin mode, you either close inverse positions or switch unified account margin mode to cross or isolated margin mode.
  • Cannot have hedge mode inverse futures positions, which is not supported in UTA2.0
  • Cannot have TPSL order either
    1. During the account upgrade process, the data of Rest API/Websocket stream may be inaccurate due to the fact that the account-related asset data is in the processing state. It is recommended to query and use it after the upgrade is completed.

    HTTP Request

    POST /v5/account/upgrade-to-uta

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    unifiedUpdateStatusstringUpgrade status. FAIL,PROCESS,SUCCESS
    unifiedUpdateMsgObjectIf PROCESS,SUCCESS, it returns null
    > msgarrayError message array. Only FAIL will have this field

    Request Example

    POST /v5/account/upgrade-to-uta HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672125123533
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {}

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "unifiedUpdateStatus": "FAIL",
    "unifiedUpdateMsg": {
    "msg": [
    "Update account failed. You have outstanding liabilities in your Spot account.",
    "Update account failed. Please close the usdc perpetual positions in USDC Account.",
    "unable to upgrade, please cancel the usdt perpetual open orders in USDT account.",
    "unable to upgrade, please close the usdt perpetual positions in USDT account."
    ]
    }
    },
    "retExtInfo": {},
    "time": 1672125124195
    }
    - + \ No newline at end of file diff --git a/v5/account/wallet-balance.html b/v5/account/wallet-balance.html index 051aa024d0..54b6be0429 100644 --- a/v5/account/wallet-balance.html +++ b/v5/account/wallet-balance.html @@ -4,14 +4,14 @@ Get Wallet Balance | Bybit API Documentation - +

    Get Wallet Balance

    Obtain wallet balance, query asset information of each currency. By default, currency information with assets or liabilities of 0 is not returned.

    HTTP Request

    GET /v5/account/wallet-balance

    Request Parameters

    ParameterRequiredTypeComments
    accountTypetruestringAccount type
    • UTA2.0: UNIFIED
    • UTA1.0: UNIFIED, CONTRACT(inverse derivatives wallet)
    • Classic account: CONTRACT, SPOT
    To get Funding wallet balance, please go to this endpoint
    coinfalsestringCoin name, uppercase only
    • If not passed, it returns non-zero asset info
    • You can pass multiple coins to query, separated by comma. USDT,USDC

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > accountTypestringAccount type
    > accountLTVstringDepreciated field
    > accountIMRatestringAccount IM rate
  • You can refer to this Glossary to understand the below fields calculation and mearning
  • All account wide fields are not applicable to
    UTA2.0(isolated margin),
    UTA1.0(isolated margin), UTA1.0(CONTRACT),
    classic account(SPOT, CONTRACT)
  • > accountMMRatestringAccount MM rate
    > totalEquitystringAccount total equity (USD)
    > totalWalletBalancestringAccount wallet balance (USD): ∑Asset Wallet Balance By USD value of each asset
    > totalMarginBalancestringAccount margin balance (USD): totalWalletBalance + totalPerpUPL
    > totalAvailableBalancestringAccount available balance (USD), Cross Margin: totalMarginBalance - totalInitialMargin
    > totalPerpUPLstringAccount Perps and Futures unrealised p&l (USD): ∑Each Perp and USDC Futures upl by base coin
    > totalInitialMarginstringAccount initial margin (USD): ∑Asset Total Initial Margin Base Coin
    > totalMaintenanceMarginstringAccount maintenance margin (USD): ∑ Asset Total Maintenance Margin Base Coin
    > coinarrayObject
    >> coinstringCoin name, such as BTC, ETH, USDT, USDC
    >> equitystringEquity of coin
    >> usdValuestringUSD value of coin
    >> walletBalancestringWallet balance of coin
    >> freestringAvailable balance for Spot wallet. This is a unique field for Classic SPOT
    >> lockedstringLocked balance due to the Spot open order
    >> spotHedgingQtystringThe spot asset qty that is used to hedge in the portfolio margin, truncate to 8 decimals and "0" by default
    >> borrowAmountstringBorrow amount of current coin
    >> availableToWithdrawstringAvailable amount to withdrawable/transferable of coin
    >> accruedIntereststringAccrued interest
    >> totalOrderIMstringPre-occupied margin for order. For portfolio margin mode, it returns ""
    >> totalPositionIMstringSum of initial margin of all positions + Pre-occupied liquidation fee. For portfolio margin mode, it returns ""
    >> totalPositionMMstringSum of maintenance margin for all positions. For portfolio margin mode, it returns ""
    >> unrealisedPnlstringUnrealised P&L
    >> cumRealisedPnlstringCumulative Realised P&L
    >> bonusstringBonus. This is a unique field for accounType=UNIFIED
    >> marginCollateralbooleanWhether it can be used as a margin collateral currency (platform), true: YES, false: NO
  • When marginCollateral=false, then collateralSwitch is meaningless
  • >> collateralSwitchbooleanWhether the collateral is turned on by user (user), true: ON, false: OFF
  • When marginCollateral=true, then collateralSwitch is meaningful
  • >> availableToBorrowstringDepreciated field, always return "". Please refer to availableToBorrow in the Get Collateral Info

    Request Example

    GET /v5/account/wallet-balance?accountType=UNIFIED&coin=BTC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672125440406
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "totalEquity": "3.31216591",
    "accountIMRate": "0",
    "totalMarginBalance": "3.00326056",
    "totalInitialMargin": "0",
    "accountType": "UNIFIED",
    "totalAvailableBalance": "3.00326056",
    "accountMMRate": "0",
    "totalPerpUPL": "0",
    "totalWalletBalance": "3.00326056",
    "accountLTV": "0",
    "totalMaintenanceMargin": "0",
    "coin": [
    {
    "availableToBorrow": "3",
    "bonus": "0",
    "accruedInterest": "0",
    "availableToWithdraw": "0",
    "totalOrderIM": "0",
    "equity": "0",
    "totalPositionMM": "0",
    "usdValue": "0",
    "spotHedgingQty": "0.01592413",
    "unrealisedPnl": "0",
    "collateralSwitch": true,
    "borrowAmount": "0.0",
    "totalPositionIM": "0",
    "walletBalance": "0",
    "cumRealisedPnl": "0",
    "locked": "0",
    "marginCollateral": true,
    "coin": "BTC"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1690872862481
    }
    - + \ No newline at end of file diff --git a/v5/acct-mode.html b/v5/acct-mode.html index 2d9d6160de..0a7b585aca 100644 --- a/v5/acct-mode.html +++ b/v5/acct-mode.html @@ -4,7 +4,7 @@ Different Account Modes | Bybit API Documentation - + @@ -14,7 +14,7 @@ into the "inverse derivatives account" before trading, and the margins are not shared between each other. For USDT perpetual, USDC perpetual, USDC Futures, spot and options are all traded within the "unified trading"

    uta1.0

    Classic Account

    Under this account mode, contract transactions and spot transactions are separated. Inverse contracts and USDT perpetual transactions are completed in the "derivatives account", and spot transactions are completed in the "spot account"

    classic

    Determine account mode through API

    Use the key of the corresponding account to call Get Account Info, look at the field unifiedMarginStatus

    • 1: classic account
    • 3: uta1.0
    • 4: uta1.0 (pro version)
    • 5: uta2.0
    • 6: uta2.0 (pro version)
      P.S. uta or uta (pro), they are the same thing, but pro has a slight performance advantage when trading via API

    API usage changes for UTA 2.0

    API categoryAPIuta2.0uta1.0
    category=inversecategory=inverse
    MarketGet Instruments Info"unifiedMarginTrade" is true after UTA2.0 is implemented"unifiedMarginTrade" is false
    TradePlace OrderInverse Futures no longer support hedge mode, so "positionIdx" is always 0Inverse Futures support hedge mode, so "positionIdx" can be 0, 1, 2
    Get Open & Closed OrdersTo query the final status orders, use openOnly=1, and only retain the latest 500 orders.To query the final status orders, use openOnly=2
    Get Order History1. orderStatus is not passed, and all final orders are queried by default
    2. Parameters baseCoin and settleCoin are supported
    3. Active order query is not supported, and some final orders are limited to query
    4. Cancelled orders save up to 24 hours
    5. Only orders generated after the upgrade can be queried
    1. orderStatus is not passed, and the default query is active and final orders
    2. The parameters baseCoin and settleCoin are not supported
    3. Active orders and various final orders are always supported
    4. No such restriction
    Get Trade History1. Supports baseCoin query;
    2. The returned createType has a value
    3. Only transactions generated after the upgrade can be queried
    1. baseCoin query is not supported;
    2. The returned createType is always empty string ""
    Batch Place OrderSupport inverse contractNot support inverse contract
    Batch Amend OrderSupport inverse contractNot support inverse contract
    Batch Cancel OrderSupport inverse contractNot support inverse contract
    Set Disconnect Cancel AllSupport inverse contract, inverse trading orders will be cancelled when dcp is triggeredNot support inverse contract, inverse trading orders will not be cancelled when dcp is triggered
    Pre-upgradeGet Pre-upgrade Order HistorySupports querying orders generated when it is a classic account or unified account 1.0-
    Get Pre-upgrade Trade HistorySupports querying transactions generated when it is a classic account or unified account 1.0-
    Get Pre-upgrade Closed PnLSupports querying close pnl generated when it is a classic account or unified account 1.0-
    PositionGet Position Info1. Passing multiple symbols is not supported
    2. In the response, there are changes in the meaning or use of "tradeMode", "liqPrice", "bustPrice" fields
    1. Supports passing multiple symbols
    Get Closed PnLOnly the close pnl generated after the upgrade can be queried. -
    Set LeverageInverse perpetual and inverse Futures only support one-way position mode, and the leverage of buy and sell must be equalInverse Futures support hedge-mode positions, and the leverage of buy and sell can be unequal
    Switch Cross/Isolated MarginThe margin mode has become the account dimension, and this interface is no longer applicableInverse contracts support the use of this interface
    Switch Position ModeInverse Futures no longer supports hedge-mode positionsInverse Futures supports hedge-mode positions
    AccountGet Wallet BalanceNot support accountType=CONTRACTSupport accountType=CONTRACT
    Get Transaction Log (UTA)Transaction logs for inverse contracts will be includedThe transaction log of the inverse contract needs to go through the interface below
    Get Transaction Log(Classic)After upgrading to 2.0, this interface is no longer applicable.Data from uta 1.0 or classic account can still be obtained
    AssetGet Delivery RecordSupport inverse futures delivery recordsNot support inverse futures delivery records
    All interfaces involving accountType in this directoryCONTRACT is no longer supported because "inverse derivatives account" does not exist anymoreSupport CONTRACT (inverse derivatives account)
    WebSocket Stream/TradeWebsocket Trade GuidelineSupport inverse contractNot support inverse contract
    - + \ No newline at end of file diff --git a/v5/announcement.html b/v5/announcement.html index 4a06f504c1..861accb969 100644 --- a/v5/announcement.html +++ b/v5/announcement.html @@ -4,13 +4,13 @@ Get Announcement | Bybit API Documentation - +

    Get Announcement

    HTTP Request

    GET /v5/announcements/index

    Request Parameters

    ParameterRequiredTypeComments
    localetruestringLanguage symbol
    typefalsestringAnnouncement type
    tagfalsestringAnnouncement tag
    pagefalseintegerPage number. Default: 1
    limitfalseintegerLimit for data size per page. Default: 20

    Response Parameters

    ParameterTypeComments
    totalintegerTotal records
    listarrayObject
    > titlestringAnnouncement title
    > descriptionstringAnnouncement description
    > typeObject
    >> titlestringThe title of announcement type
    >> keystringThe key of announcement type
    > tagsarray<string>The tag of announcement
    > urlstringAnnouncement url
    > dateTimestampnumberTimestamp that author fills
    > startDataTimestampnumberThe start timestamp (ms) of the event, only valid when list.type.key == "latest_activities"
    > endDataTimestampnumberThe end timestamp (ms) of the event, only valid when list.type.key == "latest_activities"
    > publishTimenumberThe published timestamp for the announcement

    Request Example

    GET /v5/announcements/index?locale=en-US&limit=1 HTTP/1.1
    Host: api.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "total": 735,
    "list": [
    {
    "title": "New Listing: Arbitrum (ARB) — Deposit, Trade and Stake ARB to Share a 400,000 USDT Prize Pool!",
    "description": "Bybit is excited to announce the listing of ARB on our trading platform!",
    "type": {
    "title": "New Listings",
    "key": "new_crypto"
    },
    "tags": [
    "Spot",
    "Spot Listings"
    ],
    "url": "https://announcements.bybit.com/en-US/article/new-listing-arbitrum-arb-deposit-trade-and-stake-arb-to-share-a-400-000-usdt-prize-pool--bltf662314c211a8616/",
    "dateTimestamp": 1679045608000,
    "startDateTimestamp": 1679045608000,
    "endDateTimestamp": 1679045608000
    }
    ]
    },
    "retExtInfo": {},
    "time": 1679415136117
    }
    - + \ No newline at end of file diff --git a/v5/asset/balance/account-coin-balance.html b/v5/asset/balance/account-coin-balance.html index 33dbae2820..8f3066fbdd 100644 --- a/v5/asset/balance/account-coin-balance.html +++ b/v5/asset/balance/account-coin-balance.html @@ -4,7 +4,7 @@ Get Single Coin Balance | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Get Single Coin Balance

    Query the balance of a specific coin in a specific account type. Supports querying sub UID's balance. Also, you can check the transferable amount from master to sub account, sub to master account or sub to sub account, especially for user who has an institutional loan.

    HTTP Request

    GET /v5/asset/transfer/query-account-coin-balance

    Request Parameters

    ParameterRequiredTypeComments
    memberIdfalsestringUID. Required when querying sub UID balance with master api key
    toMemberIdfalsestringUID. Required when querying the transferable balance between different UIDs
    accountTypetruestringAccount type
    toAccountTypefalsestringTo account type. Required when querying the transferable balance between different account types
    cointruestringCoin, uppercase only
    withBonusfalseinteger0(default): not query bonus. 1: query bonus
    withTransferSafeAmountfalseintegerWhether query delay withdraw/transfer safe amount
    withLtvTransferSafeAmountfalseintegerFor OTC loan users in particular, you can check the transferable amount under risk level
    • 0(default): false, 1: true
    • toAccountType is mandatory

    Response Parameters

    ParameterTypeComments
    accountTypestringAccount type
    bizTypeintegerBiz type
    accountIdstringAccount ID
    memberIdstringUid
    balanceObject
    > coinstringCoin
    > walletBalancestringWallet balance
    > transferBalancestringTransferable balance
    > bonusstringbonus
    > transferSafeAmountstringSafe amount to transfer. Keep "" if not query
    > ltvTransferSafeAmountstringTransferable amount for ins loan account. Keep "" if not query

    Request Example

    GET /v5/asset/transfer/query-account-coin-balance?accountType=UNIFIED&coin=USDT&toAccountType=FUND&withLtvTransferSafeAmount=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: xxxxx
    X-BAPI-API-KEY: xxxxx
    X-BAPI-TIMESTAMP: 1690254520644
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "accountType": "UNIFIED",
    "bizType": 1,
    "accountId": "1631385",
    "memberId": "1631373",
    "balance": {
    "coin": "USDT",
    "walletBalance": "11999",
    "transferBalance": "11999",
    "bonus": "0",
    "transferSafeAmount": "",
    "ltvTransferSafeAmount": "7602.4861"
    }
    },
    "retExtInfo": {},
    "time": 1690254521256
    }
    - + \ No newline at end of file diff --git a/v5/asset/balance/all-balance.html b/v5/asset/balance/all-balance.html index 77d219534c..93e3f439d1 100644 --- a/v5/asset/balance/all-balance.html +++ b/v5/asset/balance/all-balance.html @@ -4,13 +4,13 @@ Get All Coins Balance | Bybit API Documentation - +

    Get All Coins Balance

    You could get all coin balance of all account types under the master account, and sub account.

    HTTP Request

    GET /v5/asset/transfer/query-account-coins-balance

    Request Parameters

    ParameterRequiredTypeComments
    memberIdfalsestringUser Id. It is required when you use master api key to check sub account coin balance
    accountTypetruestringAccount type
    coinfalsestringCoin name, uppercase only
    • Query all coins if not passed
    • Can query multiple coins, separated by comma. USDT,USDC,ETH
    withBonusfalseinteger0(default): not query bonus. 1: query bonus

    Response Parameters

    ParameterTypeComments
    accountTypestringAccount type
    memberIdstringUserID
    balancearrayObject
    > coinstringCurrency
    > walletBalancestringWallet balance
    > transferBalancestringTransferable balance
    > bonusstringBonus

    Request Example

    GET /v5/asset/transfer/query-account-coins-balance?accountType=FUND&coin=USDC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675866354698
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "memberId": "XXXX",
    "accountType": "FUND",
    "balance": [
    {
    "coin": "USDC",
    "transferBalance": "0",
    "walletBalance": "0",
    "bonus": ""
    }
    ]
    },
    "retExtInfo": {},
    "time": 1675866354913
    }
    - + \ No newline at end of file diff --git a/v5/asset/balance/asset-info.html b/v5/asset/balance/asset-info.html index 9eedd1a85a..538373d209 100644 --- a/v5/asset/balance/asset-info.html +++ b/v5/asset/balance/asset-info.html @@ -4,13 +4,13 @@ Get Asset Info | Bybit API Documentation - +

    Get Asset Info

    Query Spot asset information

    Apply to: classic account

    HTTP Request

    GET /v5/asset/transfer/query-asset-info

    Request Parameters

    ParameterRequiredTypeComments
    accountTypetruestringAccount type. SPOT
    coinfalsestringCoin name, uppercase only

    Response Parameters

    ParameterTypeComments
    spotObject
    > statusstringaccount status. ACCOUNT_STATUS_NORMAL: normal, ACCOUNT_STATUS_UNSPECIFIED: banned
    > assetsarrayObject
    >> coinstringCoin
    >> frozenstringFreeze amount
    >> freestringFree balance
    >> withdrawstringAmount in withdrawing

    Request Example

    GET /v5/asset/transfer/query-asset-info?accountType=SPOT&coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672136538042
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "spot": {
    "status": "ACCOUNT_STATUS_NORMAL",
    "assets": [
    {
    "coin": "ETH",
    "frozen": "0",
    "free": "11.53485",
    "withdraw": ""
    }
    ]
    }
    },
    "retExtInfo": {},
    "time": 1672136539127
    }
    - + \ No newline at end of file diff --git a/v5/asset/balance/delay-amount.html b/v5/asset/balance/delay-amount.html index e0b8849291..e6a70a9a16 100644 --- a/v5/asset/balance/delay-amount.html +++ b/v5/asset/balance/delay-amount.html @@ -4,13 +4,13 @@ Get Withdrawable Amount | Bybit API Documentation - +

    Get Withdrawable Amount

    info

    How can partial funds be subject to delayed withdrawal requests?

    • On-chain deposit: If the number of on-chain confirmations has not reached a risk-controlled level, a portion of the funds will be frozen for a period of time until they are unfrozen.
    • Buying crypto: If there is a risk, the funds will be frozen for a certain period of time and cannot be withdrawn.

    HTTP Request

    GET /v5/asset/withdraw/withdrawable-amount

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name, uppercase only

    Response Parameters

    ParameterTypeComments
    limitAmountUsdstringThe frozen amount due to risk, in USD
    withdrawableAmountObject
    > SPOTObjectSpot wallet, it is not returned if spot wallet is removed
    >> coinstringCoin name
    >> withdrawableAmountstringAmount that can be withdrawn
    >> availableBalancestringAvailable balance
    > FUNDObjectFunding wallet
    >> coinstringCoin name
    >> withdrawableAmountstringAmount that can be withdrawn
    >> availableBalancestringAvailable balance

    Request Example

    GET /v5/asset/withdraw/withdrawable-amount?coin=USDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677565621998
    X-BAPI-RECV-WINDOW: 50000
    X-BAPI-SIGN: XXXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "limitAmountUsd": "52853.5551",
    "withdrawableAmount": {
    "FUND": {
    "coin": "USDT",
    "withdrawableAmount": "11135.0596",
    "availableBalance": "11135.0596"
    },
    "SPOT": {
    "coin": "USDT",
    "withdrawableAmount": "0",
    "availableBalance": "0"
    }
    }
    },
    "retExtInfo": {},
    "time": 1677565632151
    }
    - + \ No newline at end of file diff --git a/v5/asset/coin-info.html b/v5/asset/coin-info.html index 9e2d11cbc8..204264c41a 100644 --- a/v5/asset/coin-info.html +++ b/v5/asset/coin-info.html @@ -4,13 +4,13 @@ Get Coin Info | Bybit API Documentation - +

    Get Coin Info

    Query coin information, including chain information, withdraw and deposit status.

    HTTP Request

    GET /v5/asset/coin/query-info

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin, uppercase only

    Response Parameters

    ParameterTypeComments
    rowsarrayObject
    > nameintegerCoin name
    > coinstringCoin
    > remainAmountstringMaximum withdraw amount per transaction
    > chainsarrayObject
    >> chainstringChain
    >> chainTypestringChain type
    >> confirmationstringThe number of confirmation for deposit
    >> withdrawFeestringwithdraw fee. If withdraw fee is empty, It means that this coin does not support withdrawal
    >> depositMinstringMin. deposit
    >> withdrawMinstringMin. withdraw
    >> minAccuracystringThe precision of withdraw or deposit
    >> chainDepositstringThe chain status of deposit. 0: suspend. 1: normal
    >> chainWithdrawstringThe chain status of withdraw. 0: suspend. 1: normal
    >> withdrawPercentageFeestringThe withdraw fee percentage. It is a real figure, e.g., 0.022 means 2.2%

    Request Example

    GET /v5/asset/coin/query-info?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672194580887
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "rows": [
    {
    "name": "ETH",
    "coin": "ETH",
    "remainAmount": "1020000",
    "chains": [
    {
    "chainType": "ETH",
    "confirmation": "10000",
    "withdrawFee": "0.005",
    "depositMin": "0.01",
    "withdrawMin": "0.02",
    "chain": "ETH",
    "chainDeposit": "1",
    "chainWithdraw": "1",
    "minAccuracy": "8",
    "withdrawPercentageFee": "0.022"
    },
    {
    "chainType": "Arbitrum One",
    "confirmation": "10",
    "withdrawFee": "0.01",
    "depositMin": "0.001",
    "withdrawMin": "0.1",
    "chain": "ARBI",
    "chainDeposit": "1",
    "chainWithdraw": "1",
    "minAccuracy": "8",
    "withdrawPercentageFee": "0"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677478088215
    }
    - + \ No newline at end of file diff --git a/v5/asset/convert/apply-quote.html b/v5/asset/convert/apply-quote.html index 0662bc78e0..c515d89049 100644 --- a/v5/asset/convert/apply-quote.html +++ b/v5/asset/convert/apply-quote.html @@ -4,13 +4,13 @@ Request a Quote | Bybit API Documentation - +

    Request a Quote

    HTTP Request

    POST /v5/asset/exchange/quote-apply

    Request Parameters

    ParameterRequiredTypeComments
    fromCointruestringConvert from coin (coin to sell)
    toCointruestringConvert to coin (coin to buy)
    fromCoinTypefalsestringcrypto
    toCoinTypefalsestringcrypto
    requestCointruestringRequest coin, same as fromCoin
  • In the future, we may support requestCoin=toCoin
  • requestAmounttruestringrequest coin amount (the amount you want to sell)
    accountTypetruestringWallet type
    paramTypefalsestringopFrom, mainly used for API broker user
    paramValuefalsestringBroker ID, mainly used for API broker user
    requestIdfalsestringCustomised request ID
  • a maximum length of 36
  • Generally it is useless, but it is convenient to track the quote request internally if you fill this field
  • Response Parameters

    ParameterTypeComments
    quoteTxIdstringQuote transaction ID. It is system generated, and it is used to confirm quote and query the result of transaction
    exchangeRatestringExchange rate
    fromCoinstringFrom coin
    fromCoinTypestringFrom coin type. crypto
    toCoinstringTo coin
    toCoinTypestringTo coin type. crypto
    fromAmountstringFrom coin amount (amount to sell)
    toAmountstringTo coin amount (amount to buy according to exchange rate)
    expiredTimestringThe expiry time for this quote (15 seconds)
    requestIdstringCustomised request ID

    Request Example

    POST /v5/asset/exchange/quote-apply HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720071077014
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json
    Content-Length: 172

    {
    "requestId": "test-00002",
    "fromCoin": "ETH",
    "toCoin": "BTC",
    "accountType": "eb_convert_funding",
    "requestCoin": "ETH",
    "requestAmount": "0.1",
    "paramType": "opFrom",
    "paramValue": "broker-id-001"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "quoteTxId": "10100108106409340067234418688",
    "exchangeRate": "0.053517914861880000",
    "fromCoin": "ETH",
    "fromCoinType": "crypto",
    "toCoin": "BTC",
    "toCoinType": "crypto",
    "fromAmount": "0.1",
    "toAmount": "0.005351791486188000",
    "expiredTime": "1720071092225",
    "requestId": "test-00002"
    },
    "retExtInfo": {},
    "time": 1720071077265
    }
    - + \ No newline at end of file diff --git a/v5/asset/convert/confirm-quote.html b/v5/asset/convert/confirm-quote.html index aa11c3a94f..45e8375a03 100644 --- a/v5/asset/convert/confirm-quote.html +++ b/v5/asset/convert/confirm-quote.html @@ -4,13 +4,13 @@ Confirm a Quote | Bybit API Documentation - +

    Confirm a Quote

    info
    1. The exchange is async, please check the final status by calling query result API.
    2. Make sure you confirm the quote before the quote is expired.

    HTTP Request

    POST /v5/asset/exchange/convert-execute

    Request Parameters

    ParameterRequiredTypeComments
    quoteTxIdtruestringThe quote tx ID from Request a Quote

    Response Parameters

    ParameterTypeComments
    quoteTxIdstringQuote transaction ID
    exchangeStatusstringExchange status
  • init
  • processing
  • success
  • failure
  • Request Example

    POST /v5/asset/exchange/convert-execute HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720071899789
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 52

    {
    "quoteTxId": "10100108106409343501030232064"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "exchangeStatus": "processing",
    "quoteTxId": "10100108106409343501030232064"
    },
    "retExtInfo": {},
    "time": 1720071900529
    }
    - + \ No newline at end of file diff --git a/v5/asset/convert/convert-coin-list.html b/v5/asset/convert/convert-coin-list.html index 91b2a8dec7..6a5a10dda7 100644 --- a/v5/asset/convert/convert-coin-list.html +++ b/v5/asset/convert/convert-coin-list.html @@ -4,13 +4,13 @@ Get Convert Coin List | Bybit API Documentation - +

    Get Convert Coin List

    You can query the coin list of convert from (to).

    HTTP Request

    GET /v5/asset/exchange/query-coin-list

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin, uppercase only
  • Convert from coin (coin to sell)
  • when side=0, coin field is ignored
  • sidefalseinteger0: fromCoin list, the balance is given if you have it; 1: toCoin list (coin to buy)
  • when side=1 and coin field is filled, it returns toCoin list based on coin field
  • accountTypetruestringWallet type
  • eb_convert_funding
  • eb_convert_uta
  • eb_convert_spot
  • eb_convert_contract
  • eb_convert_inverse
  • Response Parameters

    ParameterTypeComments
    coinsarray<object>Coin spec
    > coinstringCoin
    > fullNamestringFull coin name
    > iconstringCoin icon url
    > iconNightstringCoin icon url (dark mode)
    > accuracyLengthintegerCoin precision
    > coinTypestringcrypto
    > balancestringCoin balance
  • Only when side=0, it checks balance, otherwise, it is ""
  • > uBalancestringCoin balance in USDT worth value
    > singleFromMinLimitstringThe minimum amount of fromCoin per transaction
    > singleFromMaxLimitstringThe maximum amount of fromCoin per transaction
    > disableFrombooleantrue: the coin is disabled to be fromCoin, false: the coin is allowed to be fromCoin
    > disableTobooleantrue: the coin is disabled to be toCoin, false: the coin is allowed to be toCoin
    > timePeriodintegerReserved field, ignored for now
    > singleToMinLimitstringReserved field, ignored for now
    > singleToMaxLimitstringReserved field, ignored for now
    > dailyFromMinLimitstringReserved field, ignored for now
    > dailyFromMaxLimitstringReserved field, ignored for now
    > dailyToMinLimitstringReserved field, ignored for now
    > dailyToMaxLimitstringReserved field, ignored for now

    Request Example

    GET /v5/asset/exchange/query-coin-list?side=0&accountType=eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720064061248
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "coins": [
    {
    "coin": "BTC",
    "fullName": "BTC",
    "icon": "https://t1.bycsi.com/app/assets/token/0717b8c28c2373bf714c964195411d0f.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/9504b4c841194cc38f04041003ffbfdb.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "0",
    "uBalance": "0",
    "timePeriod": 0,
    "singleFromMinLimit": "0.001",
    "singleFromMaxLimit": "1",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    },
    ...
    {
    "coin": "SOL",
    "fullName": "SOL",
    "icon": "https://s1.bycsi.com/app/assets/token/87ca5f1ca7229bdf0d9a16435653007c.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/383a834046655ffe5ef1be1a025791cc.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "18.05988133",
    "uBalance": "2458.46990211775033220586588327",
    "timePeriod": 0,
    "singleFromMinLimit": "0.1",
    "singleFromMaxLimit": "1250",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    },
    ...
    {
    "coin": "ETH",
    "fullName": "ETH",
    "icon": "https://s1.bycsi.com/app/assets/token/d6c17c9e767e1810875c702d86ac9f32.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/9613ac8e7d62081f4ca20488ae5b168d.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "0.80264489",
    "uBalance": "2596.09751650032773106431534138",
    "timePeriod": 0,
    "singleFromMinLimit": "0.01",
    "singleFromMaxLimit": "250",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    }
    ]
    },
    "retExtInfo": {},
    "time": 1720064061736
    }
    - + \ No newline at end of file diff --git a/v5/asset/convert/get-convert-history.html b/v5/asset/convert/get-convert-history.html index f40e41b24d..5226d5c262 100644 --- a/v5/asset/convert/get-convert-history.html +++ b/v5/asset/convert/get-convert-history.html @@ -4,13 +4,13 @@ Get Convert history | Bybit API Documentation - +

    Get Convert history

    Those confirmed quotes no matter status are showns by this API.

    info

    Only display the conversion history created through open API.

    HTTP Request

    GET /v5/asset/exchange/query-convert-history

    Request Parameters

    ParameterRequiredTypeComments
    accountTypefalsestringWallet type
  • Supports passing multiple types, separated by comma e.g., eb_convert_funding,eb_convert_uta
  • Return all wallet types data if not passed
  • indexfalseintegerPage number
  • started from 1
  • 1st page by default
  • limitfalseintegerPage size
  • 20 records by default
  • up to 100 records, return 100 when exceeds 100
  • Response Parameters

    ParameterTypeComments
    listarray<object>Array of quotes
    > accountTypestringWallet type
    > exchangeTxIdstringExchange tx ID, same as quote tx ID
    > userIdstringUser ID
    > fromCoinstringFrom coin
    > fromCoinTypestringFrom coin type. crypto
    > toCoinstringTo coin
    > toCoinTypestringTo coin type. crypto
    > fromAmountstringFrom coin amount (amount to sell)
    > toAmountstringTo coin amount (amount to buy according to exchange rate)
    > exchangeStatusstringExchange status
  • init
  • processing
  • success
  • failure
  • > extInfoobject
    >> paramTypestringThis field is published when you send it in the Request a Quote
    >> paramValuestringThis field is published when you send it in the Request a Quote
    > convertRatestringExchange rate
    > createdAtstringQuote created time

    Request Example

    GET /v5/asset/exchange/query-convert-history?accountType=eb_convert_uta,eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720074159814
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "list": [
    {
    "accountType": "eb_convert_funding",
    "exchangeTxId": "10100108106409343501030232064",
    "userId": "XXXXX",
    "fromCoin": "ETH",
    "fromCoinType": "crypto",
    "fromAmount": "0.1",
    "toCoin": "BTC",
    "toCoinType": "crypto",
    "toAmount": "0.00534882723991",
    "exchangeStatus": "success",
    "extInfo": {
    "paramType": "opFrom",
    "paramValue": "broker-id-001"
    },
    "convertRate": "0.0534882723991",
    "createdAt": "1720071899995"
    },
    {
    "accountType": "eb_convert_uta",
    "exchangeTxId": "23070eb_convert_uta408933875189391360",
    "userId": "XXXXX",
    "fromCoin": "BTC",
    "fromCoinType": "crypto",
    "fromAmount": "0.1",
    "toCoin": "ETH",
    "toCoinType": "crypto",
    "toAmount": "1.773938248611074",
    "exchangeStatus": "success",
    "extInfo": {},
    "convertRate": "17.73938248611074",
    "createdAt": "1719974243256"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1720074457715
    }
    - + \ No newline at end of file diff --git a/v5/asset/convert/get-convert-result.html b/v5/asset/convert/get-convert-result.html index a578917428..b26f01044f 100644 --- a/v5/asset/convert/get-convert-result.html +++ b/v5/asset/convert/get-convert-result.html @@ -4,14 +4,14 @@ Get Convert Status | Bybit API Documentation - +

    Get Convert Status

    You can query the exchange result by sending quoteTxId. Make sure you input correct account type and quoteTxId, otherwise you cannot find it.

    HTTP Request

    GET /v5/asset/exchange/convert-result-query

    Request Parameters

    ParameterRequiredTypeComments
    quoteTxIdtruestringQuote tx ID
    accountTypetruestringWallet type

    Response Parameters

    ParameterTypeComments
    resultobject
    > accountTypestringWallet type
    > exchangeTxIdstringExchange tx ID, same as quote tx ID
    > userIdstringUser ID
    > fromCoinstringFrom coin
    > fromCoinTypestringFrom coin type. crypto
    > toCoinstringTo coin
    > toCoinTypestringTo coin type. crypto
    > fromAmountstringFrom coin amount (amount to sell)
    > toAmountstringTo coin amount (amount to buy according to exchange rate)
    > exchangeStatusstringExchange status
  • init
  • processing
  • success
  • failure
  • > extInfoobjectReserved field, ignored for now
    > convertRatestringExchange rate
    > createdAtstringQuote created time

    Request Example

    GET /v5/asset/exchange/convert-result-query?quoteTxId=10100108106409343501030232064&accountType=eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720073659847
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "result": {
    "accountType": "eb_convert_funding",
    "exchangeTxId": "10100108106409343501030232064",
    "userId": "XXXXX",
    "fromCoin": "ETH",
    "fromCoinType": "crypto",
    "fromAmount": "0.1",
    "toCoin": "BTC",
    "toCoinType": "crypto",
    "toAmount": "0.00534882723991",
    "exchangeStatus": "success",
    "extInfo": {},
    "convertRate": "0.0534882723991",
    "createdAt": "1720071899995"
    }
    },
    "retExtInfo": {},
    "time": 1720073660696
    }
    - + \ No newline at end of file diff --git a/v5/asset/convert/guideline.html b/v5/asset/convert/guideline.html index 011a769abf..1e8407f853 100644 --- a/v5/asset/convert/guideline.html +++ b/v5/asset/convert/guideline.html @@ -4,13 +4,13 @@ Convert Guideline | Bybit API Documentation - +

    Convert Guideline

    info
    • All convert api need authentication
    • API key permission: "Exchange"

    Workflow

    Step1 Get Convert Coin List

    • Query the supported coin list of convert from / to in the different account types.
    • The balance is also given when querying the convert from coin list.

    Step2 Request a Quote

    • Select fromCoin, toCoin, acccountType, define the qty of fromCoin to get a quote
    • There is balance pre-check at this stage.

    Step3 Confirm a Quote

    • Confirm your quote in the valid time slot (15 secs). Once confirmed, the system processes your transactions.
    • This operation is async, so it can be failed if you have funds transferred out. Please check the transaction result by step 4.

    Step4 Get Convert Status

    Check the final status of the coin convert.

    Error

    CodeMsgComment
    790000system error, please try again later
    700000parameter error
    700001quote fail: no deler can be used
    700002quote fial: not support quote typewhen requestCoin=toCoin during request quote stage
    700003order status not allowed
    700004order does not exit1. check if quoteTxId is correct; 2. check if quoteTxId is matched with accountType
    700005Your available balance is insufficient or wallet does not exist
    700006Low amount limitthe request amount cannot be smaller than minFromCoinLimit
    700007Large amount limitthe request amount cannot be larger than maxFromCoinLimit
    700008quote fail: price time out1. the quote is expired; 2. The quoteTxId does not exist
    700009quoteTxId has already been usedget this error when you call confirm quote more than once before expiry time
    700010INS loan user cannot perform conversion
    700011illegal operationwhen request a quote with user A, but confirm the quote with user B

    API Rate Limit

    MethodPathLimitUpgradable
    GET/v5/asset/exchange/query-coin-list100 req/sN
    POST/v5/asset/exchange/quote-apply50 req/sN
    POST/v5/asset/exchange/convert-execute50 req/sN
    GET/v5/asset/exchange/convert-result-query100 req/sN
    GET/v5/asset/exchange/query-convert-history100 req/sN
    - + \ No newline at end of file diff --git a/v5/asset/delivery.html b/v5/asset/delivery.html index 98224cf81e..0379023d4c 100644 --- a/v5/asset/delivery.html +++ b/v5/asset/delivery.html @@ -4,13 +4,13 @@ Get Delivery Record | Bybit API Documentation - +

    Get Delivery Record

    Query delivery records of Invese Futures, USDC Futures and Options, sorted by deliveryTime in descending order

    HTTP Request

    GET /v5/asset/delivery-record

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
  • UTA2.0: inverse(inverse futures), linear(USDC futures), option
  • UTA1.0: linear(USDC futures), option
  • symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 30 days by default
    • Only startTime is passed, return range between startTime and startTime+30 days
    • Only endTime is passed, return range between endTime-30 days and endTime
    • If both are passed, the rule is endTime - startTime <= 30 days
    endTimefalseintegerThe end time. timestamp (ms)
    expDatefalsestringExpiry date. 25MAR22. Default: return all
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > deliveryTimenumberDelivery time (ms)
    > symbolstringSymbol name
    > sidestringBuy,Sell
    > positionstringExecuted size
    > deliveryPricestringDelivery price
    > strikestringExercise price
    > feestringTrading fee
    > deliveryRplstringRealized PnL of the delivery
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/delivery-record?expDate=29DEC22&category=option HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672362112944
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "132791%3A0%2C132791%3A0",
    "category": "option",
    "list": [
    {
    "symbol": "BTC-29DEC22-16000-P",
    "side": "Buy",
    "deliveryTime": 1672300800860,
    "strike": "16000",
    "fee": "0.00000000",
    "position": "0.01",
    "deliveryPrice": "16541.86369547",
    "deliveryRpl": "3.5"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672362116184
    }
    - + \ No newline at end of file diff --git a/v5/asset/deposit/deposit-coin-spec.html b/v5/asset/deposit/deposit-coin-spec.html index 10b300eb71..6aad89e3aa 100644 --- a/v5/asset/deposit/deposit-coin-spec.html +++ b/v5/asset/deposit/deposit-coin-spec.html @@ -4,13 +4,13 @@ Get Allowed Deposit Coin Info | Bybit API Documentation - +

    Get Allowed Deposit Coin Info

    Query allowed deposit coin information. To find out paired chain of coin, please refer coin info api.

    tip

    This is an endpoint that does not need authentication

    HTTP Request

    GET /v5/asset/deposit/query-allowed-list

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin, uppercase only. coin and chain must be paired if passed
    chainfalsestringChain. coin and chain must be paired if passed
    limitfalseintegerLimit for data size per page. [1, 35]. Default: 10
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    configListarrayObject
    > coinstringCoin
    > chainstringChain
    > coinShowNamestringCoin name
    > chainTypestringChain type
    > blockConfirmNumberintegerDeposit confirmation number
    > minDepositAmountstringMinimum deposit amount
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/deposit/query-allowed-list?coin=ETH&chain=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672191495968
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "configList": [
    {
    "coin": "ETH",
    "chain": "ETH",
    "coinShowName": "ETH",
    "chainType": "ETH",
    "blockConfirmNumber": 10000,
    "minDepositAmount": "0.01"
    }
    ],
    "nextPageCursor": "eyJwYWdlIjoyLCJsaW1pdCI6MTB9"
    },
    "retExtInfo": {},
    "time": 1672191496219
    }
    - + \ No newline at end of file diff --git a/v5/asset/deposit/deposit-record.html b/v5/asset/deposit/deposit-record.html index 3f8b7c1340..eee9326f1d 100644 --- a/v5/asset/deposit/deposit-record.html +++ b/v5/asset/deposit/deposit-record.html @@ -4,13 +4,13 @@ Get Deposit Records (on-chain) | Bybit API Documentation - +

    Get Deposit Records (on-chain)

    Query deposit records.

    tip
    • endTime - startTime should be less than 30 days. Query last 30 days records by default.
    • Support using main or sub UID api key to query deposit records respectively.

    HTTP Request

    GET /v5/asset/deposit/query-record

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    rowsarrayObject
    > coinstringCoin
    > chainstringChain
    > amountstringAmount
    > txIDstringTransaction ID
    > statusintegerDeposit status
    > toAddressstringDeposit target address
    > tagstringTag of deposit target address
    > depositFeestringDeposit fee
    > successAtstringLast updated time
    > confirmationsstringNumber of confirmation blocks
    > txIndexstringTransaction sequence number
    > blockHashstringHash number on the chain
    > batchReleaseLimitstringThe deposit limit for this coin in this chain. "-1" means no limit
    > depositTypestringThe deposit type. 0: normal deposit, 10: the deposit reaches daily deposit limit, 20: abnormal deposit
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/deposit/query-record?coin=USDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672191991544
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [
    {
    "coin": "USDT",
    "chain": "ETH",
    "amount": "10000",
    "txID": "skip-notification-scene-test-amount-202212270944-533285-USDT",
    "status": 3,
    "toAddress": "test-amount-address",
    "tag": "",
    "depositFee": "",
    "successAt": "1672134274000",
    "confirmations": "10000",
    "txIndex": "",
    "blockHash": "",
    "batchReleaseLimit": "-1",
    "depositType": "0"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTA0NjA0MywibWF4SUQiOjEwNDYwNDN9"
    },
    "retExtInfo": {},
    "time": 1672191992512
    }
    - + \ No newline at end of file diff --git a/v5/asset/deposit/internal-deposit-record.html b/v5/asset/deposit/internal-deposit-record.html index 6fb812045c..b3bef11a0e 100644 --- a/v5/asset/deposit/internal-deposit-record.html +++ b/v5/asset/deposit/internal-deposit-record.html @@ -4,13 +4,13 @@ Get Internal Deposit Records (off-chain) | Bybit API Documentation - +

    Get Internal Deposit Records (off-chain)

    Query deposit records within the Bybit platform. These transactions are not on the blockchain.

    Rules
    • The maximum difference between the start time and the end time is 30 days.
    • Support to get deposit records by Master or Sub Member Api Key

    HTTP Request

    GET /v5/asset/deposit/query-internal-record

    Request Parameters

    ParameterRequiredTypeComments
    txIDfalsestringInternal transfer transaction ID
    startTimefalseintegerStart time (ms). Default value: 30 days before the current time
    endTimefalseintegerEnd time (ms). Default value: current time
    coinfalsestringCoin name: for example, BTC. Default value: all
    cursorfalsestringCursor, used for pagination
    limitfalseintegerNumber of items per page, [1, 50]. Default value: 50

    Response Parameters

    ParameterTypeComments
    rowsarrayObject
    > idstringID
    > typeinteger1: Internal deposit
    > coinstringDeposit coin
    > amountstringDeposit amount
    > statusinteger
    • 1=Processing
    • 2=Success
    • 3=deposit failed
    > addressstringEmail address or phone number
    > createdTimestringDeposit created timestamp
    > txIDstringInternal transfer transaction ID
    nextPageCursorstringcursor information: used for pagination. Default value: ""

    Request Example

    GET /v5/asset/deposit/query-internal-record HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682099024473
    X-BAPI-RECV-WINDOW: 50000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [
    {
    "id": "1103",
    "amount": "0.1",
    "type": 1,
    "coin": "ETH",
    "address": "xxxx***@gmail.com",
    "status": 2,
    "createdTime": "1705393280",
    "txID": "77c37e5c-d9fa-41e5-bd13-c9b59d95"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTEwMywibWF4SUQiOjExMDN9"
    },
    "retExtInfo": {},
    "time": 1705395632689
    }
    - + \ No newline at end of file diff --git a/v5/asset/deposit/master-deposit-addr.html b/v5/asset/deposit/master-deposit-addr.html index 1fe50c3911..7ddaf267cd 100644 --- a/v5/asset/deposit/master-deposit-addr.html +++ b/v5/asset/deposit/master-deposit-addr.html @@ -4,13 +4,13 @@ Get Master Deposit Address | Bybit API Documentation - +

    Get Master Deposit Address

    Query the deposit address information of MASTER account.

    HTTP Request

    GET /v5/asset/deposit/query-address

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin, uppercase only
    chainTypefalsestringPlease use the value of >> chain from coin-info endpoint

    Response Parameters

    ParameterTypeComments
    coinstringCoin
    chainsarrayObject
    > chainTypestringChain type
    > addressDepositstringThe address for deposit
    > tagDepositstringTag of deposit
    > chainstringChain
    > batchReleaseLimitstringThe deposit limit for this coin in this chain. "-1" means no limit

    Request Example

    GET /v5/asset/deposit/query-address?coin=USDT&chainType=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672192792371
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "coin": "USDT",
    "chains": [
    {
    "chainType": "ERC20",
    "addressDeposit": "0xd9e1cd77afa0e50b452a62fbb68a3340602286c3",
    "tagDeposit": "",
    "chain": "ETH",
    "batchReleaseLimit": "-1"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672192792860
    }
    - + \ No newline at end of file diff --git a/v5/asset/deposit/set-deposit-acct.html b/v5/asset/deposit/set-deposit-acct.html index 3badffc480..d82d3409e8 100644 --- a/v5/asset/deposit/set-deposit-acct.html +++ b/v5/asset/deposit/set-deposit-acct.html @@ -4,13 +4,13 @@ Set Deposit Account | Bybit API Documentation - +

    Set Deposit Account

    Set auto transfer account after deposit. The same function as the setting for Deposit on web GUI

    info
    • Your funds will be deposited into FUND wallet by default. You can set the wallet for auto-transfer after deposit by this API.
    • Only main UID can access.
    tip
    • UTA2.0 has FUND, UNIFIED
    • UTA1.0 has FUND, UNIFIED, CONTRACT(for inverse derivatives)
    • Classic account has FUND, CONTRACT(for inverse derivatives and derivatives), SPOT

    HTTP Request

    POST /v5/asset/deposit/deposit-to-account

    Request Parameters

    ParameterRequiredTypeComments
    accountTypetruestringAccount type
    • UNIFIED
    • SPOT
    • CONTRACT
    • FUND

    Response Parameters

    ParameterTypeComments
    statusintegerRequest result:
    • 1: SUCCESS
    • 0: FAIL

    Request Example

    POST /v5/asset/deposit/deposit-to-account HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676887913670
    X-BAPI-RECV-WINDOW: 50000
    Content-Type: application/json

    {
    "accountType": "CONTRACT"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "status": 1
    },
    "retExtInfo": {},
    "time": 1676887914363
    }
    - + \ No newline at end of file diff --git a/v5/asset/deposit/sub-deposit-addr.html b/v5/asset/deposit/sub-deposit-addr.html index baca3157b8..cd176d9f38 100644 --- a/v5/asset/deposit/sub-deposit-addr.html +++ b/v5/asset/deposit/sub-deposit-addr.html @@ -4,13 +4,13 @@ Get Sub Deposit Address | Bybit API Documentation - +

    Get Sub Deposit Address

    Query the deposit address information of SUB account.

    info
    • Use master UID's api key only
    • Custodial sub account deposit address cannot be obtained

    HTTP Request

    GET /v5/asset/deposit/query-sub-member-address

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin, uppercase only
    chainTypetruestringPlease use the value of chain from coin-info endpoint
    subMemberIdtruestringSub user ID

    Response Parameters

    ParameterTypeComments
    coinstringCoin
    chainsarrayObject
    > chainTypestringChain type
    > addressDepositstringThe address for deposit
    > tagDepositstringTag of deposit
    > chainstringChain
    > batchReleaseLimitstringThe deposit limit for this coin in this chain. "-1" means no limit

    Request Example

    GET /v5/asset/deposit/query-sub-member-address?coin=USDT&chainType=TRX&subMemberId=592334 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672194349421
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "coin": "USDT",
    "chains": {
    "chainType": "TRC20",
    "addressDeposit": "TCB6NmwGXjn8eJYDuPxLvs4aM8Jn7gvJ1f",
    "tagDeposit": "",
    "chain": "TRX",
    "batchReleaseLimit": "-1"
    }
    },
    "retExtInfo": {},
    "time": 1672194350819
    }
    - + \ No newline at end of file diff --git a/v5/asset/deposit/sub-deposit-record.html b/v5/asset/deposit/sub-deposit-record.html index 8ac50fe212..856426d8da 100644 --- a/v5/asset/deposit/sub-deposit-record.html +++ b/v5/asset/deposit/sub-deposit-record.html @@ -4,13 +4,13 @@ Get Sub Deposit Records (on-chain) | Bybit API Documentation - +

    Get Sub Deposit Records (on-chain)

    Query subaccount's deposit records by main UID's API key.

    tip

    endTime - startTime should be less than 30 days. Queries for the last 30 days worth of records by default.

    HTTP Request

    GET /v5/asset/deposit/query-sub-member-record

    Request Parameters

    ParameterRequiredTypeComments
    subMemberIdtruestringSub UID
    coinfalsestringCoin, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    rowsarrayObject
    > coinstringCoin
    > chainstringChain
    > amountstringAmount
    > txIDstringTransaction ID
    > statusintegerDeposit status
    > toAddressstringDeposit target address
    > tagstringTag of deposit target address
    > depositFeestringDeposit fee
    > successAtstringLast updated time
    > confirmationsstringNumber of confirmation blocks
    > txIndexstringTransaction sequence number
    > blockHashstringHash number on the chain
    > batchReleaseLimitstringThe deposit limit for this coin in this chain. "-1" means no limit
    > depositTypestringThe deposit type. 0: normal deposit, 10: the deposit reaches daily deposit limit, 20: abnormal deposit
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/deposit/query-sub-member-record?coin=USDT&limit=1&subMemberId=592334 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672192441294
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1672192441742
    }
    - + \ No newline at end of file diff --git a/v5/asset/exchange.html b/v5/asset/exchange.html index d4c641b229..a3b2075a8a 100644 --- a/v5/asset/exchange.html +++ b/v5/asset/exchange.html @@ -4,13 +4,13 @@ Get Coin Exchange Records | Bybit API Documentation - +

    Get Coin Exchange Records

    Query the coin exchange records.

    info

    It sometimes has 5 secs delay

    HTTP Request

    GET /v5/asset/exchange/order-record

    Request Parameters

    ParameterRequiredTypeComments
    fromCoinfalsestringThe currency to convert from, uppercase only. e.g,BTC
    toCoinfalsestringThe currency to convert to, uppercase only. e.g,USDT
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 10
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    nextPageCursorstringRefer to the cursor request parameter
    orderBodyarrayObject
    > fromCoinstringThe currency to convert from
    > fromAmountstringThe amount to convert from
    > toCoinstringThe currency to convert to
    > toAmountstringThe amount to convert to
    > exchangeRatestringExchange rate
    > createdTimestringExchange created timestamp (sec)
    > exchangeTxIdstringExchange transaction ID

    Request Example

    GET /v5/asset/exchange/order-record?limit=10 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672990462492
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderBody": [
    {
    "fromCoin": "BTC",
    "fromAmount": "0.100000000000000000",
    "toCoin": "ETH",
    "toAmount": "1.385866230000000000",
    "exchangeRate": "13.858662380000000000",
    "createdTime": "1672197760",
    "exchangeTxId": "145102533285208544812654440448"
    }
    ],
    "nextPageCursor": "173341:1672197760"
    },
    "retExtInfo": {},
    "time": 1672990464021
    }
    - + \ No newline at end of file diff --git a/v5/asset/settlement.html b/v5/asset/settlement.html index ec98ee45e8..38cbe22270 100644 --- a/v5/asset/settlement.html +++ b/v5/asset/settlement.html @@ -4,13 +4,13 @@ Get USDC Session Settlement | Bybit API Documentation - +

    Get USDC Session Settlement

    Query session settlement records of USDC perpetual and futures

    HTTP Request

    GET /v5/asset/settlement-record

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
  • UTA2.0: linear(USDC contract)
  • UTA1.0: linear(USDC contract)
  • symbolfalsestringSymbol name, like BTCPERP, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 30 days by default
    • Only startTime is passed, return range between startTime and startTime+30 days
    • Only endTime is passed, return range between endTime-30 days and endTime
    • If both are passed, the rule is endTime - startTime <= 30 days
    endTimefalseintegerThe end time. timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > sidestringBuy,Sell
    > sizestringPosition size
    > sessionAvgPricestringSettlement price
    > markPricestringMark price
    > realisedPnlstringRealised PnL
    > createdTimestringCreated time (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/settlement-record?category=linear HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672284883483
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "116952%3A1%2C116952%3A1",
    "category": "linear",
    "list": [
    {
    "realisedPnl": "-71.28",
    "symbol": "BTCPERP",
    "side": "Buy",
    "markPrice": "16620",
    "size": "1.5",
    "createdTime": "1672214400000",
    "sessionAvgPrice": "16620"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672284884285
    }
    - + \ No newline at end of file diff --git a/v5/asset/sub-uid-list.html b/v5/asset/sub-uid-list.html index 38f2acbbbc..f0c419c43f 100644 --- a/v5/asset/sub-uid-list.html +++ b/v5/asset/sub-uid-list.html @@ -4,13 +4,13 @@ Get Sub UID | Bybit API Documentation - +

    Get Sub UID

    Query the sub UIDs under a main UID. It returns up to 2000 sub accounts, if you need more, please call this endpoint.

    info

    Query by the master UID's api key only

    HTTP Request

    GET /v5/asset/transfer/query-sub-member-list

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    subMemberIdsarray<string>All sub UIDs under the main UID
    transferableSubMemberIdsarray<string>All sub UIDs that have universal transfer enabled

    Request Example

    GET /v5/asset/transfer/query-sub-member-list HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672147239931
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "subMemberIds": [
    "554117",
    "592324",
    "592334",
    "1055262",
    "1072055",
    "1119352"
    ],
    "transferableSubMemberIds": [
    "554117",
    "592324"
    ]
    },
    "retExtInfo": {},
    "time": 1672147241320
    }
    - + \ No newline at end of file diff --git a/v5/asset/transfer/create-inter-transfer.html b/v5/asset/transfer/create-inter-transfer.html index 615236c100..509a7d810d 100644 --- a/v5/asset/transfer/create-inter-transfer.html +++ b/v5/asset/transfer/create-inter-transfer.html @@ -4,13 +4,13 @@ Create Internal Transfer | Bybit API Documentation - +

    Create Internal Transfer

    Create the internal transfer between different account types under the same UID.

    tip
    • Please refer to transferable coin list API to find out more.
    • Currently, the funding wallet only supports outgoing transfers in cryptocurrency, not in fiat currency.

    HTTP Request

    POST /v5/asset/transfer/inter-transfer

    Request Parameters

    ParameterRequiredTypeComments
    transferIdtruestringUUID. Please manually generate a UUID
    cointruestringCoin, uppercase only
    amounttruestringAmount
    fromAccountTypetruestringFrom account type
    toAccountTypetruestringTo account type

    Response Parameters

    ParameterTypeComments
    transferIdstringUUID
    statusstringTransfer status
  • STATUS_UNKNOWN
  • SUCCESS
  • PENDING
  • FAILED

  • Request Example

    POST v5/asset/transfer/inter-transfer HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1670986690556
    X-BAPI-RECV-WINDOW: 50000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json
    {
    "transferId": "42c0cfb0-6bca-c242-bc76-4e6df6cbcb16",
    "coin": "BTC",
    "amount": "0.05",
    "fromAccountType": "UNIFIED",
    "toAccountType": "CONTRACT"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "transferId": "42c0cfb0-6bca-c242-bc76-4e6df6cbab16",
    "status": "SUCCESS"
    },
    "retExtInfo": {},
    "time": 1670986962783
    }
    - + \ No newline at end of file diff --git a/v5/asset/transfer/inter-transfer-list.html b/v5/asset/transfer/inter-transfer-list.html index 0bbc6fd82e..118a4f3114 100644 --- a/v5/asset/transfer/inter-transfer-list.html +++ b/v5/asset/transfer/inter-transfer-list.html @@ -4,13 +4,13 @@ Get Internal Transfer Records | Bybit API Documentation - +

    Get Internal Transfer Records

    Query the internal transfer records between different account types under the same UID.

    info

    When both startTime & endTime are not passed, API returns 30 days data by default

    HTTP Request

    GET /v5/asset/transfer/query-inter-transfer-list

    Request Parameters

    ParameterRequiredTypeComments
    transferIdfalsestringUUID. Use the one you generated in createTransfer
    coinfalsestringCoin, uppercase only
    statusfalsestringTransfer status
    startTimefalseintegerThe start timestamp (ms) Note: the query logic is actually effective based on second level
    endTimefalseintegerThe end timestamp (ms) Note: the query logic is actually effective based on second level
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > transferIdstringTransfer ID
    > coinstringTransferred coin
    > amountstringTransferred amount
    > fromAccountTypestringFrom account type
    > toAccountTypestringTo account type
    > timestampstringTransfer created timestamp (ms)
    > statusstringTransfer status
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/transfer/inter-transfer-list-query?coin=USDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1670988271299
    X-BAPI-RECV-WINDOW: 50000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "transferId": "selfTransfer_a1091cc7-9364-4b74-8de1-18f02c6f2d5c",
    "coin": "USDT",
    "amount": "5000",
    "fromAccountType": "SPOT",
    "toAccountType": "UNIFIED",
    "timestamp": "1667283263000",
    "status": "SUCCESS"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTM1ODQ2OCwibWF4SUQiOjEzNTg0Njh9"
    },
    "retExtInfo": {},
    "time": 1670988271677
    }
    - + \ No newline at end of file diff --git a/v5/asset/transfer/transferable-coin.html b/v5/asset/transfer/transferable-coin.html index d5682df745..7a316371e6 100644 --- a/v5/asset/transfer/transferable-coin.html +++ b/v5/asset/transfer/transferable-coin.html @@ -4,13 +4,13 @@ Get Transferable Coin | Bybit API Documentation - +

    Get Transferable Coin

    Query the transferable coin list between each account type

    HTTP Request

    GET /v5/asset/transfer/query-transfer-coin-list

    Request Parameters

    ParameterRequiredTypeComments
    fromAccountTypetruestringFrom account type
    toAccountTypetruestringTo account type

    Response Parameters

    ParameterTypeComments
    listarrayA list of coins (as strings)

    Request Example

    GET /v5/asset/transfer/query-transfer-coin-list?fromAccountType=UNIFIED&toAccountType=CONTRACT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672144322595
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    "BTC",
    "ETH"
    ]
    },
    "retExtInfo": {},
    "time": 1672144322954
    }
    - + \ No newline at end of file diff --git a/v5/asset/transfer/unitransfer-list.html b/v5/asset/transfer/unitransfer-list.html index fba1429d34..8c41daa844 100644 --- a/v5/asset/transfer/unitransfer-list.html +++ b/v5/asset/transfer/unitransfer-list.html @@ -4,13 +4,13 @@ Get Universal Transfer Records | Bybit API Documentation - +

    Get Universal Transfer Records

    Query universal transfer records

    tip
    • Main acct api key or Sub acct api key are both supported
    • Main acct api key needs "SubMemberTransfer" permission
    • Sub acct api key needs "SubMemberTransferList" permission
    info

    When both startTime & endTime are not passed, API returns 30 days data by default

    HTTP Request

    GET /v5/asset/transfer/query-universal-transfer-list

    Request Parameters

    ParameterRequiredTypeComments
    transferIdfalsestringUUID. Use the one you generated in createTransfer
    coinfalsestringCoin, uppercase only
    statusfalsestringTransfer status. SUCCESS,FAILED,PENDING
    startTimefalseintegerThe start timestamp (ms) Note: the query logic is actually effective based on second level
    endTimefalseintegerThe end timestamp (ms) Note: the query logic is actually effective based on second level
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > transferIdstringTransfer ID
    > coinstringTransferred coin
    > amountstringTransferred amount
    > fromMemberIdstringFrom UID
    > toMemberIdstringTO UID
    > fromAccountTypestringFrom account type
    > toAccountTypestringTo account type
    > timestampstringTransfer created timestamp (ms)
    > statusstringTransfer status
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/transfer/query-universal-transfer-list?limit=1&cursor=eyJtaW5JRCI6MTc5NjU3OCwibWF4SUQiOjE3OTY1Nzh9 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672190762800
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "transferId": "universalTransfer_4c3cfe2f-85cb-11ed-ac09-9e37823c81cd_533285",
    "coin": "USDC",
    "amount": "1000",
    "timestamp": "1672134373000",
    "status": "SUCCESS",
    "fromAccountType": "UNIFIED",
    "toAccountType": "UNIFIED",
    "fromMemberId": "533285",
    "toMemberId": "592324"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTc4OTYwNSwibWF4SUQiOjE3ODk2MDV9"
    },
    "retExtInfo": {},
    "time": 1672190763079
    }
    - + \ No newline at end of file diff --git a/v5/asset/transfer/unitransfer.html b/v5/asset/transfer/unitransfer.html index 29d3dd3ceb..5c8ad5fd01 100644 --- a/v5/asset/transfer/unitransfer.html +++ b/v5/asset/transfer/unitransfer.html @@ -4,13 +4,13 @@ Create Universal Transfer | Bybit API Documentation - +

    Create Universal Transfer

    Transfer between sub-sub or main-sub.

    tip
    • Use master or sub acct api key to request
      • To use sub acct api key, it must have "SubMemberTransferList" permission
      • When use sub acct api key, it can only transfer to main account
    • If you encounter errorCode: 131228 and msg: your balance is not enough, please go to Get Single Coin Balance to check transfer safe amount.
    • You can not transfer between the same UID.
    • Currently, the funding wallet only supports outgoing transfers in cryptocurrency, not in fiat currency.

    HTTP Request

    POST /v5/asset/transfer/universal-transfer

    Request Parameters

    ParameterRequiredTypeComments
    transferIdtruestringUUID. Please manually generate a UUID
    cointruestringCoin, uppercase only
    amounttruestringAmount
    fromMemberIdtrueintegerFrom UID
    toMemberIdtrueintegerTo UID
    fromAccountTypetruestringFrom account type
    toAccountTypetruestringTo account type

    Response Parameters

    ParameterTypeComments
    transferIdstringUUID
    statusstringTransfer status
  • STATUS_UNKNOWN
  • SUCCESS
  • PENDING
  • FAILED

  • Request Example

    POST /v5/asset/transfer/universal-transfer HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672189449697
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json

    {
    "transferId": "be7a2462-1138-4e27-80b1-62653f24925e",
    "coin": "ETH",
    "amount": "0.5",
    "fromMemberId": 592334,
    "toMemberId": 691355,
    "fromAccountType": "CONTRACT",
    "toAccountType": "UNIFIED"

    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "transferId": "be7a2462-1138-4e27-80b1-62653f24925e",
    "status": "SUCCESS"
    },
    "retExtInfo": {},
    "time": 1672189450195
    }
    - + \ No newline at end of file diff --git a/v5/asset/withdraw.html b/v5/asset/withdraw.html index 9ab07c9efc..ae45f8a3e8 100644 --- a/v5/asset/withdraw.html +++ b/v5/asset/withdraw.html @@ -4,13 +4,13 @@ Withdraw | Bybit API Documentation - +

    Withdraw

    Withdraw assets from your Bybit account. You can make an off-chain transfer if the target wallet address is from Bybit. This means that no blockchain fee will be charged.

    tip
    • Make sure you have whitelisted your wallet address here
    • Request by the master UID's api key only
    formula

    feeType=0:

    • withdrawPercentageFee != 0: handlingFee = inputAmount / (1 - withdrawPercentageFee) * withdrawPercentageFee + withdrawFee
    • withdrawPercentageFee = 0: handlingFee = withdrawFee

    feeType=1:

    • withdrawPercentageFee != 0: handlingFee = withdrawFee + (inputAmount - withdrawFee) * withdrawPercentageFee
    • withdrawPercentageFee = 0: handlingFee = withdrawFee

    HTTP Request

    POST /v5/asset/withdraw/create

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin, uppercase only
    chainfalsestringChain
    • forceChain=0 or 1: this field is required
    • forceChain=2: this field can be null
    addresstruestring
    • forceChain=0 or 1: fill wallet address, and make sure you add address in the address book first. Please note that the address is case sensitive, so use the exact same address added in address book
    • forceChain=2: fill Bybit UID, and it can only be another Bybit main account UID. Make sure you add UID in the address book first
    tagfalsestringTag
    • Required if tag exists in the wallet address list.
    • Note: please do not set a tag/memo in the address book if the chain does not support tag
    amounttruestringWithdraw amount
    timestamptrueintegerCurrent timestamp (ms). Used for preventing from withdraw replay
    forceChainfalseintegerWhether or not to force an on-chain withdrawal
    • 0(default): If the address is parsed out to be an internal address, then internal transfer
    • 1: Force the withdrawal to occur on-chain
    • 2: Use UID to withdraw
    accountTypefalsestringSelect the wallet to be withdrawn from
    • SPOT:spot wallet (default)
    • FUND:Funding wallet
    feeTypefalseintegerHandling fee option
    • 0(default): input amount is the actual amount received, so you have to calculate handling fee manually
    • 1: input amount is not the actual amount you received, the system will help to deduct the handling fee automatically
    requestIdfalsestringCustomised ID, globally unique, it is used for idempotent verification
  • A combination of letters (case sensitive) and numbers, which can be pure letters or pure numbers and the length must be between 1 and 32 digits
  • beneficiaryfalseObjectTravel rule info, only required for kyc=KOR (korean) users
    > vaspEntityIdtruestringReceiver exchange entity Id. Please call this endpoint to get this ID
    > beneficiaryNamefalsestringReceiver exchange user KYC name, like John Wilson or Wilson John
  • Please refer to target exchange kyc name
  • When vaspEntityId="others", this field can be null
  • Response Parameters

    ParameterTypeComments
    idstringWithdrawal ID

    Request Example

    POST /v5/asset/withdraw/create HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672196570254
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json

    {
    "coin": "USDT",
    "chain": "ETH",
    "address": "0x99ced129603abc771c0dabe935c326ff6c86645d",
    "amount": "24",
    "timestamp": 1672196561407,
    "forceChain": 0,
    "accountType": "FUND"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "id": "10195"
    },
    "retExtInfo": {},
    "time": 1672196571239
    }
    - + \ No newline at end of file diff --git a/v5/asset/withdraw/cancel-withdraw.html b/v5/asset/withdraw/cancel-withdraw.html index 54c673d3c7..8db99b6a36 100644 --- a/v5/asset/withdraw/cancel-withdraw.html +++ b/v5/asset/withdraw/cancel-withdraw.html @@ -4,13 +4,13 @@ Cancel Withdrawal | Bybit API Documentation - +

    Cancel Withdrawal

    Cancel the withdrawal

    HTTP Request

    POST /v5/asset/withdraw/cancel

    Request Parameters

    ParameterRequiredTypeComments
    idtruestringWithdrawal ID

    Response Parameters

    ParameterTypeComments
    statusinteger0: fail. 1: success

    Request Example

    POST /v5/asset/withdraw/cancel HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672197227732
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json

    {
    "id": "10197"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "status": 1
    },
    "retExtInfo": {},
    "time": 1672197228408
    }
    - + \ No newline at end of file diff --git a/v5/asset/withdraw/vasp-list.html b/v5/asset/withdraw/vasp-list.html index bf25349167..130358e139 100644 --- a/v5/asset/withdraw/vasp-list.html +++ b/v5/asset/withdraw/vasp-list.html @@ -4,13 +4,13 @@ Get Exchange Entity List | Bybit API Documentation - +

    Get Exchange Entity List

    This endpoint is particularly used for kyc=KOR users. When withdraw funds, you need to fill entity id.

    HTTP Request

    GET /v5/asset/withdraw/vasp/list

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    vasparrayExchange entity info
    > vaspEntityIdstringReceiver platform id. When transfer to Upbit or other exchanges that not in the list, please use vaspEntityId='others'
    > vaspNamestringReceiver platform name

    Request Example

    GET /v5/asset/withdraw/vasp/list HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1715067106163
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "vasp": [
    {
    "vaspEntityId": "basic-finance",
    "vaspName": "Basic-finance"
    },
    {
    "vaspEntityId": "beeblock",
    "vaspName": "Beeblock"
    },
    {
    "vaspEntityId": "bithumb",
    "vaspName": "bithumb"
    },
    {
    "vaspEntityId": "cardo",
    "vaspName": "cardo"
    },
    {
    "vaspEntityId": "codevasp",
    "vaspName": "codevasp"
    },
    {
    "vaspEntityId": "codexchange-kor",
    "vaspName": "CODExchange-kor"
    },
    {
    "vaspEntityId": "coinone",
    "vaspName": "coinone"
    },
    {
    "vaspEntityId": "dummy",
    "vaspName": "Dummy"
    },
    {
    "vaspEntityId": "flata-exchange",
    "vaspName": "flataexchange"
    },
    {
    "vaspEntityId": "fobl",
    "vaspName": "Foblgate"
    },
    {
    "vaspEntityId": "hanbitco",
    "vaspName": "hanbitco"
    },
    {
    "vaspEntityId": "hexlant",
    "vaspName": "hexlant"
    },
    {
    "vaspEntityId": "inex",
    "vaspName": "INEX"
    },
    {
    "vaspEntityId": "infiniteblock-corp",
    "vaspName": "InfiniteBlock Corp"
    },
    {
    "vaspEntityId": "kdac",
    "vaspName": "kdac"
    },
    {
    "vaspEntityId": "korbit",
    "vaspName": "korbit"
    },
    {
    "vaspEntityId": "paycoin",
    "vaspName": "Paycoin"
    },
    {
    "vaspEntityId": "qbit",
    "vaspName": "Qbit"
    },
    {
    "vaspEntityId": "tennten",
    "vaspName": "TENNTEN"
    },
    {
    "vaspEntityId": "others",
    "vaspName": "Others (including Upbit)"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1715067106537
    }
    - + \ No newline at end of file diff --git a/v5/asset/withdraw/withdraw-record.html b/v5/asset/withdraw/withdraw-record.html index 80dd96604a..d57f9e7e2c 100644 --- a/v5/asset/withdraw/withdraw-record.html +++ b/v5/asset/withdraw/withdraw-record.html @@ -4,13 +4,13 @@ Get Withdrawal Records | Bybit API Documentation - +

    Get Withdrawal Records

    Query withdrawal records.

    tip
    • endTime - startTime should be less than 30 days. Query last 30 days records by default.
    • Can query by the master UID's api key only

    HTTP Request

    GET /v5/asset/withdraw/query-record

    Request Parameters

    ParameterRequiredTypeComments
    withdrawIDfalsestringWithdraw ID
    txIDfalsestringTransaction hash ID
    coinfalsestringCoin, uppercase only
    withdrawTypefalseintegerWithdraw type. 0(default): on chain. 1: off chain. 2: all
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    rowsarrayObject
    > withdrawIdstringWithdraw ID
    > txIDstringTransaction ID. It returns "" when withdrawal failed, withdrawal cancelled
    > withdrawTypeintegerWithdraw type. 0: on chain. 1: off chain
    > coinstringCoin
    > chainstringChain
    > amountstringAmount
    > withdrawFeestringWithdraw fee
    > statusstringWithdraw status
    > toAddressstringTo withdrawal address. Shows the Bybit UID for internal transfers
    > tagstringTag
    > createTimestringWithdraw created timestamp (ms)
    > updateTimestringWithdraw updated timestamp (ms)
    nextPageCursorstringCursor. Used for pagination

    Request Example

    GET /v5/asset/withdraw/query-record?coin=USDT&withdrawType=2&limit=2 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672194949557
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [
    {
    "coin": "USDT",
    "chain": "ETH",
    "amount": "77",
    "txID": "",
    "status": "SecurityCheck",
    "toAddress": "0x99ced129603abc771c0dabe935c326ff6c86645d",
    "tag": "",
    "withdrawFee": "10",
    "createTime": "1670922217000",
    "updateTime": "1670922217000",
    "withdrawId": "9976",
    "withdrawType": 0
    },
    {
    "coin": "USDT",
    "chain": "internalAddressChain",
    "amount": "20.1234",
    "txID": "",
    "status": "success",
    "toAddress": "999805",
    "tag": "",
    "withdrawFee": "0",
    "createTime": "1698889833000",
    "updateTime": "1698889846000",
    "withdrawId": "13310",
    "withdrawType": 1
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6OTgwMSwibWF4SUQiOjk5NzZ9"
    },
    "retExtInfo": {},
    "time": 1672194949928
    }
    - + \ No newline at end of file diff --git a/v5/backup/set-pledge-token.html b/v5/backup/set-pledge-token.html index dd942596f8..6b6617f151 100644 --- a/v5/backup/set-pledge-token.html +++ b/v5/backup/set-pledge-token.html @@ -4,13 +4,13 @@ Set Pledge Token | Bybit API Documentation - +

    Set Pledge Token

    Set Pledge Token in cross margin

    HTTP Request

    POST /v5/spot-margin-trade/set-pledge-token

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringcoin
    pledgeStatustureintpledge status. 1: on, 0: off

    Response Parameters

    ParameterTypeComments
    pledgeStatusstringpledge status:1: on,0: off
    - + \ No newline at end of file diff --git a/v5/broker/account-info.html b/v5/broker/account-info.html index 834dda93c4..d2a4ee997c 100644 --- a/v5/broker/account-info.html +++ b/v5/broker/account-info.html @@ -4,13 +4,13 @@ Get Account Info | Bybit API Documentation - +

    Get Account Info

    info
    • Use exchange broker master account to query

    API rate limit: 10 req / sec

    HTTP Request

    GET /v5/broker/account-info

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    subAcctQtystringThe qty of sub account has been created
    maxSubAcctQtystringThe max limit of sub account can be created
    baseFeeRebateRateObjectRebate percentage of the base fee
    > spotstringRebate percentage of the base fee for spot, e.g., 10.00%
    > derivativesstringRebate percentage of the base fee for derivatives, e.g., 10.00%
    markupFeeRebateRateObjectRebate percentage of the mark up fee
    > spotstringRebate percentage of the mark up fee for spot, e.g., 10.00%
    > derivativesstringRebate percentage of the mark up fee for derivatives, e.g., 10.00%
    > convertstringRebate percentage of the mark up fee for convert, e.g., 10.00%
    tsstringSystem timestamp (ms)

    Request Example

    GET /v5/broker/account-info HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1701399431920
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "subAcctQty": "2",
    "maxSubAcctQty": "20",
    "baseFeeRebateRate": {
    "spot": "10.0%",
    "derivatives": "10.0%"
    },
    "markupFeeRebateRate": {
    "spot": "6.00%",
    "derivatives": "9.00%",
    "convert": "3.00%",
    },
    "ts": "1701395633402"
    },
    "retExtInfo": {},
    "time": 1701395633403
    }
    - + \ No newline at end of file diff --git a/v5/broker/exchange-earning.html b/v5/broker/exchange-earning.html index ba67df915a..c19fbbaf1f 100644 --- a/v5/broker/exchange-earning.html +++ b/v5/broker/exchange-earning.html @@ -4,13 +4,13 @@ Get Earning | Bybit API Documentation - +

    Get Earning

    info
    • Use exchange broker master account to query
    • The data can support up to past 1 months until T-1. To extract data from over a month ago, please contact your Relationship Manager
    • begin & end are either entered at the same time or not entered, and latest 7 days data are returned by default

    API rate limit: 10 req / sec

    HTTP Request

    GET /v5/broker/earnings-info

    Request Parameters

    ParameterRequiredTypeComments
    bizTypefalsestringBusiness type. SPOT, DERIVATIVES, OPTIONS, CONVERT
    beginfalsestringBegin date, in the format of YYYYMMDD, e.g, 20231201, search the data from 1st Dec 2023 00:00:00 UTC (include)
    endfalsestringEnd date, in the format of YYYYMMDD, e.g, 20231201, search the data before 2nd Dec 2023 00:00:00 UTC (exclude)
    uidfalsestring
    • To get results for a specific sub-account: Enter the sub-account UID
    • To get results for all sub-accounts: Leave the field empty
    limitfalseintegerLimit for data size per page. [1, 1000]. Default: 1000
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    totalEarningCatObjectCategory statistics for total earning data
    > spotarrayObject. Earning for Spot trading. If do not have any rebate, keep empty array
    >> coinstringRebate coin name
    >> earningstringRebate amount of the coin
    > derivativesarrayObject. Earning for Derivatives trading. If do not have any rebate, keep empty array
    >> coinstringRebate coin name
    >> earningstringRebate amount of the coin
    > optionsarrayObject. Earning for Option trading. If do not have any rebate, keep empty array
    >> coinstringRebate coin name
    >> earningstringRebate amount of the coin
    > convertarrayObject. Earning for Convert trading. If do not have any rebate, keep empty array
    >> coinstringRebate coin name
    >> earningstringRebate amount of the coin
    > totalarrayObject. Sum earnings of all categories. If do not have any rebate, keep empty array
    >> coinstringRebate coin name
    >> earningstringRebate amount of the coin
    detailsarrayObject. Detailed trading information for each sub UID and each category
    > userIdstringSub UID
    > bizTypestringBusiness type. SPOT, DERIVATIVES, OPTIONS, CONVERT
    > symbolstringSymbol name
    > coinstringRebate coin name
    > earningstringRebate amount
    > markupEarningstringEarning generated from markup fee rate
    > baseFeeEarningstringEarning generated from base fee rate
    > orderIdstringOrder ID
    > execTimestringOrder execution timestamp (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/broker/earnings-info?begin=20231129&end=20231129&uid=117894077 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1701399431920
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: 32d2aa1bc205ddfb89849b85e2a8b7e23b1f8f69fe95d6f2cb9c87562f9086a6
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "totalEarningCat": {
    "spot": [],
    "derivatives": [
    {
    "coin": "USDT",
    "earning": "0.00027844"
    }
    ],
    "options": [],
    "total": [
    {
    "coin": "USDT",
    "earning": "0.00027844"
    }
    ]
    },
    "details": [
    {
    "userId": "117894077",
    "bizType": "DERIVATIVES",
    "symbol": "DOGEUSDT",
    "coin": "USDT",
    "earning": "0.00016166",
    "markupEarning": "0.000032332",
    "baseFeeEarning": "0.000129328",
    "orderId": "ec2132f2-a7e0-4a0c-9219-9f3cbcd8e878",
    "execTime": "1701275846033"
    },
    {
    "userId": "117894077",
    "bizType": "DERIVATIVES",
    "symbol": "TRXUSDT",
    "coin": "USDT",
    "earning": "0.00011678",
    "markupEarning": "0.000023356",
    "baseFeeEarning": "0.000093424",
    "orderId": "28b29c2b-ba14-450e-9ce7-3cee0c1fa6da",
    "execTime": "1701245285017"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1701398193964
    }
    - + \ No newline at end of file diff --git a/v5/broker/reward/get-issue-voucher.html b/v5/broker/reward/get-issue-voucher.html index 78e9872b4a..2cb2cb21b9 100644 --- a/v5/broker/reward/get-issue-voucher.html +++ b/v5/broker/reward/get-issue-voucher.html @@ -4,13 +4,13 @@ Query Issued Voucher | Bybit API Documentation - +

    Query Issued Voucher

    HTTP Request

    POST /v5/broker/award/distribution-record

    Request Parameters

    ParameterRequiredTypeComments
    accountIdtruestringUser ID
    awardIdtruestringVoucher ID
    specCodetruestringCustomised unique spec code, up to 8 characters
    withUsedAmountfalsebooleanWhether to return the amount used by the user
  • true
  • false (default)
  • Response Parameters

    ParameterTypeComments
    accountIdstringUser ID
    awardIdstringVoucher ID
    specCodestringSpec code
    amountstringAmount of voucher
    isClaimedbooleantrue, false
    startAtstringClaim start timestamp (sec)
    endAtstringClaim end timestamp (sec)
    effectiveAtstringVoucher effective timestamp (sec) after claimed
    ineffectiveAtstringVoucher inactive timestamp (sec) after claimed
    usedAmountstringAmount used by the user

    Request Example

    POST /v5/broker/award/distribution-record HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1726112099846
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 111

    {
    "accountId": "5714139",
    "awardId": "189528",
    "specCode": "demo000",
    "withUsedAmount": false
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "accountId": "5714139",
    "awardId": "189528",
    "specCode": "demo000",
    "amount": "1",
    "isClaimed": true,
    "startAt": "1725926400",
    "endAt": "1733788800",
    "effectiveAt": "1726531200",
    "ineffectiveAt": "1733817600",
    "usedAmount": "",
    }
    }
    - + \ No newline at end of file diff --git a/v5/broker/reward/issue-voucher.html b/v5/broker/reward/issue-voucher.html index 5c1d5a6d1f..9a0def60d7 100644 --- a/v5/broker/reward/issue-voucher.html +++ b/v5/broker/reward/issue-voucher.html @@ -4,13 +4,13 @@ Issue Voucher | Bybit API Documentation - +

    Issue Voucher

    HTTP Request

    POST /v5/broker/award/distribute-award

    Request Parameters

    ParameterRequiredTypeComments
    accountIdtruestringUser ID
    awardIdtruestringVoucher ID
    specCodetruestringCustomised unique spec code, up to 8 characters
    amounttruestringIssue amount
  • Spot airdrop supports up to 16 decimals
  • Other types supports up to 4 decimals
  • brokerIdtruestringBroker ID

    Response Parameters

    None

    Request Example

    POST /v5/broker/award/distribute-award HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1726110531734
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 128

    {
    "accountId": "2846381",
    "awardId": "123456",
    "specCode": "award-001",
    "amount": "100",
    "brokerId": "v-28478"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": ""
    }
    - + \ No newline at end of file diff --git a/v5/broker/reward/voucher.html b/v5/broker/reward/voucher.html index d1900be0a8..f7824ece0b 100644 --- a/v5/broker/reward/voucher.html +++ b/v5/broker/reward/voucher.html @@ -4,13 +4,13 @@ Query Voucher Spec | Bybit API Documentation - +

    Query Voucher Spec

    HTTP Request

    POST /v5/broker/award/info

    Request Parameters

    ParameterRequiredTypeComments
    idtruestringVoucher ID

    Response Parameters

    ParameterTypeComments
    idstringVoucher ID
    coinstringCoin
    amountUnitstring
  • AWARD_AMOUNT_UNIT_USD
  • AWARD_AMOUNT_UNIT_COIN
  • productLinestringProduct line
    subProductLinestringSub product line
    totalAmountObjectTotal amount of voucher
    usedAmountstringUsed amount of voucher

    Request Example

    POST /v5/broker/award/info HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1726107086048
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 22

    {
    "id": "80209"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "80209",
    "coin": "USDT",
    "amountUnit": "AWARD_AMOUNT_UNIT_USD",
    "productLine": "PRODUCT_LINE_CONTRACT",
    "subProductLine": "SUB_PRODUCT_LINE_CONTRACT_DEFAULT",
    "totalAmount": "10000",
    "usedAmount": "100"
    },
    "retExtInfo": {},
    "time": 1726107086313
    }
    - + \ No newline at end of file diff --git a/v5/broker/sub-deposit-record.html b/v5/broker/sub-deposit-record.html index 68059c6e18..689a99dc74 100644 --- a/v5/broker/sub-deposit-record.html +++ b/v5/broker/sub-deposit-record.html @@ -4,13 +4,13 @@ Get Sub Account Deposit Records | Bybit API Documentation - +

    Get Sub Account Deposit Records

    Exchange broker can query subaccount's deposit records by main UID's API key without specifying uid.

    API rate limit: 300 req / min

    tip

    endTime - startTime should be less than 30 days. Queries for the last 30 days worth of records by default.

    HTTP Request

    GET /v5/broker/asset/query-sub-member-deposit-record

    Request Parameters

    ParameterRequiredTypeComments
    subMemberIdfalsestringSub UID
    coinfalsestringCoin, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    rowsarrayObject
    > subMemberIdstringSub account user ID
    > coinstringCoin
    > chainstringChain
    > amountstringAmount
    > txIDstringTransaction ID
    > statusintegerDeposit status
    > toAddressstringDeposit target address
    > tagstringTag of deposit target address
    > depositFeestringDeposit fee
    > successAtstringLast updated time
    > confirmationsstringNumber of confirmation blocks
    > txIndexstringTransaction sequence number
    > blockHashstringHash number on the chain
    > batchReleaseLimitstringThe deposit limit for this coin in this chain. "-1" means no limit
    > depositTypestringThe deposit type. 0: normal deposit, 10: the deposit reaches daily deposit limit, 20: abnormal deposit
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/broker/asset/query-sub-member-deposit-record?coin=USDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672192441294
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1672192441742
    }
    - + \ No newline at end of file diff --git a/v5/copytrade.html b/v5/copytrade.html index eb45790cef..3b696b4532 100644 --- a/v5/copytrade.html +++ b/v5/copytrade.html @@ -4,14 +4,14 @@ How To Start Copy Trading | Bybit API Documentation - +

    How To Start Copy Trading

    Become A Master Trader

    Please go here to apply to become a Master Trader

    Create The API KEY

    "Contract - Orders & Positions" are mandatory permissions for Copy Trading orders

    Understand The Scope

    From time being, classic account and unified account both support Copy Trading, but can only trade USDT Perpetual symbols. Please check the field copyTrading from Get Instruments Info

    Place The Copy Trading Order

    Use V5 Place Order endpoint to place a Copy Trading order

    POST /v5/order/create HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1698376189371
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 207

    {
    "symbol": "BTCUSDT",
    "side": "Buy",
    "orderType": "Limit",
    "category": "linear",
    "qty": "0.1",
    "price": "29000",
    "timeInForce": "GTC",
    "positionIdx": 1
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/acct-borrow-collateral.html b/v5/crypto-loan/acct-borrow-collateral.html index 80c7163407..26df02b4c8 100644 --- a/v5/crypto-loan/acct-borrow-collateral.html +++ b/v5/crypto-loan/acct-borrow-collateral.html @@ -4,13 +4,13 @@ Get Account Borrow/Collateral Limit | Bybit API Documentation - +

    Get Account Borrow/Collateral Limit

    Query the account borrowable/collateral limit

    Permission: "Spot trade"

    HTTP Request

    GET /v5/crypto-loan/borrowable-collateralisable-number

    Request Parameters

    ParameterRequiredTypeComments
    loanCurrencytruestringLoan coin name
    collateralCurrencytruestringCollateral coin name

    Response Parameters

    ParameterTypeComments
    collateralCurrencystringCollateral coin name
    loanCurrencystringLoan coin name
    maxCollateralAmountstringMax. limit to mortgage
    maxLoanAmountstringMax. limit to borrow
    minCollateralAmountstringMin. limit to mortgage
    minLoanAmountstringMin. limit to borrow

    Request Example

    GET /v5/crypto-loan/borrowable-collateralisable-number?loanCurrency=USDT&collateralCurrency=BTC HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728627083198
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "collateralCurrency": "BTC",
    "loanCurrency": "USDT",
    "maxCollateralAmount": "164.957732055526752104",
    "maxLoanAmount": "8000000",
    "minCollateralAmount": "0.000412394330138818",
    "minLoanAmount": "20"
    },
    "retExtInfo": {},
    "time": 1728627084863
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/adjust-collateral.html b/v5/crypto-loan/adjust-collateral.html index 36852df925..eda6722521 100644 --- a/v5/crypto-loan/adjust-collateral.html +++ b/v5/crypto-loan/adjust-collateral.html @@ -4,13 +4,13 @@ Adjust Collateral Amount | Bybit API Documentation - +

    Adjust Collateral Amount

    You can increase or reduce collateral amount. When you reduce, please follow the max. allowed reduction amount.

    Permission: "Spot trade"

    info
    • The adjusted collateral amount will be returned to or duducted from Funding account

    HTTP Request

    POST /v5/crypto-loan/adjust-ltv

    Request Parameters

    ParameterRequiredTypeComments
    orderIdtruestringLoan order ID
    amounttruestringAdjustment amount
    directiontruestring0: add collateral; 1: reduce collateral

    Response Parameters

    ParameterTypeComments
    adjustIdstringCollateral adjustment transaction ID

    Request Example

    POST /v5/crypto-loan/adjust-ltv HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728635421137
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 85

    {
    "orderId": "1794267532472646144",
    "amount": "0.001",
    "direction": "1"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "adjustId": "1794318409405331968"
    },
    "retExtInfo": {},
    "time": 1728635422833
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/borrow.html b/v5/crypto-loan/borrow.html index 280ea37560..22f772ce84 100644 --- a/v5/crypto-loan/borrow.html +++ b/v5/crypto-loan/borrow.html @@ -4,13 +4,13 @@ Borrow | Bybit API Documentation - +

    Borrow

    Permission: "Spot trade"

    info
    • The loan funds are released to the Funding account
    • The collateral funds are deducted from the Funding account, so make sure you have enough collateral amount in the funding wallet

    HTTP Request

    POST /v5/crypto-loan/borrow

    Request Parameters

    ParameterRequiredTypeComments
    loanCurrencytruestringLoan coin name
    loanAmountfalsestringAmount to borrow
  • Required when collateral amount is not filled
  • loanTermfalsestringLoan term
  • flexible term: null or not passed
  • fixed term: 7, 14, 30, 90, 180 days
  • collateralCurrencytruestringCurrency used to mortgage
    collateralAmountfalsestringAmount to mortgage
  • Required when loan amount is not filled
  • Response Parameters

    ParameterTypeComments
    orderIdstringLoan order ID

    Request Example

    POST /v5/crypto-loan/borrow HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1728629356551
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 140

    {
    "loanCurrency": "USDT",
    "loanAmount": "550",
    "collateralCurrency": "BTC",
    "loanTerm": null,
    "collateralAmount": null
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "orderId": "1794267532472646144"
    },
    "retExtInfo": {},
    "time": 1728629357820
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/collateral-coin.html b/v5/crypto-loan/collateral-coin.html index 8fc776e623..619b519d43 100644 --- a/v5/crypto-loan/collateral-coin.html +++ b/v5/crypto-loan/collateral-coin.html @@ -4,13 +4,13 @@ Get Collateral Coins | Bybit API Documentation - +

    Get Collateral Coins

    info

    Do not need authentication

    HTTP Request

    GET /v5/crypto-loan/collateral-data

    Request Parameters

    ParameterRequiredTypeComments
    vipLevelfalsestringVip level
  • VIP0, VIP1, VIP2, VIP3, VIP4, VIP5, VIP99(supreme VIP)
  • PRO1, PRO2, PRO3, PRO4, PRO5, PRO6
  • currencyfalsestringCoin name, uppercase only

    Response Parameters

    ParameterTypeComments
    vipCoinListarrayObject
    > listarrayObject
    >> collateralAccuracyintegerValid collateral coin precision
    >> initialLTVstringThe Initial LTV ratio determines the initial amount of coins that can be borrowed. The initial LTV ratio may vary for different collateral
    >> marginCallLTVstringIf the LTV ratio (Loan Amount/Collateral Amount) reaches the threshold, you will be required to add more collateral to your loan
    >> liquidationLTVstringIf the LTV ratio (Loan Amount/Collateral Amount) reaches the threshold, Bybit will liquidate your collateral assets to repay your loan and interest in full
    >> maxLimitstringCollateral limit
    > vipLevelstringVip level

    Request Example

    GET /v5/crypto-loan/collateral-data?currency=ETH&vipLevel=PRO1 HTTP/1.1
    Host: api.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "collateralAccuracy": 8,
    "currency": "ETH",
    "initialLTV": "0.8",
    "liquidationLTV": "0.95",
    "marginCallLTV": "0.87",
    "maxLimit": "32000"
    }
    ],
    "vipLevel": "PRO1"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1728618590498
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/comleted-loan-order.html b/v5/crypto-loan/comleted-loan-order.html index 692f924928..8c7ec91386 100644 --- a/v5/crypto-loan/comleted-loan-order.html +++ b/v5/crypto-loan/comleted-loan-order.html @@ -4,13 +4,13 @@ Get Completed Loan Order History | Bybit API Documentation - +

    Get Completed Loan Order History

    Query the completed loan orders

    Permission: "Spot trade"

    info

    Support querying last 6 months completed loan orders

    HTTP Request

    GET /v5/crypto-loan/borrow-history

    Request Parameters

    ParameterRequiredTypeComments
    orderIdfalsestringLoan order ID
    loanCurrencyfalsestringLoan coin name
    collateralCurrencyfalsestringCollateral coin name
    limitfalsestringLimit for data size per page. [1, 100]. Default: 10
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > borrowTimestringThe timestamp to borrow
    > collateralCurrencystringCollateral coin
    > expirationTimestringLoan maturity time, keeps "" for flexible loan
    > hourlyInterestRatestringHourly interest rate
  • Flexible loan, it is real-time interest rate
  • Fixed term loan: it is fixed term interest rate
  • > initialCollateralAmountstringInitial amount to mortgage
    > initialLoanAmountstringInitial loan amount
    > loanCurrencystringLoan coin
    > loanTermstringLoan term, 7, 14, 30, 90, 180 days, keep "" for flexible loan
    > orderIdstringLoan order ID
    > repaidIntereststringTotal interest repaid
    > repaidPenaltyIntereststringTotal penalty interest repaid
    > statusintegerLoan order status 1: fully repaid manually; 2: fully repaid by liquidation
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/crypto-loan/ongoing-orders?orderId=1793683005081680384 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728630979731
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "borrowTime": "1728546174028",
    "collateralCurrency": "BTC",
    "expirationTime": "1729148399000",
    "hourlyInterestRate": "0.0000010241",
    "initialCollateralAmount": "0.0494727",
    "initialLoanAmount": "1",
    "loanCurrency": "ETH",
    "loanTerm": "7",
    "orderId": "1793569729874260992",
    "repaidInterest": "0.00000515",
    "repaidPenaltyInterest": "0",
    "status": 1
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728632014857
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/loan-coin.html b/v5/crypto-loan/loan-coin.html index dfba32ab33..b11421550d 100644 --- a/v5/crypto-loan/loan-coin.html +++ b/v5/crypto-loan/loan-coin.html @@ -4,13 +4,13 @@ Get Borrowable Coins | Bybit API Documentation - +

    Get Borrowable Coins

    info

    Do not need authentication

    HTTP Request

    GET /v5/crypto-loan/loanable-data

    Request Parameters

    ParameterRequiredTypeComments
    vipLevelfalsestringVip level
  • VIP0, VIP1, VIP2, VIP3, VIP4, VIP5, VIP99(supreme VIP)
  • PRO1, PRO2, PRO3, PRO4, PRO5, PRO6
  • currencyfalsestringCoin name, uppercase only

    Response Parameters

    ParameterTypeComments
    vipCoinListarrayObject
    > listarrayObject
    >> borrowingAccuracyintegerValid borrowable coin precision
    >> currencystringCoin name
    >> flexibleHourlyInterestRatestringFlexible hourly floating interest rate
  • Flexible Crypto Loans offer an hourly floating interest rate, calculated based on the actual borrowing time per hour, with the option for early repayment
  • Keeps "" if the coin does not support flexible loan
  • >> hourlyInterestRate7DstringHourly interest rate for 7 days loan
  • Borrowed coins can be returned at any time before the due date. You'll be charged 3 times the hourly interest during the overdue period. Your collateral will be liquidated to repay a loan and the interest if you fail to make the repayment 48 hours after the due time.
  • Keeps "" if the coin does not support 7 days loan
  • >> hourlyInterestRate14DstringHourly interest rate for 14 days loan
  • Borrowed coins can be returned at any time before the due date. You'll be charged 3 times the hourly interest during the overdue period. Your collateral will be liquidated to repay a loan and the interest if you fail to make the repayment 48 hours after the due time.
  • Keeps "" if the coin does not support 14 days loan
  • >> hourlyInterestRate30DstringHourly interest rate for 30 days loan
  • Borrowed coins can be returned at any time before the due date. You'll be charged 3 times the hourly interest during the overdue period. Your collateral will be liquidated to repay a loan and the interest if you fail to make the repayment 48 hours after the due time.
  • Keeps "" if the coin does not support 30 days loan
  • >> hourlyInterestRate90DstringHourly interest rate for 90 days loan
  • Borrowed coins can be returned at any time before the due date. You'll be charged 3 times the hourly interest during the overdue period. Your collateral will be liquidated to repay a loan and the interest if you fail to make the repayment 48 hours after the due time.
  • Keeps "" if the coin does not support 90 days loan
  • >> hourlyInterestRate180DstringHourly interest rate for 180 days loan
  • Borrowed coins can be returned at any time before the due date. You'll be charged 3 times the hourly interest during the overdue period. Your collateral will be liquidated to repay a loan and the interest if you fail to make the repayment 48 hours after the due time.
  • Keeps "" if the coin does not support 180 days loan
  • >> maxBorrowingAmountstringMax. amount to borrow
    >> minBorrowingAmountstringMin. amount to borrow
    > vipLevelstringVip level

    Request Example

    GET /v5/crypto-loan/loanable-data?currency=USDT&vipLevel=VIP0 HTTP/1.1
    Host: api.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "borrowingAccuracy": 4,
    "currency": "USDT",
    "flexibleHourlyInterestRate": "0.0000090346",
    "hourlyInterestRate14D": "0.0000207796",
    "hourlyInterestRate180D": "",
    "hourlyInterestRate30D": "0.00002349",
    "hourlyInterestRate7D": "0.0000180692",
    "hourlyInterestRate90D": "",
    "maxBorrowingAmount": "8000000",
    "minBorrowingAmount": "20"
    }
    ],
    "vipLevel": "VIP0"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1728619315868
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/ltv-adjust-history.html b/v5/crypto-loan/ltv-adjust-history.html index 46569577cc..b1b9a1abe0 100644 --- a/v5/crypto-loan/ltv-adjust-history.html +++ b/v5/crypto-loan/ltv-adjust-history.html @@ -4,13 +4,13 @@ Get Loan LTV Adjustment History | Bybit API Documentation - +

    Get Loan LTV Adjustment History

    Query the transaction history of collateral amount adjustment

    Permission: "Spot trade"

    info
    • Support querying last 6 months adjustment transactions
    • Only the ltv adjustment transactions launched by the user can be queried

    HTTP Request

    GET /v5/crypto-loan/adjustment-history

    Request Parameters

    ParameterRequiredTypeComments
    orderIdfalsestringLoan order ID
    adjustIdfalsestringCollateral adjustment transaction ID
    collateralCurrencyfalsestringCollateral coin name
    limitfalsestringLimit for data size per page. [1, 100]. Default: 10
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > collateralCurrencystringCollateral coin
    > orderIdstringLoan order ID
    > adjustIdstringCollateral adjustment transaction ID
    > adjustTimestringAdjust timestamp
    > preLTVstringLTV before the adjustment
    > afterLTVstringLTV after the adjustment
    > directionintegerThe direction of adjustment, 0: add collateral; 1: reduce collateral
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/crypto-loan/adjustment-history?adjustId=1794318409405331968 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728635871668
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "adjustId": "1794318409405331968",
    "adjustTime": "1728635422814",
    "afterLTV": "0.7164",
    "amount": "0.001",
    "collateralCurrency": "BTC",
    "direction": 1,
    "orderId": "1794267532472646144",
    "preLTV": "0.6546"
    }
    ],
    "nextPageCursor": "1844656778923966466"
    },
    "retExtInfo": {},
    "time": 1728635873329
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/reduce-max-collateral-amt.html b/v5/crypto-loan/reduce-max-collateral-amt.html index 6175bf8247..9804529512 100644 --- a/v5/crypto-loan/reduce-max-collateral-amt.html +++ b/v5/crypto-loan/reduce-max-collateral-amt.html @@ -4,13 +4,13 @@ Get Max. Allowed Reduction Collateral Amount | Bybit API Documentation - +

    Get Max. Allowed Reduction Collateral Amount

    Query the maximum allowed reduction collateral amount

    Permission: "Spot trade"

    HTTP Request

    GET /v5/crypto-loan/max-collateral-amount

    Request Parameters

    ParameterRequiredTypeComments
    orderIdtruestringLoan coin ID

    Response Parameters

    ParameterTypeComments
    maxCollateralAmountstringMax. reduction collateral amount

    Request Example

    GET /v5/crypto-loan/max-collateral-amount?orderId=1794267532472646144 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728634289933
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "maxCollateralAmount": "0.00210611"
    },
    "retExtInfo": {},
    "time": 1728634291554
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/repay-transaction.html b/v5/crypto-loan/repay-transaction.html index 0b8c97de0e..e35dfd8222 100644 --- a/v5/crypto-loan/repay-transaction.html +++ b/v5/crypto-loan/repay-transaction.html @@ -4,13 +4,13 @@ Get Repayment Transaction History | Bybit API Documentation - +

    Get Repayment Transaction History

    Query repaid transaction history

    Permission: "Spot trade"

    info
    • Support querying last 6 months completed loan orders
    • Only successful repayments can be queried

    HTTP Request

    GET /v5/crypto-loan/repayment-history

    Request Parameters

    ParameterRequiredTypeComments
    orderIdfalsestringLoan order ID
    repayIdfalsestringRepayment tranaction ID
    loanCurrencyfalsestringLoan coin name
    limitfalsestringLimit for data size per page. [1, 100]. Default: 10
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > collateralCurrencystringCollateral coin
    > collateralReturnstringReturned collateral amount by this repayment. No collateral returned if this transaction does not fully repay the debt
    > loanCurrencystringLoan coin
    > loanTermstringLoan term, 7, 14, 30, 90, 180 days, keep "" for flexible loan
    > orderIdstringLoan order ID
    > repayAmountstringRepayment amount
    > repayIdstringRepayment transaction ID
    > repayStatusintegerRepayment status, 1: success; 2: processing
    > repayTimestringRepay timestamp
    > repayTypestringRepayment type, 1: repay by user; 2: repay by liquidation
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/crypto-loan/repayment-history?repayId=1794271131730737664 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728633716794
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "collateralCurrency": "BTC",
    "collateralReturn": "0",
    "loanCurrency": "USDT",
    "loanTerm": "",
    "orderId": "1794267532472646144",
    "repayAmount": "100",
    "repayId": "1794271131730737664",
    "repayStatus": 1,
    "repayTime": "1728629786875",
    "repayType": "1"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728633717935
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/repay.html b/v5/crypto-loan/repay.html index c72eec04c8..cde704428a 100644 --- a/v5/crypto-loan/repay.html +++ b/v5/crypto-loan/repay.html @@ -4,13 +4,13 @@ Repay | Bybit API Documentation - +

    Repay

    You can repay partial loan. If there is interest occurred, interest will be repaid in priority

    Permission: "Spot trade"

    info
    • The repaid amount will be duducted from Funding account
    • The collateral amount will not be auto returned when you don't fully repay the debt, but you can also adjust collateral amount

    HTTP Request

    POST /v5/crypto-loan/repay

    Request Parameters

    ParameterRequiredTypeComments
    orderIdtruestringLoan order ID
    amounttruestringRepay amount

    Response Parameters

    ParameterTypeComments
    repayIdstringRepayment transaction ID

    Request Example

    POST /v5/crypto-loan/repay HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1728629785224
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 61

    {
    "orderId": "1794267532472646144",
    "amount": "100"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "repayId": "1794271131730737664"
    },
    "retExtInfo": {},
    "time": 1728629786884
    }
    - + \ No newline at end of file diff --git a/v5/crypto-loan/unpaid-loan-order.html b/v5/crypto-loan/unpaid-loan-order.html index 99bd2df94a..a7a42362eb 100644 --- a/v5/crypto-loan/unpaid-loan-order.html +++ b/v5/crypto-loan/unpaid-loan-order.html @@ -4,13 +4,13 @@ Get Unpaid Loan Orders | Bybit API Documentation - +

    Get Unpaid Loan Orders

    Query the ongoing loan orders, which are not fully repaid

    Permission: "Spot trade"

    HTTP Request

    GET /v5/crypto-loan/ongoing-orders

    Request Parameters

    ParameterRequiredTypeComments
    orderIdfalsestringLoan order ID
    loanCurrencyfalsestringLoan coin name
    collateralCurrencyfalsestringCollateral coin name
    loanTermTypefalsestring
  • 1: fixed term, when query this type, loanTerm must be filled
  • 2: flexible term
  • By default, query all types
    loanTermfalsestring7, 14, 30, 90, 180 days, working when loanTermType=1
    limitfalsestringLimit for data size per page. [1, 100]. Default: 10
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > collateralAmountstringCollateral amount
    > collateralCurrencystringCollateral coin
    > currentLTVstringCurrent LTV
    > expirationTimestringLoan maturity time, keeps "" for flexible loan
    > hourlyInterestRatestringHourly interest rate
  • Flexible loan, it is real-time interest rate
  • Fixed term loan: it is fixed term interest rate
  • > loanCurrencystringLoan coin
    > loanTermstringLoan term, 7, 14, 30, 90, 180 days, keep "" for flexible loan
    > orderIdstringLoan order ID
    > residualIntereststringUnpaid interest
    > residualPenaltyIntereststringUnpaid penalty interest
    > totalDebtstringUnpaid principal
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/crypto-loan/ongoing-orders?orderId=1793683005081680384 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728630979731
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "collateralAmount": "0.0964687",
    "collateralCurrency": "BTC",
    "currentLTV": "0.4161",
    "expirationTime": "1731149999000",
    "hourlyInterestRate": "0.0000010633",
    "loanCurrency": "USDT",
    "loanTerm": "30",
    "orderId": "1793683005081680384",
    "residualInterest": "0.04016",
    "residualPenaltyInterest": "0",
    "totalDebt": "1888.005198"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728630980861
    }
    - + \ No newline at end of file diff --git a/v5/demo.html b/v5/demo.html index 636f432590..44ae0ef622 100644 --- a/v5/demo.html +++ b/v5/demo.html @@ -4,7 +4,7 @@ Demo Trading Service | Bybit API Documentation - + @@ -14,7 +14,7 @@ Rest API: https://api-demo.bybit.com
    Websocket: wss://stream-demo.bybit.com (note that this only supports the private streams; public data is identical to that found on mainnet with wss://stream.bybit.com; WS Trade is not supported)

    Tips

    • Please note that demo trading is an isolated module. When you create the key from demo trading, please use above domain to connect.
    • By the way, it is meaningless to use demo trading service in the testnet website, so do not create a key from Testnet demo trading.

    Available API List

    CateogoryTitleEndpoint
    MarketAllall endpoints
    TradePlace Order/v5/order/create
    Amend Order/v5/order/amend
    Cancel order/v5/order/cancel
    Get Open Orders/v5/order/realtime
    Cancel All Orders/v5/order/cancel-all
    Get Order History/v5/order/history
    Get Trade History/v5/execution/list
    Batch Place Order/v5/order/create-batch (linear,option)
    Batch Amend Order/v5/order/amend-batch (linear,option)
    Batch Cancel Order/v5/order/cancel-batch (linear,option)
    PositionGet Position Info/v5/position/list
    Set Leverage/v5/position/set-leverage
    Switch Position Mode/v5/position/switch-mode
    Set Trading Stop/v5/position/trading-stop
    Set Auto Add Margin/v5/position/set-auto-add-margin
    Add Or Reduce Margin/v5/position/add-margin
    Get Closed PnL/v5/position/closed-pnl
    AccountGet Wallet Balance/v5/account/wallet-balance
    Get Borrow History/v5/account/borrow-history
    Set Collateral Coin/v5/account/set-collateral-switch
    Get Collateral Info/v5/account/collateral-info
    Get Coin Greeks/v5/asset/coin-greeks
    Get Account Info/v5/account/info
    Get Transaction Log/v5/account/transaction-log
    Set Margin Mode/v5/account/set-margin-mode
    Set Spot Hedging/v5/account/set-hedging-mode
    AssetGet Delivery Record/v5/asset/delivery-record
    Get USDC Session Settlement/v5/asset/settlement-record
    Spot Margin TradeToggle Margin Trade/v5/spot-margin-trade/switch-mode
    Set Leverage/v5/spot-margin-trade/set-leverage
    Get Status And Leverage/v5/spot-margin-uta/status
    WS Privateorder,execution,position,wallet,greeks/v5/private

    Request Demo Trading Funds

    API rate limit: 1 req per minute

    HTTP Request

    POST /v5/account/demo-apply-money

    Request Parameters

    ParameterRequiredTypeComments
    adjustTypefalseinteger0(default): add demo funds; 1: reduce demo funds
    utaDemoApplyMoneyfalsearray
    > coinfalsestringApplied coin, supports BTC, ETH, USDT, USDC
    > amountStrfalsestringApplied amount, the max applied amount in each request
  • BTC: "15"
  • ETH: "200"
  • USDT: "100000"
  • USDC: "100000"
  • Request Example

    POST /v5/account/demo-apply-money HTTP/1.1
    Host: api-demo.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1711420489915
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "adjustType": 0,
    "utaDemoApplyMoney": [
    {
    "coin": "USDT",
    "amountStr": "109"
    },
    {
    "coin": "ETH",
    "amountStr": "1"
    }
    ]
    }

    Create Demo Account

    API rate limit: 5 req per second
    Permission: AccountTransfer, SubMemberTransfer or SubMemberTransferList

    info
    • Use product main account or sub account key to call the interface, the domain needs to be "api.bybit.com"
    • If demo account is existing, this POST request will return the existing UID directly
    • If using main account key to call, then the generated demo account is under the main account
    • If using sub account key to call, then the generated demo account is under the sub account

    HTTP Request

    POST /v5/user/create-demo-member

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    subMemberIdstringDemo account ID

    Request Example

    POST /v5/user/create-demo-member HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1728460942776
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 2

    {}

    Create Demo Account API Key

    info
    • Input generated demo account uid
    • Use production main account key to call the interface, the domain needs to be "api.bybit.com"

    Update Demo Account API Key

    info
    • Use production main account key to call the interface, the domain needs to be "api.bybit.com"

    Get Demo Account API Key Info

    info
    • Use accordingly demo account key to call the interface, the domain needs to be "api-demo.bybit.com"

    Delete Demo Account API Key

    info
    • Use production main account key to call the interface, the domain needs to be "api.bybit.com"
    - + \ No newline at end of file diff --git a/v5/enum.html b/v5/enum.html index a30cbe1fad..a31a62ad82 100644 --- a/v5/enum.html +++ b/v5/enum.html @@ -4,13 +4,13 @@ Enums Definitions | Bybit API Documentation - +

    Enums Definitions

    locale

    • de-DE
    • en-US
    • es-AR
    • es-ES
    • es-MX
    • fr-FR
    • kk-KZ
    • id-ID
    • uk-UA
    • ja-JP
    • ru-RU
    • th-TH
    • pt-BR
    • tr-TR
    • vi-VN
    • zh-TW
    • ar-SA
    • hi-IN
    • fil-PH

    announcementType

    • new_crypto
    • latest_bybit_news
    • delistings
    • latest_activities
    • product_updates
    • maintenance_updates
    • new_fiat_listings
    • other

    announcementTag

    • Spot
    • Derivatives
    • Spot Listings
    • BTC
    • ETH
    • Trading Bots
    • USDC
    • Leveraged Tokens
    • USDT
    • Margin Trading
    • Partnerships
    • Launchpad
    • Upgrades
    • ByVotes
    • Delistings
    • VIP
    • Futures
    • Institutions
    • Options
    • WEB3
    • Copy Trading
    • Earn
    • Bybit Savings
    • Dual Asset
    • Liquidity Mining
    • Shark Fin
    • Launchpool
    • NFT GrabPic
    • Buy Crypto
    • P2P Trading
    • Fiat Deposit
    • Crypto Deposit
    • Спот
    • Спот лістинги
    • Торгові боти
    • Токени з кредитним плечем
    • Маржинальна торгівля
    • Партнерство
    • Оновлення
    • Делістинги
    • Ф'ючерси
    • Опціони
    • Копітрейдинг
    • Bybit Накопичення
    • Бівалютні інвестиції
    • Майнінг ліквідності
    • Купівля криптовалюти
    • P2P торгівля
    • Фіатні депозити
    • Криптодепозити
    • Копитрейдинг
    • Торговые боты
    • Деривативы
    • P2P
    • Спот листинги
    • Деривативи
    • MT4
    • Lucky Draw
    • Unified Trading Account
    • Єдиний торговий акаунт
    • Единый торговый аккаунт
    • Институциональный трейдинг
    • Інституціональний трейдинг
    • Делистинг

    category

    Unified Account

    • spot
    • linearUSDT perpetual, and USDC contract, including USDC perp, USDC futures
    • inverseInverse contract, including Inverse perp, Inverse futures
    • option

    Classic Account

    • linearUSDT perp
    • inverseInverse contract, including Inverse perp, Inverse futures
    • spot

    orderStatus

    open status

    • Neworder has been placed successfully
    • PartiallyFilled
    • UntriggeredConditional orders are created

    closed status

    • Rejected
    • PartiallyFilledCanceledOnly spot has this order status
    • Filled
    • CancelledIn derivatives, orders with this status may have an executed qty
    • Triggeredinstantaneous state for conditional orders from Untriggered to New
    • DeactivatedUTA: Spot tp/sl order, conditional order, OCO order are cancelled before they are triggered

    timeInForce

    • GTCGoodTillCancel
    • IOCImmediateOrCancel
    • FOKFillOrKill
    • PostOnly

    createType

    • CreateByUser
    • CreateByAdminClosing
    • CreateBySettleUSDC Futures delivery; Position closed by contract delisted
    • CreateByStopOrderFutures conditional order
    • CreateByTakeProfitFutures take profit order
    • CreateByPartialTakeProfitFutures partial take profit order
    • CreateByStopLossFutures stop loss order
    • CreateByPartialStopLossFutures partial stop loss order
    • CreateByTrailingStopFutures trailing stop order
    • CreateByLiqLaddered liquidation to reduce the required maintenance margin
    • CreateByTakeOver_PassThroughIf the position is still subject to liquidation (i.e., does not meet the required maintenance margin level), the position shall be taken over by the liquidation engine and closed at the bankruptcy price.
    • CreateByAdl_PassThroughAuto-Deleveraging(ADL)
    • CreateByBlock_PassThroughOrder placed via Paradigm
    • CreateByBlockTradeMovePosition_PassThroughOrder created by move position
    • CreateByClosingThe close order placed via web or app position area - web/app
    • CreateByFGridBotOrder created via grid bot - web/app
    • CloseByFGridBotOrder closed via grid bot - web/app
    • CreateByTWAPOrder created by TWAP - web/app
    • CreateByTVSignalOrder created by TV webhook - web/app
    • CreateByMmRateCloseOrder created by Mm rate close function - web/app
    • CreateByMartingaleBotOrder created by Martingale bot - web/app
    • CloseByMartingaleBotOrder closed by Martingale bot - web/app
    • CreateByIceBergOrder created by Ice berg strategy - web/app
    • CreateByArbitrageOrder created by arbitrage - web/app
    • CreateByDdhOption dynamic delta hedge order - web/app

    execType

    • Trade
    • AdlTradeAuto-Deleveraging
    • FundingFunding fee
    • BustTradeTakeover liquidation
    • DeliveryUSDC futures delivery; Position closed by contract delisted
    • SettleInverse futures settlement; Position closed due to delisting
    • BlockTrade
    • MovePosition
    • UNKNOWNMay be returned by a classic account. Cannot query by this type

    orderType

    • Market
    • Limit
    • UNKNOWNis not a valid request parameter value. Is only used in some responses. Mainly, it is used when execType is Funding.

    stopOrderType

    • TakeProfit
    • StopLoss
    • TrailingStop
    • Stop
    • PartialTakeProfit
    • PartialStopLoss
    • tpslOrderspot TP/SL order
    • OcoOrderspot Oco order
    • MmRateCloseOn web or app can set MMR to close position
    • BidirectionalTpslOrderSpot bidirectional tpsl order

    tickDirection

    • PlusTickprice rise
    • ZeroPlusTicktrade occurs at the same price as the previous trade, which occurred at a price higher than that for the trade preceding it
    • MinusTickprice drop
    • ZeroMinusTicktrade occurs at the same price as the previous trade, which occurred at a price lower than that for the trade preceding it

    interval

    • 1 3 5 15 30 60 120 240 360 720minute
    • Dday
    • Wweek
    • Mmonth

    intervalTime

    • 5min 15min 30minminute
    • 1h 4hhour
    • 1dday

    positionIdx

    • 0one-way mode position
    • 1Buy side of hedge-mode position
    • 2Sell side of hedge-mode position

    positionStatus

    • Normal
    • Liqin the liquidation progress
    • Adlin the auto-deleverage progress

    rejectReason

    • EC_NoError
    • EC_Others
    • EC_UnknownMessageType
    • EC_MissingClOrdID
    • EC_MissingOrigClOrdID
    • EC_ClOrdIDOrigClOrdIDAreTheSame
    • EC_DuplicatedClOrdID
    • EC_OrigClOrdIDDoesNotExist
    • EC_TooLateToCancel
    • EC_UnknownOrderType
    • EC_UnknownSide
    • EC_UnknownTimeInForce
    • EC_WronglyRouted
    • EC_MarketOrderPriceIsNotZero
    • EC_LimitOrderInvalidPrice
    • EC_NoEnoughQtyToFill
    • EC_NoImmediateQtyToFill
    • EC_PerCancelRequest
    • EC_MarketOrderCannotBePostOnly
    • EC_PostOnlyWillTakeLiquidity
    • EC_CancelReplaceOrder
    • EC_InvalidSymbolStatus
    • EC_CancelForNoFullFill
    • EC_BySelfMatch
    • EC_InCallAuctionStatusused for pre-market order operation, e.g., during 2nd phase of call auction, cancel order is not allowed, when the cancel request is failed to be rejected by trading server, the request will be rejected by matching box finally

    accountType

    UTA2.0

    • UNIFIEDUnified Trading Account
    • FUNDFunding Account

    UTA1.0

    • CONTRACTInverse Derivatives Account (no UDST in this wallet))
    • UNIFIEDUnified Trading Account
    • FUNDFunding Account

    Classic account

    Also known as the "standard account".

    • SPOTSpot Account
    • CONTRACTDerivatives Account (contain USDT in this wallet)
    • FUNDFunding Account

    transferStatus

    • SUCCESS
    • PENDING
    • FAILED

    depositStatus

    • 0unknown
    • 1toBeConfirmed
    • 2processing
    • 3success (finalised status of a success deposit)
    • 4deposit failed
    • 10011pending to be credited to funding pool
    • 10012Credited to funding pool successfully

    withdrawStatus

    • SecurityCheck
    • Pending
    • success
    • CancelByUser
    • Reject
    • Fail
    • BlockchainConfirmed
    • MoreInformationRequired
    • Unknowna rare status

    triggerBy

    • LastPrice
    • IndexPrice
    • MarkPrice

    cancelType

    • CancelByUser
    • CancelByReduceOnlycancelled by reduceOnly
    • CancelByPrepareLiq CancelAllBeforeLiqcancelled in order to attempt liquidation prevention by freeing up margin
    • CancelByPrepareAdl CancelAllBeforeAdlcancelled due to ADL
    • CancelByAdmin
    • CancelBySettlecancelled due to delisting contract
    • CancelByTpSlTsClearTP/SL order cancelled when the position is cleared
    • CancelBySmpcancelled by SMP

    Options:

    • CancelByUser
    • CancelByReduceOnly
    • CancelAllBeforeLiqcancelled due to liquidation
    • CancelAllBeforeAdlcancelled due to ADL
    • CancelBySettle
    • CancelByCannotAffordOrderCost
    • CancelByPmTrialMmOverEquity
    • CancelByAccountBlocking
    • CancelByDelivery
    • CancelByMmpTriggered
    • CancelByCrossSelfMuch
    • CancelByCrossReachMaxTradeNum
    • CancelByDCP
    • CancelBySmp

    optionPeriod

    • BTC: 7,14,21,30,60,90,180,270days
    • ETH: 7,14,21,30,60,90,180,270days
    • SOL: 7,14,21,30,60,90days

    dataRecordingPeriod

    • 5min 15min 30minminute
    • 1h 4hhour
    • 4dday

    contractType

    • InversePerpetual
    • LinearPerpetual
    • LinearFuturesUSDC Futures
    • InverseFutures

    status

    • PreLaunch
    • Trading
    • Delivering
    • Closed

    curAuctionPhase

    • NotStartedPre-market trading is not started
    • FinishedPre-market trading is finished
      • After the auction, if the pre-market contract fails to enter continues trading phase, it will be delisted and phase="Finished"
      • After the continuous trading, if the pre-market contract fails to be converted to official contract, it will be delisted and phase="Finished"
    • CallAuctionAuction phase of pre-market trading
      • only timeInForce=GTC, orderType=Limit order is allowed to submit
      • TP/SL are not supported; Conditional orders are not supported
      • cannot modify the order at this stage
      • order price range: [preOpenPrice x 0.5, maxPrice]
    • CallAuctionNoCancelAuction no cancel phase of pre-market trading
      • only timeInForce=GTC, orderType=Limit order is allowed to submit
      • TP/SL are not supported; Conditional orders are not supported
      • cannot modify and cancel the order at this stage
      • order price range: Buy [lastPrice x 0.5, markPrice x 1.1], Sell [markPrice x 0.9, maxPrice]
    • CrossMatchingcross matching phase
      • cannot create, modify and cancel the order at this stage
      • Candle data is released from this stage
    • ContinuousTradingContinuous trading phase
      • There is no restriction to create, amend, cancel orders
      • orderbook, public trade data is released from this stage

    marginTrading

    • noneRegardless of normal account or UTA account, this trading pair does not support margin trading
    • bothFor both normal account and UTA account, this trading pair supports margin trading
    • utaOnlyOnly for UTA account,this trading pair supports margin trading
    • normalSpotOnlyOnly for normal account, this trading pair supports margin trading

    copyTrading

    • noneRegardless of normal account or UTA account, this trading pair does not support copy trading
    • bothFor both normal account and UTA account, this trading pair supports copy trading
    • utaOnlyOnly for UTA account,this trading pair supports copy trading
    • normalOnlyOnly for normal account, this trading pair supports copy trading

    type(uta-translog)

    • TRANSFER_INAssets that transferred into Unified wallet
    • TRANSFER_OUTAssets that transferred out from Unified wallet
    • TRADE
    • SETTLEMENTUSDT Perp funding settlement, and USDC Perp funding settlement + USDC 8-hour session settlement
    • DELIVERYUSDC Futures, Option delivery
    • LIQUIDATION
    • ADLAuto-Deleveraging
    • AIRDROP
    • BONUSBonus claimed
    • BONUS_RECOLLECTBonus expired
    • FEE_REFUNDTrading fee refunded
    • INTERESTInterest occurred due to borrowing
    • CURRENCY_BUYCurrency convert, and the liquidation for borrowing asset(UTA loan)
    • CURRENCY_SELLCurrency convert, and the liquidation for borrowing asset(UTA loan)
    • BORROWED_AMOUNT_INS_LOAN
    • PRINCIPLE_REPAYMENT_INS_LOAN
    • INTEREST_REPAYMENT_INS_LOAN
    • AUTO_SOLD_COLLATERAL_INS_LOANthe liquidation for borrowing asset(INS loan)
    • AUTO_BUY_LIABILITY_INS_LOANthe liquidation for borrowing asset(INS loan)
    • AUTO_PRINCIPLE_REPAYMENT_INS_LOAN
    • AUTO_INTEREST_REPAYMENT_INS_LOAN
    • TRANSFER_IN_INS_LOANTransfer In when in the liquidation of OTC loan
    • TRANSFER_OUT_INS_LOANTransfer Out when in the liquidation of OTC loan
    • SPOT_REPAYMENT_SELLOne-click repayment currency sell
    • SPOT_REPAYMENT_BUYOne-click repayment currency buy
    • TOKENS_SUBSCRIPTIONSpot leverage token subscription
    • TOKENS_REDEMPTIONSpot leverage token redemption
    • AUTO_DEDUCTIONAsset auto deducted by system (roll back)
    • FLEXIBLE_STAKING_SUBSCRIPTIONByfi flexible stake subscription
    • FLEXIBLE_STAKING_REDEMPTIONByfi flexible stake redemption
    • FIXED_STAKING_SUBSCRIPTIONByfi fixed stake subscription
    • PREMARKET_TRANSFER_OUT
    • PREMARKET_DELIVERY_SELL_NEW_COIN
    • PREMARKET_DELIVERY_BUY_NEW_COIN
    • PREMARKET_DELIVERY_PLEDGE_PAY_SELLER
    • PREMARKET_DELIVERY_PLEDGE_BACK
    • PREMARKET_ROLLBACK_PLEDGE_BACK
    • PREMARKET_ROLLBACK_PLEDGE_PENALTY_TO_BUYER
    • CUSTODY_NETWORK_FEEfireblocks business
    • CUSTODY_SETTLE_FEEfireblocks business
    • CUSTODY_LOCKfireblocks / copper business
    • CUSTODY_UNLOCKfireblocks business
    • CUSTODY_UNLOCK_REFUNDfireblocks business
    • LOANS_BORROW_FUNDScrypto loan
    • LOANS_PLEDGE_ASSETcrypto loan repayment
    • BONUS_TRANSFER_IN
    • BONUS_TRANSFER_OUT

    type(contract-translog)

    • TRANSFER_INAssets that transferred into (inverse) derivatives wallet
    • TRANSFER_OUTAssets that transferred out from (inverse) derivatives wallet
    • TRADE
    • SETTLEMENTUSDT / Inverse Perp funding settlement
    • DELIVERYInverse Futures delivery
    • LIQUIDATION
    • ADLAuto-Deleveraging
    • AIRDROP
    • BONUSBonus claimed
    • BONUS_RECOLLECTBonus expired
    • FEE_REFUNDTrading fee refunded
    • CURRENCY_BUYCurrency convert
    • CURRENCY_SELLCurrency convert
    • AUTO_DEDUCTIONAsset auto deducted by system (roll back)
    • Others

    unifiedMarginStatus

    • 1Classic account
    • 3Unified trading account 1.0
    • 4Unified trading account 1.0 (pro version)
    • 5Unified trading account 2.0
    • 6Unified trading account 2.0 (pro version)

    ltStatus

    • 1LT can be purchased and redeemed
    • 2LT can be purchased, but not redeemed
    • 3LT can be redeemed, but not purchased
    • 4LT cannot be purchased nor redeemed
    • 5Adjusting position

    convertAccountType

    Check the value of unifiedMarginStatus

    UTA2.0

    • eb_convert_utaUnified Trading Account
    • eb_convert_fundingFunding Account

    UTA1.0

    • eb_convert_inverseInverse Derivatives Account (no USDT in this wallet))
    • eb_convert_utaUnified Trading Account
    • eb_convert_fundingFunding Account

    Classic account

    Also known as the "standard account"

    • eb_convert_spotSpot Account
    • eb_convert_contractDerivatives Account (contain USDT in this wallet)
    • eb_convert_fundingFunding Account

    symbol

    USDT Perpetual:

    • BTCUSDT
    • ETHUSDT

    USDC Perpetual:

    • BTCPERP
    • ETHPERP

    USDC Futures:

    • BTC-24MAR23

    Inverse Perpetual:

    • BTCUSD
    • ETHUSD

    Inverse Futures:

    • BTCUSDH23H: First quarter; 23: 2023
    • BTCUSDM23M: Second quarter; 23: 2023
    • BTCUSDU23U: Third quarter; 23: 2023
    • BTCUSDZ23Z: Fourth quarter; 23: 2023

    Spot:

    • BTCUSDT
    • ETHUSDC

    vipLevel

    • No VIP
    • VIP-1
    • VIP-2
    • VIP-3
    • VIP-4
    • VIP-5
    • VIP-Supreme
    • PRO-1
    • PRO-2
    • PRO-3
    • PRO-4
    • PRO-5

    adlRankIndicator

    • 0default value of empty position
    • 1
    • 2
    • 3
    • 4
    • 5

    smpType

    • default: None
    • CancelMaker
    • CancelTaker
    • CancelBoth

    Spot Fee Currency Instruction

    with the example of BTCUSDT:

    • Is makerFeeRate positive?
      • TRUE
        • Side = Buy -> base currency (BTC)
        • Side = Sell -> quote currency (USDT)
      • FALSE
        • IsMakerOrder = TRUE
          • Side = Buy -> quote currency (USDT)
          • Side = Sell -> base currency (BTC)
        • IsMakerOrder = FALSE
          • Side = Buy -> base currency (BTC)
          • Side = Sell -> quote currency (USDT)
    - + \ No newline at end of file diff --git a/v5/error.html b/v5/error.html index 6754171554..7bf1846da2 100644 --- a/v5/error.html +++ b/v5/error.html @@ -4,13 +4,13 @@ Error Codes | Bybit API Documentation - +

    Error Codes

    HTTP Code

    CodeDescription
    400Bad request. Need to send the request with GET / POST (must be capitalized)
    401Invalid request. 1. Need to use the correct key to access; 2. Need to put authentication params in the request header
    403Forbidden request. Possible causes: 1. IP rate limit breached; 2. You send GET request with an empty json body; 3. You are using U.S IP
    404Cannot find path. Possible causes: 1. Wrong path; 2. Category value does not match account mode
    429System level frequency protection. Please retry when encounter this

    WS OE General code

    CodeDescription
    104041. op type is not found; 2. category is not correct/supported
    10429System level frequency protection
    10003Too many sessions under the same UID
    100161. internal server error; 2. Service is restarting
    10019ws trade service is restarting, do not accept new request, but the request in the process is not affected. You can build new connection to be routed to normal service
    20003Too frequent requests under the same session
    20006reqId is duplicated

    UTA & Classic account

    CodeDescription
    0OK
    10000Server Timeout
    10001Request parameter error
    10002The request time exceeds the time window range.
    10003API key is invalid. Check whether the key and domain are matched, there are 4 env: mainnet, testnet, mainnet-demo, testnet-demo
    33004Your api key has expired
    10004Error sign, please check your signature generation algorithm.
    10005Permission denied, please check your API key permissions.
    10006Too many visits. Exceeded the API Rate Limit.
    10007User authentication failed.
    10008Common banned, please check your account mode
    10009IP has been banned.
    10010Unmatched IP, please check your API key's bound IP addresses.
    10014Invalid duplicate request.
    10016Server error.
    10017Route not found.
    10018Exceeded the IP Rate Limit.
    10024Compliance rules triggered
    10027Transactions are banned.
    10029The requested symbol is invalid, please check symbol whitelist
    10028The API can only be accessed by unified account users.
    30133OTC loan: The symbol you select for USDT Perpetual is not allowed by Institutional Lending
    30134OTC loan: The symbol you select for USDC Contract is not allowed by Institutional Lending
    30135The leverage you select for USDT Perpetual trading cannot exceed the maximum leverage allowed by Institutional Lending.
    30136The leverage you select for USDC Perpetual or Futures trading cannot exceed the maximum leverage allowed by Institutional Lending.
    40004the order is modified during the process of replacing , please check the order status again
    100028The API cannot be accessed by unified account users.
    110001Order does not exist
    110003Order price exceeds the allowable range.
    110004Wallet balance is insufficient
    110005position status
    110006The assets are estimated to be unable to cover the position margin
    110007Available balance is insufficient
    110008The order has been completed or cancelled.
    110009The number of stop orders exceeds the maximum allowable limit. You can find references in our API doc.
    110010The order has been cancelled
    110011Liquidation will be triggered immediately by this adjustment
    110012Insufficient available balance.
    110013Cannot set leverage due to risk limit level.
    110014Insufficient available balance to add additional margin.
    110015The position is in cross margin mode.
    110016The quantity of contracts requested exceeds the risk limit, please adjust your risk limit level before trying again
    110017Reduce-only rule not satisfied
    110018User ID is illegal.
    110019Order ID is illegal.
    110020Not allowed to have more than 500 active orders.
    110021Not allowed to exceeded position limits due to Open Interest.
    110022Quantity has been restricted and orders cannot be modified to increase the quantity.
    110023Currently you can only reduce your position on this contract. please check our announcement or contact customer service for details.
    110024You have an existing position, so the position mode cannot be switched.
    110025Position mode has not been modified.
    110026Cross/isolated margin mode has not been modified.
    110027Margin has not been modified.
    110028You have existing open orders, so the position mode cannot be switched.
    110029Hedge mode is not supported for this symbol.
    110030Duplicate orderId
    110031Non-existing risk limit info, please check the risk limit rules.
    110032Order is illegal
    110033You can't set margin without an open position
    110034There is no net position
    110035Cancellation of orders was not completed before liquidation
    110036You are not allowed to change leverage due to cross margin mode.
    110037User setting list does not have this symbol
    110038You are not allowed to change leverage due to portfolio margin mode.
    110039Maintenance margin rate is too high. This may trigger liquidation.
    110040The order will trigger a forced liquidation, please re-submit the order.
    110041Skip liquidation is not allowed when a position or maker order exists
    110042Currently,due to pre-delivery status, you can only reduce your position on this contract.
    110043Set leverage has not been modified.
    110044Available margin is insufficient.
    110045Wallet balance is insufficient.
    110046Liquidation will be triggered immediately by this adjustment.
    110047Risk limit cannot be adjusted due to insufficient available margin.
    110048Risk limit cannot be adjusted as the current/expected position value exceeds the revised risk limit.
    110049Tick notes can only be numbers
    110050Invalid coin
    110051The user's available balance cannot cover the lowest price of the current market
    110052Your available balance is insufficient to set the price
    110053The user's available balance cannot cover the current market price and upper limit price
    110054This position has at least one take profit link order, so the take profit and stop loss mode cannot be switched
    110055This position has at least one stop loss link order, so the take profit and stop loss mode cannot be switched
    110056This position has at least one trailing stop link order, so the take profit and stop loss mode cannot be switched
    110057Conditional order or limit order contains TP/SL related params
    110058You can't set take profit and stop loss due to insufficient size of remaining position size.
    110059Not allowed to modify the TP/SL of a partially filled open order
    110060Under full TP/SL mode, it is not allowed to modify TP/SL
    110061Not allowed to have more than 20 TP/SLs under Partial tpSlMode
    110062There is no MMP information of the institution found.
    110063Settlement in progress! {{key0}} not available for trading.
    110064The modified contract quantity cannot be less than or equal to the filled quantity.
    110065MMP hasn't yet been enabled for your account. Please contact your BD manager.
    110066Trading is currently not allowed.
    110067Unified account is not supported.
    110068Leveraged trading is not allowed.
    110069Ins lending customer is not allowed to trade.
    110070ETP symbols cannot be traded.
    110071Sorry, we're revamping the Unified Margin Account! Currently, new upgrades are not supported. If you have any questions, please contact our 24/7 customer support.
    110072OrderLinkedID is duplicate
    110073Set margin mode failed
    110075RiskId not modified
    110075 182021Cannot enable spot margin while in isolated margin mode. Please switch to cross margin mode or portfolio margin mode to trade spot with margin.
    110076Only isolated mode can set auto-add-margin
    110077Pm mode cannot support
    110078Added margin more than max can reduce margin
    110079The order is processing and can not be operated, please try again later
    110080Operations Restriction: The current LTV ratio of your Institutional Lending has hit the liquidation threshold. Assets in your account are being liquidated (trade/risk limit/leverage)
    110082You cannot lift Reduce-Only restrictions, as no Reduce-Only restrictions are applied to your position
    110083Reduce-Only restrictions must be lifted for both Long and Short positions at the same time
    110085The risk limit and margin ratio for this contract has been updated, please select a supported risk limit and place your order again
    110086Current order leverage exceeds the maximum available for your current Risk Limit tier. Please lower leverage before placing an order
    110087Leverage for Perpetual or Futures contracts cannot exceed the maximum allowed for your Institutional loan
    110088Please Upgrade to UTA to trade
    110089Exceeds the maximum risk limit level
    110090Exceeds the maximum leverage limit of the current risk limit level.
    110092expect Rising, but trigger_price[XXXXX] <= current[XXXXX]??laste
    110093expect Falling, but trigger_price[XXXXX] >= current[XXXXX]??last
    110094Order notional value below the lower limit
    110095You cannot create, modify or cancel Pre-Market Perpetual orders during the Call Auction.
    110096Pre-Market Perpetual Trading does not support Portfolio Margin mode.
    110097Non-UTA users cannot access Pre-Market Perpetual Trading. To place, modify or cancel Pre-Market Perpetual orders, please upgrade your Standard Account to UTA.
    110098Only Good-Till-Canceled (GTC) orders are supported during Call Auction.
    110099You cannot create TP/SL orders during the Call Auction for Pre-Market Perpetuals.
    110100You cannot place, modify, or cancel Pre-Market Perpetual orders when you are in Demo Trading.
    110101Trading inverse contracts under Cross and Portfolio modes requires enabling the settlement asset as collateral.
    110102The user does not support trading Inverse contracts - copy trading pro, Ins loan account are not supported
    110103Only Post-Only orders are available at this stage
    170346Settle coin is not a collateral coin, cannot trade
    181017OrderStatus must be final status
    182100Compulsory closing of positions, no repayment allowed
    182101Failed repayment, insufficient collateral balance
    182102Failed repayment, there are no liabilities in the current currency
    182103Institutional lending users are not supported
    182108Switching failed, margin verification failed, please re-adjust the currency status
    182110Failed to switch
    182111The requested currency has a non guaranteed gold currency or does not support switching status currencies
    182112Duplicate currency, please re-adjust
    3100181UID can not be null
    3100197Temporary banned due to the upgrade to UTA
    3200316USDC Options Trading Restriction: The current LTV ratio for your Institutional Lending has reached the maximum allowable amount for USDC Options trading.
    3200317USDC Options Open Position Restriction: The current LTV ratio for your Institutional Lending has reached the maximum allowable amount for opening USDC Options positions.
    3100326BaseCoin is required
    3200403isolated margin can not create order
    3200419Unable to switch to Portfolio margin due to active pre-market Perpetual orders and positions
    3200320Operations Restriction: The current LTV ratio of your Institutional Lending has hit the liquidation threshold. Assets in your account are being liquidated. (margin mode or spot leverage)
    3400208You have unclosed hedge mode or isolated mode USDT perpetual positions
    3400209You have USDT perpetual positions, so upgrading is prohibited for 10 minutes before and after the hour every hour
    3400210The risk rate of your Derivatives account is too high
    3400211Once upgraded, the estimated risk rate will be too high
    3400212You have USDC perpetual positions or Options positions, so upgrading is prohibited for 10 minutes before and after the hour every hour
    3400213The risk rate of your USDC Derivatives account is too high
    3400052You have uncancelled USDC perpetual orders
    3400053You have uncancelled Options orders
    3400054You have uncancelled USDT perpetual orders
    3400214Server error, please try again later
    3400071The net asset is not satisfied
    3401010Cannot switch to PM mode (for copy trading master trader)
    3400139The total value of your positions and orders has exceeded the risk limit for a Perpetual or Futures contract
    500010The sub-account specified does not belong to the parent account
    500011The Uid 592334 provided is not associated with a Unified Trading Account

    Spot Trade

    CodeDescription
    170001Internal error.
    170005Too many new orders; current limit is %s orders per %s.
    170007Timeout waiting for response from backend server.
    170010Purchase failed: Exceed the maximum position limit of leveraged tokens, the current available limit is %s USDT
    170011"Purchase failed: Exceed the maximum position limit of innovation tokens,
    170019the current available limit is ''{{.replaceKey0}}'' USDT"
    170031The feature has been suspended
    170032Network error. Please try again later
    170033margin Insufficient account balance
    170034Liability over flow in spot leverage trade!
    170035Submitted to the system for processing!
    170036You haven't enabled Cross Margin Trading yet. To do so, please head to the PC trading site or the Bybit app
    170037Cross Margin Trading not yet supported by the selected coin
    170105Parameter '%s' was empty.
    170115Invalid timeInForce.
    170116Invalid orderType.
    170117Invalid side.
    170121Invalid symbol.
    170124Order amount too large.
    170130Data sent for paramter '%s' is not valid.
    170131Balance insufficient
    170132Order price too high.
    170133Order price lower than the minimum.
    170134Order price decimal too long.
    170135Order quantity too large.
    170136Order quantity lower than the minimum.
    170137Order volume decimal too long
    170139Order has been filled.
    170140Transaction amount lower than the minimum.
    170141Duplicate clientOrderId
    170142Order has been canceled
    170143Cannot be found on order book
    170144Order has been locked
    170145This order type does not support cancellation
    170146Order creation timeout
    170147Order cancellation timeout
    170148Market order amount decimal too long
    170149Create order failed
    170150Cancel order failed
    170151The trading pair is not open yet
    170157The trading pair is not available for api trading
    170159Market Order is not supported within the first %s minutes of newly launched pairs due to risk control.
    170190Cancel order has been finished
    170191Can not cancel order, please try again later
    170192Order price cannot be higher than %s .
    170193Buy order price cannot be higher than %s.
    170194Sell order price cannot be lower than %s.
    170195Please note that your order may not be filled. ETP buy order price deviates from risk control
    170196Please note that your order may not be filled. ETP sell order price deviates from risk control
    170197Your order quantity to buy is too large. The filled price may deviate significantly from the market price. Please try again
    170198Your order quantity to sell is too large. The filled price may deviate significantly from the market price. Please try again
    170199Your order quantity to buy is too large. The filled price may deviate significantly from the nav. Please try again.
    170200Your order quantity to sell is too large. The filled price may deviate significantly from the nav. Please try again.
    170201Invalid orderFilter parameter
    170202Please enter the TP/SL price.
    170203trigger price cannot be higher than 110% price.
    170204trigger price cannot be lower than 90% of qty.
    170206Stop_limit Order is not supported within the first 5 minutes of newly launched pairs
    170207The loan amount of the platform is not enough.
    170210New order rejected.
    170212Cancel order request processing
    170213Order does not exist.
    170215Spot Trading (Buy) Restriction: The current LTV ratio of your institutional lending has reached the maximum allowable amount for buy orders
    170216The leverage you select for Spot Trading cannot exceed the maximum leverage allowed by Institutional Lending
    170217Only LIMIT-MAKER order is supported for the current pair.
    170218The LIMIT-MAKER order is rejected due to invalid price.
    170219UID {{xxx}} is not available to this feature
    170220Spot Trading Restriction: The current LTV ratio of your institutional lending has reached the maximum allowable amount for Spot trading
    170221This coin does not exist.
    170222Too many requests in this time frame.
    170223Your Spot Account with Institutional Lending triggers an alert or liquidation.
    170224You're not a user of the Innovation Zone.
    170226Your Spot Account for Margin Trading is being liquidated.
    170227This feature is not supported.
    170228The purchase amount of each order exceeds the estimated maximum purchase amount.
    170229The sell quantity per order exceeds the estimated maximum sell quantity.
    170230Operations Restriction: Due to the deactivation of Margin Trading for institutional loan
    170234System Error
    170241To proceed with trading, users must read through and confirm that they fully understand the project's risk disclosure document. For App users, please update your Bybit App to version 4.16.0 to process.
    170310Order modification timeout
    170311Order modification failed
    170312The current order does not support modification
    170313The modified contract quantity cannot be less than to the filled quantity
    170341Request order quantity exceeds maximum limit
    170344Symbol is not supported on Margin Trading
    170709OTC loan: The select trading pair is not in the whitelist pair
    170810Cannot exceed maximum of 500 conditional, TP/SL and active orders.

    Spot Leverage Token

    CodeDescription
    175000The serialNum is already in use.
    175001Daily purchase limit has been exceeded. Please try again later.
    175002There's a large number of purchase orders. Please try again later.
    175003Insufficient available balance. Please make a deposit and try again.
    175004Daily redemption limit has been exceeded. Please try again later.
    175005There's a large number of redemption orders. Please try again later.
    175006Insufficient available balance. Please make a deposit and try again.
    175007Order not found.
    175008Purchase period hasn't started yet.
    175009Purchase amount has exceeded the upper limit.
    175010You haven't passed the quiz yet! To purchase and/or redeem an LT, please complete the quiz first.
    175012Redemption period hasn't started yet.
    175013Redemption amount has exceeded the upper limit.
    175014Purchase of the LT has been temporarily suspended.
    175015Redemption of the LT has been temporarily suspended.
    175016Invalid format. Please check the length and numeric precision.
    175017Failed to place order:Exceed the maximum position limit of leveraged tokens, the current available limit is XXXX USDT
    175027Subscriptions and redemptions are temporarily unavailable while account upgrade is in progress

    Spot Margin Trade

    CodeDescription
    176002Query user account info error. Confirm that if you have completed quiz in GUI
    176003Query user loan history error
    176004Query order history start time exceeds end time
    176005Failed to borrow
    176006Repayment Failed
    176007User not found
    176008You haven't enabled Cross Margin Trading yet. To do so, please head to the PC trading site
    176009You haven't enabled Cross Margin Trading yet. Confirm that if you have turned on margin trade
    176010Failed to locate the coins to borrow
    176011Cross Margin Trading not yet supported by the selected coin
    176012Pair not available
    176013Cross Margin Trading not yet supported by the selected pair
    176014Repeated repayment requests
    176015Insufficient available balance
    176016No repayment required
    176017Repayment amount has exceeded the total liability
    176018Settlement in progress
    176019Liquidation in progress
    176020Failed to locate repayment history
    176021Repeated borrowing requests
    176022Coins to borrow not generally available yet
    176023Pair to borrow not generally available yet
    176024Invalid user status
    176025Amount to borrow cannot be lower than the min. amount to borrow (per transaction)
    176026Amount to borrow cannot be larger than the max. amount to borrow (per transaction)
    176027Amount to borrow cannot be higher than the max. amount to borrow per user
    176028Amount to borrow has exceeded Bybit's max. amount to borrow
    176029Amount to borrow has exceeded the user's estimated max. amount to borrow
    176030Query user loan info error
    176031Number of decimals for borrow amount has exceeded the maximum precision
    176034The leverage ratio is out of range
    176035Failed to close the leverage switch during liquidation
    176036Failed to adjust leverage switch during forced liquidation
    176037For non-unified transaction users, the operation failed
    176038The spot leverage is closed and the current operation is not allowed
    176039Borrowing, current operation is not allowed
    176040There is a spot leverage order, and the adjustment of the leverage switch failed!
    176132Number of decimals for repay amount has exceeded the maximum precision
    176133Liquidation may be triggered! Please adjust your transaction amount and try again
    176134Account has been upgraded (upgrading) to UTA
    176135Failed to get bond data
    176136Failed to get borrow data
    176137Failed to switch user status
    176138You need to repay all your debts before closing your disabling cross margin account
    176139Sorry, you are not eligible to enable cross margin, as you have already enabled OTC lending
    176201Account exception. Check if the UID is bound to an institutional loan
    182104This action could not be completed as your Unified Margin Account's IM/MM utilization rate has exceeded the threshold
    182105Adjustment failed, user is upgrading
    182106Adjustment failed, user forced liquidation in progress.
    182107Adjustment failed, Maintenance Margin Rate too high

    Asset

    CodeDescription
    131001openapi svc error
    131002Parameter error
    131002Withdraw address chain or destination tag are not equal
    131003Internal error
    131004KYC needed
    131066This address does not support withdrawals for the time being. Please switch to another address for withdrawing
    131067Travel rule verification failed, please contact the target exchange. Travel rule for KR user
    131068Travel rule information is insufficient, please provide additional details. Travel rule for KR user
    131069Unable to withdraw to the receipt, please contact the target the exchange. Travel rule for KR user
    131070The recipient's name is mismatched with the targeted exchange. Travel rule for KR user
    131071The recipient has not undergone KYC verification. Travel rule for KR user
    131072Your withdrawal currency is not supported by the target exchange. Travel rule for KR user
    131073Your withdrawal address has not been included in the target exchange. Travel rule for KR user
    131074Beneficiary info is required, please refer to the latest api document. Travel rule for KR user
    131075InternalAddressCannotBeYourself
    131076internal transfer not support sub-accounts
    131077receive user not exist
    131078receive user deposit has been banned
    131079receive user need kyc
    131080User left retry times is zero
    131081Do not input memo/tag,please.
    131082Do not repeat the request
    131083Withdraw only allowed from address book
    131084Withdraw failed because of Uta Upgrading
    131085Withdrawal amount is greater than your availale balance (the deplayed withdrawal is triggered)
    131086Withdrawal amount exceeds risk limit (the risk limit of margin trade is triggered)
    131087your current account spot risk level is too high, withdrawal is prohibited, please adjust and try again
    131088The withdrawal amount exceeds the remaining withdrawal limit of your identity verification level. The current available amount for withdrawal : %s
    131089User sensitive operation, withdrawal is prohibited within 24 hours
    131090User withdraw has been banned
    131091Blocked login status does not allow withdrawals
    131092User status is abnormal
    131093The withdrawal address is not in the whitelist
    131094UserId is not in the whitelist
    131095Withdrawl amount exceeds the 24 hour platform limit
    131096Withdraw amount does not satify the lower limit or upper limit
    131097Withdrawal of this currency has been closed
    131098Withdrawal currently is not availble from new address
    131099Hot wallet status can cancel the withdraw
    131200Service error
    131201Internal error
    131202Invalid memberId
    131203Request parameter error
    131204Account info error
    131205Query transfer error
    131206cannot be transfer
    131207Account not exist
    131208Forbid transfer
    131209Get subMember relation error
    131210Amount accuracy error
    131211fromAccountType can't be the same as toAccountType
    131212Insufficient balance
    131213TransferLTV check error
    131214TransferId exist
    131215Amount error
    131216Query balance error
    131217Risk check error
    131227Sub-account do not have universal transfer permission
    131228your balance is not enough. Please check transfer safe amount
    131229Due to compliance requirements, the current currency is not allowed to transfer
    131230The system is busy, please try again later
    131231Transfers into this account are not supported
    131232Transfers out this account are not supported
    140001Switching the PM spot hedging switch is not allowed in non PM mode
    140002Institutional lending users do not support PM spot hedging
    140003You have position(s) being liquidated, please try again later.
    140004Operations Restriction: The current LTV ratio of your Institutional Loan has hit the liquidation threshold. Assets in your account are being liquidated.
    140005Risk level after switching modes exceeds threshold
    141004sub member is not normal
    141025This sub-account has assets and cannot be deleted
    181000category is null
    181001category only support linear or option or spot.
    181002symbol is null.
    181003side is null.
    181004side only support Buy or Sell.
    181005orderStatus is wrong
    181006startTime is not number
    181007endTime is not number
    181008Parameter startTime and endTime are both needed
    181009Parameter startTime needs to be smaller than endTime
    181010The time range between startTime and endTime cannot exceed 7 days
    181011limit is not a number
    181012symbol not exist
    181013Only support settleCoin: usdc
    181014Classic account is not supported
    181018Invalid expDate.
    181019Parameter expDate can't be earlier than 2 years
    182000symbol related quote price is null
    182200Please upgrade UTA first.
    182201You must enter 2 time parameters.
    182202The start time must be less than the end time
    182203Please enter valid characters
    182204Coin does not exist
    182205User level does not exist
    700000accountType/quoteTxId cannot be null
    700001quote fail:no dealer can used
    700004order does not exist
    700007Large Amount Limit
    700012UTA upgrading, don't allow to apply for quote

    Crypto Loan

    CodeDescription
    177002Server is busy, please wait and try again
    177003Illegal characters found in a parameter
    177004Precision is over the maximum defined for this asset
    177005Order does not exist
    177006We don't have this asset
    177007Your borrow amount has exceed maximum borrow amount
    177008Borrow is banned for this asset
    177009Borrow amount is less than minimum borrow amount
    177010Repay amount exceeds borrow amount
    177011Balance is not enough
    177012The system doesn't have enough asset now
    177013adjustment amount exceeds minimum collateral amount
    177014Individual loan quota reached
    177015Collateral amount has reached the limit. Please reduce your collateral amount or try with other collaterals
    177016Minimum collateral amount is not enough
    177017This coin cannot be used as collateral
    177018duplicate request
    177019Your input param is invalid
    177020The account does not support the asset
    177021Repayment failed

    Institutional Loan

    CodeDescription
    3777002UID cannot be bound repeatedly.
    3777003UID cannot be unbound because the UID has not been bound to a risk unit.
    3777004The main UID of the risk unit cannot be unbound.
    3777005You have unsettled lending or borrowing orders. Please try again later.
    3777006UID cannot be bound, please try again with a different UID."
    3777007UID cannot be bound, please upgrade to UTA Pro."
    3777012Your request is currently being processed. Please wait and try again later
    3777027UID cannot be bound, leveraged trading closure failed.
    3777029You currently have orders for pre-market trading that can’t be bind UIDs
    3777030This account has activated copyPro and cannot bind uid

    Exchange Broker

    CodeDescription
    3500402Parameter verification failed for 'limit'.
    3500403Only available to exchange broker main-account
    3500404Invalid Cursor
    3500405Parameter "startTime" and "endTime" need to be input in pairs.
    3500406Out of query time range.
    3500407Parameter begin and end need to be input in pairs.

    Reward

    CodeDescription
    400001invalid parameter
    400101The voucher was recycled
    400102The voucher has exceeded the redemption date (expired)
    400103The voucher is not available for redemption
    400105Budget exceeded
    403001Account rejected, check if the input accountId valid, account banned, or kyc issue
    404001resource not found
    404011Insufficient inventory
    409011VIP level limit
    500001Internal server error
    - + \ No newline at end of file diff --git a/v5/guide.html b/v5/guide.html index 2673a7a543..77f398e383 100644 --- a/v5/guide.html +++ b/v5/guide.html @@ -4,7 +4,7 @@ Integration Guidance | Bybit API Documentation - + @@ -16,7 +16,7 @@ keys through the software, and then only provide the public key to Bybit, we will never hold your private key.

    1. Use api-rsa-generator to create RSA private and public keys
    2. Follow the RSA sample scripts to complete encryption procedures.

    Parameters for Authenticated Endpoints

    The following HTTP header keys must be used for authentication:

    • X-BAPI-API-KEY - API key
    • X-BAPI-TIMESTAMP - UTC timestamp in milliseconds
    • X-BAPI-SIGN - a signature derived from the request's parameters
    • X-Referer or Referer - the header for broker users only

    We also provide X-BAPI-RECV-WINDOW (unit in millisecond and default value is 5,000) to specify how long an HTTP request is valid. It is also used to prevent replay attacks.

    A smaller X-BAPI-RECV-WINDOW is more secure, but your request may fail if the transmission time is greater than your X-BAPI-RECV-WINDOW.

    caution

    Please make sure that the timestamp parameter adheres to the following rule:
    server_time - recv_window <= timestamp < server_time + 1000
    server_time stands for Bybit server time, which can be queried via the Server Time endpoint.

    Create A Request

    tip

    To assist in diagnosing advanced network problems, you may consider adding cdn-request-id to your request headers. Its value should be unique for each request.

    Basic steps:

    1. timestamp + API key + (recv_window) + (queryString | jsonBodyString)
    2. Use the HMAC_SHA256 or RSA_SHA256 algorithm to sign the string in step 1, and convert it to a hex string (HMAC_SHA256) / base64 (RSA_SHA256) to obtain the sign parameter.
    3. Append the sign parameter to request header, and send the HTTP request. Note: the plain text for GET and POST requests is different. Please refer to blew examples.
    info
    Example signature algorithms can be found here.

    An example for how to generate plain text to encrypt

    # rule:
    timestamp+api_key+recv_window+queryString

    # param_str
    "1658384314791XXXXXXXXXX5000category=option&symbol=BTC-29JUL22-25000-C"

    # parse
    timestamp = "1658384314791"
    api_key = "XXXXXXXXXX"
    recv_window = "5000"
    queryString = "category=option&symbol=BTC-29JUL22-25000-C"

    HTTP request examples

    GET /v5/order/realtime?category=option&symbol=BTC-29JUL22-25000-C HTTP/1.1
    Host: api-testnet.bybit.com
    -H 'X-BAPI-SIGN: XXXXXXXXXX' \
    -H 'X-BAPI-API-KEY: XXXXXXXXXX' \
    -H 'X-BAPI-TIMESTAMP: 1658384431891' \
    -H 'X-BAPI-RECV-WINDOW: 5000'

    Common response parameters

    ParameterTypeComments
    retCodenumberSuccess/Error code
    retMsgstringSuccess/Error msg. OK, success, SUCCESS, "" indicate a successful response
    resultObjectBusiness data result
    retExtInfoObjectExtend info. Most of the time it is {}
    timenumberCurrent timestamp (ms)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }
    - + \ No newline at end of file diff --git a/v5/intro.html b/v5/intro.html index da69072eb5..cfef24f367 100644 --- a/v5/intro.html +++ b/v5/intro.html @@ -4,7 +4,7 @@ Introduction | Bybit API Documentation - + @@ -24,7 +24,7 @@ Example: api.bybit.com/v5/market/recent-trade

    Address SegmentDescription
    v5/market/Candlestick, orderbook, ticker, platform transaction data, underlying financial rules, risk control rules
    v5/order/Order management
    v5/position/Position management
    v5/account/Single account operations only – unified funding account, rates, etc.
    v5/asset/Operations across multiple accounts – asset management, fund management, etc.
    v5/spot-lever-token/Obtain quotes from Leveraged Tokens on Spot, and to exercise purchase and redeem functions
    v5/spot-margin-trade/Manage Margin Trading on Spot

    Cancellation of Orders by Settlement Currency

    Users can cancel all Derivatives orders settled by the same currency with settleCoin.

    Addition of Insurance Fund Interface

    This interface addition allows for queries of the insurance pool, which users can use to check for any insurance fund updates on the Bybit platform.

    Readability Improvements to API Documentation

    The API documentation has been revised and proofread to improve clarity and reduce confusion. Any parts of the previous documentation that were not clear have been revised to provide better explanations.

    - + \ No newline at end of file diff --git a/v5/lt/leverage-token-info.html b/v5/lt/leverage-token-info.html index c19c705313..99fcd63151 100644 --- a/v5/lt/leverage-token-info.html +++ b/v5/lt/leverage-token-info.html @@ -4,13 +4,13 @@ Get Leverage Token Info | Bybit API Documentation - +

    Get Leverage Token Info

    Query leverage token information

    HTTP Request

    GET /v5/spot-lever-token/info

    Request Parameters

    ParameterRequiredTypeComments
    ltCoinfalsestringAbbreviation of the LT, such as BTC3L

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > ltCoinstringAbbreviation
    > ltNamestringFull name of leveraged token
    > maxPurchasestringSingle maximum purchase amount
    > minPurchasestringSingle minimum purchase amount
    > maxPurchaseDailystringMaximum purchase amount in a single day
    > maxRedeemstringSingle Maximum redemption quantity
    > minRedeemstringSingle Minimum redemption quantity
    > maxRedeemDailystringMaximum redemption quantity in a single day
    > purchaseFeeRatestringPurchase fee rate
    > redeemFeeRatestringRedeem fee rate
    > ltStatusstringWhether the leverage token can be purchased or redeemed
    > fundFeestringFunding fee charged daily for users holding leveraged token
    > fundFeeTimestringThe time to charge funding fee
    > manageFeeRatestringManagement fee rate
    > manageFeeTimestringThe time to charge management fee
    > valuestringNominal asset value
    > netValuestringNet value
    > totalstringTotal purchase upper limit

    Request Example

    GET /v5/spot-lever-token/info?ltCoin=BTC3L HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "fundFee": "299.70622821",
    "fundFeeTime": "1672992000000",
    "ltCoin": "BTC3L",
    "ltName": "3X Long",
    "ltStatus": "1",
    "manageFeeRate": "0.00005",
    "manageFeeTime": "1673053200000",
    "maxPurchase": "10000",
    "maxPurchaseDaily": "200000",
    "maxRedeem": "14434",
    "maxRedeemDaily": "2100000",
    "minPurchase": "100",
    "minRedeem": "144",
    "netValue": "0.376482201140738147",
    "purchaseFeeRate": "0.0005",
    "redeemFeeRate": "0.0005",
    "total": "5000000",
    "value": "49464463114.022994974075443169"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672991427073
    }
    - + \ No newline at end of file diff --git a/v5/lt/leverage-token-reference.html b/v5/lt/leverage-token-reference.html index 1ec59c9157..413fdac673 100644 --- a/v5/lt/leverage-token-reference.html +++ b/v5/lt/leverage-token-reference.html @@ -4,13 +4,13 @@ Get Leveraged Token Market | Bybit API Documentation - +

    Get Leveraged Token Market

    Get leverage token market information

    HTTP Request

    GET /v5/spot-lever-token/reference

    Request Parameters

    ParameterRequiredTypeComments
    ltCointruestringAbbreviation of the LT, such as BTC3L

    Response Parameters

    ParameterTypeComments
    ltCoinstringAbbreviation of the LT, such as BTC3L
    navstringnet value
    navTimestringUpdate time for net asset value (in milliseconds and UTC time zone)
    circulationstringCirculating supply in the secondary market
    basketstringbasket
    leveragestringReal leverage calculated by last traded price

    Request Example

    GET /v5/spot-lever-token/reference?ltCoin=BTC3S HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "basket": "-132.460000082171973364",
    "circulation": "30097.901900052619091704",
    "leverage": "-2.666924651755770729",
    "ltCoin": "BTC3S",
    "nav": "27.692082719770373048",
    "navTime": "1672991679858"
    },
    "retExtInfo": {},
    "time": 1672991679937
    }
    - + \ No newline at end of file diff --git a/v5/lt/order-record.html b/v5/lt/order-record.html index 8dbae4675c..a27fe09394 100644 --- a/v5/lt/order-record.html +++ b/v5/lt/order-record.html @@ -4,13 +4,13 @@ Get Purchase/Redemption Records | Bybit API Documentation - +

    Get Purchase/Redemption Records

    Get purchase or redeem history

    HTTP Request

    GET /v5/spot-lever-token/order-record

    Request Parameters

    ParameterRequiredTypeComments
    ltCoinfalsestringAbbreviation of the LT, such as BTC3L
    orderIdfalsestringOrder ID
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 500]. Default: 100
    ltOrderTypefalseintegerLT order type. 1: purchase, 2: redemption
    serialNofalsestringSerial number

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > ltCoinstringAbbreviation of the LT, such as BTC3L
    > orderIdstringOrder ID
    > ltOrderTypeintegerLT order type. 1: purchase, 2: redeem
    > orderTimenumberOrder time
    > updateTimenumberLast update time of the order status
    > ltOrderStatusstringOrder status. 1: completed, 2: in progress, 3: failed
    > feestringTrading fees
    > amountstringOrder quantity of the LT
    > valuestringFilled value
    > valueCoinstringQuote coin
    > serialNostringSerial number

    Request Example

    GET /v5/spot-lever-token/order-record?orderId=2611 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672294422027
    X-BAPI-SIGN: XXXXX
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "amount": "222.90757477",
    "fee": "0",
    "ltCoin": "EOS3L",
    "ltOrderStatus": "1",
    "ltOrderType": "1",
    "orderId": "2611",
    "orderTime": "1672737465000",
    "serialNo": "pruchase-002",
    "updateTime": "1672737478000",
    "value": "95.13860435",
    "valueCoin": "USDT"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672294446137
    }
    - + \ No newline at end of file diff --git a/v5/lt/purchase.html b/v5/lt/purchase.html index ded9b61fb9..9912959a83 100644 --- a/v5/lt/purchase.html +++ b/v5/lt/purchase.html @@ -4,13 +4,13 @@ Purchase | Bybit API Documentation - +

    Purchase

    Purchase levearge token

    HTTP Request

    POST /v5/spot-lever-token/purchase

    Request Parameters

    ParameterRequiredTypeComments
    ltCointruestringAbbreviation of the LT, such as BTC3L
    ltAmounttruestringPurchase amount
    serialNofalsestringSerial number

    Response Parameters

    ParameterTypeComments
    ltCoinstringAbbreviation of the LT, such as BTC3L
    ltOrderStatusstringOrder status. 1: completed, 2: in progress, 3: failed
    execQtystringExecuted qty of LT
    execAmtstringExecuted amount of LT
    amountstringPurchase amount
    purchaseIdstringOrder ID
    serialNostringSerial number, customised order ID
    valueCoinstringQuote coin

    Request Example

    POST /v5/spot-lever-token/purchase HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672294730346
    X-BAPI-SIGN: XXXXX
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "ltCoin": "EOS3L",
    "amount": "200",
    "serialNo": "purchase-001"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "amount": "200",
    "execAmt": "",
    "execQty": "",
    "ltCoin": "EOS3L",
    "ltOrderStatus": "2",
    "purchaseId": "2611",
    "serialNo": "purchase-001",
    "valueCoin": "USDT"
    },
    "retExtInfo": {},
    "time": 1672293867729
    }
    - + \ No newline at end of file diff --git a/v5/lt/redeem.html b/v5/lt/redeem.html index 9fdabcb5fc..a4b68edd65 100644 --- a/v5/lt/redeem.html +++ b/v5/lt/redeem.html @@ -4,13 +4,13 @@ Redeem | Bybit API Documentation - +

    Redeem

    Redeem leverage token

    HTTP Request

    POST /v5/spot-lever-token/redeem

    Request Parameters

    ParameterRequiredTypeComments
    ltCointruestringAbbreviation of the LT, such as BTC3L
    quantityturestringRedeem quantity of LT
    serialNofalsestringSerial number

    Response Parameters

    ParameterTypeComments
    ltCoinstringAbbreviation of the LT
    ltOrderStatusstringOrder status. 1: completed, 2: in progress, 3: failed
    quantitystringQuantity
    execQtystringLT quantity
    execAmtstringExecuted amount of LT
    redeemIdstringOrder ID
    serialNostringSerial number
    valueCoinstringQuote coin

    Request Example

    POST /v5/spot-lever-token/redeem HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672296416024
    X-BAPI-SIGN: XXXXX
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "ltCoin": "EOS3L",
    "quantity": "150",
    "serialNo": "redeem-001"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "execAmt": "",
    "execQty": "150",
    "ltCoin": "EOS3L",
    "ltOrderStatus": "2",
    "quantity": "",
    "redeemId": "2619",
    "serialNo": "redeem-001",
    "valueCoin": "EOS3L"
    },
    "retExtInfo": {},
    "time": 1672296417363
    }
    - + \ No newline at end of file diff --git a/v5/market/delivery-price.html b/v5/market/delivery-price.html index 117a1c6ee3..bff77e2a1b 100644 --- a/v5/market/delivery-price.html +++ b/v5/market/delivery-price.html @@ -4,13 +4,13 @@ Get Delivery Price | Bybit API Documentation - +

    Get Delivery Price

    Get the delivery price.

    Covers: USDC futures / Inverse futures / Option

    info
    • Option: only returns those symbols are being "DELIVERING" (UTC8~UTC12) when "symbol" is not specified;

    HTTP Request

    GET /v5/market/delivery-price

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. linear, inverse, option
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    baseCoinfalsestringBase coin, uppercase only. Default: BTC. valid for option only
    limitfalseintegerLimit for data size per page. [1, 200]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > deliveryPricestringDelivery price
    > deliveryTimestringDelivery timestamp (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/market/delivery-price?category=option&symbol=ETH-26DEC22-1400-C HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "category": "option",
    "nextPageCursor": "",
    "list": [
    {
    "symbol": "ETH-26DEC22-1400-C",
    "deliveryPrice": "1220.728594450",
    "deliveryTime": "1672041600000"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672055336993
    }
    - + \ No newline at end of file diff --git a/v5/market/history-fund-rate.html b/v5/market/history-fund-rate.html index bf085a9d4d..1674985606 100644 --- a/v5/market/history-fund-rate.html +++ b/v5/market/history-fund-rate.html @@ -4,13 +4,13 @@ Get Funding Rate History | Bybit API Documentation - +

    Get Funding Rate History

    Query for historical funding rates. Each symbol has a different funding interval. For example, if the interval is 8 hours and the current time is UTC 12, then it returns the last funding rate, which settled at UTC 8.

    To query the funding rate interval, please refer to the instruments-info endpoint.

    Covers: USDT and USDC perpetual / Inverse perpetual

    info
    • Passing only startTime returns an error.
    • Passing only endTime returns 200 records up till endTime.
    • Passing neither returns 200 records up till the current time.

    HTTP Request

    GET /v5/market/funding/history

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. linear,inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 200]. Default: 200

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > fundingRatestringFunding rate
    > fundingRateTimestampstringFunding rate timestamp (ms)

    Request Example

    GET /v5/market/funding/history?category=linear&symbol=ETHPERP&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "linear",
    "list": [
    {
    "symbol": "ETHPERP",
    "fundingRate": "0.0001",
    "fundingRateTimestamp": "1672041600000"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672051897447
    }
    - + \ No newline at end of file diff --git a/v5/market/index-kline.html b/v5/market/index-kline.html index 3a9ab4d1a9..060d5321a7 100644 --- a/v5/market/index-kline.html +++ b/v5/market/index-kline.html @@ -4,13 +4,13 @@ Get Index Price Kline | Bybit API Documentation - +

    Get Index Price Kline

    Query for historical index price klines. Charts are returned in groups based on the requested interval.

    Covers: USDT perpetual / USDC contract / Inverse contract

    HTTP Request

    GET /v5/market/index-price-kline

    Request Parameters

    ParameterRequiredTypeComments
    categoryfalsestringProduct type. linear,inverse
  • When category is not passed, use linear by default
  • symboltruestringSymbol name, like BTCUSDT, uppercase only
    intervaltruestringKline interval. 1,3,5,15,30,60,120,240,360,720,D,M,W
    startfalseintegerThe start timestamp (ms)
    endfalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 1000]. Default: 200

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    symbolstringSymbol name
    listarray
    • An string array of individual candle
    • Sort in reverse by startTime
    > list[0]: startTimestringStart time of the candle (ms)
    > list[1]: openPricestringOpen price
    > list[2]: highPricestringHighest price
    > list[3]: lowPricestringLowest price
    > list[4]: closePricestringClose price. Is the last traded price when the candle is not closed

    Request Example

    GET /v5/market/index-price-kline?category=inverse&symbol=BTCUSDZ22&interval=1&start=1670601600000&end=1670608800000&limit=2 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSDZ22",
    "category": "inverse",
    "list": [
    [
    "1670608800000",
    "17167.00",
    "17167.00",
    "17161.90",
    "17163.07"
    ],
    [
    "1670608740000",
    "17166.54",
    "17167.69",
    "17165.42",
    "17167.00"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672026471128
    }
    - + \ No newline at end of file diff --git a/v5/market/instrument.html b/v5/market/instrument.html index da797daa7d..a495423934 100644 --- a/v5/market/instrument.html +++ b/v5/market/instrument.html @@ -4,13 +4,13 @@ Get Instruments Info | Bybit API Documentation - +

    Get Instruments Info

    Query for the instrument specification of online trading pairs.

    Covers: Spot / USDT perpetual / USDC contract / Inverse contract / Option

    info
    • Spot does not support pagination, so limit, cursor are invalid.
    • When query by baseCoin, regardless of category=linear or inverse, the result will have USDT perpetual, USDC contract and Inverse contract symbols.

    HTTP Request

    GET /v5/market/instruments-info

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. spot,linear,inverse,option
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    statusfalsestringSymbol status filter
    • spot has Trading only
    • PreLaunch: when category=linear&status=PreLaunch, it returns pre-market perpetual contract
    baseCoinfalsestringBase coin, uppercase only
  • Apply tolinear,inverse,option only
  • option: it returns BTC by default
  • limitfalseintegerLimit for data size per page. [1, 1000]. Default: 500
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    nextPageCursorstringCursor. Used to pagination
    listarrayObject
    > symbolstringSymbol name
    > contractTypestringContract type
    > statusstringInstrument status
    > baseCoinstringBase coin
    > quoteCoinstringQuote coin
    > launchTimestringLaunch timestamp (ms)
    > deliveryTimestringDelivery timestamp (ms)
    > deliveryFeeRatestringDelivery fee rate
    > priceScalestringPrice scale
    > leverageFilterObjectLeverage attributes
    >> minLeveragestringMinimum leverage
    >> maxLeveragestringMaximum leverage
    >> leverageStepstringThe step to increase/reduce leverage
    > priceFilterObjectPrice attributes
    >> minPricestringMinimum order price
    >> maxPricestringMaximum order price
    >> tickSizestringThe step to increase/reduce order price
    > lotSizeFilterObjectSize attributes
    >> minNotionalValuestringMinimum notional value
    >> maxOrderQtystringMaximum quantity for Limit and PostOnly order
    >> maxMktOrderQtystringMaximum quantity for Market order
    >> minOrderQtystringMinimum order quantity
    >> qtyStepstringThe step to increase/reduce order quantity
    >> postOnlyMaxOrderQtystringDepreciated, please use maxOrderQty
    > unifiedMarginTradebooleanWhether to support unified margin trade
    > fundingIntervalintegerFunding interval (minute)
    > settleCoinstringSettle coin
    > copyTradingstringCopy trade symbol or not
    > upperFundingRatestringUpper limit of funding date
    > lowerFundingRatestringLower limit of funding date
    > isPreListingboolean
  • Whether the contract is a pre-market contract
  • When the pre-market contract is converted to official contract, it will be false
  • > preListingInfoobject
  • If isPreListing=false, preListingInfo=null
  • If isPreListing=true, preListingInfo is an object
  • >> curAuctionPhasestringThe current auction phase
    >> phasesarray<object>Each phase time info
    >>> phasestringpre-market trading phase
    >>> startTimestringThe start time of the phase, timestamp(ms)
    >>> endTimestringThe end time of the phase, timestamp(ms)
    >> auctionFeeInfoobjectAction fee info
    >>> auctionFeeRatestringThe trading fee rate during auction phase
  • There is no trading fee until entering continues trading phase
  • >>> takerFeeRatestringThe taker fee rate during continues trading phase
    >>> makerFeeRatestringThe maker fee rate during continues trading phase

    Request Example

    GET /v5/market/instruments-info?category=linear&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    // official USDT Perpetual instrument structure
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "linear",
    "list": [
    {
    "symbol": "BTCUSDT",
    "contractType": "LinearPerpetual",
    "status": "Trading",
    "baseCoin": "BTC",
    "quoteCoin": "USDT",
    "launchTime": "1585526400000",
    "deliveryTime": "0",
    "deliveryFeeRate": "",
    "priceScale": "2",
    "leverageFilter": {
    "minLeverage": "1",
    "maxLeverage": "100.00",
    "leverageStep": "0.01"
    },
    "priceFilter": {
    "minPrice": "0.10",
    "maxPrice": "199999.80",
    "tickSize": "0.10"
    },
    "lotSizeFilter": {
    "maxOrderQty": "100.000",
    "maxMktOrderQty": "100.000",
    "minOrderQty": "0.001",
    "qtyStep": "0.001",
    "postOnlyMaxOrderQty": "1000.000",
    "minNotionalValue": "5"
    },
    "unifiedMarginTrade": true,
    "fundingInterval": 480,
    "settleCoin": "USDT",
    "copyTrading": "both",
    "upperFundingRate": "0.00375",
    "lowerFundingRate": "-0.00375"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1707186451514
    }

    // Pre-market Perpetual instrument structure
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "linear",
    "list": [
    {
    "symbol": "PRE02ZROUSDT",
    "contractType": "LinearPerpetual",
    "status": "PreLaunch",
    "baseCoin": "PRE02ZRO",
    "quoteCoin": "USDT",
    "launchTime": "1718610229000",
    "deliveryTime": "0",
    "deliveryFeeRate": "",
    "priceScale": "3",
    "leverageFilter": {
    "minLeverage": "1",
    "maxLeverage": "5.00",
    "leverageStep": "0.01"
    },
    "priceFilter": {
    "minPrice": "0.001",
    "maxPrice": "1999.998",
    "tickSize": "0.001"
    },
    "lotSizeFilter": {
    "maxOrderQty": "10000.0",
    "minOrderQty": "0.1",
    "qtyStep": "0.1",
    "postOnlyMaxOrderQty": "10000.0",
    "maxMktOrderQty": "2000.0",
    "minNotionalValue": "5"
    },
    "unifiedMarginTrade": true,
    "fundingInterval": 480,
    "settleCoin": "USDT",
    "copyTrading": "none",
    "upperFundingRate": "0.03",
    "lowerFundingRate": "-0.03",
    "isPreListing": true,
    "preListingInfo": {
    "curAuctionPhase": "ContinuousTrading",
    "phases": [
    {
    "phase": "CallAuction",
    "startTime": "1718621400000",
    "endTime": "1718707200000"
    },
    {
    "phase": "CallAuctionNoCancel",
    "startTime": "1718707200000",
    "endTime": "1718707500000"
    },
    {
    "phase": "CrossMatching",
    "startTime": "1718707500000",
    "endTime": "1718707800000"
    },
    {
    "phase": "ContinuousTrading",
    "startTime": "1718707800000",
    "endTime": ""
    }
    ],
    "auctionFeeInfo": {
    "auctionFeeRate": "0",
    "takerFeeRate": "0.001",
    "makerFeeRate": "0.0004"
    }
    }
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1719455285151
    }
    - + \ No newline at end of file diff --git a/v5/market/insurance.html b/v5/market/insurance.html index 761bb18f55..ed6e1cc105 100644 --- a/v5/market/insurance.html +++ b/v5/market/insurance.html @@ -4,13 +4,13 @@ Get Insurance | Bybit API Documentation - +

    Get Insurance

    Query for Bybit insurance pool data (BTC/USDT/USDC etc). The data is updated every 24 hours.

    info

    Since the insurance pool data is updated every 24 hours, it is possible that you get ADL trade but the insruance pool still has sufficient funds.

    HTTP Request

    GET /v5/market/insurance

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringcoin, uppercase only. Default: return all insurance coins

    Response Parameters

    ParameterTypeComments
    updatedTimestringData updated time (ms)
    listarrayObject
    > coinstringCoin
    > symbolsstring
  • For an independent insurance pool, you may see "BTCUSDT,ETHUSDT,SOLUSDT"
  • For non-independent insurance pool, it returns ""
  • > balancestringBalance
    > valuestringUSD value

    Request Example

    GET /v5/market/insurance?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "updatedTime": "1714003200000",
    "list": [
    {
    "coin": "USDT",
    "symbols": "MERLUSDT,10000000AIDOGEUSDT,ZEUSUSDT",
    "balance": "902178.57602476",
    "value": "901898.0963091522"
    },
    {
    "coin": "USDT",
    "symbols": "SOLUSDT,OMNIUSDT,ALGOUSDT",
    "balance": "14454.51626125",
    "value": "14449.515598975464"
    },
    {
    "coin": "USDT",
    "symbols": "XLMUSDT,WUSDT",
    "balance": "23.45018235",
    "value": "22.992864174376344"
    },
    {
    "coin": "USDT",
    "symbols": "AGIUSDT,WIFUSDT",
    "balance": "10002",
    "value": "9998.896846613574"
    },
    {
    "coin": "USDT",
    "symbols": "",
    "balance": "10148045273.618073",
    "value": "10144896808.587431"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1714028451228
    }
    - + \ No newline at end of file diff --git a/v5/market/iv.html b/v5/market/iv.html index 2c6c0481c7..f8a1672208 100644 --- a/v5/market/iv.html +++ b/v5/market/iv.html @@ -4,13 +4,13 @@ Get Historical Volatility | Bybit API Documentation - +

    Get Historical Volatility

    Query option historical volatility

    Covers: Option

    info
    • The data is hourly.
    • If both startTime and endTime are not specified, it will return the most recent 1 hours worth of data.
    • startTime and endTime are a pair of params. Either both are passed or they are not passed at all.
    • This endpoint can query the last 2 years worth of data, but make sure [endTime - startTime] <= 30 days.

    HTTP Request

    GET /v5/market/historical-volatility

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. option
    baseCoinfalsestringBase coin, uppercase only. Default: return BTC data
    periodfalseintegerPeriod. If not specified, it will return data with a 7-day average by default
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > periodintegerPeriod
    > valuestringVolatility
    > timestringTimestamp (ms)

    Request Example

    GET /v5/market/historical-volatility?category=option&baseCoin=ETH&period=30 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "category": "option",
    "result": [
    {
    "period": 30,
    "value": "0.45024716",
    "time": "1672052400000"
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/market/kline.html b/v5/market/kline.html index a32f26b667..86215615ca 100644 --- a/v5/market/kline.html +++ b/v5/market/kline.html @@ -4,13 +4,13 @@ Get Kline | Bybit API Documentation - +

    Get Kline

    Query for historical klines (also known as candles/candlesticks). Charts are returned in groups based on the requested interval.

    Covers: Spot / USDT perpetual / USDC contract / Inverse contract

    HTTP Request

    GET /v5/market/kline

    Request Parameters

    ParameterRequiredTypeComments
    categoryfalsestringProduct type. spot,linear,inverse
  • When category is not passed, use linear by default
  • symboltruestringSymbol name, like BTCUSDT, uppercase only
    intervaltruestringKline interval. 1,3,5,15,30,60,120,240,360,720,D,M,W
    startfalseintegerThe start timestamp (ms)
    endfalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 1000]. Default: 200

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    symbolstringSymbol name
    listarray
    • An string array of individual candle
    • Sort in reverse by startTime
    > list[0]: startTimestringStart time of the candle (ms)
    > list[1]: openPricestringOpen price
    > list[2]: highPricestringHighest price
    > list[3]: lowPricestringLowest price
    > list[4]: closePricestringClose price. Is the last traded price when the candle is not closed
    > list[5]: volumestringTrade volume. Unit of contract: pieces of contract. Unit of spot: quantity of coins
    > list[6]: turnoverstringTurnover. Unit of figure: quantity of quota coin

    Request Example

    GET /v5/market/kline?category=inverse&symbol=BTCUSD&interval=60&start=1670601600000&end=1670608800000 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSD",
    "category": "inverse",
    "list": [
    [
    "1670608800000",
    "17071",
    "17073",
    "17027",
    "17055.5",
    "268611",
    "15.74462667"
    ],
    [
    "1670605200000",
    "17071.5",
    "17071.5",
    "17061",
    "17071",
    "4177",
    "0.24469757"
    ],
    [
    "1670601600000",
    "17086.5",
    "17088",
    "16978",
    "17071.5",
    "6356",
    "0.37288112"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672025956592
    }
    - + \ No newline at end of file diff --git a/v5/market/long-short-ratio.html b/v5/market/long-short-ratio.html index 9705004c47..54f8c67a67 100644 --- a/v5/market/long-short-ratio.html +++ b/v5/market/long-short-ratio.html @@ -4,13 +4,13 @@ Get Long Short Ratio | Bybit API Documentation - +

    Get Long Short Ratio

    HTTP Request

    GET /v5/market/account-ratio

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. linear(USDT Perpetual),inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    periodtruestringData recording period. 5min, 15min, 30min, 1h, 4h, 1d
    limitfalseintegerLimit for data size per page. [1, 500]. Default: 50

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > symbolstringSymbol name
    > buyRatiostringThe ratio of users with net long position
    > sellRatiostringThe ratio of users with net short position
    > timestampstringTimestamp (ms)

    Request Example

    GET /v5/market/account-ratio?category=linear&symbol=BTCUSDT&period=1d&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "BTCUSDT",
    "buyRatio": "0.5777",
    "sellRatio": "0.4223",
    "timestamp": "1695772800000"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1695785131028
    }
    - + \ No newline at end of file diff --git a/v5/market/mark-kline.html b/v5/market/mark-kline.html index 33b2ffe320..34c28a01d1 100644 --- a/v5/market/mark-kline.html +++ b/v5/market/mark-kline.html @@ -4,13 +4,13 @@ Get Mark Price Kline | Bybit API Documentation - +

    Get Mark Price Kline

    Query for historical mark price klines. Charts are returned in groups based on the requested interval.

    Covers: USDT perpetual / USDC contract / Inverse contract

    HTTP Request

    GET /v5/market/mark-price-kline

    Request Parameters

    ParameterRequiredTypeComments
    categoryfalsestringProduct type. linear,inverse
  • When category is not passed, use linear by default
  • symboltruestringSymbol name, like BTCUSDT, uppercase only
    intervaltruestringKline interval. 1,3,5,15,30,60,120,240,360,720,D,M,W
    startfalseintegerThe start timestamp (ms)
    endfalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 1000]. Default: 200

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    symbolstringSymbol name
    listarray
    • An string array of individual candle
    • Sort in reverse by startTime
    > list[0]: startTimestringStart time of the candle (ms)
    > list[1]: openPricestringOpen price
    > list[2]: highPricestringHighest price
    > list[3]: lowPricestringLowest price
    > list[4]: closePricestringClose price. Is the last traded price when the candle is not closed

    Request Example

    GET /v5/market/mark-price-kline?category=linear&symbol=BTCUSDT&interval=15&start=1670601600000&end=1670608800000&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSDT",
    "category": "linear",
    "list": [
    [
    "1670608800000",
    "17164.16",
    "17164.16",
    "17121.5",
    "17131.64"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672026361839
    }
    - + \ No newline at end of file diff --git a/v5/market/open-interest.html b/v5/market/open-interest.html index b5519ab18f..4fae565986 100644 --- a/v5/market/open-interest.html +++ b/v5/market/open-interest.html @@ -4,13 +4,13 @@ Get Open Interest | Bybit API Documentation - +

    Get Open Interest

    Get the open interest of each symbol.

    Covers: USDT perpetual / USDC contract / Inverse contract

    info
    • The upper limit time you can query is the launch time of the symbol.

    HTTP Request

    GET /v5/market/open-interest

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. linear,inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    intervalTimetruestringInterval time. 5min,15min,30min,1h,4h,1d
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 200]. Default: 50
    cursorfalsestringCursor. Used to paginate

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    symbolstringSymbol name
    listarrayObject
    > openIntereststringOpen interest. The value is the sum of both sides
    > timestampstringThe timestamp (ms)
    nextPageCursorstringUsed to paginate

    Request Example

    GET /v5/market/open-interest?category=inverse&symbol=BTCUSD&intervalTime=5min&startTime=1669571100000&endTime=1669571400000 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSD",
    "category": "inverse",
    "list": [
    {
    "openInterest": "461134384.00000000",
    "timestamp": "1669571400000"
    },
    {
    "openInterest": "461134292.00000000",
    "timestamp": "1669571100000"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1672053548579
    }
    - + \ No newline at end of file diff --git a/v5/market/orderbook.html b/v5/market/orderbook.html index bfea163cb3..829054f2cb 100644 --- a/v5/market/orderbook.html +++ b/v5/market/orderbook.html @@ -4,13 +4,13 @@ Get Orderbook | Bybit API Documentation - +

    Get Orderbook

    Query for orderbook depth data.

    Covers: Spot / USDT perpetual / USDC contract / Inverse contract / Option

    • Contract: 500-level of orderbook data
    • Spot: 200-level of orderbook data
    • Option: 25-level of orderbook data
    info

    The response is in the snapshot format.

    HTTP Request

    GET /v5/market/orderbook

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. spot, linear, inverse, option
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    limitfalseintegerLimit size for each bid and ask
    • spot: [1, 200]. Default: 1.
    • linear&inverse: [1, 500]. Default: 25.
    • option: [1, 25]. Default: 1.

    Response Parameters

    ParameterTypeComments
    sstringSymbol name
    barrayBid, buyer. Sort by price desc
    > b[0]stringBid price
    > b[1]stringBid size
    aarrayAsk, seller. Order by price asc
    > a[0]stringAsk price
    > a[1]stringAsk size
    tsintegerThe timestamp (ms) that the system generates the data
    uintegerUpdate ID, is always in sequence
    • For contract, it is corresponding to u in the wss 500-level orderbook
    • For spot, it is corresponding to u in the wss 200-level orderbook
    seqintegerCross sequence
  • You can use this field to compare different levels orderbook data, and for the smaller seq, then it means the data is generated earlier.
  • Option does not have this field currently
  • ctsintegerThe timestamp from the match engine when this orderbook data is produced. It can be correlated with T from public trade channel. linear, inverse, spot have this field

    Request Example

    GET /v5/market/orderbook?category=spot&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "s": "BTCUSDT",
    "a": [
    [
    "65557.7",
    "16.606555"
    ]
    ],
    "b": [
    [
    "65485.47",
    "47.081829"
    ]
    ],
    "ts": 1716863719031,
    "u": 230704,
    "seq": 1432604333,
    "cts": 1716863718905
    },
    "retExtInfo": {},
    "time": 1716863719382
    }
    - + \ No newline at end of file diff --git a/v5/market/preimum-index-kline.html b/v5/market/preimum-index-kline.html index a633e4f98b..28e37d6dc2 100644 --- a/v5/market/preimum-index-kline.html +++ b/v5/market/preimum-index-kline.html @@ -4,13 +4,13 @@ Get Premium Index Price Kline | Bybit API Documentation - +

    Get Premium Index Price Kline

    Query for historical premium index klines. Charts are returned in groups based on the requested interval.

    Covers: USDT and USDC perpetual

    HTTP Request

    GET /v5/market/premium-index-price-kline

    Request Parameters

    ParameterRequiredTypeComments
    categoryfalsestringProduct type. linear
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    intervaltruestringKline interval
    startfalseintegerThe start timestamp (ms)
    endfalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 1000]. Default: 200

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    symbolstringSymbol name
    listarray
    • An string array of individual candle
    • Sort in reverse by start
    > list[0]stringStart time of the candle (ms)
    > list[1]stringOpen price
    > list[2]stringHighest price
    > list[3]stringLowest price
    > list[4]stringClose price. Is the last traded price when the candle is not closed

    Request Example

    GET /v5/market/premium-index-price-kline?category=linear&symbol=BTCUSDT&interval=D&start=1652112000000&end=1652544000000 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSDT",
    "category": "linear",
    "list": [
    [
    "1652486400000",
    "-0.000587",
    "-0.000344",
    "-0.000480",
    "-0.000344"
    ],
    [
    "1652400000000",
    "-0.000989",
    "-0.000561",
    "-0.000587",
    "-0.000587"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672765216291
    }
    - + \ No newline at end of file diff --git a/v5/market/recent-trade.html b/v5/market/recent-trade.html index 24dc8d55a0..59d3fcd88b 100644 --- a/v5/market/recent-trade.html +++ b/v5/market/recent-trade.html @@ -4,13 +4,13 @@ Get Public Recent Trading History | Bybit API Documentation - +

    Get Public Recent Trading History

    Query recent public trading data in Bybit.

    Covers: Spot / USDT perpetual / USDC contract / Inverse contract / Option

    You can download archived historical trades from the website

    HTTP Request

    GET /v5/market/recent-trade

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. spot,linear,inverse,option
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    • required for spot/linear/inverse
    • optional for option
    baseCoinfalsestringBase coin, uppercase only
  • Apply to option only
  • If the field is not passed, return BTC data by default
  • optionTypefalsestringOption type. Call or Put. Apply to option only
    limitfalseintegerLimit for data size per page
    • spot: [1,60], default: 60
    • others: [1,1000], default: 500

    Response Parameters

    ParameterTypeComments
    categorystringProducts category
    listarrayObject
    > execIdstringExecution ID
    > symbolstringSymbol name
    > pricestringTrade price
    > sizestringTrade size
    > sidestringSide of taker Buy, Sell
    > timestringTrade time (ms)
    > isBlockTradebooleanWhether the trade is block trade
    > mPstringMark price, unique field for option
    > iPstringIndex price, unique field for option
    > mIvstringMark iv, unique field for option
    > ivstringiv, unique field for option

    Request Example

    GET /v5/market/recent-trade?category=spot&symbol=BTCUSDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "spot",
    "list": [
    {
    "execId": "2100000000007764263",
    "symbol": "BTCUSDT",
    "price": "16618.49",
    "size": "0.00012",
    "side": "Buy",
    "time": "1672052955758",
    "isBlockTrade": false
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672053054358
    }
    - + \ No newline at end of file diff --git a/v5/market/risk-limit.html b/v5/market/risk-limit.html index 0e5a5ac1a3..1b07eea602 100644 --- a/v5/market/risk-limit.html +++ b/v5/market/risk-limit.html @@ -4,13 +4,13 @@ Get Risk Limit | Bybit API Documentation - +

    Get Risk Limit

    Query for the risk limit.

    Covers: USDT perpetual / USDC contract / Inverse contract

    info

    category=linear returns data set of 30 symbols each request, please use cursor to get next data set.

    HTTP Request

    GET /v5/market/risk-limit

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. linear,inverse
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > idintegerRisk ID
    > symbolstringSymbol name
    > riskLimitValuestringPosition limit
    > maintenanceMarginnumberMaintain margin rate
    > initialMarginnumberInitial margin rate
    > isLowestRiskinteger1: true, 0: false
    > maxLeveragestringAllowed max leverage
    > mmDeductionstringThe maintenance margin deduction value when risk limit tier changed
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/market/risk-limit?category=inverse&symbol=BTCUSD HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "inverse",
    "list": [
    {
    "id": 1,
    "symbol": "BTCUSD",
    "riskLimitValue": "150",
    "maintenanceMargin": "0.5",
    "initialMargin": "1",
    "isLowestRisk": 1,
    "maxLeverage": "100.00",
    "mmDeduction": ""
    },
    ....
    ]
    },
    "retExtInfo": {},
    "time": 1672054488010
    }
    - + \ No newline at end of file diff --git a/v5/market/tickers.html b/v5/market/tickers.html index 8dae7260e7..bb325d467c 100644 --- a/v5/market/tickers.html +++ b/v5/market/tickers.html @@ -4,13 +4,13 @@ Get Tickers | Bybit API Documentation - +

    Get Tickers

    Query for the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours.

    Covers: Spot / USDT perpetual / USDC contract / Inverse contract / Option

    info

    If category=option, symbol or baseCoin must be passed.

    HTTP Request

    GET /v5/market/tickers

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type. spot,linear,inverse,option
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    baseCoinfalsestringBase coin, uppercase only. Apply to option only
    expDatefalsestringExpiry date. e.g., 25DEC22. Apply to option only

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > lastPricestringLast price
    > indexPricestringIndex price
    > markPricestringMark price
    > prevPrice24hstringMarket price 24 hours ago
    > price24hPcntstringPercentage change of market price relative to 24h
    > highPrice24hstringThe highest price in the last 24 hours
    > lowPrice24hstringThe lowest price in the last 24 hours
    > prevPrice1hstringMarket price an hour ago
    > openIntereststringOpen interest size
    > openInterestValuestringOpen interest value
    > turnover24hstringTurnover for 24h
    > volume24hstringVolume for 24h
    > fundingRatestringFunding rate
    > nextFundingTimestringNext funding time (ms)
    > predictedDeliveryPricestringPredicated delivery price. It has value when 30 min before delivery
    > basisRatestringBasis rate
    > basisstringBasis
    > deliveryFeeRatestringDelivery fee rate
    > deliveryTimestringDelivery timestamp (ms)
    > ask1SizestringBest ask size
    > bid1PricestringBest bid price
    > ask1PricestringBest ask price
    > bid1SizestringBest bid size
    > preOpenPricestringEstimated pre-market contract open price
  • The value is meaningless when entering continuous trading phase
  • > preQtystringEstimated pre-market contract open qty
  • The value is meaningless when entering continuous trading phase
  • > curPreListingPhasestringThe current pre-market contract phase

    Request Example

    GET /v5/market/tickers?category=inverse&symbol=BTCUSD HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "inverse",
    "list": [
    {
    "symbol": "BTCUSD",
    "lastPrice": "16597.00",
    "indexPrice": "16598.54",
    "markPrice": "16596.00",
    "prevPrice24h": "16464.50",
    "price24hPcnt": "0.008047",
    "highPrice24h": "30912.50",
    "lowPrice24h": "15700.00",
    "prevPrice1h": "16595.50",
    "openInterest": "373504107",
    "openInterestValue": "22505.67",
    "turnover24h": "2352.94950046",
    "volume24h": "49337318",
    "fundingRate": "-0.001034",
    "nextFundingTime": "1672387200000",
    "predictedDeliveryPrice": "",
    "basisRate": "",
    "deliveryFeeRate": "",
    "deliveryTime": "0",
    "ask1Size": "1",
    "bid1Price": "16596.00",
    "ask1Price": "16597.50",
    "bid1Size": "1",
    "basis": ""
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672376496682
    }
    - + \ No newline at end of file diff --git a/v5/market/time.html b/v5/market/time.html index ebf71425f2..c5bf7ae985 100644 --- a/v5/market/time.html +++ b/v5/market/time.html @@ -4,13 +4,13 @@ Get Bybit Server Time | Bybit API Documentation - +

    Get Bybit Server Time

    HTTP Request

    GET /v5/market/time

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    timeSecondstringBybit server timestamp (sec)
    timeNanostringBybit server timestamp (nano)

    Request Example

    GET /v5/market/time HTTP/1.1
    Host: api.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "timeSecond": "1688639403",
    "timeNano": "1688639403423213947"
    },
    "retExtInfo": {},
    "time": 1688639403423
    }
    - + \ No newline at end of file diff --git a/v5/order/amend-order.html b/v5/order/amend-order.html index fced9b7b6b..ba7b6a3313 100644 --- a/v5/order/amend-order.html +++ b/v5/order/amend-order.html @@ -4,7 +4,7 @@ Amend Order | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Amend Order

    info

    You can only modify unfilled or partially filled orders.

    Websocket logic for Spot

    classic account: if the original Spot order is a PostOnly order, and after the modification, the order becomes a taker order, then you will receive orderStatus="New" ws message first, followed by orderStatus="Rejected" ws message.

    Unified account: if the original Spot order is a PostOnly order, and after the modification, the order becomes a taker order, then you will directly receive orderStatus="Rejected" ws message.

    HTTP Request

    POST /v5/order/amend

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot, option
    • classic account: linear, inverse, spot
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    orderIdfalsestringOrder ID. Either orderId or orderLinkId is required
    orderLinkIdfalsestringUser customised order ID. Either orderId or orderLinkId is required
    orderIvfalsestringImplied volatility. option only. Pass the real value, e.g for 10%, 0.1 should be passed
    triggerPricefalsestring
    • For Perps & Futures, it is the conditional order trigger price. If you expect the price to rise to trigger your conditional order, make sure:
      triggerPrice > market price
      Else, triggerPrice < market price
    • For spot, it is the TP/SL and Conditional order trigger price
    qtyfalsestringOrder quantity after modification. Do not pass it if not modify the qty
    pricefalsestringOrder price after modification. Do not pass it if not modify the price
    tpslModefalsestringTP/SL mode
    • Full: entire position for TP/SL. Then, tpOrderType or slOrderType must be Market
    • Partial: partial position tp/sl. Limit TP/SL order are supported. Note: When create limit tp/sl, tpslMode is required and it must be Partial
    Valid for linear & inverse
    takeProfitfalsestringTake profit price after modification. If pass "0", it means cancel the existing take profit of the order. Do not pass it if you do not want to modify the take profit. valid for spot(UTA), linear, inverse
    stopLossfalsestringStop loss price after modification. If pass "0", it means cancel the existing stop loss of the order. Do not pass it if you do not want to modify the stop loss. valid for spot(UTA), linear, inverse
    tpTriggerByfalsestringThe price type to trigger take profit. When set a take profit, this param is required if no initial value for the order
    slTriggerByfalsestringThe price type to trigger stop loss. When set a take profit, this param is required if no initial value for the order
    triggerByfalsestringTrigger price type
    tpLimitPricefalsestringLimit order price when take profit is triggered. Only working when original order sets partial limit tp/sl. valid for spot(UTA), linear, inverse
    slLimitPricefalsestringLimit order price when stop loss is triggered. Only working when original order sets partial limit tp/sl. valid for spot(UTA), linear, inverse
    info

    The ack of amend order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status


    Response Parameters

    ParameterTypeComments
    orderIdstringOrder ID
    orderLinkIdstringUser customised order ID

    Request Example

    POST /v5/order/amend HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672217108106
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "ETHPERP",
    "orderLinkId": "linear-004",
    "triggerPrice": "1145",
    "qty": "0.15",
    "price": "1050",
    "takeProfit": "0",
    "stopLoss": "0"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "c6f055d9-7f21-4079-913d-e6523a9cfffa",
    "orderLinkId": "linear-004"
    },
    "retExtInfo": {},
    "time": 1672217093461
    }
    - + \ No newline at end of file diff --git a/v5/order/batch-amend.html b/v5/order/batch-amend.html index 3449aeb97a..77b1c8f488 100644 --- a/v5/order/batch-amend.html +++ b/v5/order/batch-amend.html @@ -4,13 +4,13 @@ Batch Amend Order | Bybit API Documentation - +

    Batch Amend Order

    tip

    This endpoint allows you to amend more than one open order in a single request.

    • You can modify unfilled or partially filled orders. Conditional orders are not supported.
    • A maximum of 20 orders (option), 10 orders (inverse), 10 orders (linear), 10 orders (spot) can be amended per request.

    HTTP Request

    POST /v5/order/amend-batch

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
  • UTA2.0: linear, option, spot, inverse
  • UTA1.0: linear, option, spot
  • requesttruearrayObject
    > symboltruestringSymbol name, like BTCUSDT, uppercase only
    > orderIdfalsestringOrder ID. Either orderId or orderLinkId is required
    > orderLinkIdfalsestringUser customised order ID. Either orderId or orderLinkId is required
    > orderIvfalsestringImplied volatility. option only. Pass the real value, e.g for 10%, 0.1 should be passed
    > triggerPricefalsestring
    • For Perps & Futures, it is the conditional order trigger price. If you expect the price to rise to trigger your conditional order, make sure:
      triggerPrice > market price
      Else, triggerPrice < market price
    • For spot, it is for tpslOrder or stopOrder trigger price
    > qtyfalsestringOrder quantity after modification. Do not pass it if not modify the qty
    > pricefalsestringOrder price after modification. Do not pass it if not modify the price
    > tpslModefalsestringTP/SL mode
    • Full: entire position for TP/SL. Then, tpOrderType or slOrderType must be Market
    • Partial: partial position tp/sl. Limit TP/SL order are supported. Note: When create limit tp/sl, tpslMode is required and it must be Partial
    > takeProfitfalsestringTake profit price after modification. If pass "0", it means cancel the existing take profit of the order. Do not pass it if you do not want to modify the take profit
    > stopLossfalsestringStop loss price after modification. If pass "0", it means cancel the existing stop loss of the order. Do not pass it if you do not want to modify the stop loss
    > tpTriggerByfalsestringThe price type to trigger take profit. When set a take profit, this param is required if no initial value for the order
    > slTriggerByfalsestringThe price type to trigger stop loss. When set a take profit, this param is required if no initial value for the order
    > triggerByfalsestringTrigger price type
    > tpLimitPricefalsestringLimit order price when take profit is triggered. Only working when original order sets partial limit tp/sl
    > slLimitPricefalsestringLimit order price when stop loss is triggered. Only working when original order sets partial limit tp/sl

    Response Parameters

    ParameterTypeComments
    resultObject
    > listarrayObject
    >> categorystringProduct type
    >> symbolstringSymbol name
    >> orderIdstringOrder ID
    >> orderLinkIdstringUser customised order ID
    retExtInfoObject
    > listarrayObject
    >> codenumberSuccess/error code
    >> msgstringSuccess/error message
    info

    The ack of amend order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status


    Request Example

    POST /v5/order/amend-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672222935987
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "option",
    "request": [
    {
    "symbol": "ETH-30DEC22-500-C",
    "qty": null,
    "price": null,
    "orderIv": "6.8",
    "orderId": "b551f227-7059-4fb5-a6a6-699c04dbd2f2"
    },
    {
    "symbol": "ETH-30DEC22-700-C",
    "qty": null,
    "price": "650",
    "orderIv": null,
    "orderId": "fa6a595f-1a57-483f-b9d3-30e9c8235a52"
    }
    ]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "option",
    "symbol": "ETH-30DEC22-500-C",
    "orderId": "b551f227-7059-4fb5-a6a6-699c04dbd2f2",
    "orderLinkId": ""
    },
    {
    "category": "option",
    "symbol": "ETH-30DEC22-700-C",
    "orderId": "fa6a595f-1a57-483f-b9d3-30e9c8235a52",
    "orderLinkId": ""
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 0,
    "msg": "OK"
    }
    ]
    },
    "time": 1672222808060
    }
    - + \ No newline at end of file diff --git a/v5/order/batch-cancel.html b/v5/order/batch-cancel.html index af392d6ae2..3bd23851d9 100644 --- a/v5/order/batch-cancel.html +++ b/v5/order/batch-cancel.html @@ -4,13 +4,13 @@ Batch Cancel Order | Bybit API Documentation - +

    Batch Cancel Order

    This endpoint allows you to cancel more than one open order in a single request.

    important
    • You must specify orderId or orderLinkId.
    • If orderId and orderLinkId is not matched, the system will process orderId first.
    • You can cancel unfilled or partially filled orders.
    • A maximum of 20 orders (option), 10 orders (inverse), 10 orders (linear), 10 orders (spot) can be cancelled per request.

    HTTP Request

    POST /v5/order/cancel-batch

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
  • UTA2.0: linear, option, spot, inverse
  • UTA1.0: linear, option, spot
  • requesttruearrayObject
    > symboltruestringSymbol name, like BTCUSDT, uppercase only
    > orderIdfalsestringOrder ID. Either orderId or orderLinkId is required
    > orderLinkIdfalsestringUser customised order ID. Either orderId or orderLinkId is required

    Response Parameters

    ParameterTypeComments
    resultObject
    > listarrayObject
    >> categorystringProduct type
    >> symbolstringSymbol name
    >> orderIdstringOrder ID
    >> orderLinkIdstringUser customised order ID
    retExtInfoObject
    > listarrayObject
    >> codenumberSuccess/error code
    >> msgstringSuccess/error message
    info

    The ack of cancel order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status


    Request Example

    POST /v5/order/cancel-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672223356634
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "spot",
    "request": [
    {
    "symbol": "BTCUSDT",
    "orderId": "1666800494330512128"
    },
    {
    "symbol": "ATOMUSDT",
    "orderLinkId": "1666800494330512129"
    }
    ]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "spot",
    "symbol": "BTCUSDT",
    "orderId": "1666800494330512128",
    "orderLinkId": "spot-btc-03"
    },
    {
    "category": "spot",
    "symbol": "ATOMUSDT",
    "orderId": "",
    "orderLinkId": "1666800494330512129"
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 170213,
    "msg": "Order does not exist."
    }
    ]
    },
    "time": 1713434299047
    }
    - + \ No newline at end of file diff --git a/v5/order/batch-place.html b/v5/order/batch-place.html index e77e562eb8..c4ef9cbd1f 100644 --- a/v5/order/batch-place.html +++ b/v5/order/batch-place.html @@ -4,7 +4,7 @@ Batch Place Order | Bybit API Documentation - + @@ -15,7 +15,7 @@ The first list indicates whether or not the order creation was successful and the second list details the created order information. The structure of the two lists are completely consistent.
    info
    • Check the rate limit instruction when category=linear, spot or inverse here
    • Risk control limit notice:
      Bybit will monitor on your API requests. When the total number of orders of a single user (aggregated the number of orders across main account and sub-accounts) within a day (UTC 0 - UTC 24) exceeds a certain upper limit, the platform will reserve the right to remind, warn, and impose necessary restrictions. Customers who use API default to acceptance of these terms and have the obligation to cooperate with adjustments.

    HTTP Request

    POST /v5/order/create-batch

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
  • UTA2.0: linear, option, spot, inverse
  • UTA1.0: linear, option, spot
  • requesttruearrayObject
    > symboltruestringSymbol name, like BTCUSDT, uppercase only
    > isLeveragefalseintegerWhether to borrow. Valid for Unified spot only. 0(default): false then spot trading, 1: true then margin trading
    > sidetruestringBuy, Sell
    > orderTypetruestringMarket, Limit
    > qtytruestringOrder quantity
    • UTA account
      • Spot: set marketUnit for market order qty unit, quoteCoin for market buy by default, baseCoin for market sell by default
      • Perps, Futures & Option: always use base coin as unit
    • Perps & Futures: if you pass qty="0" and specify reduceOnly=true&closeOnTrigger=true, you can close the position up to maxMktOrderQty or maxOrderQty shown on Get Instruments Info of current symbol
    > marketUnitfalsestringThe unit for qty when create Spot market orders for UTA account, orderFilter=tpslOrder and StopOrder are supported as well.
  • baseCoin: for example, buy BTCUSDT, then "qty" unit is BTC
  • quoteCoin: for example, sell BTCUSDT, then "qty" unit is USDT
  • > pricefalsestringOrder price
    • Market order will ignore this field
    • Please check the min price and price precision from instrument info endpoint
    • If you have position, price needs to be better than liquidation price
    > triggerDirectionfalseintegerConditional order param. Used to identify the expected direction of the conditional order.
    • 1: triggered when market price rises to triggerPrice
    • 2: triggered when market price falls to triggerPrice
    Valid for linear
    > orderFilterfalsestringIf it is not passed, Order by default.
    • Order
    • tpslOrder: Spot TP/SL order, the assets are occupied even before the order is triggered
    • StopOrder: Spot conditional order, the assets will not be occupied until the price of the underlying asset reaches the trigger price, and the required assets will be occupied after the Conditional order is triggered
    Valid for spot only
    > triggerPricefalsestring
    • For Perps & Futures, it is the conditional order trigger price. If you expect the price to rise to trigger your conditional order, make sure:
      triggerPrice > market price
      Else, triggerPrice < market price
    • For spot, it is the orderFilter=tpslOrder, or orderFilter=stopOrder trigger price
    > triggerByfalsestringConditional order param (Perps & Futures). Trigger price type. LastPrice, IndexPrice, MarkPrice
    > orderIvfalsestringImplied volatility. option only. Pass the real value, e.g for 10%, 0.1 should be passed. orderIv has a higher priority when price is passed as well
    > timeInForcefalsestringTime in force
    • Market order will use IOC directly
    • If not passed, GTC is used by default
    > positionIdxfalseintegerUsed to identify positions in different position modes. Under hedge-mode, this param is required
    • 0: one-way mode
    • 1: hedge-mode Buy side
    • 2: hedge-mode Sell side
    > orderLinkIdfalsestringUser customised order ID. A max of 36 characters. Combinations of numbers, letters (upper and lower cases), dashes, and underscores are supported.
    Futures, Perps & Spot: orderLinkId rules:
    • optional param
    • always unique
    • option orderLinkId rules:
    • required param
    • always unique
    > takeProfitfalsestringTake profit price
    > stopLossfalsestringStop loss price
    > tpTriggerByfalsestringThe price type to trigger take profit. MarkPrice, IndexPrice, default: LastPrice.
    Valid for linear, inverse
    > slTriggerByfalsestringThe price type to trigger stop loss. MarkPrice, IndexPrice, default: LastPrice
    Valid for linear, inverse
    > reduceOnlyfalsebooleanWhat is a reduce-only order? true means your position can only reduce in size if this order is triggered.
    • You must specify it as true when you are about to close/reduce the position
    • When reduceOnly is true, take profit/stop loss cannot be set
    Valid for linear, inverse & option
    > closeOnTriggerfalsebooleanWhat is a close on trigger order? For a closing order. It can only reduce your position, not increase it. If the account has insufficient available balance when the closing order is triggered, then other active orders of similar contracts will be cancelled or reduced. It can be used to ensure your stop loss reduces your position regardless of current available margin.
    Valid for linear, inverse
    > smpTypefalsestringSmp execution type. What is SMP?
    > mmpfalsebooleanMarket maker protection. option only. true means set the order as a market maker protection order. What is mmp?
    > tpslModefalsestringTP/SL mode
    • Full: entire position for TP/SL. Then, tpOrderType or slOrderType must be Market
    • Partial: partial position tp/sl (as there is no size option, so it will create tp/sl orders with the qty you actually fill). Limit TP/SL order are supported. Note: When create limit tp/sl, tpslMode is required and it must be Partial
    Valid for linear, inverse
    > tpLimitPricefalsestringThe limit order price when take profit price is triggered
    • linear&inverse: only works when tpslMode=Partial and tpOrderType=Limit
    • Spot(UTA): it is required when the order has takeProfit and tpOrderType=Limit
    > slLimitPricefalsestringThe limit order price when stop loss price is triggered
    • linear&inverse: only works when tpslMode=Partial and slOrderType=Limit
    • Spot(UTA): it is required when the order has stopLoss and slOrderType=Limit
    > tpOrderTypefalsestringThe order type when take profit is triggered
    • linear&inverse: Market(default), Limit. For tpslMode=Full, it only supports tpOrderType=Market
    • Spot(UTA):
      Market: when you set "takeProfit",
      Limit: when you set "takeProfit" and "tpLimitPrice"
    > slOrderTypefalsestringThe order type when stop loss is triggered
    • linear&inverse: Market(default), Limit. For tpslMode=Full, it only supports slOrderType=Market
    • Spot(UTA):
      Market: when you set "stopLoss",
      Limit: when you set "stopLoss" and "slLimitPrice"

    Response Parameters

    ParameterTypeComments
    resultObject
    > listarrayObject
    >> categorystringProduct type
    >> symbolstringSymbol name
    >> orderIdstringOrder ID
    >> orderLinkIdstringUser customised order ID
    >> createAtstringOrder created time (ms)
    retExtInfoObject
    > listarrayObject
    >> codenumberSuccess/error code
    >> msgstringSuccess/error message
    info

    The ack of create order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status


    Request Example

    POST /v5/order/create-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672222064519
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "spot",
    "request": [
    {
    "symbol": "BTCUSDT",
    "side": "Buy",
    "orderType": "Limit",
    "isLeverage": 0,
    "qty": "0.05",
    "price": "30000",
    "timeInForce": "GTC",
    "orderLinkId": "spot-btc-03"
    },
    {
    "symbol": "ATOMUSDT",
    "side": "Sell",
    "orderType": "Limit",
    "isLeverage": 0,
    "qty": "2",
    "price": "12",
    "timeInForce": "GTC",
    "orderLinkId": "spot-atom-03"
    }
    ]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "spot",
    "symbol": "BTCUSDT",
    "orderId": "1666800494330512128",
    "orderLinkId": "spot-btc-03",
    "createAt": "1713434102752"
    },
    {
    "category": "spot",
    "symbol": "ATOMUSDT",
    "orderId": "1666800494330512129",
    "orderLinkId": "spot-atom-03",
    "createAt": "1713434102752"
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 0,
    "msg": "OK"
    }
    ]
    },
    "time": 1713434102753
    }
    - + \ No newline at end of file diff --git a/v5/order/cancel-all.html b/v5/order/cancel-all.html index 2d728a20f7..aa631f5856 100644 --- a/v5/order/cancel-all.html +++ b/v5/order/cancel-all.html @@ -4,7 +4,7 @@ Cancel All Orders | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Cancel All Orders

    Cancel all open orders

    info
    • Support cancel orders by symbol/baseCoin/settleCoin. If you pass multiple of these params, the system will process one of param, which priority is symbol > baseCoin > settleCoin.
    • NOTE: category=option, you can cancel all option open orders without passing any of those three params. However, for "linear" and "inverse", you must specify one of those three params.
    • NOTE: category=spot, you can cancel all spot open orders (normal order by default) without passing other params.
    info

    Spot: classic account - cancel up to 500 orders; Unified account - no limit
    Futures: classic account - cancel up to 500 orders; Unified account - cancel up to 500 orders
    Options: Unified account - no limit

    HTTP Request

    POST /v5/order/cancel-all

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot, option
    • classic account: linear, inverse, spot
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    linear&inverse: Required if not passing baseCoin or settleCoin
    baseCoinfalsestringBase coin, uppercase only
    • linear & inverse(classic account): If cancel all by baseCoin, it will cancel all linear & inverse orders. Required if not passing symbol or settleCoin
    • linear & inverse(Unified account): If cancel all by baseCoin, it will cancel all corresponding category orders. Required if not passing symbol or settleCoin
    • spot(classic account): invalid
    settleCoinfalsestringSettle coin, uppercase only
    • linear & inverse: Required if not passing symbol or baseCoin
    • Not support spot
    orderFilterfalsestring
    • category=spot, you can pass Order, tpslOrder, StopOrder, OcoOrder, BidirectionalTpslOrder
      If not passed, Order by default
    • category=linear or inverse, you can pass Order, StopOrder
      If not passed, all kinds of orders will be cancelled, like active order, conditional order, TP/SL order and trailing stop order
    • category=option, you can pass Order
      No matter it is passed or not, always cancel all orders
    stopOrderTypefalsestringStop order type Stop
  • Only used for category=linear or inverse and orderFilter=StopOrder,you can cancel conditional orders except TP/SL order and Trailing stop orders with this param
  • info

    The ack of cancel-all order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status


    Response Parameters

    ParameterTypeComments
    listarrayObject
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    successstring"1": success, "0": fail
  • UTA1.0(inverse), classic(linear, inverse) do not return this field
  • Request Example

    POST /v5/order/cancel-all HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672219779140
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": null,
    "settleCoin": "USDT"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "1616024329462743808",
    "orderLinkId": "1616024329462743809"
    },
    {
    "orderId": "1616024287544869632",
    "orderLinkId": "1616024287544869633"
    }
    ],
    "success": "1"
    },
    "retExtInfo": {},
    "time": 1707381118116
    }
    - + \ No newline at end of file diff --git a/v5/order/cancel-order.html b/v5/order/cancel-order.html index 0464a8e0bd..8cdb9a283e 100644 --- a/v5/order/cancel-order.html +++ b/v5/order/cancel-order.html @@ -4,13 +4,13 @@ Cancel Order | Bybit API Documentation - +

    Cancel Order

    important
    • You must specify orderId or orderLinkId to cancel the order.
    • If orderId and orderLinkId do not match, the system will process orderId first.
    • You can only cancel unfilled or partially filled orders.

    HTTP Request

    POST /v5/order/cancel

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot, option
    • classic account: linear, inverse, spot
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    orderIdfalsestringOrder ID. Either orderId or orderLinkId is required
    orderLinkIdfalsestringUser customised order ID. Either orderId or orderLinkId is required
    orderFilterfalsestringSpot trading only
  • Order
  • tpslOrder
  • StopOrder
  • If not passed, Order by default

    Response Parameters

    ParameterTypeComments
    orderIdstringOrder ID
    orderLinkIdstringUser customised order ID
    info

    The ack of cancel order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status


    Request Example

    POST /v5/order/cancel HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672217376681
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCPERP",
    "orderLinkId": null,
    "orderId":"c6f055d9-7f21-4079-913d-e6523a9cfffa"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "c6f055d9-7f21-4079-913d-e6523a9cfffa",
    "orderLinkId": "linear-004"
    },
    "retExtInfo": {},
    "time": 1672217377164
    }
    - + \ No newline at end of file diff --git a/v5/order/create-order.html b/v5/order/create-order.html index 77591d549f..f67d138e21 100644 --- a/v5/order/create-order.html +++ b/v5/order/create-order.html @@ -4,7 +4,7 @@ Place Order | Bybit API Documentation - + @@ -27,7 +27,7 @@ Customers who use API default to acceptance of these terms and have the obligation to cooperate with adjustments.

    Spot Stop Order

    Spot supports TP/SL order, Conditional order, however, the system logic is different between classic account and Unified account
    classic account: When the stop order is created, you will get an order ID. After it is triggered, you will get a new order ID
    Unified account: When the stop order is created, you will get an order ID. After it is triggered, the order ID will not be changed

    HTTP Request

    POST /v5/order/create

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot, option
    • classic account: linear, inverse, spot
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    isLeveragefalseintegerWhether to borrow. Unified account Spot trading only.
  • 0(default): false, spot trading
  • 1: true, margin trading, make sure you turn on margin trading, and set the relevant currency as collateral
  • sidetruestringBuy, Sell
    orderTypetruestringMarket, Limit
    qtytruestringOrder quantity
    • UTA account
      • Spot: Market Buy order by value by default, you can set marketUnit field to choose order by value or qty for market orders
      • Perps, Futures & Option: always order by qty
    • classic account
      • Spot: Market Buy order by value by default
      • Perps, Futures: always order by qty
    • Perps & Futures: if you pass qty="0" and specify reduceOnly=true&closeOnTrigger=true, you can close the position up to maxMktOrderQty or maxOrderQty shown on Get Instruments Info of current symbol
    marketUnitfalsestringSelect the unit for qty when create Spot market orders for UTA account
  • baseCoin: for example, buy BTCUSDT, then "qty" unit is BTC
  • quoteCoin: for example, sell BTCUSDT, then "qty" unit is USDT
  • pricefalsestringOrder price
    • Market order will ignore this field
    • Please check the min price and price precision from instrument info endpoint
    • If you have position, price needs to be better than liquidation price
    triggerDirectionfalseintegerConditional order param. Used to identify the expected direction of the conditional order.
    • 1: triggered when market price rises to triggerPrice
    • 2: triggered when market price falls to triggerPrice
    Valid for linear & inverse
    orderFilterfalsestringIf it is not passed, Order by default.
    • Order
    • tpslOrder: Spot TP/SL order, the assets are occupied even before the order is triggered
    • StopOrder: Spot conditional order, the assets will not be occupied until the price of the underlying asset reaches the trigger price, and the required assets will be occupied after the Conditional order is triggered
    Valid for spot only
    triggerPricefalsestring
    • For Perps & Futures, it is the conditional order trigger price. If you expect the price to rise to trigger your conditional order, make sure:
      triggerPrice > market price
      Else, triggerPrice < market price
    • For spot, it is the TP/SL and Conditional order trigger price
    triggerByfalsestringTrigger price type, Conditional order param for Perps & Futures.
  • LastPrice
  • IndexPrice
  • MarkPrice
  • Valid for linear & inverse
    orderIvfalsestringImplied volatility. option only. Pass the real value, e.g for 10%, 0.1 should be passed. orderIv has a higher priority when price is passed as well
    timeInForcefalsestringTime in force
    • Market order will use IOC directly
    • If not passed, GTC is used by default
    positionIdxfalseintegerUsed to identify positions in different position modes. Under hedge-mode, this param is required
    • 0: one-way mode
    • 1: hedge-mode Buy side
    • 2: hedge-mode Sell side
    orderLinkIdfalsestringUser customised order ID. A max of 36 characters. Combinations of numbers, letters (upper and lower cases), dashes, and underscores are supported.
    Futures & Perps: orderLinkId rules:
    • optional param
    • always unique
    • option orderLinkId rules:
    • required param
    • always unique
    takeProfitfalsestringTake profit price
  • UTA: Spot Limit order supports take profit, stop loss or limit take profit, limit stop loss when creating an order
  • stopLossfalsestringStop loss price
  • UTA: Spot Limit order supports take profit, stop loss or limit take profit, limit stop loss when creating an order
  • tpTriggerByfalsestringThe price type to trigger take profit. MarkPrice, IndexPrice, default: LastPrice. Valid for linear & inverse
    slTriggerByfalsestringThe price type to trigger stop loss. MarkPrice, IndexPrice, default: LastPrice. Valid for linear & inverse
    reduceOnlyfalsebooleanWhat is a reduce-only order? true means your position can only reduce in size if this order is triggered.
    • You must specify it as true when you are about to close/reduce the position
    • When reduceOnly is true, take profit/stop loss cannot be set
    Valid for linear, inverse & option
    closeOnTriggerfalsebooleanWhat is a close on trigger order? For a closing order. It can only reduce your position, not increase it. If the account has insufficient available balance when the closing order is triggered, then other active orders of similar contracts will be cancelled or reduced. It can be used to ensure your stop loss reduces your position regardless of current available margin.
    Valid for linear & inverse
    smpTypefalsestringSmp execution type. What is SMP?
    mmpfalsebooleanMarket maker protection. option only. true means set the order as a market maker protection order. What is mmp?
    tpslModefalsestringTP/SL mode
    • Full: entire position for TP/SL. Then, tpOrderType or slOrderType must be Market
    • Partial: partial position tp/sl (as there is no size option, so it will create tp/sl orders with the qty you actually fill). Limit TP/SL order are supported. Note: When create limit tp/sl, tpslMode is required and it must be Partial
    Valid for linear & inverse
    tpLimitPricefalsestringThe limit order price when take profit price is triggered
    • linear & inverse: only works when tpslMode=Partial and tpOrderType=Limit
    • Spot(UTA): it is required when the order has takeProfit and "tpOrderType"=Limit
    slLimitPricefalsestringThe limit order price when stop loss price is triggered
    • linear & inverse: only works when tpslMode=Partial and slOrderType=Limit
    • Spot(UTA): it is required when the order has stopLoss and "slOrderType"=Limit
    tpOrderTypefalsestringThe order type when take profit is triggered
    • linear & inverse: Market(default), Limit. For tpslMode=Full, it only supports tpOrderType=Market
    • Spot(UTA):
      Market: when you set "takeProfit",
      Limit: when you set "takeProfit" and "tpLimitPrice"
    slOrderTypefalsestringThe order type when stop loss is triggered
    • linear & inverse: Market(default), Limit. For tpslMode=Full, it only supports slOrderType=Market
    • Spot(UTA):
      Market: when you set "stopLoss",
      Limit: when you set "stopLoss" and "slLimitPrice"

    Response Parameters

    ParameterTypeComments
    orderIdstringOrder ID
    orderLinkIdstringUser customised order ID
    info

    The ack of create order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status


    Request Example

    POST /v5/order/create HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672211928338
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    // Spot Limit order with market tp sl
    {"category": "spot","symbol": "BTCUSDT","side": "Buy","orderType": "Limit","qty": "0.01","price": "28000","timeInForce": "PostOnly","takeProfit": "35000","stopLoss": "27000","tpOrderType": "Market","slOrderType": "Market"}

    // Spot Limit order with limit tp sl
    {"category": "spot","symbol": "BTCUSDT","side": "Buy","orderType": "Limit","qty": "0.01","price": "28000","timeInForce": "PostOnly","takeProfit": "35000","stopLoss": "27000","tpLimitPrice": "36000","slLimitPrice": "27500","tpOrderType": "Limit","slOrderType": "Limit"}

    // Spot PostOnly normal order
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.1","price":"15600","timeInForce":"PostOnly","orderLinkId":"spot-test-01","isLeverage":0,"orderFilter":"Order"}

    // Spot TP/SL order
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.1","price":"15600","triggerPrice": "15000", "timeInForce":"Limit","orderLinkId":"spot-test-02","isLeverage":0,"orderFilter":"tpslOrder"}

    // Spot margin normal order (UTA)
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.1","price":"15600","timeInForce":"Limit","orderLinkId":"spot-test-limit","isLeverage":1,"orderFilter":"Order"}

    // Spot Market Buy order, qty is quote currency
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Market","qty":"200","timeInForce":"IOC","orderLinkId":"spot-test-04","isLeverage":0,"orderFilter":"Order"}


    // USDT Perp open long position (one-way mode)
    {"category":"linear","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"1","price":"25000","timeInForce":"GTC","positionIdx":0,"orderLinkId":"usdt-test-01","reduceOnly":false,"takeProfit":"28000","stopLoss":"20000","tpslMode":"Partial","tpOrderType":"Limit","slOrderType":"Limit","tpLimitPrice":"27500","slLimitPrice":"20500"}

    // USDT Perp close long position (one-way mode)
    {"category": "linear", "symbol": "BTCUSDT", "side": "Sell", "orderType": "Limit", "qty": "1", "price": "30000", "timeInForce": "GTC", "positionIdx": 0, "orderLinkId": "usdt-test-02", "reduceOnly": true}

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "1321003749386327552",
    "orderLinkId": "spot-test-postonly"
    },
    "retExtInfo": {},
    "time": 1672211918471
    }
    - + \ No newline at end of file diff --git a/v5/order/dcp.html b/v5/order/dcp.html index 35371757e1..f3da484cf3 100644 --- a/v5/order/dcp.html +++ b/v5/order/dcp.html @@ -4,7 +4,7 @@ Set Disconnect Cancel All | Bybit API Documentation - + @@ -15,7 +15,7 @@ all active futures / spot / option orders of the client will be cancelled automatically. If within 10 seconds, the client reconnects and resumes the heartbeat "ping", the timing will be reset and restarted at the next disconnection.

    How to enable DCP

    If you need to turn it on/off, you can contact your client manager for consultation and application. The default time window is 10 seconds.

    Applicable

    Effective for Inverse Perp / Inverse Futures / USDT Perp / USDC Perp / USDC Futures / Spot / options (UTA2.0)
    Effective for USDT Perp / USDC Perp / USDC Futures / Spot / options (UTA1.0)

    tip

    After the request is successfully sent, the system needs a certain time to take effect. It is recommended to query or set again after 10 seconds

    • You can use this endpoint to get your current DCP configuration.
    • Your private websocket connection must subscribe "dcp" topic in order to trigger DCP successfully

    HTTP Request

    POST /v5/order/disconnected-cancel-all

    Request Parameters

    ParameterRequiredTypeComments
    productfalsestringOPTIONS(default), DERIVATIVES, SPOT
    timeWindowtrueintegerDisconnection timing window time. [3, 300], unit: second

    Response Parameters

    None

    Request Example

    POST v5/order/disconnected-cancel-all HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675852742375
    X-BAPI-RECV-WINDOW: 50000
    Content-Type: application/json

    {
    "timeWindow": 40
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success"
    }
    - + \ No newline at end of file diff --git a/v5/order/execution.html b/v5/order/execution.html index b50e2104e0..2c53a92be3 100644 --- a/v5/order/execution.html +++ b/v5/order/execution.html @@ -4,14 +4,14 @@ Get Trade History | Bybit API Documentation - +

    Get Trade History

    Query users' execution records, sorted by execTime in descending order. However, for Classic spot, they are sorted by execId in descending order.

    tip
    • Response items will have sorting issues When 'execTime' is the same, it is recommended to sort according to execId+OrderId+leavesQty. This issue is currently being optimized and will be released. If you want to receive real-time execution information, Use the websocket stream (recommended).
    • You may have multiple executions in a single order.
    • You can query by symbol, baseCoin, orderId and orderLinkId, and if you pass multiple params, the system will process them according to this priority: orderId > orderLinkId > symbol > baseCoin.
    info
    • Unified account supports getting the past 730 days historical trades data

    HTTP Request

    GET /v5/execution/list

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot, option
    • classic account: linear, inverse, spot
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    orderIdfalsestringOrder ID
    orderLinkIdfalsestringUser customised order ID. Classic account does not support this param
    baseCoinfalsestringBase coin, uppercase only
  • UTA1.0(category=inverse) and classic account are not supported
  • startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default;
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    execTypefalsestringExecution type. Classic spot is not supported
    limitfalseintegerLimit for data size per page. [1, 100]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > orderIdstringOrder ID
    > orderLinkIdstringUser customized order ID. Classic spot is not supported
    > sidestringSide. Buy,Sell
    > orderPricestringOrder price
    > orderQtystringOrder qty
    > leavesQtystringThe remaining qty not executed. Classic spot is not supported
    > createTypestringOrder create type
  • classic account & UTA1.0(category=inverse): always ""
  • Spot, Option do not have this key
  • > orderTypestringOrder type. Market,Limit
    > stopOrderTypestringStop order type. If the order is not stop order, it either returns UNKNOWN or "". Classic spot is not supported
    > execFeestringExecuted trading fee. You can get spot fee currency instruction here
    > execIdstringExecution ID
    > execPricestringExecution price
    > execQtystringExecution qty
    > execTypestringExecuted type. Classic spot is not supported
    > execValuestringExecuted order value. Classic spot is not supported
    > execTimestringExecuted timestamp(ms)
    > feeCurrencystringSpot trading fee currency Classic spot is not supported
    > isMakerbooleanIs maker order. true: maker, false: taker
    > feeRatestringTrading fee rate. Classic spot is not supported
    > tradeIvstringImplied volatility. Valid for option
    > markIvstringImplied volatility of mark price. Valid for option
    > markPricestringThe mark price of the symbol when executing. Classic spot is not supported
    > indexPricestringThe index price of the symbol when executing. Valid for option only
    > underlyingPricestringThe underlying price of the symbol when executing. Valid for option
    > blockTradeIdstringParadigm block trade ID
    > closedSizestringClosed position size
    > seqlongCross sequence, used to associate each fill and each position update
    • The seq will be the same when conclude multiple transactions at the same time
    • Different symbols may have the same seq, please use seq + symbol to check unique
    • classic account Spot trade does not have this field
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/execution/list?category=linear&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672283754132
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "132766%3A2%2C132766%3A2",
    "category": "linear",
    "list": [
    {
    "symbol": "ETHPERP",
    "orderType": "Market",
    "underlyingPrice": "",
    "orderLinkId": "",
    "side": "Buy",
    "indexPrice": "",
    "orderId": "8c065341-7b52-4ca9-ac2c-37e31ac55c94",
    "stopOrderType": "UNKNOWN",
    "leavesQty": "0",
    "execTime": "1672282722429",
    "feeCurrency": "",
    "isMaker": false,
    "execFee": "0.071409",
    "feeRate": "0.0006",
    "execId": "e0cbe81d-0f18-5866-9415-cf319b5dab3b",
    "tradeIv": "",
    "blockTradeId": "",
    "markPrice": "1183.54",
    "execPrice": "1190.15",
    "markIv": "",
    "orderQty": "0.1",
    "orderPrice": "1236.9",
    "execValue": "119.015",
    "execType": "Trade",
    "execQty": "0.1",
    "closedSize": "",
    "seq": 4688002127
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672283754510
    }
    - + \ No newline at end of file diff --git a/v5/order/open-order.html b/v5/order/open-order.html index bd87028a73..9a4151c72d 100644 --- a/v5/order/open-order.html +++ b/v5/order/open-order.html @@ -4,14 +4,14 @@ Get Open & Closed Orders | Bybit API Documentation - +

    Get Open & Closed Orders

    Primarily query unfilled or partially filled orders in real-time, but also supports querying recent 500 closed status (Cancelled, Filled) orders. Please see the usage of request param openOnly.
    And to query older order records, please use the order history interface.

    tip
    • UTA2.0 can query filled, canceled, and rejected orders to the most recent 500 orders for spot, linear, inverse and option categories
    • UTA1.0 can query filled, canceled, and rejected orders to the most recent 500 orders for spot, linear, and option categories. The inverse category is not subject to this limitation.
    • You can query by symbol, baseCoin, orderId and orderLinkId, and if you pass multiple params, the system will process them according to this priority: orderId > orderLinkId > symbol > baseCoin.
    • The records are sorted by the createdTime from newest to oldest.
    info
    • classic account spot can return open orders only
    • After a server release or restart, filled, canceled, and rejected orders of Unified account should only be queried through order history.

    HTTP Request

    GET /v5/order/realtime

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot, option
    • classic account: linear, inverse, spot
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only. For linear, either symbol, baseCoin, settleCoin is required
    baseCoinfalsestringBase coin, uppercase only
  • Supports linear, inverse & option
  • option: it returns all option open orders by default
  • settleCoinfalsestringSettle coin, uppercase only
    • linear: either symbol, baseCoin or settleCoin is required
    • spot: not supported
    orderIdfalsestringOrder ID
    orderLinkIdfalsestringUser customised order ID
    openOnlyfalseinteger
    • 0(default): UTA2.0, UTA1.0, classic account query open status orders (e.g., New, PartiallyFilled) only
    • 1: UTA2.0, UTA1.0(except inverse)
      2: UTA1.0(inverse), classic account
      Query a maximum of recent 500 closed status records are kept under each account each category (e.g., Cancelled, Rejected, Filled orders).
      If the Bybit service is restarted due to an update, this part of the data will be cleared and accumulated again, but the order records will still be queried in order history
    • openOnly param will be ignored when query by orderId or orderLinkId
    • Classic spot: not supported
    orderFilterfalsestringOrder: active order, StopOrder: conditional order for Futures and Spot, tpslOrder: spot TP/SL order, OcoOrder: Spot oco order, BidirectionalTpslOrder: Spot bidirectional TPSL order
    • classic account spot: return Order active order by default
    • Others: all kinds of orders by default
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    nextPageCursorstringRefer to the cursor request parameter
    listarrayObject
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    > blockTradeIdstringParadigm block trade ID
    > symbolstringSymbol name
    > pricestringOrder price
    > qtystringOrder qty
    > sidestringSide. Buy,Sell
    > isLeveragestringWhether to borrow. Unified spot only. 0: false, 1: true. Classic spot is not supported, always 0
    > positionIdxintegerPosition index. Used to identify positions in different position modes.
    > orderStatusstringOrder status
    > createTypestringOrder create type
  • Only for category=linear or inverse
  • Spot, Option do not have this key
  • > cancelTypestringCancel type
    > rejectReasonstringReject reason. Classic spot is not supported
    > avgPricestringAverage filled price
  • UTA: returns "" for those orders without avg price
  • classic account: returns "0" for those orders without avg price, and also for those orders have partilly filled but cancelled at the end
  • > leavesQtystringThe remaining qty not executed. Classic spot is not supported
    > leavesValuestringThe estimated value not executed. Classic spot is not supported
    > cumExecQtystringCumulative executed order qty
    > cumExecValuestringCumulative executed order value. Classic spot is not supported
    > cumExecFeestringCumulative executed trading fee. Classic spot is not supported
    > timeInForcestringTime in force
    > orderTypestringOrder type. Market,Limit. For TP/SL order, it means the order type after triggered
    > stopOrderTypestringStop order type
    > orderIvstringImplied volatility
    > marketUnitstringThe unit for qty when create Spot market orders for UTA account. baseCoin, quoteCoin
    > triggerPricestringTrigger price. If stopOrderType=TrailingStop, it is activate price. Otherwise, it is trigger price
    > takeProfitstringTake profit price
    > stopLossstringStop loss price
    > tpslModestringTP/SL mode, Full: entire position for TP/SL. Partial: partial position tp/sl. Spot does not have this field, and Option returns always ""
    > ocoTriggerBystringThe trigger type of Spot OCO order.OcoTriggerByUnknown, OcoTriggerByTp, OcoTriggerByBySl. Classic spot is not supported
    > tpLimitPricestringThe limit order price when take profit price is triggered
    > slLimitPricestringThe limit order price when stop loss price is triggered
    > tpTriggerBystringThe price type to trigger take profit
    > slTriggerBystringThe price type to trigger stop loss
    > triggerDirectionintegerTrigger direction. 1: rise, 2: fall
    > triggerBystringThe price type of trigger price
    > lastPriceOnCreatedstringLast price when place the order
    > reduceOnlybooleanReduce only. true means reduce position size
    > closeOnTriggerbooleanClose on trigger. What is a close on trigger order?
    > placeTypestringPlace type, option used. iv, price
    > smpTypestringSMP execution type
    > smpGroupintegerSmp group ID. If the UID has no group, it is 0 by default
    > smpOrderIdstringThe counterparty's orderID which triggers this SMP execution
    > createdTimestringOrder created timestamp (ms)
    > updatedTimestringOrder updated timestamp (ms)

    Request Example

    GET /v5/order/realtime?symbol=ETHUSDT&category=linear&openOnly=0&limit=1  HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672219525810
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "fd4300ae-7847-404e-b947-b46980a4d140",
    "orderLinkId": "test-000005",
    "blockTradeId": "",
    "symbol": "ETHUSDT",
    "price": "1600.00",
    "qty": "0.10",
    "side": "Buy",
    "isLeverage": "",
    "positionIdx": 1,
    "orderStatus": "New",
    "cancelType": "UNKNOWN",
    "rejectReason": "EC_NoError",
    "avgPrice": "0",
    "leavesQty": "0.10",
    "leavesValue": "160",
    "cumExecQty": "0.00",
    "cumExecValue": "0",
    "cumExecFee": "0",
    "timeInForce": "GTC",
    "orderType": "Limit",
    "stopOrderType": "UNKNOWN",
    "orderIv": "",
    "triggerPrice": "0.00",
    "takeProfit": "2500.00",
    "stopLoss": "1500.00",
    "tpTriggerBy": "LastPrice",
    "slTriggerBy": "LastPrice",
    "triggerDirection": 0,
    "triggerBy": "UNKNOWN",
    "lastPriceOnCreated": "",
    "reduceOnly": false,
    "closeOnTrigger": false,
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "tpslMode": "Full",
    "tpLimitPrice": "",
    "slLimitPrice": "",
    "placeType": "",
    "createdTime": "1684738540559",
    "updatedTime": "1684738540561"
    }
    ],
    "nextPageCursor": "page_args%3Dfd4300ae-7847-404e-b947-b46980a4d140%26symbol%3D6%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1684765770483
    }
    - + \ No newline at end of file diff --git a/v5/order/order-list.html b/v5/order/order-list.html index 0cfebcf05f..dc8c4863bc 100644 --- a/v5/order/order-list.html +++ b/v5/order/order-list.html @@ -4,14 +4,14 @@ Get Order History | Bybit API Documentation - +

    Get Order History

    Query order history. As order creation/cancellation is asynchronous, the data returned from this endpoint may delay. If you want to get real-time order information, you could query this endpoint or rely on the websocket stream (recommended).

    rule
    • The orders in the last 7 days:
      UTA2.0, UTA1.0(except inverse) support querying all closed status except "Cancelled", "Rejected", "Deactivated" status.
      UTA1.0(inverse) and classic account support querying all status (open and close status)
    • The orders in the last 24 hours:
      UTA2.0, UTA1.0(except inverse) for the orders with "Cancelled" (fully cancelled order), "Rejected", "Deactivated" can be query
    • The orders beyond 7 days:
      All account supports querying orders which have fills only, i.e., fully filled, partial filled but cancelled orders
    • UTA2.0, UTA1.0(except inverse) support querying the past 2 years data.
    info
    • Classic Spot can get closed order status only, and Cancelled, Rejected, Deactivated orders save up to 7 days

    HTTP Request

    GET /v5/order/history

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot, option
    • classic account: linear, inverse, spot
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    baseCoinfalsestringBase coin, uppercase only
  • UTA1.0(inverse), classic account do not support this param
  • settleCoinfalsestringSettle coin, uppercase only
  • UTA1.0(inverse), classic account do not support this param
  • orderIdfalsestringOrder ID
    orderLinkIdfalsestringUser customised order ID
    orderFilterfalsestringOrder: active order
    StopOrder: conditional order for Futures and Spot
    tpslOrder: spot TP/SL order
    OcoOrder: spot OCO orders
    BidirectionalTpslOrder: Spot bidirectional TPSL order
    • classic account spot: return Order active order by default
    • Others: all kinds of orders by default
    orderStatusfalsestring
    • Classic spot: not supported
    • UTA2.0, UTA1.0(except inverse): return all closed status orders if not passed
    • UTA1.0(inverse), classic account(linear, inverse): return all status orders if not passed
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    > blockTradeIdstringBlock trade ID
    > symbolstringSymbol name
    > pricestringOrder price
    > qtystringOrder qty
    > sidestringSide. Buy,Sell
    > isLeveragestringWhether to borrow. Unified spot only. 0: false, 1: true. . Classic spot is not supported, always 0
    > positionIdxintegerPosition index. Used to identify positions in different position modes
    > orderStatusstringOrder status
    > createTypestringOrder create type
  • Only for category=linear or inverse
  • Spot, Option do not have this key
  • > cancelTypestringCancel type
    > rejectReasonstringReject reason. Classic spot is not supported
    > avgPricestringAverage filled price
  • UTA: returns "" for those orders without avg price
  • classic account: returns "0" for those orders without avg price, and also for those orders have partilly filled but cancelled at the end
  • > leavesQtystringThe remaining qty not executed. Classic spot is not supported
    > leavesValuestringThe estimated value not executed. Classic spot is not supported
    > cumExecQtystringCumulative executed order qty
    > cumExecValuestringCumulative executed order value. Classic spot is not supported
    > cumExecFeestringCumulative executed trading fee. Classic spot is not supported
    > timeInForcestringTime in force
    > orderTypestringOrder type. Market,Limit. For TP/SL order, it means the order type after triggered
  • Block trade Roll Back, Block trade-Limit: Unique enum values for Unified account block trades
  • > stopOrderTypestringStop order type
    > orderIvstringImplied volatility
    > marketUnitstringThe unit for qty when create Spot market orders for UTA account. baseCoin, quoteCoin
    > triggerPricestringTrigger price. If stopOrderType=TrailingStop, it is activate price. Otherwise, it is trigger price
    > takeProfitstringTake profit price
    > stopLossstringStop loss price
    > tpslModestringTP/SL mode, Full: entire position for TP/SL. Partial: partial position tp/sl. Spot does not have this field, and Option returns always ""
    > ocoTriggerBystringThe trigger type of Spot OCO order.OcoTriggerByUnknown, OcoTriggerByTp, OcoTriggerBySl. Classic spot is not supported
    > tpLimitPricestringThe limit order price when take profit price is triggered
    > slLimitPricestringThe limit order price when stop loss price is triggered
    > tpTriggerBystringThe price type to trigger take profit
    > slTriggerBystringThe price type to trigger stop loss
    > triggerDirectionintegerTrigger direction. 1: rise, 2: fall
    > triggerBystringThe price type of trigger price
    > lastPriceOnCreatedstringLast price when place the order
    > reduceOnlybooleanReduce only. true means reduce position size
    > closeOnTriggerbooleanClose on trigger. What is a close on trigger order?
    > placeTypestringPlace type, option used. iv, price
    > smpTypestringSMP execution type
    > smpGroupintegerSmp group ID. If the UID has no group, it is 0 by default
    > smpOrderIdstringThe counterparty's orderID which triggers this SMP execution
    > createdTimestringOrder created timestamp (ms)
    > updatedTimestringOrder updated timestamp (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/order/history?category=linear&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672221263407
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "14bad3a1-6454-43d8-bcf2-5345896cf74d",
    "orderLinkId": "YLxaWKMiHU",
    "blockTradeId": "",
    "symbol": "BTCUSDT",
    "price": "26864.40",
    "qty": "0.003",
    "side": "Buy",
    "isLeverage": "",
    "positionIdx": 1,
    "orderStatus": "Cancelled",
    "cancelType": "UNKNOWN",
    "rejectReason": "EC_PostOnlyWillTakeLiquidity",
    "avgPrice": "0",
    "leavesQty": "0.000",
    "leavesValue": "0",
    "cumExecQty": "0.000",
    "cumExecValue": "0",
    "cumExecFee": "0",
    "timeInForce": "PostOnly",
    "orderType": "Limit",
    "stopOrderType": "UNKNOWN",
    "orderIv": "",
    "triggerPrice": "0.00",
    "takeProfit": "0.00",
    "stopLoss": "0.00",
    "tpTriggerBy": "UNKNOWN",
    "slTriggerBy": "UNKNOWN",
    "triggerDirection": 0,
    "triggerBy": "UNKNOWN",
    "lastPriceOnCreated": "0.00",
    "reduceOnly": false,
    "closeOnTrigger": false,
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "tpslMode": "",
    "tpLimitPrice": "",
    "slLimitPrice": "",
    "placeType": "",
    "createdTime": "1684476068369",
    "updatedTime": "1684476068372"
    }
    ],
    "nextPageCursor": "page_token%3D39380%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1684766282976
    }
    - + \ No newline at end of file diff --git a/v5/order/spot-borrow-quota.html b/v5/order/spot-borrow-quota.html index 45080947b8..a56c712ec3 100644 --- a/v5/order/spot-borrow-quota.html +++ b/v5/order/spot-borrow-quota.html @@ -4,13 +4,13 @@ Get Borrow Quota (Spot) | Bybit API Documentation - +

    Get Borrow Quota (Spot)

    Query the available balance for Spot trading and Margin trading

    HTTP Request

    GET /v5/order/spot-borrow-check

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
  • UTA2.0, UTA1.0: spot
  • symboltruestringSymbol name
    sidetruestringTransaction side. Buy,Sell

    Response Parameters

    ParameterTypeComments
    symbolstringSymbol name, like BTCUSDT, uppercase only
    sidestringSide
    maxTradeQtystringThe maximum base coin qty can be traded
    • If spot margin trade on and symbol is margin trading pair, it returns available balance + max.borrowable quantity = min(The maximum quantity that a single user can borrow on the platform, The maximum quantity that can be borrowed calculated by IMR MMR of UTA account, The available quantity of the platform's capital pool)
    • Otherwise, it returns actual available balance
    • up to 4 decimals
    maxTradeAmountstringThe maximum quote coin amount can be traded
    • If spot margin trade on and symbol is margin trading pair, it returns available balance + max.borrowable amount = min(The maximum amount that a single user can borrow on the platform, The maximum amount that can be borrowed calculated by IMR MMR of UTA account, The available amount of the platform's capital pool)
    • Otherwise, it returns actual available balance
    • up to 8 decimals
    spotMaxTradeQtystringNo matter your Spot margin switch on or not, it always returns actual qty of base coin you can trade or you have (borrowable qty is not included), up to 4 decimals
    spotMaxTradeAmountstringNo matter your Spot margin switch on or not, it always returns actual amount of quote coin you can trade or you have (borrowable amount is not included), up to 8 decimals
    borrowCoinstringBorrow coin

    Request Example

    GET /v5/order/spot-borrow-check?category=spot&symbol=BTCUSDT&side=Buy HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672228522214
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSDT",
    "maxTradeQty": "6.6065",
    "side": "Buy",
    "spotMaxTradeAmount": "9004.75628594",
    "maxTradeAmount": "218014.01330797",
    "borrowCoin": "USDT",
    "spotMaxTradeQty": "0.2728"
    },
    "retExtInfo": {},
    "time": 1698895841534
    }
    - + \ No newline at end of file diff --git a/v5/otc/bind-uid.html b/v5/otc/bind-uid.html index ade59124b7..576746236b 100644 --- a/v5/otc/bind-uid.html +++ b/v5/otc/bind-uid.html @@ -4,13 +4,13 @@ Bind Or Unbind UID | Bybit API Documentation - +

    Bind Or Unbind UID

    For the institutional loan product, you can bind new UIDs to the risk unit or unbind UID from the risk unit.

    info
    • Risk unit designated UID cannot be unbound
    • The UID pending to bind must be upgraded to UTA Pro.

    HTTP Request

    POST /v5/ins-loan/association-uid

    Request Parameters

    ParameterRequiredTypeComments
    uidtruestringUID
  • Bind
    a) the key used must be from one of uids in the risk unit;
    b) input uid must not have ins loan
  • Unbind
    a) the key used must be from one of uids in the risk unit;
    b) input uid cannot be the same as the uid used to access the API
  • operatetruestring0: bind, 1: unbind

    Response Parameters

    ParameterTypeComments
    uidstringUID
    operatestring0: bind, 1: unbind

    Request Example

    POST /v5/ins-loan/association-uid HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1699257853101
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json
    Content-Length: 43

    {
    "uid": "592324",
    "operate": "0"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "uid": "592324",
    "operate": "0"
    },
    "retExtInfo": {},
    "time": 1699257746135
    }
    - + \ No newline at end of file diff --git a/v5/otc/loan-info.html b/v5/otc/loan-info.html index 1f76427559..aab7a82ae0 100644 --- a/v5/otc/loan-info.html +++ b/v5/otc/loan-info.html @@ -4,13 +4,13 @@ Get Loan Orders | Bybit API Documentation - +

    Get Loan Orders

    Get loan orders information

    tip
    • Get the past 2 years data by default
    • Get up to the past 2 years of data

    HTTP Request

    GET /v5/ins-loan/loan-order

    Request Parameters

    ParameterRequiredTypeComments
    orderIdfalsestringLoan order id. If not passed, then return all orders, sort by loanTime in descend
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size. [1, 100], Default: 10

    Response Parameters

    ParameterTypeComments
    loanInfoarrayObject
    > orderIdstringLoan order ID
    > orderProductIdstringProduct ID
    > parentUidstringThe designated UID that used to bind INS loan product
    > loanTimestringLoan timestamp, in milliseconds
    > loanCoinstringLoan coin
    > loanAmountstringLoan amount
    > unpaidAmountstringUnpaid principal
    > unpaidIntereststringUnpaid interest
    > repaidAmountstringRepaid principal
    > repaidIntereststringRepaid interest
    > interestRatestringDaily interest rate
    > statusstring1:outstanding; 2:paid off
    > leveragestringThe maximum leverage for this loan product
    > supportSpotstringWhether to support spot. 0:false; 1:true
    > supportContractstringWhether to support contract . 0:false; 1:true
    > withdrawLinestringRestrict line for withdrawal
    > transferLinestringRestrict line for transfer
    > spotBuyLinestringRestrict line for SPOT buy
    > spotSellLinestringRestrict line for SPOT sell
    > contractOpenLinestringRestrict line for USDT Perpetual open position
    > deferredLiquidationLinestringLine for deferred liquidation
    > deferredLiquidationTimestringTime for deferred liquidation
    > reserveTokenstringReserve token
    > reserveQuantitystringReserve token qty
    > liquidationLinestringLine for liquidation
    > stopLiquidationLinestringLine for stop liquidation
    > contractLeveragestringThe allowed default leverage for USDT Perpetual
    > transferRatiostringThe transfer ratio for loan funds to transfer from Spot wallet to Contract wallet
    > spotSymbolsarrayThe whitelist of spot trading pairs. If there is no whitelist, then "[]"
    > contractSymbolsarrayThe whitelist of contract trading pairs
    • If supportContract="0", then this is "[]"
    • If there is no whitelist, this is "[]"
    > supportUSDCContractstringWhether to support USDC contract. "0":false; "1":true
    > supportUSDCOptionsstringWhether to support Option. "0":false; "1":true
    > supportMarginTradingstringWhether to support Spot margin trading. "0":false; "1":true
    > USDTPerpetualOpenLinestringRestrict line to open USDT Perpetual position
    > USDCContractOpenLinestringRestrict line to open USDC Contract position
    > USDCOptionsOpenLinestringRestrict line to open Option position
    > USDTPerpetualCloseLinestringRestrict line to trade USDT Perpetual position
    > USDCContractCloseLinestringRestrict line to trade USDC Contract position
    > USDCOptionsCloseLinestringRestrict line to trade Option position
    > USDCContractSymbolsarrayThe whitelist of USDC contract trading pairs
    • If no whitelist symbols, it is [], and you can trade any
    • If supportUSDCContract="0", it is []
    > USDCOptionsSymbolsarrayThe whitelist of Option symbols
    • If no whitelisted, it is [], and you can trade any
    • If supportUSDCOptions="0", it is []
    > marginLeveragestringThe allowable maximum leverage for Spot margin
    > USDTPerpetualLeveragearrayObject
    • If supportContract="0", it is []
    • If no whitelist USDT perp symbols, it returns all trading symbols and leverage by default
    • If there are whitelist symbols, it return those whitelist data
    >> symbolstringSymbol name
    >> leveragestringMaximum leverage
    > USDCContractLeveragearrayObject
    • If supportUSDCContract="0", it is []
    • If no whitelist USDC contract symbols, it returns all trading symbols and leverage by default
    • If there are whitelist symbols, it return those whitelist data
    >> symbolstringSymbol name
    >> leveragestringMaximum leverage

    Request Example

    GET /v5/ins-loan/loan-order HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1678687874060
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "loanInfo": [
    {
    "orderId": "1468005106166530304",
    "orderProductId": "96",
    "parentUid": "1631521",
    "loanTime": "1689735916000",
    "loanCoin": "USDT",
    "loanAmount": "204",
    "unpaidAmount": "52.07924201",
    "unpaidInterest": "0",
    "repaidAmount": "151.92075799",
    "repaidInterest": "0",
    "interestRate": "0.00019178",
    "status": "1",
    "leverage": "4",
    "supportSpot": "1",
    "supportContract": "1",
    "withdrawLine": "",
    "transferLine": "",
    "spotBuyLine": "0.71",
    "spotSellLine": "0.71",
    "contractOpenLine": "0.71",
    "liquidationLine": "0.75",
    "stopLiquidationLine": "0.35000000",
    "contractLeverage": "7",
    "transferRatio": "1",
    "spotSymbols": [],
    "contractSymbols": [],
    "supportUSDCContract": "1",
    "supportUSDCOptions": "1",
    "USDTPerpetualOpenLine": "0.71",
    "USDCContractOpenLine": "0.71",
    "USDCOptionsOpenLine": "0.71",
    "USDTPerpetualCloseLine": "0.71",
    "USDCContractCloseLine": "0.71",
    "USDCOptionsCloseLine": "0.71",
    "USDCContractSymbols": [],
    "USDCOptionsSymbols": [],
    "deferredLiquidationLine":"",
    "deferredLiquidationTime":"",
    "marginLeverage": "4",
    "USDTPerpetualLeverage": [
    {
    "symbol": "SUSHIUSDT",
    "leverage": "7"
    },
    {
    "symbol": "INJUSDT",
    "leverage": "7"
    },
    {
    "symbol": "RDNTUSDT",
    "leverage": "7"
    },
    {
    "symbol": "ZRXUSDT",
    "leverage": "7"
    },
    {
    "symbol": "HIGHUSDT",
    "leverage": "7"
    },
    {
    "symbol": "WAVESUSDT",
    "leverage": "7"
    },
    ...
    {
    "symbol": "ACHUSDT",
    "leverage": "7"
    },
    {
    "symbol": "SUNUSDT",
    "leverage": "7"
    }
    ],
    "USDCContractLeverage": [
    {
    "symbol": "BTCPERP",
    "leverage": "8"
    },
    {
    "symbol": "BTC-Futures",
    "leverage": "8"
    },
    ...
    {
    "symbol": "ETH-Futures",
    "leverage": "8"
    },
    {
    "symbol": "SOLPERP",
    "leverage": "8"
    },
    {
    "symbol": "ETHPERP",
    "leverage": "8"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1689745773187
    }
    - + \ No newline at end of file diff --git a/v5/otc/ltv-convert.html b/v5/otc/ltv-convert.html index adf3dea132..ab547f7ffb 100644 --- a/v5/otc/ltv-convert.html +++ b/v5/otc/ltv-convert.html @@ -4,13 +4,13 @@ Get LTV | Bybit API Documentation - +

    Get LTV

    Get your loan-to-value (LTV) ratio.

    HTTP Request

    GET /v5/ins-loan/ltv-convert

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    ltvInfoarrayObject
    > ltvstringRisk rate
  • ltv is calculated in real-time
  • If you have INS loan, it is highly recommended to query this data per second. The liquidation occurs when it reachs at 0.9 (90%)
  • > rststringRemaining liquidation time (UTC time in seconds). When it is not triggered, it is displayed as an empty string.
    > parentUidstringThe designated Risk Unit Id that used to bind INS loan product
    > subAccountUidsarrayBound user id
    > unpaidAmountstringTotal debt(USDT)
    > unpaidInfoarrayDebt details
    >> tokenstringcoin
    >> unpaidQtystringUnpaid principle
    >> unpaidIntereststringUseless field, please ignore this for now
    > balancestringTotal asset. (margin coins converted to USDT). Please read here to understand the calculation
    > balanceInfoarrayAsset details
    >> tokenstringMargin coin
    >> pricestringMargin coin price
    >> qtystringMargin coin quantity
    >> convertedAmountstringMargin conversion amount

    Request Example

    GET /v5/ins-loan/ltv-convert HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686638165351
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "ltvInfo": [
    {
    "ltv": "0.75",
    "rst": "",
    "parentUid": "xxxxx",
    "subAccountUids": [
    "60568258"
    ],
    "unpaidAmount": "30",
    "unpaidInfo": [
    {
    "token": "USDT",
    "unpaidQty": "30",
    "unpaidInterest": "0"
    }
    ],
    "balance": "40",
    "balanceInfo": [
    {
    "token": "USDT",
    "price": "1",
    "qty": "40",
    "convertedAmount": "40"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686638166323
    }
    - + \ No newline at end of file diff --git a/v5/otc/margin-coin-convert-info.html b/v5/otc/margin-coin-convert-info.html index dd9f4c597d..a81ea2ee2a 100644 --- a/v5/otc/margin-coin-convert-info.html +++ b/v5/otc/margin-coin-convert-info.html @@ -4,13 +4,13 @@ Get Margin Coin Info | Bybit API Documentation - +

    Get Margin Coin Info

    tip
    • This endpoint can be queried without api key and secret, then it returns public margin data
    • If your uid is bound with OTC loan product, then you can get your private margin data by calling the endpoint with api key and secret
    • If your uid is not bound with OTC loan product but api key and secret are also passed, it will return public data only

    HTTP Request

    GET /v5/ins-loan/ensure-tokens-convert

    Request Parameters

    ParameterRequiredTypeComments
    productIdfalsestringProductId. If not passed, then return all product margin coin. For spot, it returns coin that convertRation greater than 0.

    Response Parameters

    ParameterTypeComments
    marginTokenarrayObject
    > productIdstringProduct Id
    > tokenInfoarraySpot margin coin
    >> tokenstringMargin coin
    >> convertRatioListarrayMargin coin convert ratio List
    >>> ladderstringladder
    >>> convertRatiostringMargin coin convert ratio

    Request Example

    GET /v5/ins-loan/ensure-tokens HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "marginToken": [
    {
    "productId": "81",
    "tokenInfo": [
    {
    "token": "USDT",
    "convertRatioList": [
    {
    "ladder": "0-500",
    "convertRatio": "0.95"
    },
    {
    "ladder": "500-1000",
    "convertRatio": "0.9"
    },
    {
    "ladder": "1000-2000",
    "convertRatio": "0.8"
    },
    {
    "ladder": "2000-4000",
    "convertRatio": "0.7"
    },
    {
    "ladder": "4000-99999999999",
    "convertRatio": "0.6"
    }
    ]
    }
    ...
    ]
    },
    {
    "productId": "82",
    "tokenInfo": [
    ...
    {
    "token": "USDT",
    "convertRatioList": [
    {
    "ladder": "0-1000",
    "convertRatio": "0.7"
    },
    {
    "ladder": "1000-2000",
    "convertRatio": "0.65"
    },
    {
    "ladder": "2000-99999999999",
    "convertRatio": "0.6"
    }
    ]
    }
    ]
    },
    {
    "productId": "84",
    "tokenInfo": [
    ...
    {
    "token": "BTC",
    "convertRatioList": [
    {
    "ladder": "0-1000",
    "convertRatio": "1"
    },
    {
    "ladder": "1000-5000",
    "convertRatio": "0.9"
    },
    {
    "ladder": "5000-99999999999",
    "convertRatio": "0.55"
    }
    ]
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1683276016497
    }
    - + \ No newline at end of file diff --git a/v5/otc/margin-product-info.html b/v5/otc/margin-product-info.html index b17a8e2c8a..ca788973bb 100644 --- a/v5/otc/margin-product-info.html +++ b/v5/otc/margin-product-info.html @@ -4,13 +4,13 @@ Get Product Info | Bybit API Documentation - +

    Get Product Info

    tip
    • This endpoint can be queried without api key and secret, then it returns public product data
    • If your uid is bound with OTC loan product, then you can get your private product data by calling the endpoint with api key and secret
    • If your uid is not bound with OTC loan product but api key and secret are also passed, it will return public data only

    HTTP Request

    GET /v5/ins-loan/product-infos

    Request Parameters

    ParameterRequiredTypeComments
    productIdfalsestringProduct Id. If not passed, then return all products info

    Response Parameters

    ParameterTypeComments
    marginProductInfoarrayObject
    > productIdstringProduct Id
    > leveragestringThe maximum leverage for this loan product
    > supportSpotintegerWhether to support Spot. 0:false; 1:true
    > supportContractintegerWhether to support USDT Perpetual. 0:false; 1:true
    > supportMarginTradingintegerWhether to support Spot margin trading. 0:false; 1:true
    > deferredLiquidationLinestringLine for deferred liquidation
    > deferredLiquidationTimestringTime for deferred liquidation
    > withdrawLinestringRestrict line for withdrawal
    > transferLinestringRestrict line for transfer
    > spotBuyLinestringRestrict line for Spot buy
    > spotSellLinestringRestrict line for Spot trading
    > contractOpenLinestringRestrict line for USDT Perpetual open position
    > liquidationLinestringLine for liquidation
    > stopLiquidationLinestringLine for stop liquidation
    > contractLeveragestringThe allowed default leverage for USDT Perpetual
    > transferRatiostringThe transfer ratio for loan funds to transfer from Spot wallet to Contract wallet
    > spotSymbolsarrayThe whitelist of spot trading pairs
    • If supportSpot="0", then it returns "[]"
    • If empty array, then you can trade any symbols
    • If not empty, then you can only trade listed symbols
    > contractSymbolsarrayThe whitelist of contract trading pairs
    • If supportContract="0", then it returns "[]"
    • If empty array, then you can trade any symbols
    • If not empty, then you can only trade listed symbols
    > supportUSDCContractintegerWhether to support USDC contract. '0':false; '1':true
    > supportUSDCOptionsintegerWhether to support Option. '0':false; '1':true
    > USDTPerpetualOpenLinestringRestrict line to open USDT Perpetual position
    > USDCContractOpenLinestringRestrict line to open USDC Contract position
    > USDCOptionsOpenLinestringRestrict line to open Option position
    > USDTPerpetualCloseLinestringRestrict line to trade USDT Perpetual
    > USDCContractCloseLinestringRestrict line to trade USDC Contract
    > USDCOptionsCloseLinestringRestrict line to trade Option
    > USDCContractSymbolsarrayThe whitelist of USDC contract trading pairs
    • If supportContract="0", then it returns "[]"
    • If no whitelist symbols, it is [], and you can trade any
    • If supportUSDCContract="0", it is []
    > USDCOptionsSymbolsarrayThe whitelist of Option symbols
    • If supportContract="0", then it returns "[]"
    • If no whitelisted, it is [], and you can trade any
    • If supportUSDCOptions="0", it is []
    > marginLeveragestringThe allowable maximum leverage for Spot margin trading. If supportMarginTrading=0, then it returns ""
    > USDTPerpetualLeveragearrayObject
    • If supportContract="0", it is []
    • If no whitelist USDT perp symbols, it returns all trading symbols and leverage by default
    • If there are whitelist symbols, it return those whitelist data
    >> symbolstringSymbol name
    >> leveragestringMaximum leverage
    > USDCContractLeveragearrayObject
    • If supportUSDCContract="0", it is []
    • If no whitelist USDC contract symbols, it returns all trading symbols and leverage by default
    • If there are whitelist symbols, it return those whitelist data
    >> symbolstringSymbol name
    >> leveragestringMaximum leverage

    Request Example

    GET /v5/ins-loan/product-infos?productId=91 HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "marginProductInfo": [
    {
    "productId": "91",
    "leverage": "4.00000000",
    "supportSpot": 1,
    "supportContract": 0,
    "withdrawLine": "",
    "transferLine": "",
    "spotBuyLine": "",
    "spotSellLine": "",
    "contractOpenLine": "",
    "liquidationLine": "0.75",
    "stopLiquidationLine": "0.35000000",
    "contractLeverage": "0",
    "transferRatio": "0",
    "spotSymbols": [],
    "contractSymbols": [],
    "supportUSDCContract": 0,
    "supportUSDCOptions": 0,
    "USDTPerpetualOpenLine": "",
    "USDCContractOpenLine": "",
    "USDCOptionsOpenLine": "",
    "USDTPerpetualCloseLine": "",
    "USDCContractCloseLine": "",
    "USDCOptionsCloseLine": "",
    "USDCContractSymbols": [],
    "USDCOptionsSymbols": [],
    "marginLeverage": "0",
    "USDTPerpetualLeverage": [],
    "USDCContractLeverage": [],
    "deferredLiquidationLine":"",
    "deferredLiquidationTime":"",
    }
    ]
    },
    "retExtInfo": {},
    "time": 1689747746332
    }
    - + \ No newline at end of file diff --git a/v5/otc/repay-info.html b/v5/otc/repay-info.html index 6bcf793eb3..b92d6f409e 100644 --- a/v5/otc/repay-info.html +++ b/v5/otc/repay-info.html @@ -4,13 +4,13 @@ Get Repayment Orders | Bybit API Documentation - +

    Get Repayment Orders

    Get a list of your loan repayment orders (orders which repaid the loan).

    tip
    • Get the past 2 years data by default
    • Get up to the past 2 years of data

    HTTP Request

    GET /v5/ins-loan/repaid-history

    Request Parameters

    ParameterRequiredTypeComments
    startTimefalseintegerThe start timestamp (ms)
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size. [1, 100]. Default: 100

    Response Parameters

    ParameterTypeComments
    repayInfoarrayObject
    > repayOrderIdstringRepaid order ID
    > repaidTimestringRepaid timestamp (ms)
    > tokenstringRepaid coin
    > quantitystringRepaid principle
    > intereststringRepaid interest
    > businessTypestringRepaid type. 1:normal repayment; 2:repaid by liquidation
    > statusstring1:success; 2:fail

    Request Example

    GET /v5/ins-loan/repaid-history HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1678687944725
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "repayInfo": [
    {
    "repayOrderId": "8189",
    "repaidTime": "1663126393000",
    "token": "USDT",
    "quantity": "30000",
    "interest": "0",
    "businessType": "1",
    "status": "1"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1669366648366
    }
    - + \ No newline at end of file diff --git a/v5/position.html b/v5/position.html index 3a5a5abda7..ba28c62155 100644 --- a/v5/position.html +++ b/v5/position.html @@ -4,13 +4,13 @@ Get Position Info | Bybit API Documentation - +

    Get Position Info

    Query real-time position data, such as position size, cumulative realizedPNL.

    info

    UTA2.0(inverse)

    1. you can query all holding positions with "/v5/position/list?category=inverse";
    2. Not supported to query multiple symbols in one request

    UTA1.0(inverse) & Classic (inverse)

    1. you can query all holding positions with "/v5/position/list?category=inverse";
    2. symbol parameter is supported to be passed with multiple symbols up to 10, e.g., "symbol=BTCUSD,ETHUSD"

    HTTP Request

    GET /v5/position/list

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse, option
    • Classic account: linear, inverse
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    • If symbol passed, it returns data regardless of having position or not.
    • If symbol=null and settleCoin specified, it returns position size greater than zero.
    baseCoinfalsestringBase coin, uppercase only. option only. Return all option positions if not passed
    settleCoinfalsestringSettle coin
  • linear: either symbol or settleCoin is required. symbol has a higher priority
  • limitfalseintegerLimit for data size per page. [1, 200]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    nextPageCursorstringRefer to the cursor request parameter
    listarrayObject
    > positionIdxintegerPosition idx, used to identify positions in different position modes
    • 0: One-Way Mode
    • 1: Buy side of both side mode
    • 2: Sell side of both side mode
    > riskIdintegerRisk tier ID
    for portfolio margin mode, this field returns 0, which means risk limit rules are invalid
    > riskLimitValuestringRisk limit value
    for portfolio margin mode, this field returns 0, which means risk limit rules are invalid
    > symbolstringSymbol name
    > sidestringPosition side. Buy: long, Sell: short
    • one-way mode: classic & UTA1.0(inverse), an empty position returns None.
    • UTA2.0(linear, inverse) & UTA1.0(linear): either one-way or hedge mode returns an empty string "" for an empty position.
    > sizestringPosition size, always positive
    > avgPricestringAverage entry price
  • For USDC Perp & Futures, it indicates average entry price, and it will not be changed with 8-hour session settlement
  • > positionValuestringPosition value
    > tradeModeintegerTrade mode
    > autoAddMarginintegerWhether to add margin automatically when using isolated margin mode
  • 0: false
  • 1: true
  • > positionStatusStringPosition status. Normal, Liq, Adl
    > leveragestringPosition leverage
    for portfolio margin mode, this field returns "", which means leverage rules are invalid
    > markPricestringMark price
    > liqPricestringPosition liquidation price
    • UTA2.0(isolated margin), UTA1.0(isolated margin), UTA1.0(inverse), Classic account:
      it is the real price for isolated and cross positions, and keeps "" when liqPrice <= minPrice or liqPrice >= maxPrice
    • UTA2.0(Cross margin), UTA1.0(Cross margin):
      it is an estimated price for cross positions(because the unified mode controls the risk rate according to the account), and keeps "" when liqPrice <= minPrice or liqPrice >= maxPrice
    this field is empty for Portfolio Margin Mode, and no liquidation price will be provided
    > bustPricestringBankruptcy price
    > positionIMstringInitial margin
  • Classic & UTA1.0(inverse): ignore this field
  • UTA portfolio margin mode, it returns ""
  • > positionMMstringMaintenance margin
  • Classic & UTA1.0(inverse): ignore this field
  • UTA portfolio margin mode, it returns ""
  • > positionBalancestringPosition margin
  • Classic & UTA1.0(inverse) can refer to this field to get the position initial margin plus position closing fee
  • > takeProfitstringTake profit price
    > stopLossstringStop loss price
    > trailingStopstringTrailing stop (The distance from market price)
    > sessionAvgPricestringUSDC contract session avg price, it is the same figure as avg entry price shown in the web UI
    > deltastringDelta
    > gammastringGamma
    > vegastringVega
    > thetastringTheta
    > unrealisedPnlstringUnrealised PnL
    > curRealisedPnlstringThe realised PnL for the current holding position
    > cumRealisedPnlstringCumulative realised pnl
    • Futures & Perps: it is the all time cumulative realised P&L
    • Option: always "", meaningless
    > adlRankIndicatorintegerAuto-deleverage rank indicator. What is Auto-Deleveraging?
    > createdTimestringTimestamp of the first time a position was created on this symbol (ms)
    > updatedTimestringPosition updated timestamp (ms)
    > seqlongCross sequence, used to associate each fill and each position update
    • Different symbols may have the same seq, please use seq + symbol to check unique
    • Returns "-1" if the symbol has never been traded
    • Returns the seq updated by the last transaction when there are settings like leverage, risk limit
    > isReduceOnlybooleanUseful when Bybit lower the risk limit
    • true: Only allowed to reduce the position. You can consider a series of measures, e.g., lower the risk limit, decrease leverage or reduce the position, add margin, or cancel orders, after these operations, you can call confirm new risk limit endpoint to check if your position can be removed the reduceOnly mark
    • false: There is no restriction, and it means your position is under the risk when the risk limit is systematically adjusted
    • Only meaningful for isolated margin & cross margin of USDT Perp, USDC Perp, USDC Futures, Inverse Perp and Inverse Futures, meaningless for others
    > mmrSysUpdatedTimestringUseful when Bybit lower the risk limit
    • When isReduceOnly=true: the timestamp (ms) when the MMR will be forcibly adjusted by the system
    • When isReduceOnly=false: the timestamp when the MMR had been adjusted by system
    • It returns the timestamp when the system operates, and if you manually operate, there is no timestamp
    • Keeps "" by default, if there was a lower risk limit system adjustment previously, it shows that system operation timestamp
    • Only meaningful for isolated margin & cross margin of USDT Perp, USDC Perp, USDC Futures, Inverse Perp and Inverse Futures, meaningless for others
    > leverageSysUpdatedTimestringUseful when Bybit lower the risk limit
    • When isReduceOnly=true: the timestamp (ms) when the leverage will be forcibly adjusted by the system
    • When isReduceOnly=false: the timestamp when the leverage had been adjusted by system
    • It returns the timestamp when the system operates, and if you manually operate, there is no timestamp
    • Keeps "" by default, if there was a lower risk limit system adjustment previously, it shows that system operation timestamp
    • Only meaningful for isolated margin & cross margin of USDT Perp, USDC Perp, USDC Futures, Inverse Perp and Inverse Futures, meaningless for others
    > tpslModestringDepreciated, always "Full"

    Request Example

    GET /v5/position/list?category=inverse&symbol=BTCUSD HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672280218882
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "positionIdx": 0,
    "riskId": 1,
    "riskLimitValue": "150",
    "symbol": "BTCUSD",
    "side": "Sell",
    "size": "300",
    "avgPrice": "27464.50441675",
    "positionValue": "0.01092319",
    "tradeMode": 0,
    "positionStatus": "Normal",
    "autoAddMargin": 1,
    "adlRankIndicator": 2,
    "leverage": "10",
    "positionBalance": "0.00139186",
    "markPrice": "28224.50",
    "liqPrice": "",
    "bustPrice": "999999.00",
    "positionMM": "0.0000015",
    "positionIM": "0.00010923",
    "tpslMode": "Full",
    "takeProfit": "0.00",
    "stopLoss": "0.00",
    "trailingStop": "0.00",
    "unrealisedPnl": "-0.00029413",
    "curRealisedPnl": "0.00013123",
    "cumRealisedPnl": "-0.00096902",
    "seq": 5723621632,
    "isReduceOnly": false,
    "mmrSysUpdateTime": "",
    "leverageSysUpdatedTime": "",
    "sessionAvgPrice": "",
    "createdTime": "1676538056258",
    "updatedTime": "1697673600012"
    }
    ],
    "nextPageCursor": "",
    "category": "inverse"
    },
    "retExtInfo": {},
    "time": 1697684980172
    }
    - + \ No newline at end of file diff --git a/v5/position/auto-add-margin.html b/v5/position/auto-add-margin.html index 74929785b0..d423df60ce 100644 --- a/v5/position/auto-add-margin.html +++ b/v5/position/auto-add-margin.html @@ -4,13 +4,13 @@ Set Auto Add Margin | Bybit API Documentation - +

    Set Auto Add Margin

    Turn on/off auto-add-margin for isolated margin position

    HTTP Request

    POST /v5/position/set-auto-add-margin

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear (USDT Perps, USDC Contract)
    • Classic account: linear (USDT Perps)
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    autoAddMargintrueintegerTurn on/off. 0: off. 1: on
    positionIdxfalseintegerUsed to identify positions in different position modes. For hedge mode position, this param is required
    • 0: one-way mode
    • 1: hedge-mode Buy side
    • 2: hedge-mode Sell side

    Response Parameters

    None


    Request Example

    POST /v5/position/set-auto-add-margin HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675255134857
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "autoAddmargin": 1,
    "positionIdx": null
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1675255135069
    }
    - + \ No newline at end of file diff --git a/v5/position/close-pnl.html b/v5/position/close-pnl.html index 5738ad7196..0ff48bdc9f 100644 --- a/v5/position/close-pnl.html +++ b/v5/position/close-pnl.html @@ -4,13 +4,13 @@ Get Closed PnL | Bybit API Documentation - +

    Get Closed PnL

    Query user's closed profit and loss records

    info
    • Classic account: the results are sorted by updatedTime in descending order.
    • UTA2.0, UTA1.0(except inverse): the results are sorted by createdTime in descending order, this will be constant with classic account afterwards
    • UTA2.0, UTA1.0(except inverse): support getting the past 730 days historical data

    HTTP Request

    GET /v5/position/closed-pnl

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear(USDT Perps, USDC Contract), inverse
    • Classic account: linear(USDT Perps), inverse
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 100]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > orderIdstringOrder ID
    > sidestringBuy, Sell
    > qtystringOrder qty
    > orderPricestringOrder price
    > orderTypestringOrder type. Market,Limit
    > execTypestringExec type
    Trade, BustTrade
    SessionSettlePnL
    Settle, MovePosition
    > closedSizestringClosed size
    > cumEntryValuestringCumulated Position value
    > avgEntryPricestringAverage entry price
    > cumExitValuestringCumulated exit position value
    > avgExitPricestringAverage exit price
    > closedPnlstringClosed PnL
    > fillCountstringThe number of fills in a single order
    > leveragestringleverage
    > createdTimestringThe created time (ms)
    > updatedTimestringThe updated time (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/position/closed-pnl?category=linear&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672284128523
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "5a373bfe-188d-4913-9c81-d57ab5be8068%3A1672214887231423699%2C5a373bfe-188d-4913-9c81-d57ab5be8068%3A1672214887231423699",
    "category": "linear",
    "list": [
    {
    "symbol": "ETHPERP",
    "orderType": "Market",
    "leverage": "3",
    "updatedTime": "1672214887236",
    "side": "Sell",
    "orderId": "5a373bfe-188d-4913-9c81-d57ab5be8068",
    "closedPnl": "-47.4065323",
    "avgEntryPrice": "1194.97516667",
    "qty": "3",
    "cumEntryValue": "3584.9255",
    "createdTime": "1672214887231423699",
    "orderPrice": "1122.95",
    "closedSize": "3",
    "avgExitPrice": "1180.59833333",
    "execType": "Trade",
    "fillCount": "4",
    "cumExitValue": "3541.795"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672284129153
    }
    - + \ No newline at end of file diff --git a/v5/position/confirm-mmr.html b/v5/position/confirm-mmr.html index c7d2862457..e9c9088313 100644 --- a/v5/position/confirm-mmr.html +++ b/v5/position/confirm-mmr.html @@ -4,7 +4,7 @@ Confirm New Risk Limit | Bybit API Documentation - + @@ -13,7 +13,7 @@ the Get Position Info interface). After the user actively adjusts the risk level, this interface is called to try to calculate the adjusted risk level, and if it passes (retCode=0), the system will remove the position reduceOnly mark. You are recommended to call Get Position Info to check isReduceOnly field.

    HTTP Request

    POST /v5/position/confirm-pending-mmr

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • Unified account: linear, inverse
    • Classic account: linear, inverse
    symboltruestringSymbol name

    Response Parameters

    None

    Request Example

    POST /v5/position/confirm-pending-mmr HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1698051123673
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 53

    {
    "category": "linear",
    "symbol": "BTCUSDT"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1698051124588
    }
    - + \ No newline at end of file diff --git a/v5/position/cross-isolate.html b/v5/position/cross-isolate.html index 0afc505c50..dd2c5d0ed3 100644 --- a/v5/position/cross-isolate.html +++ b/v5/position/cross-isolate.html @@ -4,13 +4,13 @@ Switch Cross/Isolated Margin | Bybit API Documentation - +

    Switch Cross/Isolated Margin

    Select cross margin mode or isolated margin mode per symbol level

    HTTP Request

    POST /v5/position/switch-isolated

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0: not supported
    • UTA1.0: inverse
    • Classic: linear(USDT Preps), inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    tradeModetrueinteger0: cross margin. 1: isolated margin
    buyLeveragetruestringThe value must be equal to sellLeverage value
    sellLeveragetruestringThe value must be equal to buyLeverage value

    Response Parameters

    None

    Request Example

    POST /v5/position/switch-isolated HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675248447965
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 121

    {
    "category": "linear",
    "symbol": "ETHUSDT",
    "tradeMode": 1,
    "buyLeverage": "10",
    "sellLeverage": "10"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1675248433635
    }
    - + \ No newline at end of file diff --git a/v5/position/leverage.html b/v5/position/leverage.html index ed06485da6..479ce75e15 100644 --- a/v5/position/leverage.html +++ b/v5/position/leverage.html @@ -3,14 +3,16 @@ -Set Leverage | Bybit API Documentation - +Set Leverage | Bybit API Documentation +
    -

    Set Leverage

    HTTP Request

    POST /v5/position/set-leverage

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse
    • Classic account: linear, inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    buyLeveragetruestring[1, max leverage of corresponding risk limit]
    • one-way mode: buyLeverage must be the same as sellLeverage
    • Hedge mode:
      Classic account & UTA (isolated margin): buyLeverage and sellLeverage can be different;
      UTA (cross margin): buyLeverage must be the same as sellLeverage
    sellLeveragetruestring[1, max leverage of corresponding risk limit]

    Response Parameters

    None

    Request Example

    POST /v5/position/set-leverage HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672281605082
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "buyLeverage": "6",
    "sellLeverage": "6"

    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672281607343
    }
    - +

    Set Leverage

    info

    According to the risk limit, leverage affects the maximum position value that can be opened, +that is, the greater the leverage, the smaller the maximum position value that can be opened, +and vice versa. Learn more

    HTTP Request

    POST /v5/position/set-leverage

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse
    • Classic account: linear, inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    buyLeveragetruestring[1, max leverage]
    • one-way mode: buyLeverage must be the same as sellLeverage
    • Hedge mode:
      Classic account & UTA (isolated margin): buyLeverage and sellLeverage can be different;
      UTA (cross margin): buyLeverage must be the same as sellLeverage
    sellLeveragetruestring[1, max leverage]

    Response Parameters

    None

    Request Example

    POST /v5/position/set-leverage HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672281605082
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "buyLeverage": "6",
    "sellLeverage": "6"

    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672281607343
    }
    + \ No newline at end of file diff --git a/v5/position/manual-add-margin.html b/v5/position/manual-add-margin.html index 0b23597586..a828eea5e4 100644 --- a/v5/position/manual-add-margin.html +++ b/v5/position/manual-add-margin.html @@ -4,13 +4,13 @@ Add Or Reduce Margin | Bybit API Documentation - +

    Add Or Reduce Margin

    Manually add or reduce margin for isolated margin position

    HTTP Request

    POST /v5/position/add-margin

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse
    • Classic account: linear, inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    margintruestringAdd or reduce. To add, then 10; To reduce, then -10. Support up to 4 decimal
    positionIdxfalseintegerUsed to identify positions in different position modes. For hedge mode position, this param is required
    • 0: one-way mode
    • 1: hedge-mode Buy side
    • 2: hedge-mode Sell side

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    symbolstringSymbol name
    positionIdxintegerPosition idx, used to identify positions in different position modes
    • 0: One-Way Mode
    • 1: Buy side of both side mode
    • 2: Sell side of both side mode
    riskIdintegerRisk limit ID
    riskLimitValuestringRisk limit value
    sizestringPosition size
    avgPricestringAverage entry price
    liqPricestringLiquidation price
    bustPricestringBankruptcy price
    markPricestringLast mark price
    positionValuestringPosition value
    leveragestringPosition leverage
    autoAddMarginintegerWhether to add margin automatically. 0: false, 1: true
    positionStatusStringPosition status. Normal, Liq, Adl
    positionIMstringInitial margin
    positionMMstringMaintenance margin
    takeProfitstringTake profit price
    stopLossstringStop loss price
    trailingStopstringTrailing stop (The distance from market price)
    unrealisedPnlstringUnrealised PnL
    cumRealisedPnlstringCumulative realised pnl
    createdTimestringTimestamp of the first time a position was created on this symbol (ms)
    updatedTimestringPosition updated timestamp (ms)

    Request Example

    POST /v5/position/add-margin HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1684234363665
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 97

    {
    "category": "inverse",
    "symbol": "ETHUSD",
    "margin": "0.01",
    "positionIdx": 0
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "inverse",
    "symbol": "ETHUSD",
    "positionIdx": 0,
    "riskId": 11,
    "riskLimitValue": "500",
    "size": "200",
    "positionValue": "0.11033265",
    "avgPrice": "1812.70004844",
    "liqPrice": "1550.80",
    "bustPrice": "1544.20",
    "markPrice": "1812.90",
    "leverage": "12",
    "autoAddMargin": 0,
    "positionStatus": "Normal",
    "positionIM": "0.01926611",
    "positionMM": "0",
    "unrealisedPnl": "0.00001217",
    "cumRealisedPnl": "-0.04618929",
    "stopLoss": "0.00",
    "takeProfit": "0.00",
    "trailingStop": "0.00",
    "createdTime": "1672737740039",
    "updatedTime": "1684234363788"
    },
    "retExtInfo": {},
    "time": 1684234363789
    }
    - + \ No newline at end of file diff --git a/v5/position/move-position-history.html b/v5/position/move-position-history.html index 0bef486dd8..8b59ccdf46 100644 --- a/v5/position/move-position-history.html +++ b/v5/position/move-position-history.html @@ -4,13 +4,13 @@ Get Move Position History | Bybit API Documentation - +

    Get Move Position History

    You can query moved position data by master UID api key

    info

    UTA2.0 inverse contract move position is not supported for now

    HTTP Request

    GET /v5/position/move-history

    Request Parameters

    ParameterRequiredTypeComments
    categoryfalsestringProduct type
  • UTA2.0, UTA1.0: linear, spot, option
  • symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    startTimefalsenumberThe order creation start timestamp. The interval is 7 days
    endTimefalsenumberThe order creation end timestamp. The interval is 7 days
    statusfalsestringOrder status. Processing, Filled, Rejected
    blockTradeIdfalsestringBlock trade ID
    limitfalsestringLimit for data size per page. [1, 200]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > blockTradeIdstringBlock trade ID
    > categorystringProduct type. linear, spot, option
    > orderIdstringBybit order ID
    > userIdintegerUser ID
    > symbolstringSymbol name
    > sidestringOrder side from taker's perspective. Buy, Sell
    > pricestringOrder price
    > qtystringOrder quantity
    > execFeestringThe fee for taker or maker in the base currency paid to the Exchange executing the block trade
    > statusstringBlock trade status. Processing, Filled, Rejected
    > execIdstringThe unique trade ID from the exchange
    > resultCodeintegerThe result code of the order. 0 means success
    > resultMessagestringThe error message. "" when resultCode=0
    > createdAtnumberThe timestamp (ms) when the order is created
    > updatedAtnumberThe timestamp (ms) when the order is updated
    > rejectPartystring
    • "" means the status=Filled
    • Taker, Maker when status=Rejected
    • bybit means error is occurred on the Bybit side
    nextPageCursorstringUsed to get the next page data

    Request Example

    GET /v5/position/move-history?limit=1&status=Filled HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1697523024244
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "blockTradeId": "1a82e5801af74b67b7ad71ba00a7391a",
    "category": "option",
    "orderId": "8e09c5b8-f651-4cec-968d-52764cac11ec",
    "userId": 592324,
    "symbol": "BTC-14OCT23-27000-C",
    "side": "Buy",
    "price": "6",
    "qty": "0.99",
    "execFee": "0",
    "status": "Filled",
    "execId": "677ad344-6bb4-4ace-baca-128fcffcaca7",
    "resultCode": 0,
    "resultMessage": "",
    "createdAt": 1697186522865,
    "updatedAt": 1697186523289,
    "rejectParty": ""
    }
    ],
    "nextPageCursor": "page_token%3D1241742%26"
    },
    "retExtInfo": {},
    "time": 1697523024386
    }
    - + \ No newline at end of file diff --git a/v5/position/move-position.html b/v5/position/move-position.html index c532594300..068b4b5f07 100644 --- a/v5/position/move-position.html +++ b/v5/position/move-position.html @@ -4,13 +4,13 @@ Move Position | Bybit API Documentation - +

    Move Position

    You can move positions between sub-master, master-sub, or sub-sub UIDs when necessary

    tip

    UTA2.0 inverse contract move position is not supported for now

    info
    • The endpoint can only be called by master UID api key
    • UIDs must be the same master-sub account relationship
    • The trades generated from move-position endpoint will not be displayed in the Recent Trade (Rest API & Websocket)
    • There is no trading fee
    • fromUid and toUid both should be Unified trading accounts, and they need to be one-way mode when moving the positions
    • Please note that once executed, you will get execType=MovePosition entry from Get Trade History, Get Closed Pnl, and stream from Execution.

    HTTP Request

    POST /v5/position/move-positions

    Request Parameters

    ParameterRequiredTypeComments
    fromUidtruestringFrom UID
    • Must be UTA
    • Must be in one-way mode for Futures
    toUidtruestringTo UID
    • Must be UTA
    • Must be in one-way mode for Futures
    listtruearrayObject. Up to 25 legs per request
    > categorytruestringProduct type
  • UTA2.0, UTA1.0: linear, spot, option
  • > symboltruestringSymbol name, like BTCUSDT, uppercase only
    > pricetruestringTrade price
    • linear: the price needs to be between [95% of mark price, 105% of mark price]
    • spot&option: the price needs to follow the price rule from Instruments Info
    > sidetruestringTrading side of fromUid
    • For example, fromUid has a long position, when side=Sell, then once executed, the position of fromUid will be reduced or open a short position depending on qty input
    > qtytruestringExecuted qty
    • The value must satisfy the qty rule from Instruments Info, in particular, category=linear is able to input maxOrderQty * 5

    Response Parameters

    ParameterTypeComments
    retCodeintegerResult code. 0 means request is successfully accepted
    retMsgstringResult message
    resultmapObject
    > blockTradeIdstringBlock trade ID
    > statusstringStatus. Processing, Rejected
    > rejectPartystring
    • "" means initial validation is passed, please check the order status via Get Move Position History
    • Taker, Maker when status=Rejected
    • bybit means error is occurred on the Bybit side

    Request Example

    POST /v5/position/move-positions HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1697447928051
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "fromUid": "100307601",
    "toUid": "592324",
    "list": [
    {
    "category": "spot",
    "symbol": "BTCUSDT",
    "price": "100",
    "side": "Sell",
    "qty": "0.01"
    }
    ]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "blockTradeId": "e9bb926c95f54cf1ba3e315a58b8597b",
    "status": "Processing",
    "rejectParty": ""
    }
    }
    - + \ No newline at end of file diff --git a/v5/position/position-mode.html b/v5/position/position-mode.html index a362116c2a..ccc3e61c17 100644 --- a/v5/position/position-mode.html +++ b/v5/position/position-mode.html @@ -4,13 +4,13 @@ Switch Position Mode | Bybit API Documentation - +

    Switch Position Mode

    It supports to switch the position mode for USDT perpetual and Inverse futures. If you are in one-way Mode, you can only open one position on Buy or Sell side. If you are in hedge mode, you can open both Buy and Sell side positions simultaneously.

    tip
    • Priority for configuration to take effect: symbol > coin > system default
    • System default: one-way mode
    • If the request is by coin (settleCoin), then all symbols based on this setteCoin that do not have position and open order will be batch switched, and new listed symbol based on this settleCoin will be the same mode you set.

    Example

    System defaultcoinsymbol
    Initial settingone-waynever configurednever configured
    ResultAll USDT perpetual trading pairs are one-way mode
    Change 1--Set BTCUSDT to hedge-mode
    ResultBTCUSDT becomes hedge-mode, and all other symbols keep one-way mode
    list new symbol ETHUSDTETHUSDT is one-way mode (inherit default rules)
    Change 2-Set USDT to hedge-mode-
    ResultAll current trading pairs with no positions or orders are hedge-mode, and no adjustments will be made for trading pairs with positions and orders
    list new symbol SOLUSDTSOLUSDT is hedge-mode (Inherit coin rule)
    Change 3--Set ASXUSDT to one-mode
    Take effect resultAXSUSDT is one-way mode, other trading pairs have no change
    list new symbol BITUSDTBITUSDT is hedge-mode (Inherit coin rule)

    The position-switch ability for each contract

    Classic accountUTA1.0UTA2.0
    USDT perpetualSupport one-way & hedge-modeSupport one-way & hedge-modeSupport one-way & hedge-mode
    USDC perpetualSupport one-way onlySupport one-way onlySupport one-way only
    USDC futuresSupport one-way onlySupport one-way onlySupport one-way only
    Inverse perpetualSupport one-way onlySupport one-way onlySupport one-way only
    Inverse futuresSupport one-way & hedge-modeSupport one-way & hedge-modeSupport one-way only

    HTTP Request

    POST /v5/position/switch-mode

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0: linear, USDT Perp
    • UTA1.0: linear, USDT Perp; inverse, Inverse Futures
    • Classic: linear, USDT Perp; inverse, Inverse Futures
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only. Either symbol or coin is required. symbol has a higher priority
    coinfalsestringCoin, uppercase only
    modetrueintegerPosition mode. 0: Merged Single. 3: Both Sides

    Response Parameters

    None

    Request Example

    POST /v5/position/switch-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675249072041
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 87

    {
    "category":"inverse",
    "symbol":"BTCUSDH23",
    "coin": null,
    "mode": 0
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1675249072814
    }
    - + \ No newline at end of file diff --git a/v5/position/set-risk-limit.html b/v5/position/set-risk-limit.html index 521962a052..1ad3348d1d 100644 --- a/v5/position/set-risk-limit.html +++ b/v5/position/set-risk-limit.html @@ -4,13 +4,13 @@ Set Risk Limit | Bybit API Documentation - +

    Set Risk Limit

    Since bybit has launched auto risk limit on 12 March 2024, please click here to learn more, so it will not take effect even you set it successfully.

    HTTP Request

    POST /v5/position/set-risk-limit

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • Unified account: linear, inverse
    • Classic account: linear, inverse. Please note that category is not involved with business logic
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    riskIdtrueintegerRisk limit ID
    positionIdxfalseintegerUsed to identify positions in different position modes. For hedge mode, it is required
    • 0: one-way mode
    • 1: hedge-mode Buy side
    • 2: hedge-mode Sell side

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    riskIdintegerRisk limit ID
    riskLimitValuestringThe position limit value corresponding to this risk ID

    Request Example

    POST /v5/position/set-risk-limit HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672282269774
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "riskId": 4,
    "positionIdx": null
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "riskId": 4,
    "riskLimitValue": "8000000",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1672282270571
    }
    - + \ No newline at end of file diff --git a/v5/position/tpsl-mode.html b/v5/position/tpsl-mode.html index 56ad68801e..00814c7211 100644 --- a/v5/position/tpsl-mode.html +++ b/v5/position/tpsl-mode.html @@ -4,7 +4,7 @@ Set TP/SL Mode | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Set TP/SL Mode

    tip

    To some extent, this endpoint is depreciated because now tpsl is based on order level. This API was used for position level change before.

    However, you still can use it to set an implicit tpsl mode for a certain symbol because when you don't pass "tpslMode" in the place order or trading stop request, system will get the tpslMode by the default setting.

    Set TP/SL mode to Full or Partial

    info

    For partial TP/SL mode, you can set the TP/SL size smaller than position size.

    HTTP Request

    POST /v5/position/set-tpsl-mode

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • Unified account: linear, inverse
    • Classic account: linear, inverse. Please note that category is not involved with business logic
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    tpSlModetruestringTP/SL mode. Full,Partial

    Response Parameters

    ParameterTypeComments
    tpSlModestringFull,Partial

    Request Example

    POST /v5/position/set-tpsl-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672279325035
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "symbol": "XRPUSDT",
    "category": "linear",
    "tpSlMode": "Full"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "tpSlMode": "Full"
    },
    "retExtInfo": {},
    "time": 1672279322666
    }
    - + \ No newline at end of file diff --git a/v5/position/trading-stop.html b/v5/position/trading-stop.html index 8c31cfc674..9e4ed82fcb 100644 --- a/v5/position/trading-stop.html +++ b/v5/position/trading-stop.html @@ -4,7 +4,7 @@ Set Trading Stop | Bybit API Documentation - + @@ -13,7 +13,7 @@ on existing TP/SL orders on the holding position, it will cause the paired tp/sl orders to lose binding relationship. This means that when calling the cancel API through the tp/sl order ID, it will only cancel the corresponding one-sided take profit or stop loss order ID.

    HTTP Request

    POST /v5/position/trading-stop

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type
    • UTA2.0, UTA1.0: linear, inverse
    • Classic account: linear, inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    takeProfitfalsestringCannot be less than 0, 0 means cancel TP
    stopLossfalsestringCannot be less than 0, 0 means cancel SL
    trailingStopfalsestringTrailing stop by price distance. Cannot be less than 0, 0 means cancel TS
    tpTriggerByfalsestringTake profit trigger price type
    slTriggerByfalsestringStop loss trigger price type
    activePricefalsestringTrailing stop trigger price. Trailing stop will be triggered when this price is reached only
    tpslModetruestringTP/SL mode
  • Full: entire position TP/SL
  • Partial: partial position TP/SL
  • tpSizefalsestringTake profit size
    valid for TP/SL partial mode, note: the value of tpSize and slSize must equal
    slSizefalsestringStop loss size
    valid for TP/SL partial mode, note: the value of tpSize and slSize must equal
    tpLimitPricefalsestringThe limit order price when take profit price is triggered. Only works when tpslMode=Partial and tpOrderType=Limit
    slLimitPricefalsestringThe limit order price when stop loss price is triggered. Only works when tpslMode=Partial and slOrderType=Limit
    tpOrderTypefalsestringThe order type when take profit is triggered. Market(default), Limit
    For tpslMode=Full, it only supports tpOrderType="Market"
    slOrderTypefalsestringThe order type when stop loss is triggered. Market(default), Limit
    For tpslMode=Full, it only supports slOrderType="Market"
    positionIdxtrueintegerUsed to identify positions in different position modes.
    • 0: one-way mode
    • 1: hedge-mode Buy side
    • 2: hedge-mode Sell side

    Response Parameters

    None


    Request Example

    POST /v5/position/trading-stop HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672283124270
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category":"linear",
    "symbol": "XRPUSDT",
    "takeProfit": "0.6",
    "stopLoss": "0.2",
    "tpTriggerBy": "MarkPrice",
    "slTriggerBy": "IndexPrice",
    "tpslMode": "Partial",
    "tpOrderType": "Limit",
    "slOrderType": "Limit",
    "tpSize": "50",
    "slSize": "50",
    "tpLimitPrice": "0.57",
    "slLimitPrice": "0.21",
    "positionIdx": 0
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672283125359
    }
    - + \ No newline at end of file diff --git a/v5/pre-upgrade/close-pnl.html b/v5/pre-upgrade/close-pnl.html index 04dd15e353..cc7e2bb774 100644 --- a/v5/pre-upgrade/close-pnl.html +++ b/v5/pre-upgrade/close-pnl.html @@ -4,7 +4,7 @@ Get Pre-upgrade Closed PnL | Bybit API Documentation - + @@ -13,7 +13,7 @@ By category=linear, you can query USDT Perps data occurred during classic account
    By category=inverse, you can query Inverse Contract data occurred during classic account or UTA1.0

  • UTA1.0:
    By category=linear, you can query USDT Perps data occurred during classic account

  • HTTP Request

    GET /v5/pre-upgrade/position/closed-pnl

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type linear, inverse
    symboltruestringSymbol name, like BTCUSDT, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 100]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > orderIdstringOrder ID
    > sidestringBuy, Side
    > qtystringOrder qty
    > orderPricestringOrder price
    > orderTypestringOrder type. Market,Limit
    > execTypestringExec type. Trade, BustTrade, SessionSettlePnL, Settle
    > closedSizestringClosed size
    > cumEntryValuestringCumulated Position value
    > avgEntryPricestringAverage entry price
    > cumExitValuestringCumulated exit position value
    > avgExitPricestringAverage exit price
    > closedPnlstringClosed PnL
    > fillCountstringThe number of fills in a single order
    > leveragestringleverage
    > createdTimestringThe created time (ms)
    > updatedTimestringThe updated time (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/pre-upgrade/position/closed-pnl?category=linear&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682580911998
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "BTCUSDT",
    "orderId": "67836246-460e-4c52-a009-af0c3e1d12bc",
    "side": "Sell",
    "qty": "0.200",
    "orderPrice": "27203.40",
    "orderType": "Market",
    "execType": "Trade",
    "closedSize": "0.200",
    "cumEntryValue": "5588.88",
    "avgEntryPrice": "27944.40",
    "cumExitValue": "5726.4252",
    "avgExitPrice": "28632.13",
    "closedPnl": "204.25510011",
    "fillCount": "22",
    "leverage": "10",
    "createdTime": "1682487465732",
    "updatedTime": "1682487465732"
    }
    ],
    "category": "linear",
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1682580912259
    }
    - + \ No newline at end of file diff --git a/v5/pre-upgrade/delivery.html b/v5/pre-upgrade/delivery.html index 237af0ef32..ba2c0720be 100644 --- a/v5/pre-upgrade/delivery.html +++ b/v5/pre-upgrade/delivery.html @@ -4,7 +4,7 @@ Get Pre-upgrade Delivery Record | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Get Pre-upgrade Delivery Record

    Query delivery records of Options before you upgraded the account to a Unified account, sorted by deliveryTime in descending order

    • UTA2.0:
      By category=option, you can query Options delivery data occurred during classic account

    • UTA1.0:
      By category=option, you can query Options delivery data occurred during classic account

    info

    Supports the recent 6 months Options delivery data. Please download older data via GUI

    HTTP Request

    GET /v5/pre-upgrade/asset/delivery-record

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type option
    symbolfalsestringSymbol name, uppercase only
    expDatefalsestringExpiry date. 25MAR22. Default: return all
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Used for pagination

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > deliveryTimenumberDelivery time (ms)
    > symbolstringSymbol name
    > sidestringBuy,Sell
    > positionstringExecuted size
    > deliveryPricestringDelivery price
    > strikestringExercise price
    > feestringTrading fee
    > deliveryRplstringRealized PnL of the delivery
    nextPageCursorstringCursor. Used for pagination

    Request Example

    GET /v5/pre-upgrade/asset/delivery-record?category=option HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686809005774
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "21%3A0%2C21%3A0",
    "category": "option",
    "list": [
    {
    "symbol": "ETH-14JUN23-1750-C",
    "side": "Buy",
    "deliveryTime": 1686729604507,
    "strike": "1750",
    "fee": "0",
    "position": "0.5",
    "deliveryPrice": "1740.25036667",
    "deliveryRpl": "0.175"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686796328492
    }
    - + \ No newline at end of file diff --git a/v5/pre-upgrade/execution.html b/v5/pre-upgrade/execution.html index 7b31a7120d..4b9110e159 100644 --- a/v5/pre-upgrade/execution.html +++ b/v5/pre-upgrade/execution.html @@ -4,7 +4,7 @@ Get Pre-upgrade Trade History | Bybit API Documentation - + @@ -17,7 +17,7 @@ By category=linear, you can query USDT Perps, USDC Perps data occurred during classic account
    By category=spot, you can query Spot data occurred during classic account
    By category=option, you can query Options data occurred during classic account

    info

    USDC Perpeual & Option support the recent 6 months data. Please download older data via GUI

    HTTP Request

    GET /v5/pre-upgrade/execution/list

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type linear, inverse, option, spot
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    orderIdfalsestringOrder ID
    orderLinkIdfalsestringUser customised order ID
    baseCoinfalsestringBase coin, uppercase only. Used for option
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    execTypefalsestringExecution type
    limitfalseintegerLimit for data size per page. [1, 100]. Default: 50
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > orderIdstringOrder ID
    > orderLinkIdstringUser customized order ID
    > sidestringSide. Buy,Sell
    > orderPricestringOrder price
    > orderQtystringOrder qty
    > leavesQtystringThe remaining qty not executed
    > orderTypestringOrder type. Market,Limit
    > stopOrderTypestringStop order type. If the order is not stop order, any type is not returned
    > execFeestringExecuted trading fee
    > execIdstringExecution ID
    > execPricestringExecution price
    > execQtystringExecution qty
    > execTypestringExecuted type
    > execValuestringExecuted order value
    > execTimestringExecuted timestamp(ms)
    > isMakerbooleanIs maker order. true: maker, false: taker
    > feeRatestringTrading fee rate
    > tradeIvstringImplied volatility
    > markIvstringImplied volatility of mark price
    > markPricestringThe mark price of the symbol when executing
    > indexPricestringThe index price of the symbol when executing
    > underlyingPricestringThe underlying price of the symbol when executing
    > blockTradeIdstringParadigm block trade ID
    > closedSizestringClosed position size
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/pre-upgrade/execution/list?category=linear&limit=1&execType=Funding&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682580752432
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "BTCUSDT",
    "orderId": "1682553600-BTCUSDT-592334-Sell",
    "orderLinkId": "",
    "side": "Sell",
    "orderPrice": "0.00",
    "orderQty": "0.000",
    "leavesQty": "0.000",
    "orderType": "UNKNOWN",
    "stopOrderType": "UNKNOWN",
    "execFee": "0.6364003",
    "execId": "11f1c4ed-ff20-4d73-acb7-96e43a917f25",
    "execPrice": "28399.90",
    "execQty": "0.011",
    "execType": "Funding",
    "execValue": "312.3989",
    "execTime": "1682553600000",
    "isMaker": false,
    "feeRate": "0.00203714",
    "tradeIv": "",
    "markIv": "",
    "markPrice": "28399.90",
    "indexPrice": "",
    "underlyingPrice": "",
    "blockTradeId": "",
    "closedSize": "0.000"
    }
    ],
    "nextPageCursor": "page_token%3D96184191%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1682580752717
    }
    - + \ No newline at end of file diff --git a/v5/pre-upgrade/order-list.html b/v5/pre-upgrade/order-list.html index eaff9a27b4..1637cc4c37 100644 --- a/v5/pre-upgrade/order-list.html +++ b/v5/pre-upgrade/order-list.html @@ -4,7 +4,7 @@ Get Pre-upgrade Order History | Bybit API Documentation - + @@ -17,7 +17,7 @@ By category=linear, you can query USDT Perps, USDC Perps data occurred during classic account
    By category=spot, you can query Spot data occurred during classic account
    By category=option, you can query Options data occurred during classic account

    info
    • can get all status in 7 days
    • can only get filled orders beyond 7 days
    • USDC Perpeual & Option support the recent 6 months data. Please download older data via GUI

    HTTP Request

    GET /v5/pre-upgrade/order/history

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type linear, inverse, option, spot
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only.
    • If not passed, return settleCoin=USDT by default
    • To get USDC perp, please pass symbol
    baseCoinfalsestringBase coin, uppercase only. Used for option query
    orderIdfalsestringOrder ID
    orderLinkIdfalsestringUser customised order ID
    orderFilterfalsestringOrder: active order, StopOrder: conditional order
    orderStatusfalsestringOrder status. Not supported for spot category
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime must be passed together or both are not passed
    • endTime - startTime <= 7 days
    • If both are not passed, it returns recent 7 days by default
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    > blockTradeIdstringBlock trade ID
    > symbolstringSymbol name
    > pricestringOrder price
    > qtystringOrder qty
    > sidestringSide. Buy,Sell
    > isLeveragestringUseless field for those orders before upgraded
    > positionIdxintegerPosition index. Used to identify positions in different position modes
    > orderStatusstringOrder status
    > cancelTypestringCancel type
    > rejectReasonstringReject reason
    > avgPricestringAverage filled price. If unfilled, it is "", and also for those orders have partilly filled but cancelled at the end
    > leavesQtystringThe remaining qty not executed
    > leavesValuestringThe estimated value not executed
    > cumExecQtystringCumulative executed order qty
    > cumExecValuestringCumulative executed order value
    > cumExecFeestringCumulative executed trading fee
    > timeInForcestringTime in force
    > orderTypestringOrder type. Market,Limit
    > stopOrderTypestringStop order type
    > orderIvstringImplied volatility
    > triggerPricestringTrigger price. If stopOrderType=TrailingStop, it is activate price. Otherwise, it is trigger price
    > takeProfitstringTake profit price
    > stopLossstringStop loss price
    > tpTriggerBystringThe price type to trigger take profit
    > slTriggerBystringThe price type to trigger stop loss
    > triggerDirectionintegerTrigger direction. 1: rise, 2: fall
    > triggerBystringThe price type of trigger price
    > lastPriceOnCreatedstringLast price when place the order
    > reduceOnlybooleanReduce only. true means reduce position size
    > closeOnTriggerbooleanClose on trigger. What is a close on trigger order?
    > placeTypestringPlace type, option used. iv, price
    > smpTypestringSMP execution type
    > smpGroupintegerSmp group ID. If the UID has no group, it is 0 by default
    > smpOrderIdstringThe counterparty's orderID which triggers this SMP execution
    > createdTimestringOrder created timestamp (ms)
    > updatedTimestringOrder updated timestamp (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/pre-upgrade/order/history?category=linear&limit=1&orderStatus=Filled HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682576940304
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "67836246-460e-4c52-a009-af0c3e1d12bc",
    "orderLinkId": "",
    "blockTradeId": "",
    "symbol": "BTCUSDT",
    "price": "27203.40",
    "qty": "0.200",
    "side": "Sell",
    "isLeverage": "",
    "positionIdx": 0,
    "orderStatus": "Filled",
    "cancelType": "UNKNOWN",
    "rejectReason": "EC_NoError",
    "avgPrice": "28632.126000",
    "leavesQty": "0.000",
    "leavesValue": "0",
    "cumExecQty": "0.200",
    "cumExecValue": "5726.4252",
    "cumExecFee": "3.43585512",
    "timeInForce": "IOC",
    "orderType": "Market",
    "stopOrderType": "UNKNOWN",
    "orderIv": "",
    "triggerPrice": "0.00",
    "takeProfit": "0.00",
    "stopLoss": "0.00",
    "tpTriggerBy": "UNKNOWN",
    "slTriggerBy": "UNKNOWN",
    "triggerDirection": 0,
    "triggerBy": "UNKNOWN",
    "lastPriceOnCreated": "0.00",
    "reduceOnly": true,
    "closeOnTrigger": true,
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "createdTime": "1682487465732",
    "updatedTime": "1682487465735",
    "placeType": ""
    }
    ],
    "nextPageCursor": "page_token%3D69406%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1682576940540
    }
    - + \ No newline at end of file diff --git a/v5/pre-upgrade/settlement.html b/v5/pre-upgrade/settlement.html index 4579867fd2..5f1bb4a559 100644 --- a/v5/pre-upgrade/settlement.html +++ b/v5/pre-upgrade/settlement.html @@ -4,7 +4,7 @@ Get Pre-upgrade USDC Session Settlement | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Get Pre-upgrade USDC Session Settlement

    Query session settlement records of USDC perpetual before you upgrade the account to Unified account.

    • UTA2.0:
      By category=option, you can query USDC Perps settlement data occurred during classic account

    • UTA1.0:
      By category=option, you can query USDC Perps settlement data occurred during classic account

    info

    USDC Perpeual support the recent 6 months data. Please download older data via GUI

    HTTP Request

    GET /v5/pre-upgrade/asset/settlement-record

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type linear
    symbolfalsestringSymbol name, like BTCUSDT, uppercase only
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Used for pagination

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > sidestringBuy,Sell
    > sizestringPosition size
    > sessionAvgPricestringSettlement price
    > markPricestringMark price
    > realisedPnlstringRealised PnL
    > createdTimestringCreated time (ms)
    nextPageCursorstringCursor. Used for pagination

    Request Example

    GET /v5/pre-upgrade/asset/settlement-record?category=linear&symbol=ETHPERP&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686809850982
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "25%3A0%2C25%3A0",
    "category": "linear",
    "list": [
    {
    "realisedPnl": "45.76",
    "symbol": "ETHPERP",
    "side": "Sell",
    "markPrice": "1668.44",
    "size": "-0.5",
    "createdTime": "1686787200000",
    "sessionAvgPrice": "1668.41"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686809851749
    }
    - + \ No newline at end of file diff --git a/v5/pre-upgrade/transaction-log.html b/v5/pre-upgrade/transaction-log.html index 5baf2400e3..78a9162d40 100644 --- a/v5/pre-upgrade/transaction-log.html +++ b/v5/pre-upgrade/transaction-log.html @@ -4,7 +4,7 @@ Get Pre-upgrade Transaction Log | Bybit API Documentation - + @@ -14,7 +14,7 @@ By category=option, you can query Options transaction logs occurred during classic account

  • UTA1.0:
    By category=linear, you can query USDC Perps transaction logs occurred during classic account By category=option, you can query Options transaction logs occurred during classic account

  • You can get USDC Perpetual, Option records.

    info

    USDC Perpeual & Option support the recent 6 months data. Please download older data via GUI

    HTTP Request

    GET /v5/pre-upgrade/account/transaction-log

    Request Parameters

    ParameterRequiredTypeComments
    categorytruestringProduct type linear, option
    baseCoinfalsestringBaseCoin, uppercase only. e.g., BTC of BTCPERP
    typefalsestringTypes of transaction logs
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 7 days by default
    • Only startTime is passed, return range between startTime and startTime+7 days
    • Only endTime is passed, return range between endTime-7 days and endTime
    • If both are passed, the rule is endTime - startTime <= 7 days
    endTimefalseintegerThe end timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Used for pagination

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > symbolstringSymbol name
    > categorystringProduct type
    > sidestringSide. Buy,Sell,None
    > transactionTimestringTransaction timestamp (ms)
    > typestringType
    > qtystringQuantity
    > sizestringSize
    > currencystringUSDC、USDT、BTC、ETH
    > tradePricestringTrade price
    > fundingstringFunding fee
    • Positive value means receiving funding fee
    • Negative value means deducting funding fee
    > feestringTrading fee
    • Positive fee value means expense
    • Negative fee value means rebates
    > cashFlowstringCash flow
    > changestringChange
    > cashBalancestringCash balance
    > feeRatestring
    • When type=TRADE, then it is trading fee rate
    • When type=SETTLEMENT, it means funding fee rate. For side=Buy, feeRate=market fee rate; For side=Sell, feeRate= - market fee rate
    > bonusChangestringThe change of bonus
    > tradeIdstringTrade ID
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    nextPageCursorstringCursor. Used for pagination

    Request Example

    GET /v5/pre-upgrade/account/transaction-log?category=option HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686808288265
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "21%3A0%2C21%3A0",
    "list": [
    {
    "symbol": "ETH-14JUN23-1750-C",
    "side": "Buy",
    "funding": "",
    "orderLinkId": "",
    "orderId": "",
    "fee": "0",
    "change": "0",
    "cashFlow": "0",
    "transactionTime": "1686729604507",
    "type": "DELIVERY",
    "feeRate": "0",
    "bonusChange": "",
    "size": "0",
    "qty": "0.5",
    "cashBalance": "1001.1438885",
    "currency": "USDC",
    "category": "option",
    "tradePrice": "1740.25036667",
    "tradeId": ""
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686809006792
    }
    - + \ No newline at end of file diff --git a/v5/rate-limit.html b/v5/rate-limit.html index b848a9460c..5e8c039101 100644 --- a/v5/rate-limit.html +++ b/v5/rate-limit.html @@ -4,7 +4,7 @@ Rate Limit | Bybit API Documentation - + @@ -24,7 +24,7 @@ the part that does not exceed the limit will succeed. For example, in the 1 second, the remaining limit is 5, but a batch request containing 8 orders is placed at this time, then the first 5 orders will be successfully placed, and the 6-8th orders will report an error exceeding the limit, and these orders will fail.

    Classic account & UTAUTA Pro
    Level\ProductFuturesOptionSpotFuturesOptionSpot
    Default10/s10/s20/s10/s10/s20/s
    VIP 120/s20/s25/s20/s20/s25/s
    VIP 240/s40/s30/s40/s40/s30/s
    VIP 360/s60/s40/s60/s60/s40/s
    VIP 460/s60/s40/s60/s60/s40/s
    VIP 560/s60/s40/s60/s60/s40/s
    VIP Supreme60/s60/s40/s60/s60/s40/s
    PRO1100/s100/s50/s150/s150/s150/s
    PRO2150/s150/s75/s200/s200/s200/s
    PRO3200/s200/s100/s250/s250/s250/s
    PRO4200/s200/s100/s300/s300/s300/s
    PRO5200/s200/s100/s300/s300/s300/s
    PRO6200/s200/s100/s300/s300/s300/s

    How to increase API Limit

    Please contact your client manager or email to institutional_services@bybit.com with the following information. We will reply within 1-4 working days:

    1. Your name and your company details
    2. Your Bybit UID or registered email, and the assets you are trading
    3. General description of your trading strategy and reasons for higher rate limits
    4. Screenshot of previous monthly trading volume (maker/taker) on other platforms
    5. Optional: your order history in CSV format
    - + \ No newline at end of file diff --git a/v5/smp.html b/v5/smp.html index 7f4c1ba32a..ef5bed0308 100644 --- a/v5/smp.html +++ b/v5/smp.html @@ -4,7 +4,7 @@ Self Match Prevention | Bybit API Documentation - + @@ -19,7 +19,7 @@ pre-existing orders to avoid an unexpected execution.

    1. The SMP Trade Group has a higher priority on SMP execution, so an individual UID is only taken into account when there is no SMP Trade Group on either side.

    2. Once the order is standing in the orderbook, its SMP flag doesn't matter any more. The system always follows the tag on the latter order.

    Examples:
    1st of Jan: UID1 joins SMP Trade Group A, and places Order1;
    2nd of Jan: UID1 is removed from SMP Trade Group A, but Order1 is still active and "New"

    • case1: If UID1 joined SMP Trade Group B, and placed Order2, if Order2 meets Order1, it will be executed since they belong to two different groups.
    • case2: If UID1 did not join any other groups after being removed from SMP Trade Group A, and placed Order2, if Order2 meets Order1, the SMP will be triggered because UID1 did not have a group when it placed Order2, so SMP was triggered at the UID level (the same UID1).

    How to manage my UIDs & SMP Trade Group?

    You can contact your institutional business manager or email Bybit via: institutional_services@bybit.com

    Supported OpenAPI Versions and Product Lines

    Product linesOpenAPI version supportedComments
    SpotV3 (normal account)
    V5 (unified & normal account)
    ContractContract V3 (normal account): USDT perpetual / Inverse perpetual & futures
    V5 (unified account): USDT perpetual / Inverse perpetual & futures / USDC perpetual & futures
    V5 (normal account): USDT perpetual / Inverse perpetual & futures
    OptionV5 (unified account)V1 has a default SMP at UID level
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/account-info.html b/v5/spot-margin-normal/account-info.html index 1d2d592ce9..437927a963 100644 --- a/v5/spot-margin-normal/account-info.html +++ b/v5/spot-margin-normal/account-info.html @@ -4,13 +4,13 @@ Get Loan Account Info | Bybit API Documentation - +

    Get Loan Account Info

    Covers: Margin trade (Classic Account)

    HTTP Request

    GET /v5/spot-cross-margin-trade/account

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    acctBalanceSumstringTotal equity (BTC)
    debtBalanceSumstringTotal liability (BTC)
    loanAccountListarrayObject
    > freestringAvailable balance
    > intereststringOutstanding interest
    > loanstringOutstanding principle
    > remainAmountstringRemaining debt = interest + loan
    > lockedstringLocked amount
    > tokenIdstringCoin name
    > totalstringTotal
    riskRatestringRisk rate
    statusintegerLoan account status
    • 1: normal
    • 2: withdrawal/transfer restricted
    • 3: liquidation alert triggered
    • 4: liquidated
    switchStatusinteger0: margin trade off, 1: margin trade on

    Request Example

    GET /v5/spot-cross-margin-trade/account HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677751305868
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "acctBalanceSum": "0.455189592150138021",
    "debtBalanceSum": "0",
    "loanAccountList": [
    {
    "free": "0.01444",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "BTC",
    "total": "0.01444"
    },
    {
    "free": "0.21147048",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "ETH",
    "total": "0.21147048"
    },
    {
    "free": "7963.58978991849",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "USDT",
    "total": "7963.58978991849"
    },
    {
    "free": "1380.28832",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "USDC",
    "total": "1380.28832"
    }
    ],
    "riskRate": "0",
    "status": 1,
    "switchStatus": 1
    },
    "retExtInfo": {},
    "time": 1677751306287
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/borrow-order.html b/v5/spot-margin-normal/borrow-order.html index 9e474be545..3e01cdb0c7 100644 --- a/v5/spot-margin-normal/borrow-order.html +++ b/v5/spot-margin-normal/borrow-order.html @@ -4,13 +4,13 @@ Get Borrow Order Detail | Bybit API Documentation - +

    Get Borrow Order Detail

    Covers: Margin trade (Classic Account)

    HTTP Request

    GET /v5/spot-cross-margin-trade/orders

    Request Parameters

    ParameterRequiredTypeComments
    startTimefalselongThe start timestamp (ms)
    endTimefalselongThe end timestamp (ms)
    coinfalsestringCoin name
    statusfalseintegerStatus
    • 0(default):get all kinds of status
    • 1:uncleared
    • 2:cleared
    limitfalseintegerLimit for data size per page. [1, 500]. Default: 500

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > accountIdstringAccount ID
    > coinstringCoin name
    > createdTimenumberBorrow order created timestamp (ms)
    > idstringBorrow order ID
    > interestAmountstringTotal interest
    > interestBalancestringOutstanding interest
    > loanAmountstringPrincipal amount
    > loanBalancestringOutstanding principal
    > remainAmountstringRemaining debt = interestBalance + loanBalance
    > statusintegerStatus 1:uncleared, 2:cleared
    > typeintegerOrder Type 1: manual loan, 2: auto loan

    Request Example

    GET /v5/spot-cross-margin-trade/orders?coin=ETH&limit=1&status=2 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677754328650
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "accountId": "592335",
    "coin": "ETH",
    "createdTime": 1677751839000,
    "id": "21005",
    "interestAmount": "0.0001",
    "interestBalance": "0",
    "loanAmount": "10",
    "loanBalance": "0",
    "remainAmount": "0",
    "status": 2,
    "type": 1
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677754329096
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/borrow.html b/v5/spot-margin-normal/borrow.html index 75d082bc30..47df6309aa 100644 --- a/v5/spot-margin-normal/borrow.html +++ b/v5/spot-margin-normal/borrow.html @@ -4,13 +4,13 @@ Borrow | Bybit API Documentation - +

    Borrow

    Covers: Margin trade (Classic Account)

    HTTP Request

    POST /v5/spot-cross-margin-trade/loan

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name
    qtytruestringAmount to borrow

    Response Parameters

    ParameterTypeComments
    transactIdstringBorrow transaction ID

    Request Example

    POST /v5/spot-cross-margin-trade/loan HTTP/1.1
    Host: api-testnet.bybit.com
    Content-Type: application/json
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677751838628
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Length: 38

    {
    "coin": "ETH",
    "qty": "10"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "transactId": "21005"
    },
    "retExtInfo": {},
    "time": 1677751839688
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/borrowable-data.html b/v5/spot-margin-normal/borrowable-data.html index 01bc31b0c0..68f717ae91 100644 --- a/v5/spot-margin-normal/borrowable-data.html +++ b/v5/spot-margin-normal/borrowable-data.html @@ -4,13 +4,13 @@ Get Borrowable Coin Info | Bybit API Documentation - +

    Get Borrowable Coin Info

    info

    Do not need authentication

    HTTP Request

    GET /v5/spot-cross-margin-trade/borrow-token

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin name

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > coinstringCoin name
    > borrowingPrecisionintegerAccuracy of loan amount
    > repaymentPrecisionintegerAccuracy of repayment amount

    Request Example

    GET /v5/spot-cross-margin-trade/borrow-token?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "borrowingPrecision": 5,
    "coin": "ETH",
    "repaymentPrecision": 4
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677750685331
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/interest-quota.html b/v5/spot-margin-normal/interest-quota.html index fba7407397..8f31fe7cde 100644 --- a/v5/spot-margin-normal/interest-quota.html +++ b/v5/spot-margin-normal/interest-quota.html @@ -4,13 +4,13 @@ Get Interest & Quota | Bybit API Documentation - +

    Get Interest & Quota

    Covers: Margin trade (Classic Account)

    HTTP Request

    GET /v5/spot-cross-margin-trade/loan-info

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name

    Response Parameters

    ParameterTypeComments
    coinstringCoin name
    interestRatestringDaily interest rate
    loanAbleAmountstringThe estimated amount can be loaned
    maxLoanAmountstringThe fixed loanable amount per user on platform

    Request Example

    GET /v5/spot-cross-margin-trade/loan-info?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677750928871
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "coin": "ETH",
    "interestRate": "0.000054835",
    "loanAbleAmount": "19.220442066850037795",
    "maxLoanAmount": "300"
    },
    "retExtInfo": {},
    "time": 1677750929290
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/margin-data.html b/v5/spot-margin-normal/margin-data.html index 7233d171ba..a4ce43361e 100644 --- a/v5/spot-margin-normal/margin-data.html +++ b/v5/spot-margin-normal/margin-data.html @@ -4,13 +4,13 @@ Get Margin Coin Info | Bybit API Documentation - +

    Get Margin Coin Info

    info

    Do not need authentication

    HTTP Request

    GET /v5/spot-cross-margin-trade/pledge-token

    Request Parameters

    ParameterRequiredTypeComments
    coinfalsestringCoin name

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > coinstringCoin name
    > conversionRatestringConvert ratio
    > liquidationOrderintegerLiquidation order

    Request Example

    GET /v5/spot-cross-margin-trade/pledge-token?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "coin": "ETH",
    "conversionRate": "0.95",
    "liquidationOrder": 2
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677750397414
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/repay-order.html b/v5/spot-margin-normal/repay-order.html index b02c70dcee..58ccf01576 100644 --- a/v5/spot-margin-normal/repay-order.html +++ b/v5/spot-margin-normal/repay-order.html @@ -4,13 +4,13 @@ Get Repayment Order Detail | Bybit API Documentation - +

    Get Repayment Order Detail

    Covers: Margin trade (Classic Account)

    HTTP Request

    GET /v5/spot-cross-margin-trade/repay-history

    Request Parameters

    ParameterRequiredTypeComments
    startTimefalselongThe start timestamp (ms)
    endTimefalselongThe end timestamp (ms)
    coinfalsestringCoin name
    limitfalseintegerLimit for data size per page. [1, 500], Default: 500

    Response Parameters

    ParameterTypeComments
    listarrayObject
    > accountIdstringAccount ID
    > coinstringCoin name
    > repaidAmountstringRepaid amount
    > repayIdstringRepay ID
    > repayMarginOrderIdstringRepay margin order ID
    > repayTimestringRepay timestamp (ms)
    > transactIdsarrayObject
    >> repaidIntereststringInterest repaid
    >> repaidPrincipalstringPrincipal repaid
    >> repaidSerialNumberstringRepayment No. (Borrowing Order)
    >> transactIdstringBorrowing transaction ID

    Request Example

    GET /v5/spot-cross-margin-trade/repay-history?coin=ETH&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1677755884678
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "accountId": "592335",
    "coin": "ETH",
    "repaidAmount": "10.0001",
    "repayId": "19070",
    "repayMarginOrderId": "1367476828218072576",
    "repayTime": "1677751941000",
    "transactIds": [
    {
    "repaidAmount": "10.0001",
    "repaidInterest": "0.0001",
    "repaidPrincipal": "10",
    "repaidSerialNumber": "1367475973544746496",
    "transactId": "21005"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677755885169
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/repay.html b/v5/spot-margin-normal/repay.html index 36e99ea5cd..d070e28246 100644 --- a/v5/spot-margin-normal/repay.html +++ b/v5/spot-margin-normal/repay.html @@ -4,13 +4,13 @@ Repay | Bybit API Documentation - +

    Repay

    Covers: Margin trade (Classic Account)

    HTTP Request

    POST /v5/spot-cross-margin-trade/repay

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringCoin name
    qtyfalsestringAmount to repay
    • qty is required when completeRepayment=0
    • qty is invalid when completeRepayment=1
    completeRepaymentfalseintegerWhether to pay off all debts. 0(default): false, 1: true

    Response Parameters

    ParameterTypeComments
    repayIdstringRepayment transaction ID

    Request Example

    POST /v5/spot-cross-margin-trade/repay HTTP/1.1
    Host: api-testnet.bybit.com
    Content-Type: application/json
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677751944347
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Length: 66

    {
    "coin": "ETH",
    "qty": null,
    "completeRepayment": 1
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "repayId": "19070"
    },
    "retExtInfo": {},
    "time": 1677751941219
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/switch-mode.html b/v5/spot-margin-normal/switch-mode.html index 1774b861cb..9f1a61402a 100644 --- a/v5/spot-margin-normal/switch-mode.html +++ b/v5/spot-margin-normal/switch-mode.html @@ -4,13 +4,13 @@ Toggle Margin Trade | Bybit API Documentation - +

    Toggle Margin Trade

    Turn on / off spot margin trade

    Covers: Margin trade (Classic Account)

    HTTP Request

    POST /v5/spot-cross-margin-trade/switch

    Request Parameters

    ParameterRequiredTypeComments
    switchtrueinteger1: on, 0: off

    Response Parameters

    ParameterTypeComments
    switchStatusintegerMargin trade status. 1: on, 0: off

    Request Example

    POST /v5/spot-cross-margin-trade/switch HTTP/1.1
    Host: api-testnet.bybit.com
    Content-Type: application/json
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677747804512
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Length: 19

    {
    "switch": 0
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "switchStatus": 0
    },
    "retExtInfo": {},
    "time": 1677747804974
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-normal/vip-margin.html b/v5/spot-margin-normal/vip-margin.html index 9eab8d73cb..e90453f50a 100644 --- a/v5/spot-margin-normal/vip-margin.html +++ b/v5/spot-margin-normal/vip-margin.html @@ -4,13 +4,13 @@ Get VIP Margin Data | Bybit API Documentation - +

    Get VIP Margin Data

    This margin data is for Classic account in particular.

    info

    Do not need authentication

    HTTP Request

    GET /v5/spot-cross-margin-trade/data

    Request Parameters

    ParameterRequiredTypeComments
    vipLevelfalsestringVip level
    currencyfalsestringCoin name

    Response Parameters

    ParameterTypeComments
    vipCoinListarrayObject
    > listarrayObject
    >> borrowablebooleanWhether it is allowed to be borrowed
    >> collateralRatiostringCollateral ratio
    >> currencystringCoin name
    >> hourlyBorrowRatestringBorrow interest rate per hour
    >> liquidationOrderstringLiquidation order
    >> marginCollateralbooleanWhether it can be used as a margin collateral currency
    >> maxBorrowingAmountstringMax borrow amount
    > vipLevelstringVip level

    Request Example

    GET /v5/spot-cross-margin-trade/data?vipLevel=No VIP&currency=BTC HTTP/1.1
    Host: api.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "borrowable": true,
    "collateralRatio": "0.95",
    "currency": "BTC",
    "hourlyBorrowRate": "0.000003964522",
    "liquidationOrder": "2",
    "marginCollateral": true,
    "maxBorrowingAmount": "5"
    }
    ],
    "vipLevel": "No VIP"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1692071381663
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-uta/historical-interest.html b/v5/spot-margin-uta/historical-interest.html index b453a61147..178047f640 100644 --- a/v5/spot-margin-uta/historical-interest.html +++ b/v5/spot-margin-uta/historical-interest.html @@ -4,13 +4,13 @@ Get Historical Interest Rate | Bybit API Documentation - +

    Get Historical Interest Rate

    You can query up to six months borrowing interest rate of Margin trading.

    info
    • Need authentication, the api key needs "Spot" permission
    • Only supports Unified account
    • It is public data, i.e., different users get the same historical interest rate for the same VIP/Pro

    HTTP Request

    GET /v5/spot-margin-trade/interest-rate-history

    Request Parameters

    ParameterRequiredTypeComments
    currencytruestringCoin name, uppercase only
    vipLevelfalsestringVip level
  • Please note that "No VIP" should be passed like "No%20VIP" in the query string
  • If not passed, it returns your account's VIP level data
  • startTimefalseintegerThe start timestamp (ms)
  • Either both time parameters are passed or neither is passed.
  • Returns 7 days data when both are not passed
  • Supports up to 30 days interval when both are passed
  • endTimefalseintegerThe end timestamp (ms)

    Response Parameters

    ParameterTypeComments
    listarray<object>
    > timestamplongtimestamp
    > currencystringcoin name
    > hourlyBorrowRatestringHourly borrowing rate
    > vipLevelstringVIP/Pro level

    Request Example

    GET /v5/spot-margin-trade/interest-rate-history?currency=USDC&vipLevel=No%20VIP&startTime=1721458800000&endTime=1721469600000 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1721891663064
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "timestamp": 1721469600000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    },
    {
    "timestamp": 1721466000000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    },
    {
    "timestamp": 1721462400000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    },
    {
    "timestamp": 1721458800000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    }
    ]
    },
    "retExtInfo": "{}",
    "time": 1721899048991
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-uta/set-leverage.html b/v5/spot-margin-uta/set-leverage.html index 14eed16ea4..4c0f5128b6 100644 --- a/v5/spot-margin-uta/set-leverage.html +++ b/v5/spot-margin-uta/set-leverage.html @@ -4,13 +4,13 @@ Set Leverage | Bybit API Documentation - +

    Set Leverage

    Set the user's maximum leverage in spot cross margin

    Covers: Margin trade (Unified Account)

    caution

    Your account needs to activate spot margin first; i.e., you must have finished the quiz on web / app.

    HTTP Request

    POST /v5/spot-margin-trade/set-leverage

    Request Parameters

    ParameterRequiredTypeComments
    leveragetruestringLeverage. [2, 10].

    Response Parameters

    None

    Request Example

    POST /v5/spot-margin-trade/set-leverage HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672299806626
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "leverage": "4"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672710944282
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-uta/status.html b/v5/spot-margin-uta/status.html index fac1048f18..f11a85706f 100644 --- a/v5/spot-margin-uta/status.html +++ b/v5/spot-margin-uta/status.html @@ -4,13 +4,13 @@ Get Status And Leverage | Bybit API Documentation - +

    Get Status And Leverage

    Query the Spot margin status and leverage of Unified account

    Covers: Margin trade (Unified Account)

    HTTP Request

    GET /v5/spot-margin-trade/state

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    spotLeveragestringSpot margin leverage. Returns "" if the margin trade is turned off
    spotMarginModestringSpot margin status. 1: on, 0: off
    effectiveLeveragestringactual leverage ratio. Precision retains 2 decimal places, truncate downwards

    Request Example

    GET /v5/spot-margin-trade/state HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1692696840996
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "spotLeverage": "10",
    "spotMarginMode": "1",
    "effectiveLeverage": "1"
    },
    "retExtInfo": {},
    "time": 1692696841231
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-uta/switch-mode.html b/v5/spot-margin-uta/switch-mode.html index 99ffa30aa8..581f325793 100644 --- a/v5/spot-margin-uta/switch-mode.html +++ b/v5/spot-margin-uta/switch-mode.html @@ -4,13 +4,13 @@ Toggle Margin Trade | Bybit API Documentation - +

    Toggle Margin Trade

    Turn on / off spot margin trade

    Covers: Margin trade (Unified Account)

    caution

    Your account needs to activate spot margin first; i.e., you must have finished the quiz on web / app.

    HTTP Request

    POST /v5/spot-margin-trade/switch-mode

    Request Parameters

    ParameterRequiredTypeComments
    spotMarginModetruestring1: on, 0: off

    Response Parameters

    ParameterTypeComments
    spotMarginModestringSpot margin status. 1: on, 0: off

    Request Example

    POST /v5/spot-margin-trade/switch-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672297794480
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "spotMarginMode": "0"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "spotMarginMode": "0"
    },
    "retExtInfo": {},
    "time": 1672297795542
    }
    - + \ No newline at end of file diff --git a/v5/spot-margin-uta/vip-margin.html b/v5/spot-margin-uta/vip-margin.html index 84980fa4ba..0d5b0dfe6f 100644 --- a/v5/spot-margin-uta/vip-margin.html +++ b/v5/spot-margin-uta/vip-margin.html @@ -4,13 +4,13 @@ Get VIP Margin Data | Bybit API Documentation - +

    Get VIP Margin Data

    This margin data is for Unified account in particular.

    info

    Do not need authentication

    HTTP Request

    GET /v5/spot-margin-trade/data

    Request Parameters

    ParameterRequiredTypeComments
    vipLevelfalsestringVip level
    currencyfalsestringCoin name, uppercase only

    Response Parameters

    ParameterTypeComments
    vipCoinListarrayObject
    > listarrayObject
    >> borrowablebooleanWhether it is allowed to be borrowed
    >> collateralRatiostringCollateral ratio
    >> currencystringCoin name
    >> hourlyBorrowRatestringBorrow interest rate per hour
    >> liquidationOrderstringLiquidation order
    >> marginCollateralbooleanWhether it can be used as a margin collateral currency
    >> maxBorrowingAmountstringMax borrow amount
    > vipLevelstringVip level

    Request Example

    GET /v5/spot-margin-trade/data?vipLevel=No VIP&currency=BTC HTTP/1.1
    Host: api-testnet.bybit.com

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "borrowable": true,
    "collateralRatio": "0.95",
    "currency": "BTC",
    "hourlyBorrowRate": "0.0000015021220000",
    "liquidationOrder": "11",
    "marginCollateral": true,
    "maxBorrowingAmount": "3"
    }
    ],
    "vipLevel": "No VIP"
    }
    ]
    }
    }
    - + \ No newline at end of file diff --git a/v5/user/affiliate-info.html b/v5/user/affiliate-info.html index a6b907b782..5f4227f83e 100644 --- a/v5/user/affiliate-info.html +++ b/v5/user/affiliate-info.html @@ -4,14 +4,14 @@ Get Affiliate User Info | Bybit API Documentation - +

    Get Affiliate User Info

    To use this endpoint, you should have an affiliate account and only tick "affiliate" permission while creating the API key.
    Affiliate site: https://affiliates.bybit.com

    tip
    • Use master UID only
    • The api key can only have "Affiliate" permission
    • The transaction volume and deposit amount are the total amount of the user done on Bybit, and have nothing to do with commission settlement. Any transaction volume data related to commission settlement is subject to the Affiliate Portal.

    HTTP Request

    GET /v5/user/aff-customer-info

    Request Parameters

    ParameterRequiredTypeComments
    uidtruestringThe master account UID of affiliate's client

    Response Parameters

    ParameterTypeComments
    uidstringUID
    vipLevelstringVIP level
    takerVol30DaystringTaker volume in last 30 days (USDT). All volume related attributes below includes Derivatives, Option, Spot volume
    makerVol30DaystringMaker volume in last 30 days (USDT)
    tradeVol30DaystringTotal trading volume in last 30 days (USDT)
    depositAmount30DaystringDeposit amount in last 30 days (USDT)
    takerVol365DaystringTaker volume in the past year (USDT)
    makerVol365DaystringMaker volume in the past year (USDT)
    tradeVol365DaystringTotal trading volume in the past year (USDT)
    depositAmount365DaystringTotal deposit amount in the past year (USDT)
    totalWalletBalancestringWallet balance range
    • 1: less than 100 USDT value
    • 2: [100, 250) USDT value
    • 3: [250, 500) USDT value
    • 4: greater than 500 USDT value
    depositUpdateTimestringThe update date time (UTC) of deposit data
    volUpdateTimestringThe update date of volume data time (UTC)
    KycLevelintegerKYC level. 1, 2, 0

    Request Example

    GET /v5/user/aff-customer-info?uid=1513500 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: uQ61dcX0lSe7ygD2EA
    X-BAPI-TIMESTAMP: 1685596324209
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: xxxxxx
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "uid": "1513500",
    "takerVol30Day": "10",
    "makerVol30Day": "20",
    "tradeVol30Day": "30",
    "depositAmount30Day": "90",
    "takerVol365Day": "100",
    "makerVol365Day": "500",
    "tradeVol365Day": "600",
    "depositAmount365Day": "1300",
    "totalWalletBalance": "4",
    "depositUpdateTime": "2023-06-01 05:12:04",
    "vipLevel": "99",
    "volUpdateTime": "2023-06-02 00:00:00",
    "KycLevel": 1
    },
    "retExtInfo": {},
    "time": 1685596324508
    }
    - + \ No newline at end of file diff --git a/v5/user/apikey-info.html b/v5/user/apikey-info.html index 6d4dfb240b..91f0bcd070 100644 --- a/v5/user/apikey-info.html +++ b/v5/user/apikey-info.html @@ -4,13 +4,13 @@ Get API Key Information | Bybit API Documentation - +

    Get API Key Information

    Get the information of the api key. Use the api key pending to be checked to call the endpoint. Both master and sub user's api key are applicable.

    tip

    Any permission can access this endpoint.

    HTTP Request

    GET /v5/user/query-api

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    idstringUnique ID. Internal use
    notestringThe remark
    apiKeystringApi key
    readOnlyinteger0:Read and Write. 1:Read only
    secretstringAlways ""
    permissionsObjectThe types of permission
    > ContractTradearrayPermission of contract trade Order, Position
    > SpotarrayPermission of spot SpotTrade
    > WalletarrayPermission of wallet AccountTransfer, SubMemberTransfer(master account), SubMemberTransferList(sub account), Withdraw(master account)
    > OptionsarrayPermission of USDC Contract. It supports trade option and USDC perpetual. OptionsTrade
    > Derivativesarray
  • Unified account has this permission by default DerivativesTrade
  • For classic account, it is always []
  • > CopyTradingarrayAlways [] as Master Trader account just use ContractTrade to start CopyTrading
    > BlockTradearrayPermission of blocktrade. Not applicable to subaccount, always []
    > ExchangearrayPermission of exchange ExchangeHistory
    > NFTarrayPermission of NFT NFTQueryProductList. Not applicable to sub account, always []
    > AffiliatearrayPermission of Affiliate. Only affiliate can have this permission, otherwise always []
    ipsarrayIP bound
    typeintegerThe type of api key. 1:personal, 2:connected to the third-party app
    deadlineDayintegerThe remaining valid days of api key. Only for those api key with no IP bound or the password has been changed
    expiredAtdatetimeThe expiry day of the api key. Only for those api key with no IP bound or the password has been changed
    createdAtdatetimeThe create day of the api key
    unifiedintegerDepreciated field
    utaintegerWhether the account to which the account upgrade to unified trade account. 0:regular account; 1:unified trade account
    userIDintegerUser ID
    inviterIDintegerInviter ID (the UID of the account which invited this account to the platform)
    vipLevelstringVIP Level
    mktMakerLevelstringMarket maker level
    affiliateIDintegerAffiliate Id. 0 represents that there is no binding relationship.
    rsaPublicKeystringRsa public key
    isMasterbooleanIf this api key belongs to master account or not
    parentUidstringThe main account uid. Returns "0" when the endpoint is called by main account
    kycLevelstringPersonal account kyc level. LEVEL_DEFAULT, LEVEL_1LEVEL_2
    kycRegionstringPersonal account kyc region

    Request Example

    GET /v5/user/query-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676430842094
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "13770661",
    "note": "readwrite api key",
    "apiKey": "XXXXXX",
    "readOnly": 0,
    "secret": "",
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransfer"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "Derivatives": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": [],
    "Affiliate": []
    },
    "ips": [
    "*"
    ],
    "type": 1,
    "deadlineDay": 66,
    "expiredAt": "2023-12-22T07:20:25Z",
    "createdAt": "2022-10-16T02:24:40Z",
    "unified": 0,
    "uta": 0,
    "userID": 24617703,
    "inviterID": 0,
    "vipLevel": "No VIP",
    "mktMakerLevel": "0",
    "affiliateID": 0,
    "rsaPublicKey": "",
    "isMaster": true,
    "parentUid": "0",
    "kycLevel": "LEVEL_DEFAULT",
    "kycRegion": ""
    },
    "retExtInfo": {},
    "time": 1697525990798
    }
    - + \ No newline at end of file diff --git a/v5/user/create-subuid-apikey.html b/v5/user/create-subuid-apikey.html index 6b1ef4dee4..d41b83abb0 100644 --- a/v5/user/create-subuid-apikey.html +++ b/v5/user/create-subuid-apikey.html @@ -4,13 +4,13 @@ Create Sub UID API Key | Bybit API Documentation - +

    Create Sub UID API Key

    To create new API key for those newly created sub UID. Use master user's api key only.

    tip

    The API key must have one of the below permissions in order to call this endpoint..

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"

    HTTP Request

    POST /v5/user/create-sub-api

    Request Parameters

    ParameterRequiredTypeComments
    subuidtrueintegerSub user Id
    notefalsestringSet a remark
    readOnlytrueinteger0:Read and Write. 1:Read only
    ipsfalsestringSet the IP bind. example: "192.168.0.1,192.168.0.2"note:
    • don't pass ips or pass with "*" means no bind
    • No ip bound api key will be invalid after 90 days
    • api key without IP bound will be invalid after 7 days once the account password is changed
    permissionstrueObjectTick the types of permission.
    • one of below types must be passed, otherwise the error is thrown
    > ContractTradefalsearrayContract Trade. ["Order","Position"]
    > SpotfalsearraySpot Trade. ["SpotTrade"]
    > WalletfalsearrayWallet. ["AccountTransfer","SubMemberTransferList"]
    > OptionsfalsearrayUSDC Contract. ["OptionsTrade"]
    > DerivativesfalsearrayThis param is depreciated because system will automatically add this permission according to your account is UTA or Classic
    > ExchangefalsearrayExchange. ["ExchangeHistory"]
    > CopyTradingfalsearrayCopytrade. ["CopyTrading"]

    Response Parameters

    ParameterTypeComments
    idstringUnique id. Internal used
    notestringThe remark
    apiKeystringApi key
    readOnlyinteger0:Read and Write. 1:Read only
    secretstringThe secret paired with api key.
    • The secret can't be queried by GET api. Please keep it properly
    permissionsObjectThe types of permission
    > ContractTradearrayPermisson of contract trade
    > SpotarrayPermisson of spot
    > WalletarrayPermisson of wallet
    > OptionsarrayPermission of USDC Contract. It supports trade option and usdc perpetual.
    > DerivativesarrayPermission of Unified account
    > CopyTradingarrayPermission of copytrade
    > BlockTradearrayPermission of blocktrade. Not applicable to sub account, always []
    > ExchangearrayPermission of exchange
    > NFTarrayPermission of NFT. Not applicable to sub account, always []

    Request Example

    POST /v5/user/create-sub-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430005459
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "subuid": 53888000,
    "note": "testxxx",
    "readOnly": 0,
    "permissions": {
    "Wallet": [
    "AccountTransfer"
    ]
    }
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "16651283",
    "note": "testxxx",
    "apiKey": "xxxxx",
    "readOnly": 0,
    "secret": "xxxxxxxx",
    "permissions": {
    "ContractTrade": [],
    "Spot": [],
    "Wallet": [
    "AccountTransfer"
    ],
    "Options": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": []
    }
    },
    "retExtInfo": {},
    "time": 1676430007643
    }
    - + \ No newline at end of file diff --git a/v5/user/create-subuid.html b/v5/user/create-subuid.html index adb11fb2a8..d162af2699 100644 --- a/v5/user/create-subuid.html +++ b/v5/user/create-subuid.html @@ -4,13 +4,13 @@ Create Sub UID | Bybit API Documentation - +

    Create Sub UID

    Create a new sub user id. Use master account's api key.

    tip

    The API key must have one of the below permissions in order to call this endpoint

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"

    HTTP Request

    POST /v5/user/create-sub-member

    Request Parameters

    ParameterRequiredTypeComments
    usernametruestringGive a username of the new sub user id.
    • 6-16 characters, must include both numbers and letters.
    • cannot be the same as the exist or deleted one.
    passwordfalsestringSet the password for the new sub user id.
    • 8-30 characters, must include numbers, upper and lowercase letters.
    memberTypetrueinteger1: normal sub account, 6: custodial sub account
    switchfalseinteger
    • 0: turn off quick login (default)
    • 1: turn on quick login.
    isUtafalsebooleanDepreciated param, always UTA account
    notefalsestringSet a remark

    Response Parameters

    ParameterTypeComments
    uidstringSub user Id
    usernamestringGive a username of the new sub user id.
    • 6-16 characters, must include both numbers and letters.
    • cannot be the same as the exist or deleted one.
    memberTypeinteger1: normal sub account, 6: custodial sub account
    statusintegerThe status of the user account
    • 1: normal
    • 2: login banned
    • 4: frozen
    remarkstringThe remark

    Request Example

    POST /v5/user/create-sub-member HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1676429344202
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "username": "xxxxx",
    "memberType": 1,
    "switch": 1,
    "note": "test"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "uid": "53888000",
    "username": "xxxxx",
    "memberType": 1,
    "status": 1,
    "remark": "test"
    },
    "retExtInfo": {},
    "time": 1676429344734
    }
    - + \ No newline at end of file diff --git a/v5/user/froze-subuid.html b/v5/user/froze-subuid.html index 0f56ed7298..7c5627797e 100644 --- a/v5/user/froze-subuid.html +++ b/v5/user/froze-subuid.html @@ -4,13 +4,13 @@ Freeze Sub UID | Bybit API Documentation - +

    Freeze Sub UID

    Freeze Sub UID. Use master user's api key only.

    tip

    The API key must have one of the below permissions in order to call this endpoint..

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"

    HTTP Request

    POST /v5/user/frozen-sub-member

    Request Parameters

    ParameterRequiredTypeComments
    subuidtrueintegerSub user Id
    frozentrueinteger0:unfreeze, 1:freeze

    Response Parameters

    None

    Request Example

    POST /v5/user/frozen-sub-member HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430842094
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "subuid": 53888001,
    "frozen": 1
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {},
    "retExtInfo": {},
    "time": 1676430697553
    }
    - + \ No newline at end of file diff --git a/v5/user/list-sub-apikeys.html b/v5/user/list-sub-apikeys.html index b85a444e6a..d4405bd4bd 100644 --- a/v5/user/list-sub-apikeys.html +++ b/v5/user/list-sub-apikeys.html @@ -4,13 +4,13 @@ Get Sub Account All API Keys | Bybit API Documentation - +

    Get Sub Account All API Keys

    Query all api keys information of a sub UID.

    tip
    • Any permission can access this endpoint
    • Only master account can call this endpoint

    HTTP Request

    GET /v5/user/sub-apikeys

    Request Parameters

    ParameterRequiredTypeComments
    subMemberIdtruestringSub UID
    limitfalseintegerLimit for data size per page. [1, 20]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    resultarrayObject
    > idstringUnique ID. Internal use
    > ipsarray<string>IP bound
    > apiKeystringApi key
    > notestringThe remark
    > statusinteger1: permanent, 2: expired, 3: within the validity period, 4: expires soon (less than 7 days)
    > expiredAtdatetimeThe expiry day of the api key. Only for those api key with no IP bound or the password has been changed
    > createdAtdatetimeThe create day of the api key
    > typeintegerThe type of api key. 1:personal, 2:connected to the third-party app
    > permissionsObjectThe types of permission
    >> ContractTradearrayPermission of contract trade Order, Position
    >> SpotarrayPermission of spot SpotTrade
    >> WalletarrayPermission of wallet AccountTransfer, SubMemberTransferList
    >> OptionsarrayPermission of USDC Contract. It supports trade option and USDC perpetual. OptionsTrade
    >> DerivativesarrayUnified account api key have this permission by default. DerivativesTrade
    >> CopyTradingarrayAlways [], Master Trader uses "Contract" permission to start Copytrading
    >> BlockTradearrayPermission of blocktrade. Not applicable to subaccount, always []
    >> ExchangearrayPermission of exchange ExchangeHistory
    >> NFTarrayPermission of NFT. Not applicable to sub account, always []
    >> AffiliatearrayPermission of Affiliate. Not applicable to sub account, always []
    > secretstringAlways "******"
    > readOnlybooleantrue, false
    > deadlineDayintegerThe remaining valid days of api key. Only for those api key with no IP bound or the password has been changed
    > flagstringApi key type
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/user/sub-apikeys?subMemberId=100400345 HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1699515251088
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "result": [
    {
    "id": "24828209",
    "ips": [
    "*"
    ],
    "apiKey": "XXXXXX",
    "note": "UTA",
    "status": 3,
    "expiredAt": "2023-12-01T02:36:06Z",
    "createdAt": "2023-08-25T06:42:39Z",
    "type": 1,
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransferList"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "Derivatives": [
    "DerivativesTrade"
    ],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [
    "ExchangeHistory"
    ],
    "NFT": [],
    "Affiliate": []
    },
    "secret": "******",
    "readOnly": false,
    "deadlineDay": 21,
    "flag": "hmac"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1699515251698
    }
    - + \ No newline at end of file diff --git a/v5/user/modify-master-apikey.html b/v5/user/modify-master-apikey.html index f34bdfb6b6..5f058191a5 100644 --- a/v5/user/modify-master-apikey.html +++ b/v5/user/modify-master-apikey.html @@ -4,13 +4,13 @@ Modify Master API Key | Bybit API Documentation - +

    Modify Master API Key

    Modify the settings of master api key. Use the api key pending to be modified to call the endpoint. Use master user's api key only.

    tip

    The API key must have one of the below permissions in order to call this endpoint..

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
    info

    Only the api key that calls this interface can be modified

    HTTP Request

    POST /v5/user/update-api

    Request Parameters

    ParameterRequiredTypeComments
    readOnlyfalseinteger0 (default):Read and Write. 1:Read only
    ipsfalsestringSet the IP bind. example: "192.168.0.1,192.168.0.2"note:
    • don't pass ips or pass with "*" means no bind
    • No ip bound api key will be invalid after 90 days
    • api key will be invalid after 7 days once the account password is changed
    permissionsfalseObjectTick the types of permission. Don't send this param if you don't want to change the permission
    > ContractTradefalsearrayContract Trade. ["Order","Position"]
    > SpotfalsearraySpot Trade. ["SpotTrade"]
    > WalletfalsearrayWallet. ["AccountTransfer","SubMemberTransfer"]
    > OptionsfalsearrayUSDC Contract. ["OptionsTrade"]
    > DerivativesfalsearrayThis param is depreciated because system will automatically add this permission according to your account is UTA or Classic
    > CopyTradingfalsearrayCopytrade. ["CopyTrading"]
    > BlockTradefalsearrayBlocktrade. ["BlockTrade"]
    > ExchangefalsearrayExchange. ["ExchangeHistory"]
    > NFTfalsearrayNFT. ["NFTQueryProductList"]
    > AffiliatefalsearrayAffiliate. ["Affiliate"]
    • This permission is only useful for affiliate
    • If you need this permission, make sure you remove all other permissions

    Response Parameters

    ParameterTypeComments
    idstringUnique id. Internal used
    notestringThe remark
    apiKeystringApi key
    readOnlyinteger0:Read and Write. 1:Read only
    secretstringAlways ""
    permissionsObjectThe types of permission
    > ContractTradearrayPermisson of contract trade
    > SpotarrayPermisson of spot
    > WalletarrayPermisson of wallet
    > OptionsarrayPermission of USDC Contract. It supports trade option and usdc perpetual.
    > DerivativesarrayPermission of Unified account
    > CopyTradingarrayPermission of copytrade. Not applicable to sub account, always []
    > BlockTradearrayPermission of blocktrade. Not applicable to sub account, always []
    > ExchangearrayPermission of exchange
    > NFTarrayPermission of NFT. Not applicable to sub account, always []
    ipsarrayIP bound

    Request Example

    POST /v5/user/update-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431264739
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    {
    "readOnly": null,
    "ips": "*",
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransfer"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "CopyTrading": [
    "CopyTrading"
    ],
    "BlockTrade": [],
    "Exchange": [
    "ExchangeHistory"
    ],
    "NFT": [
    "NFTQueryProductList"
    ]
    }
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "13770661",
    "note": "xxxxx",
    "apiKey": "xxxxx",
    "readOnly": 0,
    "secret": "",
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransfer"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "Derivatives": [
    "DerivativesTrade"
    ],
    "CopyTrading": [
    "CopyTrading"
    ],
    "BlockTrade": [],
    "Exchange": [
    "ExchangeHistory"
    ],
    "NFT": [
    "NFTQueryProductList"
    ]
    },
    "ips": [
    "*"
    ]
    },
    "retExtInfo": {},
    "time": 1676431265427
    }
    - + \ No newline at end of file diff --git a/v5/user/modify-sub-apikey.html b/v5/user/modify-sub-apikey.html index b9ff1cdca4..7a6f761f5e 100644 --- a/v5/user/modify-sub-apikey.html +++ b/v5/user/modify-sub-apikey.html @@ -4,14 +4,14 @@ Modify Sub API Key | Bybit API Documentation - +

    Modify Sub API Key

    Modify the settings of sub api key. Use the sub account api key pending to be modified to call the endpoint or use master account api key to manage its sub account api key.

    tip

    The API key must have one of the below permissions in order to call this endpoint

    • sub API key: "Account Transfer", "Sub Member Transfer"
    • master API Key: "Account Transfer", "Sub Member Transfer", "Withdrawal"

    HTTP Request

    POST /v5/user/update-sub-api

    Request Parameters

    ParameterRequiredTypeComments
    apikeyfalsestringSub account api key
    • You must pass this param when you use master account manage sub account api key settings
    • If you use corresponding sub uid api key call this endpoint, apikey param cannot be passed, otherwise throwing an error
    readOnlyfalseinteger0 (default):Read and Write. 1:Read only
    ipsfalsestringSet the IP bind. example: "192.168.0.1,192.168.0.2"note:
    • don't pass ips or pass with "*" means no bind
    • No ip bound api key will be invalid after 90 days
    • api key will be invalid after 7 days once the account password is changed
    permissionsfalseObjectTick the types of permission. Don't send this param if you don't want to change the permission
    > ContractTradefalsearrayContract Trade. ["Order","Position"]
    > SpotfalsearraySpot Trade. ["SpotTrade"]
    > WalletfalsearrayWallet. ["AccountTransfer", "SubMemberTransferList"]
    > OptionsfalsearrayUSDC Contract. ["OptionsTrade"]
    > DerivativesfalsearrayThis param is depreciated because system will automatically add this permission according to your account is UTA or Classic
    > ExchangefalsearrayExchange. ["ExchangeHistory"]
    > CopyTradingfalsearrayCopytrade. ["CopyTrading"]

    Response Parameters

    ParameterTypeComments
    idstringUnique id. Internal used
    notestringThe remark
    apiKeystringApi key
    readOnlyinteger0:Read and Write. 1:Read only
    secretstringAlways ""
    permissionsObjectThe types of permission
    > ContractTradearrayPermisson of contract trade
    > SpotarrayPermisson of spot
    > WalletarrayPermisson of wallet
    > OptionsarrayPermission of USDC Contract. It supports trade option and usdc perpetual.
    > DerivativesarrayPermission of Unified account
    > CopyTradingarrayPermission of copytrade
    > BlockTradearrayPermission of blocktrade. Not applicable to sub account, always []
    > ExchangearrayPermission of exchange
    > NFTarrayPermission of NFT. Not applicable to sub account, always []
    ipsarrayIP bound

    Request Example

    POST /v5/user/update-sub-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431795752
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "readOnly": 0,
    "ips": "*",
    "permissions": {
    "ContractTrade": [],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer"
    ],
    "Options": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": []
    }
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "16651472",
    "note": "testxxx",
    "apiKey": "xxxxxx",
    "readOnly": 0,
    "secret": "",
    "permissions": {
    "ContractTrade": [],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer"
    ],
    "Options": [],
    "Derivatives": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": []
    },
    "ips": [
    "*"
    ]
    },
    "retExtInfo": {},
    "time": 1676431796263
    }
    - + \ No newline at end of file diff --git a/v5/user/page-subuid.html b/v5/user/page-subuid.html index 80c33f368a..e2bbf83bd3 100644 --- a/v5/user/page-subuid.html +++ b/v5/user/page-subuid.html @@ -4,13 +4,13 @@ Get Sub UID List (Unlimited) | Bybit API Documentation - +

    Get Sub UID List (Unlimited)

    This API is applicable to the client who has over 10k sub accounts. Use master user's api key only.

    tip

    The API key must have one of the below permissions in order to call this endpoint..

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"

    HTTP Request

    GET /v5/user/submembers

    Request Parameters

    ParameterRequiredTypeComments
    pageSizefalsestringData size per page. Return up to 100 records per request
    nextCursorfalsestringCursor. Use the nextCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    subMembersarrayObject
    > uidstringSub user Id
    > usernamestringUsername
    > memberTypeinteger1: standard sub account, 6: custodial sub account
    > statusintegerThe status of the user account
    • 1: normal
    • 2: login banned
    • 4: frozen
    > accountModeintegerThe account mode of the user account
    • 1: Classic Account
    • 3: Unified Trading Account
    > remarkstringThe remark
    nextCursorstringThe next page cursor value. "0" means no more pages

    Request Example

    GET /v5/user/submembers?pageSize=1 HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430318405
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "subMembers": [
    {
    "uid": "100475023",
    "username": "BybitmcYERjAPmMU",
    "memberType": 1,
    "status": 1,
    "remark": "",
    "accountMode": 1
    }
    ],
    "nextCursor": "126671"
    },
    "retExtInfo": {},
    "time": 1711695552772
    }
    - + \ No newline at end of file diff --git a/v5/user/rm-master-apikey.html b/v5/user/rm-master-apikey.html index 4645f1850e..95767a5e2b 100644 --- a/v5/user/rm-master-apikey.html +++ b/v5/user/rm-master-apikey.html @@ -4,13 +4,13 @@ Delete Master API Key | Bybit API Documentation - +

    Delete Master API Key

    Delete the api key of master account. Use the api key pending to be delete to call the endpoint. Use master user's api key only.

    tip

    The API key must have one of the below permissions in order to call this endpoint..

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
    danger

    BE CAREFUL! The API key used to call this interface will be invalid immediately.

    HTTP Request

    POST /v5/user/delete-api

    Request Parameters

    None

    Response Parameters

    None

    Request Example

    POST /v5/user/delete-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431576621
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    {

    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {},
    "retExtInfo": {},
    "time": 1676431577675
    }
    - + \ No newline at end of file diff --git a/v5/user/rm-sub-apikey.html b/v5/user/rm-sub-apikey.html index a72d3f6eae..17116fea46 100644 --- a/v5/user/rm-sub-apikey.html +++ b/v5/user/rm-sub-apikey.html @@ -4,14 +4,14 @@ Delete Sub API Key | Bybit API Documentation - +

    Delete Sub API Key

    Delete the api key of sub account. Use the sub api key pending to be delete to call the endpoint or use the master api key to delete corresponding sub account api key

    tip

    The API key must have one of the below permissions in order to call this endpoint.

    • sub API key: "Account Transfer", "Sub Member Transfer"
    • master API Key: "Account Transfer", "Sub Member Transfer", "Withdrawal"
    danger

    BE CAREFUL! The Sub account API key will be invalid immediately after calling the endpoint.

    HTTP Request

    POST /v5/user/delete-sub-api

    Request Parameters

    ParameterRequiredTypeComments
    apikeyfalsestringSub account api key
    • You must pass this param when you use master account manage sub account api key settings
    • If you use corresponding sub uid api key call this endpoint, apikey param cannot be passed, otherwise throwing an error

    Response Parameters

    None

    Request Example

    POST /v5/user/delete-sub-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431922953
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    {

    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {},
    "retExtInfo": {},
    "time": 1676431924719
    }
    - + \ No newline at end of file diff --git a/v5/user/rm-subuid.html b/v5/user/rm-subuid.html index 2d3f0efa67..7cbb917744 100644 --- a/v5/user/rm-subuid.html +++ b/v5/user/rm-subuid.html @@ -4,14 +4,14 @@ Delete Sub UID | Bybit API Documentation - +

    Delete Sub UID

    Delete a sub UID. Before deleting the UID, please make sure there is no asset.
    Use master user's api key**.

    tip

    The API key must have one of the below permissions in order to call this endpoint

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"

    HTTP Request

    POST /v5/user/del-submember

    Request Parameters

    ParameterRequiredTypeComments
    subMemberIdtruestringSub UID

    Response Parameters

    None

    Request Example

    POST /v5/user/del-submember HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1698907012755
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json
    Content-Length: 34

    {
    "subMemberId": "112725187"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1698907012962
    }
    - + \ No newline at end of file diff --git a/v5/user/subuid-list.html b/v5/user/subuid-list.html index 43d9d42eba..37e7db55c0 100644 --- a/v5/user/subuid-list.html +++ b/v5/user/subuid-list.html @@ -4,13 +4,13 @@ Get Sub UID List (Limited) | Bybit API Documentation - +

    Get Sub UID List (Limited)

    Get at most 10k sub UID of master account. Use master user's api key only.

    tip

    The API key must have one of the below permissions in order to call this endpoint..

    • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"

    HTTP Request

    GET /v5/user/query-sub-members

    Request Parameters

    None

    Response Parameters

    ParameterTypeComments
    subMembersarrayObject
    > uidstringSub user Id
    > usernamestringUsername
    > memberTypeinteger1: normal sub account, 6: custodial sub account
    > statusintegerThe status of the user account
    • 1: normal
    • 2: login banned
    • 4: frozen
    > accountModeintegerThe account mode of the user account
    • 1: classic account
    • 2: UMA
    • 3: UTA
    > remarkstringThe remark

    Request Example

    GET /v5/user/query-sub-members HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430318405
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "subMembers": [
    {
    "uid": "53888001",
    "username": "xxx001",
    "memberType": 1,
    "status": 1,
    "remark": "test",
    "accountMode": 3
    },
    {
    "uid": "53888002",
    "username": "xxx002",
    "memberType": 6,
    "status": 1,
    "remark": "",
    "accountMode": 1
    }
    ]
    },
    "retExtInfo": {},
    "time": 1676430319452
    }
    - + \ No newline at end of file diff --git a/v5/user/wallet-type.html b/v5/user/wallet-type.html index cbf25fcc28..8b96efa008 100644 --- a/v5/user/wallet-type.html +++ b/v5/user/wallet-type.html @@ -4,13 +4,13 @@ Get UID Wallet Type | Bybit API Documentation - +

    Get UID Wallet Type

    Get available wallet types for the master account or sub account

    tip
    • Master api key: you can get master account and appointed sub account available wallet types, and support up to 200 sub UID in one request.
    • Sub api key: you can get its own available wallet types
    PRACTICE

    "FUND" - If you never deposit or transfer capital into it, this wallet type will not be shown in the array, but your account indeed has this wallet.

    • ["SPOT","FUND","CONTRACT"] : Classic account and Funding wallet was operated before
    • ["SPOT","CONTRACT"] : Classic account and Funding wallet is never operated
    • ["UNIFIED""FUND","CONTRACT"] : UTA account and Funding wallet was operated before.
    • ["UNIFIED","CONTRACT"] : UTA account and Funding wallet is never operated.

    HTTP Request

    GET /v5/user/get-member-type

    Request Parameters

    ParameterRequiredTypeComments
    memberIdsfalsestring
    • Query itself wallet types when not passed
    • When use master api key to query sub UID, master UID data is always returned in the top of the array
    • Multiple sub UID are supported, separated by commas
    • This param is ignored when you use sub account api key

    Response Parameters

    ParameterTypeComments
    accountsarrayObject
    > uidstringMaster/Sub user Id
    > accountTypearrayWallets array. SPOT, CONTRACT, FUND, OPTION, UNIFIED. Please check above practice to understand the value

    Request Example

    GET /v5/user/get-member-type HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686884973961
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "accounts": [
    {
    "uid": "533285",
    "accountType": [
    "SPOT",
    "UNIFIED",
    "FUND",
    "CONTRACT"
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686884974151
    }
    - + \ No newline at end of file diff --git a/v5/websocket/private/dcp.html b/v5/websocket/private/dcp.html index b8269467d6..5ad5c28852 100644 --- a/v5/websocket/private/dcp.html +++ b/v5/websocket/private/dcp.html @@ -4,13 +4,13 @@ Dcp | Bybit API Documentation - +

    Dcp

    Subscribe to the dcp stream to trigger DCP function.

    For example, connection A subscribes "dcp.xxx", connection B does not and connection C subscribes "dcp.xxx".

    1. If A is alive, B is dead, C is alive, then this case will not trigger DCP.
    2. If A is alive, B is dead, C is dead, then this case will not trigger DCP.
    3. If A is dead, B is alive, C is dead, then DCP is triggered when reach the timeWindow threshold

    To sum up, for those private connections subscribing "dcp" topic are all dead, then DCP will be triggered.

    Topic: dcp.future, dcp.spot, dcp.option

    Subscribe Example

    {
    "op": "subscribe",
    "args": [
    "dcp.future"
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/private/execution.html b/v5/websocket/private/execution.html index 164423dbca..9a24c40cef 100644 --- a/v5/websocket/private/execution.html +++ b/v5/websocket/private/execution.html @@ -4,14 +4,14 @@ Execution | Bybit API Documentation - +

    Execution

    Subscribe to the execution stream to see your executions in real-time.

    tip

    You may have multiple executions for one order in a single message.

    All-In-One Topic: execution
    Categorised Topic: execution.spot, execution.linear, execution.inverse, execution.option

    info
    • All-In-One topic and Categorised topic cannot be in the same subscription request
    • All-In-One topic: Allow you to listen to all categories (spot, linear, inverse, option) websocket updates
    • Categorised Topic: Allow you to listen only to specific category websocket updates

    Response Parameters

    ParameterTypeComments
    idstringMessage ID
    topicstringTopic name
    creationTimenumberData created timestamp (ms)
    dataarrayObject
    > categorystringProduct type
    • UTA2.0, UTA1.0: spot, linear, inverse, option
    • Classic account: spot, linear, inverse.
    > symbolstringSymbol name
    > isLeveragestringWhether to borrow. Unified spot only. 0: false, 1: true
    Classic spot is not supported, always 0
    > orderIdstringOrder ID
    > orderLinkIdstringUser customized order ID
    > sidestringSide. Buy,Sell
    > orderPricestringOrder price. Classic spot is not supported
    > orderQtystringOrder qty. Classic spot is not supported
    > leavesQtystringThe remaining qty not executed. Classic spot is not supported
    > createTypestringOrder create type
  • Classic account & UTA1.0(category=inverse): always ""
  • Spot, Option do not have this key
  • > orderTypestringOrder type. Market,Limit. Classic spot is not supported
    > stopOrderTypestringStop order type. If the order is not stop order, any type is not returned. Classic spot is not supported
    > execFeestringExecuted trading fee. You can get spot fee currency instruction here
    Classic spot is not supported
    > execIdstringExecution ID
    > execPricestringExecution price
    > execQtystringExecution qty
    > execPnlstringProfit and Loss for each close position execution. The value keeps consistent with the field "cashFlow" in the Get Transaction Log
    > execTypestringExecuted type. Classic spot is not supported
    > execValuestringExecuted order value. Classic spot is not supported
    > execTimestringExecuted timestamp(ms)
    > isMakerbooleanIs maker order. true: maker, false: taker
    > feeRatestringTrading fee rate. Classic spot is not supported
    > tradeIvstringImplied volatility. valid for option
    > markIvstringImplied volatility of mark price. valid for option
    > markPricestringThe mark price of the symbol when executing. valid for option
    > indexPricestringThe index price of the symbol when executing. valid for option
    > underlyingPricestringThe underlying price of the symbol when executing. valid for option
    > blockTradeIdstringParadigm block trade ID
    > closedSizestringClosed position size
    > seqlongCross sequence, used to associate each fill and each position update
    • The seq will be the same when conclude multiple transactions at the same time
    • Different symbols may have the same seq, please use seq + symbol to check unique

    Subscribe Example

    {
    "op": "subscribe",
    "args": [
    "execution"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.execution_stream(callback=handle_message)
    while True:
    sleep(1)

    Stream Example

    {
    "id": "592324803b2785-26fa-4214-9963-bdd4727f07be",
    "topic": "execution",
    "creationTime": 1672364174455,
    "data": [
    {
    "category": "linear",
    "symbol": "XRPUSDT",
    "execFee": "0.005061",
    "execId": "7e2ae69c-4edf-5800-a352-893d52b446aa",
    "execPrice": "0.3374",
    "execQty": "25",
    "execType": "Trade",
    "execValue": "8.435",
    "execValue": "0",
    "isMaker": false,
    "feeRate": "0.0006",
    "tradeIv": "",
    "markIv": "",
    "blockTradeId": "",
    "markPrice": "0.3391",
    "indexPrice": "",
    "underlyingPrice": "",
    "leavesQty": "0",
    "orderId": "f6e324ff-99c2-4e89-9739-3086e47f9381",
    "orderLinkId": "",
    "orderPrice": "0.3207",
    "orderQty": "25",
    "orderType": "Market",
    "stopOrderType": "UNKNOWN",
    "side": "Sell",
    "execTime": "1672364174443",
    "isLeverage": "0",
    "closedSize": "",
    "seq": 4688002127
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/private/fast-execution.html b/v5/websocket/private/fast-execution.html index a511bbe024..a2195980ff 100644 --- a/v5/websocket/private/fast-execution.html +++ b/v5/websocket/private/fast-execution.html @@ -4,7 +4,7 @@ Fast Execution | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Fast Execution

    Fast execution stream significantly reduces data latency compared original "execution" stream. However, it pushes limited execution type of trades, and fewer data fields.

    All-In-One Topic: execution.fast
    Categorised Topic: execution.fast.linear, execution.fast.inverse, execution.fast.spot

    info
    • Supports all Perps, Futures and Spot exceution, and do not support Options for now
    • You can only receive execType=Trade update

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    creationTimenumberData created timestamp (ms)
    dataarrayObject
    > categorystringProduct type
    • UTA2.0, UTA1.0: linear, inverse, spot
    • Classic account: linear, inverse, spot.
    > symbolstringSymbol name
    > orderIdstringOrder ID
    > isMakerbooleantrue: Maker, false: Taker
    > orderLinkIdstringUser customized order ID
  • maker trade is always ""
  • If a maker order in the orderbook is converted to taker (by price amend), orderLinkId is also ""
  • > execIdstringExecution ID
    > execPricestringExecution price
    > execQtystringExecution qty
    > sidestringSide. Buy,Sell
    > execTimestringExecuted timestamp(ms)
    > seqlongCross sequence, used to associate each fill and each position update
    • The seq will be the same when conclude multiple transactions at the same time
    • Different symbols may have the same seq, please use seq + symbol to check unique

    Subscribe Example

    {
    "op": "subscribe",
    "args": [
    "execution.fast"
    ]
    }

    Stream Example

    {
    "topic": "execution.fast",
    "creationTime": 1716800399338,
    "data": [
    {
    "category": "linear",
    "symbol": "ICPUSDT",
    "execId": "3510f361-0add-5c7b-a2e7-9679810944fc",
    "execPrice": "12.015",
    "execQty": "3000",
    "orderId": "443d63fa-b4c3-4297-b7b1-23bca88b04dc",
    "isMaker": false,
    "orderLinkId": "test-00001",
    "side": "Sell",
    "execTime": "1716800399334",
    "seq": 34771365464
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/private/greek.html b/v5/websocket/private/greek.html index 0bff530f46..cdb66fdb25 100644 --- a/v5/websocket/private/greek.html +++ b/v5/websocket/private/greek.html @@ -4,13 +4,13 @@ Greek | Bybit API Documentation - +

    Greek

    Subscribe to the greeks stream to see changes to your greeks data in real-time. option only.

    Topic: greeks

    Response Parameters

    ParameterTypeComments
    idstringMessage ID
    topicstringTopic name
    creationTimenumberData created timestamp (ms)
    dataarrayObject
    > baseCoinstringBase coin
    > totalDeltastringDelta value
    > totalGammastringGamma value
    > totalVegastringVega value
    > totalThetastringTheta value

    Subscribe Example

    {
    "op": "subscribe",
    "args": [
    "greeks"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.greek_stream(callback=handle_message)
    while True:
    sleep(1)

    Stream Example

    {
    "id": "592324fa945a30-2603-49a5-b865-21668c29f2a6",
    "topic": "greeks",
    "creationTime": 1672364262482,
    "data": [
    {
    "baseCoin": "ETH",
    "totalDelta": "0.06999986",
    "totalGamma": "-0.00000001",
    "totalVega": "-0.00000024",
    "totalTheta": "0.00001314"
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/private/order.html b/v5/websocket/private/order.html index b2a4f30e60..c916a7b1b6 100644 --- a/v5/websocket/private/order.html +++ b/v5/websocket/private/order.html @@ -4,14 +4,14 @@ Order | Bybit API Documentation - +

    Order

    Subscribe to the order stream to see changes to your orders in real-time.

    All-In-One Topic: order
    Categorised Topic: order.spot, order.linear, order.inverse, order.option

    info
    • All-In-One topic and Categorised topic cannot be in the same subscription request
    • All-In-One topic: Allow you to listen to all categories (spot, linear, inverse, option) websocket updates
    • Categorised Topic: Allow you to listen only to specific category websocket updates

    Response Parameters

    ParameterTypeComments
    idstringMessage ID
    topicstringTopic name
    creationTimenumberData created timestamp (ms)
    dataarrayObject
    > categorystringProduct type
    • UTA2.0, UTA1.0: spot, linear, inverse, option
    • Classic account: spot, linear, inverse.
    > orderIdstringOrder ID
    > orderLinkIdstringUser customised order ID
    > isLeveragestringWhether to borrow. Unified spot only. 0: false, 1: true
    Classic spot is not supported, always 0
    > blockTradeIdstringBlock trade ID
    > symbolstringSymbol name
    > pricestringOrder price
    > qtystringOrder qty
    > sidestringSide. Buy,Sell
    > positionIdxintegerPosition index. Used to identify positions in different position modes
    > orderStatusstringOrder status
    > createTypestringOrder create type
  • Only for category=linear or inverse
  • Spot, Option do not have this key
  • > cancelTypestringCancel type
    > rejectReasonstringReject reason. Classic spot is not supported
    > avgPricestringAverage filled price
  • returns "" for those orders without avg price, and also for those classic account orders have partilly filled but cancelled at the end
  • Classic Spot: not supported, always ""
  • > leavesQtystringThe remaining qty not executed. Classic spot is not supported
    > leavesValuestringThe remaining value not executed. Classic spot is not supported
    > cumExecQtystringCumulative executed order qty
    > cumExecValuestringCumulative executed order value
    > cumExecFeestringCumulative executed trading fee.
    • Classic spot: it is the latest execution fee for order.
    • After upgraded to the Unified account, you can use execFee for each fill in Execution topic
    > closedPnlstringClosed profit and loss for each close position order. The figure is the same as "closedPnl" from Get Closed PnL
    > feeCurrencystringTrading fee currency for Spot only. Please understand Spot trading fee currency here
    > timeInForcestringTime in force
    > orderTypestringOrder type. Market,Limit. For TP/SL order, it means the order type after triggered
    > stopOrderTypestringStop order type
    > ocoTriggerBystringThe trigger type of Spot OCO order.OcoTriggerByUnknown, OcoTriggerByTp, OcoTriggerBySl. Classic spot is not supported
    > orderIvstringImplied volatility
    > marketUnitstringThe unit for qty when create Spot market orders for UTA account. baseCoin, quoteCoin
    > triggerPricestringTrigger price. If stopOrderType=TrailingStop, it is activate price. Otherwise, it is trigger price
    > takeProfitstringTake profit price
    > stopLossstringStop loss price
    > tpslModestringTP/SL mode, Full: entire position for TP/SL. Partial: partial position tp/sl. Spot does not have this field, and Option returns always ""
    > tpLimitPricestringThe limit order price when take profit price is triggered
    > slLimitPricestringThe limit order price when stop loss price is triggered
    > tpTriggerBystringThe price type to trigger take profit
    > slTriggerBystringThe price type to trigger stop loss
    > triggerDirectionintegerTrigger direction. 1: rise, 2: fall
    > triggerBystringThe price type of trigger price
    > lastPriceOnCreatedstringLast price when place the order
    > reduceOnlybooleanReduce only. true means reduce position size
    > closeOnTriggerbooleanClose on trigger. What is a close on trigger order?
    > placeTypestringPlace type, option used. iv, price
    > smpTypestringSMP execution type
    > smpGroupintegerSmp group ID. If the UID has no group, it is 0 by default
    > smpOrderIdstringThe counterparty's orderID which triggers this SMP execution
    > createdTimestringOrder created timestamp (ms)
    > updatedTimestringOrder updated timestamp (ms)

    Subscribe Example

    {
    "op": "subscribe",
    "args": [
    "order"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.order_stream(callback=handle_message)
    while True:
    sleep(1)

    Stream Example

    {
    "id": "5923240c6880ab-c59f-420b-9adb-3639adc9dd90",
    "topic": "order",
    "creationTime": 1672364262474,
    "data": [
    {
    "symbol": "ETH-30DEC22-1400-C",
    "orderId": "5cf98598-39a7-459e-97bf-76ca765ee020",
    "side": "Sell",
    "orderType": "Market",
    "cancelType": "UNKNOWN",
    "price": "72.5",
    "qty": "1",
    "orderIv": "",
    "timeInForce": "IOC",
    "orderStatus": "Filled",
    "orderLinkId": "",
    "lastPriceOnCreated": "",
    "reduceOnly": false,
    "leavesQty": "",
    "leavesValue": "",
    "cumExecQty": "1",
    "cumExecValue": "75",
    "avgPrice": "75",
    "blockTradeId": "",
    "positionIdx": 0,
    "cumExecFee": "0.358635",
    "closedPnl": "0",
    "createdTime": "1672364262444",
    "updatedTime": "1672364262457",
    "rejectReason": "EC_NoError",
    "stopOrderType": "",
    "tpslMode": "",
    "triggerPrice": "",
    "takeProfit": "",
    "stopLoss": "",
    "tpTriggerBy": "",
    "slTriggerBy": "",
    "tpLimitPrice": "",
    "slLimitPrice": "",
    "triggerDirection": 0,
    "triggerBy": "",
    "closeOnTrigger": false,
    "category": "option",
    "placeType": "price",
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "feeCurrency": ""
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/private/position.html b/v5/websocket/private/position.html index 2a327bc90a..cad51ff345 100644 --- a/v5/websocket/private/position.html +++ b/v5/websocket/private/position.html @@ -4,14 +4,14 @@ Position | Bybit API Documentation - +

    Position

    Subscribe to the position stream to see changes to your position data in real-time.

    All-In-One Topic: position
    Categorised Topic: position.linear, position.inverse, position.option

    info
    • All-In-One topic and Categorised topic cannot be in the same subscription request
    • All-In-One topic: Allow you to listen to all categories (linear, inverse, option) websocket updates
    • Categorised Topic: Allow you to listen only to specific category websocket updates

    Response Parameters

    ParameterTypeComments
    idstringMessage ID
    topicstringTopic name
    creationTimenumberData created timestamp (ms)
    dataarrayObject
    > categorystringProduct type
    > symbolstringSymbol name
    > sidestringPosition side. Buy: long, Sell: short
    • one-way mode: classic & UTA1.0(inverse), an empty position returns None.
    • UTA2.0(linear, inverse) & UTA1.0(linear): either one-way or hedge mode returns an empty string "" for an empty position.
    > sizestringPosition size
    > positionIdxintegerUsed to identify positions in different position modes
    > tradeModeintegerTrade mode
    > positionValuestringPosition value
    > riskIdintegerRisk tier ID
    for portfolio margin mode, this field returns 0, which means risk limit rules are invalid
    > riskLimitValuestringRisk limit value
    for portfolio margin mode, this field returns 0, which means risk limit rules are invalid
    > entryPricestringEntry price
    > markPricestringMark price
    > leveragestringPosition leverage
    for portfolio margin mode, this field returns "", which means leverage rules are invalid
    > positionBalancestringPosition margin
  • Classic & UTA1.0(inverse) can refer to this field to get the position initial margin
  • > autoAddMarginintegerWhether to add margin automatically. 0: false, 1: true. For UTA, it is meaningful only when UTA enables ISOLATED_MARGIN
    > positionIMstringInitial margin
  • Classic & UTA1.0(inverse): ignore this field
  • UTA portfolio margin mode, it returns ""
  • > positionMMstringMaintenance margin
  • Classic & UTA1.0(inverse): ignore this field
  • UTA portfolio margin mode, it returns ""
  • > liqPricestringPosition liquidation price
    • UTA1.0(inverse) & UTA(isolated margin enabled) & Classic account: it is the real price for isolated and cross positions, and keeps "" when liqPrice <= minPrice or liqPrice >= maxPrice
    • UTA (Cross margin mode): it is an estimated price for cross positions(because the unified mode controls the risk rate according to the account), and keeps "" when liqPrice <= minPrice or liqPrice >= maxPrice
    However, this field is empty for Portfolio Margin Mode, and no liquidation price will be provided
    > bustPricestringBankruptcy price
    Unified mode returns "", no position bankruptcy price (except UTA1.0(inverse))
    > tpslModestringDepreciated, meaningless here, always "Full"
    > takeProfitstringTake profit price
    > stopLossstringStop loss price
    > trailingStopstringTrailing stop
    > unrealisedPnlstringUnrealised profit and loss
    > curRealisedPnlstringThe realised PnL for the current holding position
    > sessionAvgPricestringUSDC contract session avg price, it is the same figure as avg entry price shown in the web UI
    > deltastringDelta
    > gammastringGamma
    > vegastringVega
    > thetastringTheta
    > cumRealisedPnlstringCumulative realised pnl
    • Futures & Perp: it is the all time cumulative realised P&L
    • Option: it is the realised P&L when you hold that position
    > positionStatusstringPosition status. Normal, Liq, Adl
    > adlRankIndicatorintegerAuto-deleverage rank indicator. What is Auto-Deleveraging?
    > isReduceOnlybooleanUseful when Bybit lower the risk limit
    • true: Only allowed to reduce the position. You can consider a series of measures, e.g., lower the risk limit, decrease leverage or reduce the position, add margin, or cancel orders, after these operations, you can call confirm new risk limit endpoint to check if your position can be removed the reduceOnly mark
    • false: There is no restriction, and it means your position is under the risk when the risk limit is systematically adjusted
    • Only meaningful for isolated margin & cross margin of USDT Perp, USDC Perp, USDC Futures, Inverse Perp and Inverse Futures, meaningless for others
    > mmrSysUpdatedTimestringUseful when Bybit lower the risk limit
    • When isReduceOnly=true: the timestamp (ms) when the MMR will be forcibly adjusted by the system
    • When isReduceOnly=false: the timestamp when the MMR had been adjusted by system
    • It returns the timestamp when the system operates, and if you manually operate, there is no timestamp
    • Keeps "" by default, if there was a lower risk limit system adjustment previously, it shows that system operation timestamp
    • Only meaningful for isolated margin & cross margin of USDT Perp, USDC Perp, USDC Futures, Inverse Perp and Inverse Futures, meaningless for others
    > leverageSysUpdatedTimestringUseful when Bybit lower the risk limit
    • When isReduceOnly=true: the timestamp (ms) when the leverage will be forcibly adjusted by the system
    • When isReduceOnly=false: the timestamp when the leverage had been adjusted by system
    • It returns the timestamp when the system operates, and if you manually operate, there is no timestamp
    • Keeps "" by default, if there was a lower risk limit system adjustment previously, it shows that system operation timestamp
    • Only meaningful for isolated margin & cross margin of USDT Perp, USDC Perp, USDC Futures, Inverse Perp and Inverse Futures, meaningless for others
    > createdTimestringTimestamp of the first time a position was created on this symbol (ms)
    > updatedTimestringPosition data updated timestamp (ms)
    > seqlongCross sequence, used to associate each fill and each position update
    • Different symbols may have the same seq, please use seq + symbol to check unique
    • Returns "-1" if the symbol has never been traded
    • Returns the seq updated by the last transaction when there are setting like leverage, risk limit

    Subscribe Example

    {
    "op": "subscribe",
    "args": [
    "position"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.position_stream(callback=handle_message)
    while True:
    sleep(1)

    Stream Example

    {
    "id": "1003076014fb7eedb-c7e6-45d6-a8c1-270f0169171a",
    "topic": "position",
    "creationTime": 1697682317044,
    "data": [
    {
    "positionIdx": 2,
    "tradeMode": 0,
    "riskId": 1,
    "riskLimitValue": "2000000",
    "symbol": "BTCUSDT",
    "side": "",
    "size": "0",
    "entryPrice": "0",
    "leverage": "10",
    "positionValue": "0",
    "positionBalance": "0",
    "markPrice": "28184.5",
    "positionIM": "0",
    "positionMM": "0",
    "takeProfit": "0",
    "stopLoss": "0",
    "trailingStop": "0",
    "unrealisedPnl": "0",
    "curRealisedPnl": "1.26",
    "cumRealisedPnl": "-25.06579337",
    "sessionAvgPrice": "0",
    "createdTime": "1694402496913",
    "updatedTime": "1697682317038",
    "tpslMode": "Full",
    "liqPrice": "0",
    "bustPrice": "",
    "category": "linear",
    "positionStatus": "Normal",
    "adlRankIndicator": 0,
    "autoAddMargin": 0,
    "leverageSysUpdatedTime": "",
    "mmrSysUpdatedTime": "",
    "seq": 8327597863,
    "isReduceOnly": false
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/private/wallet.html b/v5/websocket/private/wallet.html index a284d5072c..e706388249 100644 --- a/v5/websocket/private/wallet.html +++ b/v5/websocket/private/wallet.html @@ -4,13 +4,13 @@ Wallet | Bybit API Documentation - +

    Wallet

    Subscribe to the wallet stream to see changes to your wallet in real-time.

    info
    • There is no snapshot event given at the time when the subscription is successful
    • The unrealised PnL change does not trigger an event

    Topic: wallet

    Response Parameters

    ParameterTypeComments
    idstringMessage ID
    topicstringTopic name
    creationTimenumberData created timestamp (ms)
    dataarrayObject
    > accountTypestringAccount type.
    • UTA2.0: UNIFIED
    • UTA1.0: UNIFIED (spot/linear/options), CONTRACT(inverse)
    • Classic: CONTRACT, SPOT
    > accountLTVstringDepreciated field
    > accountIMRatestringAccount IM rate
  • You can refer to this Glossary to understand the below fields calculation and mearning
  • All below account wide fields are not applicable to
    UTA2.0(isolated margin),
    UTA1.0(isolated margin), UTA1.0(CONTRACT),
    classic account(SPOT, CONTRACT)
  • > accountMMRatestringAccount MM rate
    > totalEquitystringAccount total equity (USD)
    > totalWalletBalancestringAccount wallet balance (USD): ∑Asset Wallet Balance By USD value of each asset
    > totalMarginBalancestringAccount margin balance (USD): totalWalletBalance + totalPerpUPL
    > totalAvailableBalancestringAccount available balance (USD), Cross Margin: totalMarginBalance - totalInitialMargin
    > totalPerpUPLstringAccount Perps and Futures unrealised p&l (USD): ∑Each Perp and USDC Futures upl by base coin
    > totalInitialMarginstringAccount initial margin (USD): ∑Asset Total Initial Margin Base Coin
    > totalMaintenanceMarginstringAccount maintenance margin (USD): ∑ Asset Total Maintenance Margin Base Coin
    > coinarrayObject
    >> coinstringCoin name, such as BTC, ETH, USDT, USDC
    >> equitystringEquity of coin
    >> usdValuestringUSD value of coin. If this coin cannot be collateral, then it is 0
    >> walletBalancestringWallet balance of coin
    >> freestringAvailable balance for Spot wallet. This is a unique field for Classic SPOT
    >> lockedstringLocked balance due to the Spot open order
    >> spotHedgingQtystringThe spot asset qty that is used to hedge in the portfolio margin, truncate to 8 decimals and "0" by default This is a unique field for Unified account
    >> borrowAmountstringBorrow amount of coin
    >> availableToBorrowstringDepreciated field, always return "" due to feature of main-sub UID sharing borrow quota. Please refer to availableToBorrow in the Get Collateral Info
    >> availableToWithdrawstringAvailable amount to withdraw of coin
    >> accruedIntereststringAccrued interest
    >> totalOrderIMstringPre-occupied margin for order. For portfolio margin mode, it returns ""
    >> totalPositionIMstringSum of initial margin of all positions + Pre-occupied liquidation fee. For portfolio margin mode, it returns ""
    >> totalPositionMMstringSum of maintenance margin for all positions. For portfolio margin mode, it returns ""
    >> unrealisedPnlstringUnrealised P&L
    >> cumRealisedPnlstringCumulative Realised P&L
    >> bonusstringBonus. This is a unique field for UNIFIED account
    >> collateralSwitchbooleanWhether it can be used as a margin collateral currency (platform)
    • When marginCollateral=false, then collateralSwitch is meaningless
    • This is a unique field for UNIFIED account
    >> marginCollateralbooleanWhether the collateral is turned on by user (user)
    • When marginCollateral=true, then collateralSwitch is meaningful
    • This is a unique field for UNIFIED account

    Subscribe Example

    {
    "op": "subscribe",
    "args": [
    "wallet"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.wallet_stream(callback=handle_message)
    while True:
    sleep(1)

    Stream Example

    {
    "id": "592324d2bce751-ad38-48eb-8f42-4671d1fb4d4e",
    "topic": "wallet",
    "creationTime": 1700034722104,
    "data": [
    {
    "accountIMRate": "0",
    "accountMMRate": "0",
    "totalEquity": "10262.91335023",
    "totalWalletBalance": "9684.46297164",
    "totalMarginBalance": "9684.46297164",
    "totalAvailableBalance": "9556.6056555",
    "totalPerpUPL": "0",
    "totalInitialMargin": "0",
    "totalMaintenanceMargin": "0",
    "coin": [
    {
    "coin": "BTC",
    "equity": "0.00102964",
    "usdValue": "36.70759517",
    "walletBalance": "0.00102964",
    "availableToWithdraw": "0.00102964",
    "availableToBorrow": "",
    "borrowAmount": "0",
    "accruedInterest": "0",
    "totalOrderIM": "",
    "totalPositionIM": "",
    "totalPositionMM": "",
    "unrealisedPnl": "0",
    "cumRealisedPnl": "-0.00000973",
    "bonus": "0",
    "collateralSwitch": true,
    "marginCollateral": true,
    "locked": "0",
    "spotHedgingQty": "0.01592413"
    }
    ],
    "accountLTV": "0",
    "accountType": "UNIFIED"
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/etp-kline.html b/v5/websocket/public/etp-kline.html index 89743a20f8..b8399be9bf 100644 --- a/v5/websocket/public/etp-kline.html +++ b/v5/websocket/public/etp-kline.html @@ -4,14 +4,14 @@ LT Kline | Bybit API Documentation - +

    LT Kline

    Subscribe to the leveraged token kline stream.

    tip

    If confirm=true, this means that the candle has closed. Otherwise, the candle is still open and updating.

    Available intervals:

    • 1 3 5 15 30 (min)
    • 60 120 240 360 720 (min)
    • D (day)
    • W (week)
    • M (month)

    Push frequency: 1-60s

    Topic:
    kline_lt.{interval}.{symbol} e.g., kline_lt.30.BTC3SUSDT

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    typestringData type. snapshot
    tsnumberThe timestamp (ms) that the system generates the data
    dataarrayObject
    > startnumberThe start timestamp (ms)
    > endnumberThe end timestamp (ms). It is current timestamp if it does not reach to the end time of candle
    > intervalstringKline interval
    > openstringOpen price
    > closestringClose price
    > highstringHighest price
    > lowstringLowest price
    > confirmbooleanWeather the tick is ended or not
    > timestampnumberThe timestamp (ms) of the last matched order in the candle

    Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="spot",
    )
    def handle_message(message):
    print(message)
    ws.lt_kline_stream(
    interval=30,
    symbol="EOS3LUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "type": "snapshot",
    "topic": "kline_lt.5.EOS3LUSDT",
    "data": [
    {
    "start": 1672325100000,
    "end": 1672325399999,
    "interval": "5",
    "open": "0.416039541212402799",
    "close": "0.41477848043290448",
    "high": "0.416039541212402799",
    "low": "0.409734237314911206",
    "confirm": false,
    "timestamp": 1672325322393
    }
    ],
    "ts": 1672325322393
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/etp-nav.html b/v5/websocket/public/etp-nav.html index 283c4f0df2..6fbe15c49a 100644 --- a/v5/websocket/public/etp-nav.html +++ b/v5/websocket/public/etp-nav.html @@ -4,14 +4,14 @@ LT Nav | Bybit API Documentation - +

    LT Nav

    Subscribe to the leveraged token nav stream.

    Push frequency: 300ms

    Topic:
    lt.{symbol} e.g.,lt.BTC3SUSDT

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    typestringData type. snapshot
    tsnumberThe timestamp (ms) that the system generates the data
    dataarrayObject
    > timenumberThe generated timestamp of nav
    > symbolstringSymbol name
    > navstringNet asset value
    > basketPositionstringTotal position value = basket value * total circulation
    > leveragestringLeverage
    > basketLoanstringBasket loan
    > circulationstringCirculation
    > basketstringBasket

    Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="spot",
    )
    def handle_message(message):
    print(message)
    ws.lt_nav_stream(
    symbol="EOS3LUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "lt.EOS3LUSDT",
    "ts": 1672325564669,
    "type": "snapshot",
    "data": {
    "symbol": "EOS3LUSDT",
    "time": 1672325564554,
    "nav": "0.413517419653406162",
    "basketPosition": "1.261060779498318641",
    "leverage": "2.656197506416192150",
    "basketLoan": "-0.684866519289629374",
    "circulation": "72767.309468460367138199",
    "basket": "91764.000000292013277472"
    }
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/etp-ticker.html b/v5/websocket/public/etp-ticker.html index 0aa533f4b1..7ed36f6c6d 100644 --- a/v5/websocket/public/etp-ticker.html +++ b/v5/websocket/public/etp-ticker.html @@ -4,14 +4,14 @@ LT Ticker | Bybit API Documentation - +

    LT Ticker

    Subscribe to the leveraged token ticker stream.

    Push frequency: 300ms

    Topic:
    tickers_lt.{symbol} e.g.,tickers_lt.BTC3SUSDT

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    typestringData type. snapshot
    tsnumberThe timestamp (ms) that the system generates the data
    dataarrayObject
    > symbolstringSymbol name
    > price24hPcntstringMarket price change percentage in the past 24 hours
    > lastPricestringThe last price
    > prevPrice24hstringMarket price 24 hours ago
    > highPrice24hstringHighest price in the past 24 hours
    > lowPrice24hstringLowest price in the past 24 hours

    Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="spot",
    )
    def handle_message(message):
    print(message)
    ws.lt_ticker_stream(
    symbol="EOS3LUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "tickers_lt.EOS3LUSDT",
    "ts": 1672325446847,
    "type": "snapshot",
    "data": {
    "symbol": "EOS3LUSDT",
    "lastPrice": "0.41477848043290448",
    "highPrice24h": "0.435285472510871305",
    "lowPrice24h": "0.394601507960931382",
    "prevPrice24h": "0.431502290172376349",
    "price24hPcnt": "-0.0388"
    }
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/kline.html b/v5/websocket/public/kline.html index 168a29196c..2a5fd3d672 100644 --- a/v5/websocket/public/kline.html +++ b/v5/websocket/public/kline.html @@ -4,14 +4,14 @@ Kline | Bybit API Documentation - +

    Kline

    Subscribe to the klines stream.

    tip

    If confirm=true, this means that the candle has closed. Otherwise, the candle is still open and updating.

    Available intervals:

    • 1 3 5 15 30 (min)
    • 60 120 240 360 720 (min)
    • D (day)
    • W (week)
    • M (month)

    Push frequency: 1-60s

    Topic:
    kline.{interval}.{symbol} e.g., kline.30.BTCUSDT

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    typestringData type. snapshot
    tsnumberThe timestamp (ms) that the system generates the data
    dataarrayObject
    > startnumberThe start timestamp (ms)
    > endnumberThe end timestamp (ms)
    > intervalstringKline interval
    > openstringOpen price
    > closestringClose price
    > highstringHighest price
    > lowstringLowest price
    > volumestringTrade volume
    > turnoverstringTurnover
    > confirmbooleanWeather the tick is ended or not
    > timestampnumberThe timestamp (ms) of the last matched order in the candle

    Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.kline_stream(
    interval=5,
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "kline.5.BTCUSDT",
    "data": [
    {
    "start": 1672324800000,
    "end": 1672325099999,
    "interval": "5",
    "open": "16649.5",
    "close": "16677",
    "high": "16677",
    "low": "16608",
    "volume": "2.081",
    "turnover": "34666.4005",
    "confirm": false,
    "timestamp": 1672324988882
    }
    ],
    "ts": 1672324988882,
    "type": "snapshot"
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/liquidation.html b/v5/websocket/public/liquidation.html index 4828bb2408..e28f3b985a 100644 --- a/v5/websocket/public/liquidation.html +++ b/v5/websocket/public/liquidation.html @@ -4,14 +4,14 @@ Liquidation | Bybit API Documentation - +

    Liquidation

    Subscribe to the liquidation stream. Pushes at most one order per second per symbol. As such, this feed does not push all liquidations that occur on Bybit.

    Push frequency: 1s

    Topic:
    liquidation.{symbol} e.g., liquidation.BTCUSDT

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    typestringData type. snapshot
    tsnumberThe timestamp (ms) that the system generates the data
    dataObject
    > updateTimenumberThe updated timestamp (ms)
    > symbolstringSymbol name
    > sidestringPosition side. Buy,Sell. When you receive a Buy update, this means that a long position has been liquidated
    > sizestringExecuted size
    > pricestringBankruptcy price

    Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.liquidation_stream(
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "liquidation.BTCUSDT",
    "type": "snapshot",
    "ts": 1703485237953,
    "data": {
    "updatedTime": 1703485237953,
    "symbol": "BTCUSDT",
    "side": "Sell",
    "size": "0.003",
    "price": "43511.70"
    }
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/orderbook.html b/v5/websocket/public/orderbook.html index 5710acd0fd..4f74eff879 100644 --- a/v5/websocket/public/orderbook.html +++ b/v5/websocket/public/orderbook.html @@ -4,7 +4,7 @@ Orderbook | Bybit API Documentation - + @@ -20,7 +20,7 @@ Level 25 data, push frequency: 20ms
    Level 100 data, push frequency: 100ms

    Topic:
    orderbook.{depth}.{symbol} e.g., orderbook.1.BTCUSDT

    Process snapshot/delta

    To process snapshot and delta messages, please follow these rules:

    Once you have subscribed successfully, you will receive a snapshot. The WebSocket will keep pushing delta messages every time the orderbook changes. If you receive a new snapshot message, you will have to reset your local orderbook. If there is a problem on Bybit's end, a snapshot will be re-sent, which is guaranteed to contain the latest data.

    To apply delta updates:

    • If you receive an amount that is 0, delete the entry
    • If you receive an amount that does not exist, insert it
    • If the entry exists, you simply update the value

    See working code examples of this logic in the FAQ.

    info

    Linear & inverse level 1 data: if 3 seconds have elapsed without a change in the orderbook, a snapshot message will be pushed again.

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    typestringData type. snapshot,delta
    tsnumberThe timestamp (ms) that the system generates the data
    datamapObject
    > sstringSymbol name
    > barrayBids. For snapshot stream, the element is sorted by price in descending order
    >> b[0]stringBid price
    >> b[1]stringBid size
  • The delta data has size=0, which means that all quotations for this price have been filled or cancelled
  • > aarrayAsks. For snapshot stream, the element is sorted by price in ascending order
    >> a[0]stringAsk price
    >> a[1]stringAsk size
  • The delta data has size=0, which means that all quotations for this price have been filled or cancelled
  • > uintegerUpdate ID. Is a sequence. Occasionally, you'll receive "u"=1, which is a snapshot data due to the restart of the service. So please overwrite your local orderbook
    > seqintegerCross sequence
  • You can use this field to compare different levels orderbook data, and for the smaller seq, then it means the data is generated earlier.
  • ctsnumberThe timestamp from the match engine when this orderbook data is produced. It can be correlated with T from public trade channel

    Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.orderbook_stream(
    depth=50,
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "orderbook.50.BTCUSDT",
    "type": "snapshot",
    "ts": 1672304484978,
    "data": {
    "s": "BTCUSDT",
    "b": [
    ...,
    [
    "16493.50",
    "0.006"
    ],
    [
    "16493.00",
    "0.100"
    ]
    ],
    "a": [
    [
    "16611.00",
    "0.029"
    ],
    [
    "16612.00",
    "0.213"
    ],
    ...,
    ],
    "u": 18521288,
    "seq": 7961638724
    }
    "cts": 1672304484976
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/ticker.html b/v5/websocket/public/ticker.html index 767768601b..2c0f586b51 100644 --- a/v5/websocket/public/ticker.html +++ b/v5/websocket/public/ticker.html @@ -4,14 +4,14 @@ Ticker | Bybit API Documentation - +

    Ticker

    Subscribe to the ticker stream.

    note
    • This topic utilises the snapshot field and delta field. If a response param is not found in the message, then its value has not changed.
    • Spot & Option tickers message are snapshot only

    Push frequency: Derivatives & Options - 100ms, Spot - real-time

    Topic:
    tickers.{symbol}

    Response Parameters

    ParameterTypeComments
    topicstringTopic name
    typestringData type. snapshot,delta
    csintegerCross sequence
    tsnumberThe timestamp (ms) that the system generates the data
    dataarrayObject
    > symbolstringSymbol name
    > tickDirectionstringTick direction
    > price24hPcntstringPercentage change of market price in the last 24 hours
    > lastPricestringLast price
    > prevPrice24hstringMarket price 24 hours ago
    > highPrice24hstringThe highest price in the last 24 hours
    > lowPrice24hstringThe lowest price in the last 24 hours
    > prevPrice1hstringMarket price an hour ago
    > markPricestringMark price
    > indexPricestringIndex price
    > openIntereststringOpen interest size
    > openInterestValuestringOpen interest value
    > turnover24hstringTurnover for 24h
    > volume24hstringVolume for 24h
    > nextFundingTimestringNext funding timestamp (ms)
    > fundingRatestringFunding rate
    > bid1PricestringBest bid price
    > bid1SizestringBest bid size
    > ask1PricestringBest ask price
    > ask1SizestringBest ask size
    > deliveryTimedatetimeDelivery date time (UTC+0). Unique field for inverse futures & USDC futures
    > basisRatestringBasis rate. Unique field for inverse futures & USDC futures
    > deliveryFeeRatestringDelivery fee rate. Unique field for inverse futures & USDC futures
    > predictedDeliveryPricestringPredicated delivery price. Unique field for inverse futures & USDC futures
    > preOpenPricestringEstimated pre-market contract open price
  • The value is meaningless when entering continuous trading phase
  • USDC Futures and Inverse Futures do not have this field
  • > preQtystringEstimated pre-market contract open qty
  • The value is meaningless when entering continuous trading phase
  • USDC Futures and Inverse Futures do not have this field
  • > curPreListingPhasestringThe current pre-market contract phase
  • USDC Futures and Inverse Futures do not have this field
  • Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.ticker_stream(
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "tickers.BTCUSDT",
    "type": "snapshot",
    "data": {
    "symbol": "BTCUSDT",
    "tickDirection": "PlusTick",
    "price24hPcnt": "0.017103",
    "lastPrice": "17216.00",
    "prevPrice24h": "16926.50",
    "highPrice24h": "17281.50",
    "lowPrice24h": "16915.00",
    "prevPrice1h": "17238.00",
    "markPrice": "17217.33",
    "indexPrice": "17227.36",
    "openInterest": "68744.761",
    "openInterestValue": "1183601235.91",
    "turnover24h": "1570383121.943499",
    "volume24h": "91705.276",
    "nextFundingTime": "1673280000000",
    "fundingRate": "-0.000212",
    "bid1Price": "17215.50",
    "bid1Size": "84.489",
    "ask1Price": "17216.00",
    "ask1Size": "83.020"
    },
    "cs": 24987956059,
    "ts": 1673272861686
    }
    - + \ No newline at end of file diff --git a/v5/websocket/public/trade.html b/v5/websocket/public/trade.html index e3d153a37c..4de448c1b3 100644 --- a/v5/websocket/public/trade.html +++ b/v5/websocket/public/trade.html @@ -4,7 +4,7 @@ Trade | Bybit API Documentation - + @@ -12,7 +12,7 @@

    Trade

    Subscribe to the recent trades stream.

    After subscription, you will be pushed trade messages in real-time.

    Push frequency: real-time

    Topic:
    publicTrade.{symbol}
    Note: option uses baseCoin, e.g., publicTrade.BTC

    Response Parameters

    ParameterTypeComments
    idstringMessage id. Unique field for option
    topicstringTopic name
    typestringData type. snapshot
    tsnumberThe timestamp (ms) that the system generates the data
    dataarrayObject. The element in the array is sort by matching time in ascending order
    > TnumberThe timestamp (ms) that the order is filled
    > sstringSymbol name
    > SstringSide of taker. Buy,Sell
    > vstringTrade size
    > pstringTrade price
    > LstringDirection of price change. Unique field for future
    > istringTrade ID
    > BTbooleanWhether it is a block trade order or not
    > mPstringMark price, unique field for option
    > iPstringIndex price, unique field for option
    > mIvstringMark iv, unique field for option
    > ivstringiv, unique field for option

    Subscribe Example

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.trade_stream(
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "publicTrade.BTCUSDT",
    "type": "snapshot",
    "ts": 1672304486868,
    "data": [
    {
    "T": 1672304486865,
    "s": "BTCUSDT",
    "S": "Buy",
    "v": "0.001",
    "p": "16578.50",
    "L": "PlusTick",
    "i": "20f43950-d8dd-5b31-9112-a178eb6023af",
    "BT": false
    }
    ]
    }
    - + \ No newline at end of file diff --git a/v5/websocket/trade/guideline.html b/v5/websocket/trade/guideline.html index 777e5da4f1..da7f156c41 100644 --- a/v5/websocket/trade/guideline.html +++ b/v5/websocket/trade/guideline.html @@ -4,13 +4,13 @@ Websocket Trade Guideline | Bybit API Documentation - +

    Websocket Trade Guideline

    URL

    • Mainnet:
      wss://stream.bybit.com/v5/trade
    info

    Users registered from "www.bybit-tr.com", please use wss://stream.bybit-tr.com/v5/trade

    • Testnet:
      wss://stream-testnet.bybit.com/v5/trade

    Support

    • UTA2.0: category=linear, spot, option, inverse
    • UTA1.0: category=linear, spot, option

    Authentication

    Request Parameters

    ParameterRequiredTypeComments
    reqIdfalsestringOptional field, used to match the response
  • If not passed, this field will not be returned in response
  • optruestringOp type. auth
    argsfalsestring["api key", expiry timestamp, "signature"]. Please click here to generate signature

    Response Parameters

    ParameterTypeComments
    reqIdstring
  • If it is passed on the request, then it is returned in the response
  • If it is not passed, then it is not returned in the response
  • retCodeinteger
  • 0: auth success
  • 20001: repeat auth
  • 10004: invalid sign
  • 10001: param error
  • retMsgstring
  • OK
  • Error message
  • opstringOp type
    connIdstringConnection id, the unique id for the connection

    Request Example

    {
    "op": "auth",
    "args": [
    "XXXXXX",
    1711010121452,
    "ec71040eff72b163a36153d770b69d6637bcb29348fbfbb16c269a76595ececf"
    ]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "op": "auth",
    "connId": "cnt5leec0hvan15eukcg-2t"
    }

    Create/Amend/Cancel Order

    Request Parameters

    ParameterRequiredTypeComments
    reqIdfalsestringUsed to identify the uniqueness of the request, the response will return it when passed. The length cannot exceed 36 characters.
  • If passed, it can't be duplicated, otherwise you will get "20006"
  • headertrueobjectRequest headers
    > X-BAPI-TIMESTAMPtruestringCurrent timestamp
    > X-BAPI-RECV-WINDOWfalsestring5000(ms) by default. Request will be rejected when not satisfy this rule: Bybit_server_time - X-BAPI-RECV-WINDOW <= X-BAPI-TIMESTAMP < Bybit_server_time + 1000
    > RefererfalsestringThe referer identifier for API broker user
    optruestringOp type
  • order.create: create an order
  • order.amend: amend an order
  • order.cancel: cancel an order
  • argsfalsearray<object>Args array, support one item only for now
  • order.create: refer to create order request
  • order.amend: refer to amend order request
  • order.cancel: refer to cancel order request
  • Response Parameters

    ParameterTypeComments
    reqIdstring
  • If it is passed on the request, then it is returned in the response
  • If it is not passed, then it is not returned in the response
  • retCodeinteger
  • 0: success
  • 10404: 1. op type is not found; 2. category is not correct/supported
  • 10429: System level frequency protection
  • 20006: reqId is duplicated
  • 10016: 1. internal server error; 2. Service is restarting
  • 10019: ws trade service is restarting, do not accept new request, but the request in the process is not affected. You can build new connection to be routed to normal service
  • retMsgstring
  • OK
  • ""
  • Error message
  • opstringOp type
    dataobjectBusiness data, keep the same as result on rest api response
  • order.create: refer to create order response
  • order.amend: refer to amend order response
  • order.cancel: refer to cancel order response
  • headerobjectHeader info
    > TraceIdstringTrace ID, used to track the trip of request
    > TimenowstringCurrent timestamp
    > X-Bapi-LimitstringThe total rate limit of the current account for this op type
    > X-Bapi-Limit-StatusstringThe remaining rate limit of the current account for this op type
    > X-Bapi-Limit-Reset-TimestampstringThe timestamp indicates when your request limit resets if you have exceeded your rate limit. Otherwise, this is just the current timestamp (it may not exactly match timeNow)
    connIdstringConnection id, the unique id for the connection
    info

    The ack of create/amend/cancel order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status

    Request Example

    {
    "reqId": "test-005",
    "header": {
    "X-BAPI-TIMESTAMP": "1711001595207",
    "X-BAPI-RECV-WINDOW": "8000",
    "Referer": "bot-001" // for api broker
    },
    "op": "order.create",
    "args": [
    {
    "symbol": "ETHUSDT",
    "side": "Buy",
    "orderType": "Limit",
    "qty": "0.2",
    "price": "2800",
    "category": "linear",
    "timeInForce": "PostOnly"
    }
    ]
    }

    Response Example

    {
    "reqId": "test-005",
    "retCode": 0,
    "retMsg": "OK",
    "op": "order.create",
    "data": {
    "orderId": "a4c1718e-fe53-4659-a118-1f6ecce04ad9",
    "orderLinkId": ""
    },
    "header": {
    "X-Bapi-Limit": "10",
    "X-Bapi-Limit-Status": "9",
    "X-Bapi-Limit-Reset-Timestamp": "1711001595208",
    "Traceid": "38b7977b430f9bd228f4b19724794dfd",
    "Timenow": "1711001595209"
    },
    "connId": "cnt5leec0hvan15eukcg-2v"
    }

    Ping

    Request Parameters

    ParameterRequiredTypeComments
    optruestringOp type. ping

    Response Parameters

    ParameterTypeComments
    retCodeintegerResult code
    retMsgstringResult message
    opstringOp type pong
    dataarrayOne item in the array, current timestamp (string)
    connIdstringConnection id, the unique id for the connection

    Request Example

    {
    "op": "ping"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "op": "pong",
    "data": [
    "1711002002529"
    ],
    "connId": "cnt5leec0hvan15eukcg-2v"
    }
    - + \ No newline at end of file diff --git a/v5/ws/connect.html b/v5/ws/connect.html index da263c0bc7..88fea50288 100644 --- a/v5/ws/connect.html +++ b/v5/ws/connect.html @@ -4,7 +4,7 @@ Connect | Bybit API Documentation - + @@ -22,7 +22,7 @@ wss://stream-testnet.bybit.com/v5/private

    WebSocket Order Entry:

    • Mainnet:
      wss://stream.bybit.com/v5/trade

    • Testnet:
      wss://stream-testnet.bybit.com/v5/trade

    info

    If your account is registered from www.bybit-tr.com, please use stream.bybit-tr.com for mainnet access

    Customise Private Connection Alive Time

    For private stream and order entry, you can customise alive duration by adding a param max_active_time, the lowest value is 30s (30 seconds), the highest value is 600s (10 minutes). You can also pass 1m, 2m etc when you try to configure by minute level. e.g., wss://stream-testnet.bybit.com/v5/private?max_active_time=1m.

    In general, if there is no "ping-pong" and no stream data sent from server end, the connection will be cut off after 10 minutes. When you have a particular need, you can configure connection alive time by max_active_time.

    Since ticker scans every 30s, so it is not fully exact, i.e., if you configure 45s, and your last update or ping-pong is occurred on 2023-08-15 17:27:23, your disconnection time maybe happened on 2023-08-15 17:28:15

    Authentication

    info
    Public topics do not require authentication. The following section applies to private topics only.

    Apply for authentication when establishing a connection.

    Note: if you're using pybit, bybit-api, or another high-level library, you can ignore this code - as authentication is handled for you.

    {
    "req_id": "10001", // optional
    "op": "auth",
    "args": [
    "api_key",
    1662350400000, // expires; is greater than your current timestamp
    "signature"
    ]
    }
    # based on: https://github.com/bybit-exchange/pybit/blob/master/pybit/_http_manager.py

    import hmac
    import json
    import time
    import websocket

    api_key = ""
    api_secret = ""

    # Generate expires.
    expires = int((time.time() + 1) * 1000)

    # Generate signature.
    signature = str(hmac.new(
    bytes(api_secret, "utf-8"),
    bytes(f"GET/realtime{expires}", "utf-8"), digestmod="sha256"
    ).hexdigest())

    ws = websocket.WebSocketApp(
    url=url,
    ...
    )

    # Authenticate with API.
    ws.send(
    json.dumps({
    "op": "auth",
    "args": [api_key, expires, signature]
    })
    )

    Successful authentication sample response

    {
    "success": true,
    "ret_msg": "",
    "op": "auth",
    "conn_id": "cejreaspqfh3sjdnldmg-p"
    }
    note

    Example signature algorithms can be found here.

    caution

    Due to network complexity, your may get disconnected at any time. Please follow the instructions below to ensure that you receive WebSocket messages on time:

    1. Keep connection alive by sending the heartbeat packet
    2. Reconnect as soon as possible if disconnected

    IP Limits

    • Do not frequently connect and disconnect the connection.
    • Do not build over 500 connections in 5 minutes. This is counted separately per WebSocket endpoint.

    Public channel - Args limits

    Regardless of Perpetual, Futures, Options or Spot, for one public connection, you cannot have length of "args" array over 21,000 characters.

    • Spot can input up to 10 args for each subscription request sent to one connection
    • Options can input up to 2000 args for a single connection
    • No args limit for Futures for now

    How to Send the Heartbeat Packet

    How to Send

    // req_id is a customised ID, which is optional
    ws.send(JSON.stringify({"req_id": "100001", "op": "ping"}));

    Pong message example of public channels

    {
    "success": true,
    "ret_msg": "pong",
    "conn_id": "0970e817-426e-429a-a679-ff7f55e0b16a",
    "op": "ping"
    }

    Pong message example of private channels

    {
    "req_id": "test",
    "op": "pong",
    "args": [
    "1675418560633"
    ],
    "conn_id": "cfcb4ocsvfriu23r3er0-1b"
    }
    caution

    To avoid network or program issues, we recommend that you send the ping heartbeat packet every 20 seconds to maintain the WebSocket connection.

    How to Subscribe to Topics

    Understanding WebSocket Filters

    How to subscribe with a filter

    // Subscribing level 1 orderbook
    {
    "req_id": "test", // optional
    "op": "subscribe",
    "args": [
    "orderbook.1.BTCUSDT"
    ]
    }

    Subscribing with multiple symbols and topics is supported.

    {
    "req_id": "test", // optional
    "op": "subscribe",
    "args": [
    "orderbook.1.BTCUSDT",
    "publicTrade.BTCUSDT",
    "orderbook.1.ETHUSDT"
    ]
    }

    Understanding WebSocket Filters: Unsubscription

    You can dynamically subscribe and unsubscribe from topics without unsubscribing from the WebSocket like so:

    {
    "op": "unsubscribe",
    "args": [
    "publicTrade.ETHUSD"
    ],
    "req_id": "customised_id"
    }

    Understanding the Subscription Response

    Topic subscription response message example

    {
    "success": true,
    "ret_msg": "",
    "op": "subscribe",
    "conn_id": "cejreassvfrsfvb9v1a0-2m"
    }
    - + \ No newline at end of file diff --git a/zh-TW/404.html b/zh-TW/404.html index 79d8e7879e..fdb7b5b2d0 100644 --- a/zh-TW/404.html +++ b/zh-TW/404.html @@ -4,13 +4,13 @@ 找不到頁面 | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/account-info.html b/zh-TW/api-explorer/v5/account/account-info.html index 599acce804..786926a68c 100644 --- a/zh-TW/api-explorer/v5/account/account-info.html +++ b/zh-TW/api-explorer/v5/account/account-info.html @@ -4,13 +4,13 @@ Get Account Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/account.html b/zh-TW/api-explorer/v5/account/account.html index 38e235e543..dbf3d9dbe6 100644 --- a/zh-TW/api-explorer/v5/account/account.html +++ b/zh-TW/api-explorer/v5/account/account.html @@ -4,13 +4,13 @@ Account | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/borrow-history.html b/zh-TW/api-explorer/v5/account/borrow-history.html index 55eb9327ee..1087cd8f45 100644 --- a/zh-TW/api-explorer/v5/account/borrow-history.html +++ b/zh-TW/api-explorer/v5/account/borrow-history.html @@ -4,13 +4,13 @@ Get Borrow History | Bybit API Documentation - +

    Get Borrow History

    Get borrow history

    Query Parameters
    • currency string

      e.g., USDC, USDT, BTC, ETH

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • limit integer

      Default value: 20

      Limit per page. 1-50

    • cursor string

      Cusor, used for pagiation

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/coin-greeks.html b/zh-TW/api-explorer/v5/account/coin-greeks.html index ee13795446..e4b94926ae 100644 --- a/zh-TW/api-explorer/v5/account/coin-greeks.html +++ b/zh-TW/api-explorer/v5/account/coin-greeks.html @@ -4,13 +4,13 @@ Get Coin Greeks | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/collateral-info.html b/zh-TW/api-explorer/v5/account/collateral-info.html index 23b0f6884b..4949531850 100644 --- a/zh-TW/api-explorer/v5/account/collateral-info.html +++ b/zh-TW/api-explorer/v5/account/collateral-info.html @@ -4,13 +4,13 @@ Get Collateral Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/fee-rate.html b/zh-TW/api-explorer/v5/account/fee-rate.html index 6c7fec860d..cabf790851 100644 --- a/zh-TW/api-explorer/v5/account/fee-rate.html +++ b/zh-TW/api-explorer/v5/account/fee-rate.html @@ -4,13 +4,13 @@ Get Fee Rate | Bybit API Documentation - +

    Get Fee Rate

    Get fee rate

    Query Parameters
    • category string required

      Possible values: [spot, linear, inverse, option]

      Product type. working for spot and option

    • symbol string

      Symbol name. valid for linear,inverse and spot

    • baseCoin string

      Possible values: [SOL, BTC, ETH]

      Base coin. Valid for option

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/set-collateral.html b/zh-TW/api-explorer/v5/account/set-collateral.html index 9847cc4184..bddf2631c9 100644 --- a/zh-TW/api-explorer/v5/account/set-collateral.html +++ b/zh-TW/api-explorer/v5/account/set-collateral.html @@ -4,13 +4,13 @@ Set Collateral Coin | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/set-margin-mode.html b/zh-TW/api-explorer/v5/account/set-margin-mode.html index f2af960fba..56d319edbf 100644 --- a/zh-TW/api-explorer/v5/account/set-margin-mode.html +++ b/zh-TW/api-explorer/v5/account/set-margin-mode.html @@ -4,13 +4,13 @@ Set Margin Mode | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/set-spot-hedge.html b/zh-TW/api-explorer/v5/account/set-spot-hedge.html index a0b2799f10..92946ea3b3 100644 --- a/zh-TW/api-explorer/v5/account/set-spot-hedge.html +++ b/zh-TW/api-explorer/v5/account/set-spot-hedge.html @@ -4,13 +4,13 @@ Set Spot Hedging | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/transaction-log.html b/zh-TW/api-explorer/v5/account/transaction-log.html index ed0c49774e..4db4a7b9c0 100644 --- a/zh-TW/api-explorer/v5/account/transaction-log.html +++ b/zh-TW/api-explorer/v5/account/transaction-log.html @@ -4,13 +4,13 @@ Get Transaction Log | Bybit API Documentation - +

    Get Transaction Log

    Get transaction log

    Query Parameters
    • accountType string

      Possible values: [UNIFIED]

      Support UNIFIED for now

    • category string

      Possible values: [spot, linear, option]

      Product category

    • currency string

      Currency

    • baseCoin string

      Base coin

    • type string

      Possible values: [TRANSFER_IN, TRANSFER_OUT, TRADE, SETTLEMENT, DELIVERY, LIQUIDATION, BONUS, FEE_REFUND, INTEREST, CURRENCY_BUY, CURRENCY_SELL]

      Transaction log type

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • limit integer

      Default value: 20

      Limit size for each page. 1-50

    • cursor string

      Cursor, used for pagination

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/upgrade-unified-account.html b/zh-TW/api-explorer/v5/account/upgrade-unified-account.html index 6642142404..912f05501e 100644 --- a/zh-TW/api-explorer/v5/account/upgrade-unified-account.html +++ b/zh-TW/api-explorer/v5/account/upgrade-unified-account.html @@ -4,13 +4,13 @@ Upgrade to Unified Account | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/account/wallet.html b/zh-TW/api-explorer/v5/account/wallet.html index 56f0295856..dda5244e5e 100644 --- a/zh-TW/api-explorer/v5/account/wallet.html +++ b/zh-TW/api-explorer/v5/account/wallet.html @@ -4,13 +4,13 @@ Get Wallet Balance | Bybit API Documentation - +

    Get Wallet Balance

    Get wallet balance

    Query Parameters
    • accountType string required

      Possible values: [UNIFIED, CONTRACT, SPOT]

      Account type

    • coin string

      Coin name. You can pass mutiple coins like USDT,USDC

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/account-coin-balance.html b/zh-TW/api-explorer/v5/asset/account-coin-balance.html index 816265b861..721631c9a5 100644 --- a/zh-TW/api-explorer/v5/asset/account-coin-balance.html +++ b/zh-TW/api-explorer/v5/asset/account-coin-balance.html @@ -4,13 +4,13 @@ Get Single Coin Balance | Bybit API Documentation - +

    Get Single Coin Balance

    Get Single Coin Balance

    Query Parameters
    • memberId string

      If query sub user balance, please input sub uid

    • accountType string required

      Possible values: [SPOT, CONTRACT, UNIFIED, OPTION, INVESTMENT, FUND]

      Account type

    • coin string required

      Coin name

    • withBonus integer

      Possible values: [0, 1]

      Query bonus or not. 0=false, 1=true

    • withTransferSafeAmount integer

      Possible values: [0, 1]

      Whether query delay withdraw/transfer safe amount. 0:false, 1;true

    Header Parameters
    • apiKey string required

      Use master UID api key

    • secret string required

      Use master UID api secret

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/all-balance.html b/zh-TW/api-explorer/v5/asset/all-balance.html index 19ffe53531..a455ccc1e8 100644 --- a/zh-TW/api-explorer/v5/asset/all-balance.html +++ b/zh-TW/api-explorer/v5/asset/all-balance.html @@ -4,13 +4,13 @@ Get All Coins Balance | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/asset-info.html b/zh-TW/api-explorer/v5/asset/asset-info.html index 3b837af9bd..25467e1840 100644 --- a/zh-TW/api-explorer/v5/asset/asset-info.html +++ b/zh-TW/api-explorer/v5/asset/asset-info.html @@ -4,13 +4,13 @@ Get Asset Info (Spot) | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/asset.html b/zh-TW/api-explorer/v5/asset/asset.html index 73d0eae2a0..f88d198cbe 100644 --- a/zh-TW/api-explorer/v5/asset/asset.html +++ b/zh-TW/api-explorer/v5/asset/asset.html @@ -4,13 +4,13 @@ Asset | Bybit API Documentation - +
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/coin-info.html b/zh-TW/api-explorer/v5/asset/coin-info.html index 805c7fca4d..aec319fef8 100644 --- a/zh-TW/api-explorer/v5/asset/coin-info.html +++ b/zh-TW/api-explorer/v5/asset/coin-info.html @@ -4,13 +4,13 @@ Get Coin Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/create-inter-transfer.html b/zh-TW/api-explorer/v5/asset/create-inter-transfer.html index bd136c21aa..3ac8b38e43 100644 --- a/zh-TW/api-explorer/v5/asset/create-inter-transfer.html +++ b/zh-TW/api-explorer/v5/asset/create-inter-transfer.html @@ -4,13 +4,13 @@ Create Internal Transfer | Bybit API Documentation - +

    Create Internal Transfer

    Create internal transfer

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • transferId string required

      UUID

    • coin string required

      Coin

    • amount string required

      Amount

    • fromAccountType string required

      Possible values: [UNIFIED, CONTRACT, SPOT, OPTION, INVESTMENT, FUND]

      From account type

    • toAccountType string required

      Possible values: [UNIFIED, CONTRACT, SPOT, OPTION, INVESTMENT, FUND]

      To account type

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/delivery.html b/zh-TW/api-explorer/v5/asset/delivery.html index 781c863807..66c50e9a11 100644 --- a/zh-TW/api-explorer/v5/asset/delivery.html +++ b/zh-TW/api-explorer/v5/asset/delivery.html @@ -4,13 +4,13 @@ Get Delivery Record | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/deposit-coin-spec.html b/zh-TW/api-explorer/v5/asset/deposit-coin-spec.html index 42d1d55821..7150ced82d 100644 --- a/zh-TW/api-explorer/v5/asset/deposit-coin-spec.html +++ b/zh-TW/api-explorer/v5/asset/deposit-coin-spec.html @@ -4,13 +4,13 @@ Get Allowed Deposit Coin Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/deposit-record.html b/zh-TW/api-explorer/v5/asset/deposit-record.html index ea34e1f385..6aca0f6def 100644 --- a/zh-TW/api-explorer/v5/asset/deposit-record.html +++ b/zh-TW/api-explorer/v5/asset/deposit-record.html @@ -4,13 +4,13 @@ Get Deposit Record (on-chain) | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/exchange.html b/zh-TW/api-explorer/v5/asset/exchange.html index 896ac12cb3..c5ef8263db 100644 --- a/zh-TW/api-explorer/v5/asset/exchange.html +++ b/zh-TW/api-explorer/v5/asset/exchange.html @@ -4,13 +4,13 @@ Get Coin Exchange Records | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/inter-transfer-list.html b/zh-TW/api-explorer/v5/asset/inter-transfer-list.html index 27fe16e8b5..6a4859e07f 100644 --- a/zh-TW/api-explorer/v5/asset/inter-transfer-list.html +++ b/zh-TW/api-explorer/v5/asset/inter-transfer-list.html @@ -4,13 +4,13 @@ Get Internal Transfer Records | Bybit API Documentation - +

    Get Internal Transfer Records

    Get internal transfer records

    Query Parameters
    • transferId string

      Transfer id

    • coin string

      Coin name

    • status string

      Possible values: [SUCCESS, PENDING, FAILED]

      Status

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • limit integer

      Default value: 20

      Limit size. 1-50

    • cursor string

      Cursor, used for pagination

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/internal-deposit-record.html b/zh-TW/api-explorer/v5/asset/internal-deposit-record.html index be00c6491d..9f8cf88839 100644 --- a/zh-TW/api-explorer/v5/asset/internal-deposit-record.html +++ b/zh-TW/api-explorer/v5/asset/internal-deposit-record.html @@ -4,13 +4,13 @@ Get Internal Deposit Records (off-chain) | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/master-deposit-addr.html b/zh-TW/api-explorer/v5/asset/master-deposit-addr.html index fcacc6ad86..08e3eaf78f 100644 --- a/zh-TW/api-explorer/v5/asset/master-deposit-addr.html +++ b/zh-TW/api-explorer/v5/asset/master-deposit-addr.html @@ -4,13 +4,13 @@ Get Master Deposit Address | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/set-deposit-acct.html b/zh-TW/api-explorer/v5/asset/set-deposit-acct.html index 9ea4f704e1..4b89e82abf 100644 --- a/zh-TW/api-explorer/v5/asset/set-deposit-acct.html +++ b/zh-TW/api-explorer/v5/asset/set-deposit-acct.html @@ -4,13 +4,13 @@ Set Deposit Account | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/settlement.html b/zh-TW/api-explorer/v5/asset/settlement.html index 5c21435c16..074150cfe1 100644 --- a/zh-TW/api-explorer/v5/asset/settlement.html +++ b/zh-TW/api-explorer/v5/asset/settlement.html @@ -4,13 +4,13 @@ Get USDC Session Settlement | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/sub-deposit-addr.html b/zh-TW/api-explorer/v5/asset/sub-deposit-addr.html index e2d9d1516d..b5301865dc 100644 --- a/zh-TW/api-explorer/v5/asset/sub-deposit-addr.html +++ b/zh-TW/api-explorer/v5/asset/sub-deposit-addr.html @@ -4,13 +4,13 @@ Get Sub Deposit Address | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/sub-deposit-record.html b/zh-TW/api-explorer/v5/asset/sub-deposit-record.html index 0ec5adb414..deba8e89d1 100644 --- a/zh-TW/api-explorer/v5/asset/sub-deposit-record.html +++ b/zh-TW/api-explorer/v5/asset/sub-deposit-record.html @@ -4,13 +4,13 @@ Get Sub Account Deposit Records (on-chain) | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/sub-uid-list.html b/zh-TW/api-explorer/v5/asset/sub-uid-list.html index 2960a239df..4d7ba39f6b 100644 --- a/zh-TW/api-explorer/v5/asset/sub-uid-list.html +++ b/zh-TW/api-explorer/v5/asset/sub-uid-list.html @@ -4,13 +4,13 @@ Get Sub UID | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/transferable-coin.html b/zh-TW/api-explorer/v5/asset/transferable-coin.html index 9b2bb867c4..58f0d9232a 100644 --- a/zh-TW/api-explorer/v5/asset/transferable-coin.html +++ b/zh-TW/api-explorer/v5/asset/transferable-coin.html @@ -4,13 +4,13 @@ Get Transferable Coin | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/unitransfer-list.html b/zh-TW/api-explorer/v5/asset/unitransfer-list.html index eefbd98443..450b18db56 100644 --- a/zh-TW/api-explorer/v5/asset/unitransfer-list.html +++ b/zh-TW/api-explorer/v5/asset/unitransfer-list.html @@ -4,13 +4,13 @@ Get Universal Transfer Records | Bybit API Documentation - +

    Get Universal Transfer Records

    Get universal transfer record

    Query Parameters
    • transferId string

      Transfer id

    • coin string

      Coin name

    • status string

      Possible values: [SUCCESS, FAILED, PENDING]

      Status

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • limit integer

      Default value: 20

      Limit size. 1-50

    • cursor string

      Cursor, used for pagination

    Header Parameters
    • apiKey string required

      Use master UID api key

    • secret string required

      Use master UID api secret

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/unitransfer.html b/zh-TW/api-explorer/v5/asset/unitransfer.html index b38c84faf1..44fc03a468 100644 --- a/zh-TW/api-explorer/v5/asset/unitransfer.html +++ b/zh-TW/api-explorer/v5/asset/unitransfer.html @@ -4,13 +4,13 @@ Create Universal Transfer | Bybit API Documentation - +

    Create Universal Transfer

    Create universal transfer

    Header Parameters
    • apiKey string required

      Use master UID api key

    • secret string required

      Use master UID api secret

    Request Body
    • transferId sting required

      Transfer id. UUID

    • coin sting required

      Coin name

    • amount sting required

      Amount

    • fromMemberId intger required

      From UID

    • toMemberId integer required

      To UID

    • fromAccountType string required

      Possible values: [UNIFIED, CONTRACT, SPOT, INVESTMENT, OPTION, FUND]

      From account type

    • toAccountType string required

      Possible values: [UNIFIED, CONTRACT, SPOT, INVESTMENT, OPTION, FUND]

      To account type

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/asset/withdraw-record.html b/zh-TW/api-explorer/v5/asset/withdraw-record.html index 4e0ac52601..09e4401fbc 100644 --- a/zh-TW/api-explorer/v5/asset/withdraw-record.html +++ b/zh-TW/api-explorer/v5/asset/withdraw-record.html @@ -4,13 +4,13 @@ Get Withdraw Records | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/category.html b/zh-TW/api-explorer/v5/category.html index 085d4ae2b2..f26176ff5e 100644 --- a/zh-TW/api-explorer/v5/category.html +++ b/zh-TW/api-explorer/v5/category.html @@ -4,13 +4,13 @@ V5 API | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/lt/etp.html b/zh-TW/api-explorer/v5/lt/etp.html index e275a07c95..cb9c85e81b 100644 --- a/zh-TW/api-explorer/v5/lt/etp.html +++ b/zh-TW/api-explorer/v5/lt/etp.html @@ -4,13 +4,13 @@ Spot Leverage Token | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/lt/leverage-token-info.html b/zh-TW/api-explorer/v5/lt/leverage-token-info.html index a174efe065..b45d2feebf 100644 --- a/zh-TW/api-explorer/v5/lt/leverage-token-info.html +++ b/zh-TW/api-explorer/v5/lt/leverage-token-info.html @@ -4,13 +4,13 @@ Get Leverage Token Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/lt/leverage-token-reference.html b/zh-TW/api-explorer/v5/lt/leverage-token-reference.html index 79a3e826d4..2b44680b8d 100644 --- a/zh-TW/api-explorer/v5/lt/leverage-token-reference.html +++ b/zh-TW/api-explorer/v5/lt/leverage-token-reference.html @@ -4,13 +4,13 @@ Get Leverage Token Market | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/lt/order-record.html b/zh-TW/api-explorer/v5/lt/order-record.html index d7baa39097..ef4bd9ce08 100644 --- a/zh-TW/api-explorer/v5/lt/order-record.html +++ b/zh-TW/api-explorer/v5/lt/order-record.html @@ -4,13 +4,13 @@ Get Purchase or Redeem Records | Bybit API Documentation - +

    Get Purchase or Redeem Records

    Get the order history of purchase or redeem

    Query Parameters
    • ltCoin string

      Levearage coin name. e.g., BTC3L

    • orderId string

      Order id

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • limit integer

      Default value: 100

      Limit size of each page. 1-500

    • ltOrderType integer

      Possible values: [1, 2]

      LT order type. 1=purchase, 2=redeem

    • serialNo string

      Serial number

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/lt/purchase.html b/zh-TW/api-explorer/v5/lt/purchase.html index b17458ff81..53f84bb0a4 100644 --- a/zh-TW/api-explorer/v5/lt/purchase.html +++ b/zh-TW/api-explorer/v5/lt/purchase.html @@ -4,13 +4,13 @@ Purchase | Bybit API Documentation - +

    Purchase

    Purchase leverage token

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • ltCoin string

      Levearage coin name. e.g., BTC3L

    • ltAmount string

      Purchase amount

    • serialNo string

      Serial number, customised order id

    • required
    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/lt/redeem.html b/zh-TW/api-explorer/v5/lt/redeem.html index f25dd8a8f5..fc3cf41778 100644 --- a/zh-TW/api-explorer/v5/lt/redeem.html +++ b/zh-TW/api-explorer/v5/lt/redeem.html @@ -4,13 +4,13 @@ Redeem | Bybit API Documentation - +

    Redeem

    Redeem leverage token

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • ltCoin string

      Levearage coin name. e.g., BTC3L

    • quantity string

      Redeem quantity

    • serialNo string

      Serial number, customised order id

    • required
    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/delivery-price.html b/zh-TW/api-explorer/v5/market/delivery-price.html index 6a8369ff67..0d47033768 100644 --- a/zh-TW/api-explorer/v5/market/delivery-price.html +++ b/zh-TW/api-explorer/v5/market/delivery-price.html @@ -4,13 +4,13 @@ Get Delivery Price | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/history-fund-rate.html b/zh-TW/api-explorer/v5/market/history-fund-rate.html index f2b3abbccd..067e4a8b41 100644 --- a/zh-TW/api-explorer/v5/market/history-fund-rate.html +++ b/zh-TW/api-explorer/v5/market/history-fund-rate.html @@ -4,13 +4,13 @@ Get Funding Rate History | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/index-kline.html b/zh-TW/api-explorer/v5/market/index-kline.html index 6c5ba1c10e..3e1ac7a84b 100644 --- a/zh-TW/api-explorer/v5/market/index-kline.html +++ b/zh-TW/api-explorer/v5/market/index-kline.html @@ -4,13 +4,13 @@ Get Index Price Kline | Bybit API Documentation - +

    Get Index Price Kline

    Get Index Price Kline data

    Query Parameters
    • category string[] required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • interval string[] required

      Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

      kline interval

    • start integer

      start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

    • end integer

      end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

    • limit integer

      Default value: 200

      Maximum 1000

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/instrument.html b/zh-TW/api-explorer/v5/market/instrument.html index 4c0a767993..3ae8633a3a 100644 --- a/zh-TW/api-explorer/v5/market/instrument.html +++ b/zh-TW/api-explorer/v5/market/instrument.html @@ -4,13 +4,13 @@ Get Instrument Info | Bybit API Documentation - +

    Get Instrument Info

    Get launched instruments information.

    Query Parameters
    • category string[] required

      Possible values: [linear, inverse, option, spot]

      Product type

    • symbol string

      Symbol name

    • status string

      Possible values: [PreLaunch, Trading, Settling, Delivering, Closed]

      Status filter

    • baseCoin string

      for linear, invere and option ONLY

    • limit integer

      Default value: 500

      Maximum 1000. spot does not have pagination

    • cursor string

      pass cursor from the response param "nagePageCursor" to paginate

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/insurance.html b/zh-TW/api-explorer/v5/market/insurance.html index 293c26921c..5ed9d2756c 100644 --- a/zh-TW/api-explorer/v5/market/insurance.html +++ b/zh-TW/api-explorer/v5/market/insurance.html @@ -4,13 +4,13 @@ Get Insurance | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/iv.html b/zh-TW/api-explorer/v5/market/iv.html index 9e54f06c9e..0f87a7bbde 100644 --- a/zh-TW/api-explorer/v5/market/iv.html +++ b/zh-TW/api-explorer/v5/market/iv.html @@ -4,13 +4,13 @@ Get Historical Volatility | Bybit API Documentation - +

    Get Historical Volatility

    Get historical volatility

    Query Parameters
    • category string[] required

      Possible values: [option]

      Product type

    • baseCoin string

      Default value: BTC

      Base coin. If not passed, BTC returned by default

    • period integer[]

      Possible values: [7, 14, 21, 30, 60, 90, 180, 270]

      Period. If not passed, it returns 7 days by default. SOL does not have 180 and 270

    • startTime integer

      The start timstamp (ms)

    • endTime integer

      The end timstamp (ms)

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/kline.html b/zh-TW/api-explorer/v5/market/kline.html index 0942e7a470..0bf0eee9ed 100644 --- a/zh-TW/api-explorer/v5/market/kline.html +++ b/zh-TW/api-explorer/v5/market/kline.html @@ -4,13 +4,13 @@ Get Kline | Bybit API Documentation - +

    Get Kline

    Get kline data

    Query Parameters
    • category string[] required

      Possible values: [linear, inverse, spot]

      Product type

    • symbol string required

      Symbol name

    • interval string[] required

      Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

      kline interval

    • start integer

      start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

    • end integer

      end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

    • limit integer

      Default value: 200

      Maximum 1000

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/long-short-ratio.html b/zh-TW/api-explorer/v5/market/long-short-ratio.html index f11f2f25e6..98cafe7f14 100644 --- a/zh-TW/api-explorer/v5/market/long-short-ratio.html +++ b/zh-TW/api-explorer/v5/market/long-short-ratio.html @@ -4,13 +4,13 @@ Get Long Short Ratio | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/mark-kline.html b/zh-TW/api-explorer/v5/market/mark-kline.html index cd2b3602af..c35eeb918c 100644 --- a/zh-TW/api-explorer/v5/market/mark-kline.html +++ b/zh-TW/api-explorer/v5/market/mark-kline.html @@ -4,13 +4,13 @@ Get Mark Price Kline | Bybit API Documentation - +

    Get Mark Price Kline

    Get Mark Price Kline data

    Query Parameters
    • category string[] required

      Possible values: [linear, inverse, spot]

      Product type

    • symbol string required

      Symbol name

    • interval string[] required

      Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

      kline interval

    • start integer

      start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

    • end integer

      end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

    • limit integer

      Default value: 200

      Maximum 1000

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/market.html b/zh-TW/api-explorer/v5/market/market.html index b558a90ab5..9119730d40 100644 --- a/zh-TW/api-explorer/v5/market/market.html +++ b/zh-TW/api-explorer/v5/market/market.html @@ -4,13 +4,13 @@ Market | Bybit API Documentation - +
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/open-interest.html b/zh-TW/api-explorer/v5/market/open-interest.html index 01511a09f4..8825499d37 100644 --- a/zh-TW/api-explorer/v5/market/open-interest.html +++ b/zh-TW/api-explorer/v5/market/open-interest.html @@ -4,13 +4,13 @@ Get Open Interest | Bybit API Documentation - +

    Get Open Interest

    Get open interest

    Query Parameters
    • category string[] required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • intervalTime string[] required

      Possible values: [5min, 15min, 30min, 1h, 4h, 1d]

      interval time

    • startTime integer

      The start timstamp (ms)

    • endTime integer

      The end timstamp (ms)

    • limit integer

      Default value: 50

      Maximum 200

    • cursor string

      pass cursor from the response param "nagePageCursor" to paginate

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/orderbook.html b/zh-TW/api-explorer/v5/market/orderbook.html index 60f8add544..c5d4608a4d 100644 --- a/zh-TW/api-explorer/v5/market/orderbook.html +++ b/zh-TW/api-explorer/v5/market/orderbook.html @@ -4,13 +4,13 @@ Get Orderbook | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/premium-index-kline.html b/zh-TW/api-explorer/v5/market/premium-index-kline.html index f1091e2921..8acb5ce178 100644 --- a/zh-TW/api-explorer/v5/market/premium-index-kline.html +++ b/zh-TW/api-explorer/v5/market/premium-index-kline.html @@ -4,13 +4,13 @@ Get Premium Index Price Kline | Bybit API Documentation - +

    Get Premium Index Price Kline

    Get Premium Index Price Kline data

    Query Parameters
    • category string[] required

      Possible values: [linear]

      Product type

    • symbol string required

      Symbol name

    • interval string[] required

      Possible values: [1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, M, W]

      kline interval

    • start integer

      start timestamp (ms). e.g., 1669852800000 (1 DEC 2022 UTC 0:00)

    • end integer

      end timestamp (ms). e.g., 1671062400000 (15 DEC 2022 UTC 0:00)

    • limit integer

      Default value: 200

      Maximum 1000

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/recent-trade.html b/zh-TW/api-explorer/v5/market/recent-trade.html index d8fccdf198..6adc794f4c 100644 --- a/zh-TW/api-explorer/v5/market/recent-trade.html +++ b/zh-TW/api-explorer/v5/market/recent-trade.html @@ -4,13 +4,13 @@ Get Public Recent Trading History | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/risk-limit.html b/zh-TW/api-explorer/v5/market/risk-limit.html index eb112be941..691e2441c3 100644 --- a/zh-TW/api-explorer/v5/market/risk-limit.html +++ b/zh-TW/api-explorer/v5/market/risk-limit.html @@ -4,13 +4,13 @@ Get Risk Limit | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/tickers.html b/zh-TW/api-explorer/v5/market/tickers.html index c109b97b90..0050e90f69 100644 --- a/zh-TW/api-explorer/v5/market/tickers.html +++ b/zh-TW/api-explorer/v5/market/tickers.html @@ -4,13 +4,13 @@ Get Tickers | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/market/time.html b/zh-TW/api-explorer/v5/market/time.html index b5ea6b14d4..87ce6e902e 100644 --- a/zh-TW/api-explorer/v5/market/time.html +++ b/zh-TW/api-explorer/v5/market/time.html @@ -4,13 +4,13 @@ Get Bybit Server Time | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/auto-add-margin.html b/zh-TW/api-explorer/v5/position/auto-add-margin.html index e5e4723f1e..d98353dd16 100644 --- a/zh-TW/api-explorer/v5/position/auto-add-margin.html +++ b/zh-TW/api-explorer/v5/position/auto-add-margin.html @@ -4,13 +4,13 @@ Set Auto Add Margin | Bybit API Documentation - +

    Set Auto Add Margin

    Set Auto Add Margin

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • autoAddMargin integer required

      0 - turn off, 1 - turn on

    • positionIdx integer required

      Possible values: [0, 1, 2]

      Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/close-pnl.html b/zh-TW/api-explorer/v5/position/close-pnl.html index f0713ab5b3..05c2199a91 100644 --- a/zh-TW/api-explorer/v5/position/close-pnl.html +++ b/zh-TW/api-explorer/v5/position/close-pnl.html @@ -4,13 +4,13 @@ Get Closed PnL | Bybit API Documentation - +

    Get Closed PnL

    Get closed pnl

    Query Parameters
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string

      Symbol name

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • limit integer

      Default value: 50

      1-200. max 200

    • cursor string

      cursor for pagination

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/cross-isolate.html b/zh-TW/api-explorer/v5/position/cross-isolate.html index a6c430ca64..0fa7c676de 100644 --- a/zh-TW/api-explorer/v5/position/cross-isolate.html +++ b/zh-TW/api-explorer/v5/position/cross-isolate.html @@ -4,13 +4,13 @@ Switch Cross/Isolated Margin | Bybit API Documentation - +

    Switch Cross/Isolated Margin

    Select cross margin mode or isolated margin mode

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • tradeMode integer required

      Possible values: [0, 1]

      0 - cross margin, 1 - isolated margin

    • buyLeverage string

      Buy side leverage

    • sellLeverage string

      Sell side leverage

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/execution.html b/zh-TW/api-explorer/v5/position/execution.html index 024c3063b6..aed198f900 100644 --- a/zh-TW/api-explorer/v5/position/execution.html +++ b/zh-TW/api-explorer/v5/position/execution.html @@ -4,13 +4,13 @@ Get Execution (2 years) | Bybit API Documentation - +

    Get Execution (2 years)

    Get execution list

    Query Parameters
    • category string required

      Possible values: [linear, inverse, spot, option]

      Product type

    • symbol string

      Symbol name

    • baseCoin string

      Base coin

    • orderId string
    • orderLinkId string

      User customised order id

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • execType string

      Possible values: [Trade, AdlTrade, Funding, BustTrade, Settle]

      Execution type

    • limit integer

      Default value: 50

      1-100. max 100

    • cursor string

      cursor to pagination

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/leverage.html b/zh-TW/api-explorer/v5/position/leverage.html index ea855523b5..27a03010cb 100644 --- a/zh-TW/api-explorer/v5/position/leverage.html +++ b/zh-TW/api-explorer/v5/position/leverage.html @@ -4,13 +4,13 @@ Set Leverage | Bybit API Documentation - +

    Set Leverage

    Set levearage.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • buyLeverage string

      Buy side leverage

    • sellLeverage string

      Sell side leverage

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/manual-add-margin.html b/zh-TW/api-explorer/v5/position/manual-add-margin.html index 0c2f1a449b..641834a9d3 100644 --- a/zh-TW/api-explorer/v5/position/manual-add-margin.html +++ b/zh-TW/api-explorer/v5/position/manual-add-margin.html @@ -4,13 +4,13 @@ Add Or Reduce Margin | Bybit API Documentation - +

    Add Or Reduce Margin

    Manually add or reduce margin for isolated margin position

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • margin string required

      10 - add, -10 - reduce

    • positionIdx integer required

      Possible values: [0, 1, 2]

      Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/position-info.html b/zh-TW/api-explorer/v5/position/position-info.html index c251d1f23d..eb977cc532 100644 --- a/zh-TW/api-explorer/v5/position/position-info.html +++ b/zh-TW/api-explorer/v5/position/position-info.html @@ -4,13 +4,13 @@ Get Position Info | Bybit API Documentation - +

    Get Position Info

    Get Position Info

    Query Parameters
    • category string required

      Possible values: [linear, inverse, option]

      Product type

    • symbol string

      Symbol name

    • baseCoin string

      Base coin. For option only

    • settleCoin string

      Used for linear & inverse, symbol or settleCoin is required

    • limit integer

      Default value: 20

      1-200. max 200

    • cursor string

      cursor, used for pagination

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/position-mode.html b/zh-TW/api-explorer/v5/position/position-mode.html index 920986e697..633492fcd8 100644 --- a/zh-TW/api-explorer/v5/position/position-mode.html +++ b/zh-TW/api-explorer/v5/position/position-mode.html @@ -4,13 +4,13 @@ Switch Position Mode | Bybit API Documentation - +

    Switch Position Mode

    Switch Position Mode

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string

      Symbol name

    • coin string

      Coin name

    • mode integer required

      Possible values: [0, 3]

      Position mode. 0 - Merged single, 3 - Both sides

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/position.html b/zh-TW/api-explorer/v5/position/position.html index f7a2bb77f8..cfc87f282e 100644 --- a/zh-TW/api-explorer/v5/position/position.html +++ b/zh-TW/api-explorer/v5/position/position.html @@ -4,13 +4,13 @@ Position | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/set-risk-limit.html b/zh-TW/api-explorer/v5/position/set-risk-limit.html index fe96c41bfe..f527aa57f8 100644 --- a/zh-TW/api-explorer/v5/position/set-risk-limit.html +++ b/zh-TW/api-explorer/v5/position/set-risk-limit.html @@ -4,13 +4,13 @@ Set Risk Limit | Bybit API Documentation - +

    Set Risk Limit

    Set risk limit.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • riskId integer required

      Risk limit id

    • positionIdx integer

      Possible values: [0, 1, 2]

      Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/tpsl-mode.html b/zh-TW/api-explorer/v5/position/tpsl-mode.html index 650a490f5a..52421e55a2 100644 --- a/zh-TW/api-explorer/v5/position/tpsl-mode.html +++ b/zh-TW/api-explorer/v5/position/tpsl-mode.html @@ -4,13 +4,13 @@ Set TP/SL Mode | Bybit API Documentation - +

    Set TP/SL Mode

    Set tp/sl mode.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • tpSlMode string required

      Possible values: [Full, Partial]

      Full = full position TP/SL, Partial = partial mode tp/sl

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/position/trading-stop.html b/zh-TW/api-explorer/v5/position/trading-stop.html index 4a5683b110..350a7ff990 100644 --- a/zh-TW/api-explorer/v5/position/trading-stop.html +++ b/zh-TW/api-explorer/v5/position/trading-stop.html @@ -4,13 +4,13 @@ Set Trading Stop | Bybit API Documentation - +

    Set Trading Stop

    Set trade stop.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse]

      Product type

    • symbol string required

      Symbol name

    • takeProfit string

      Take profit price

    • stopLoss string

      Stop loss price

    • tpSize string

      Take profit size

    • slSize string

      Stop loss size

    • tpTriggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      Take profit trigger price type

    • slTriggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      Stop loss trigger price type

    • trailingStop string

      Trailing stop

    • activePrice string

      Trailing stop trigger price

    • positionIdx integer required

      Possible values: [0, 1, 2]

      Position index. 0=one-way-mode, 1=buy-hedge-mode, 2=sell-hedege-mode. REQUIRED for hedge-mode

    • tpLimitPrice string

      The limit order price when take profit price is triggered

    • slLimitPrice string

      The limit order price when stop loss price is triggered

    • tpOrderType string

      Possible values: [Market, Limit]

      The order type when take profit is triggered

    • slOrderType string

      Possible values: [Market, Limit]

      The order type when stop loss is triggered

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/account-info.html b/zh-TW/api-explorer/v5/spot-margin-normal/account-info.html index 32e6e81b6d..0f12236ddb 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/account-info.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/account-info.html @@ -4,13 +4,13 @@ Get Loan Account Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/borrow-order.html b/zh-TW/api-explorer/v5/spot-margin-normal/borrow-order.html index 0273dfc7b4..d149537377 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/borrow-order.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/borrow-order.html @@ -4,13 +4,13 @@ Get Borrow Order Detail | Bybit API Documentation - +

    Get Borrow Order Detail

    Get Borrow Order Detail

    Query Parameters
    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • coin string

      Coin name

    • status string

      Possible values: [0, 1, 2]

      Status filter. 0:get all kinds of status, 1:uncleared, 2:cleared

    • limit integer

      Limit for data size per page. 1 - 500. Default:500

    Header Parameters
    • apiKey string required

      Please use normal mode account API KEY

    • secret string required

      Please use normal mode account API SECRET

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/borrow.html b/zh-TW/api-explorer/v5/spot-margin-normal/borrow.html index 4ba96d9f41..cfb1ee936e 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/borrow.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/borrow.html @@ -4,13 +4,13 @@ Borrow | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/borrowable-data.html b/zh-TW/api-explorer/v5/spot-margin-normal/borrowable-data.html index 4e895b07d1..80051b6155 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/borrowable-data.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/borrowable-data.html @@ -4,13 +4,13 @@ Get Borrowable Coin Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/interest-quota.html b/zh-TW/api-explorer/v5/spot-margin-normal/interest-quota.html index cfc7c7e92d..fa091ba654 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/interest-quota.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/interest-quota.html @@ -4,13 +4,13 @@ Get Interest & Quota | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/margin-data.html b/zh-TW/api-explorer/v5/spot-margin-normal/margin-data.html index 8f27954b5a..57606c5e03 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/margin-data.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/margin-data.html @@ -4,13 +4,13 @@ Get Margin Coin Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/normal-margin-trade.html b/zh-TW/api-explorer/v5/spot-margin-normal/normal-margin-trade.html index cf1f0f4074..89774e821c 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/normal-margin-trade.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/normal-margin-trade.html @@ -4,13 +4,13 @@ Spot Margin Trade (Classic) | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/repay-order.html b/zh-TW/api-explorer/v5/spot-margin-normal/repay-order.html index 39c4266da3..aa893477a8 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/repay-order.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/repay-order.html @@ -4,13 +4,13 @@ Get Repayment Order Detail | Bybit API Documentation - +

    Get Repayment Order Detail

    Get Repayment Order Detail

    Query Parameters
    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • coin string

      Coin name

    • limit integer

      Limit for data size per page. 1 - 500. Default:500

    Header Parameters
    • apiKey string required

      Please use normal mode account API KEY

    • secret string required

      Please use normal mode account API SECRET

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/repay.html b/zh-TW/api-explorer/v5/spot-margin-normal/repay.html index 90670a5834..7227525194 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/repay.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/repay.html @@ -4,13 +4,13 @@ Repay | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/switch-mode.html b/zh-TW/api-explorer/v5/spot-margin-normal/switch-mode.html index 31c3ead60e..900ddf76f1 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/switch-mode.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/switch-mode.html @@ -4,13 +4,13 @@ Toggle Margin Trade | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-normal/vip-margin.html b/zh-TW/api-explorer/v5/spot-margin-normal/vip-margin.html index 8ecf6485e9..72ca21e307 100644 --- a/zh-TW/api-explorer/v5/spot-margin-normal/vip-margin.html +++ b/zh-TW/api-explorer/v5/spot-margin-normal/vip-margin.html @@ -4,13 +4,13 @@ Get VIP Margin Data | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-uta/set-leverage.html b/zh-TW/api-explorer/v5/spot-margin-uta/set-leverage.html index cda23a2233..66b25fad4a 100644 --- a/zh-TW/api-explorer/v5/spot-margin-uta/set-leverage.html +++ b/zh-TW/api-explorer/v5/spot-margin-uta/set-leverage.html @@ -4,13 +4,13 @@ Set Leverage | Bybit API Documentation - +

    Set Leverage

    Set leverage for margin trade

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • leverage integer

      Possible values: [2, 3, 4, 5, 6, 7, 8, 9, 10]

      Levearge, support 2-10

    • required
    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-uta/status.html b/zh-TW/api-explorer/v5/spot-margin-uta/status.html index 6ed3432809..b1e04ac3a5 100644 --- a/zh-TW/api-explorer/v5/spot-margin-uta/status.html +++ b/zh-TW/api-explorer/v5/spot-margin-uta/status.html @@ -4,13 +4,13 @@ Get Status And Leverage | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-uta/switch-mode.html b/zh-TW/api-explorer/v5/spot-margin-uta/switch-mode.html index 5a8f0970eb..dc273af111 100644 --- a/zh-TW/api-explorer/v5/spot-margin-uta/switch-mode.html +++ b/zh-TW/api-explorer/v5/spot-margin-uta/switch-mode.html @@ -4,13 +4,13 @@ Toggle Margin Trade | Bybit API Documentation - +

    Toggle Margin Trade

    Toggle margin trade

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • spotMarginMode integer

      Possible values: [0, 1]

      Margin mode. 0=off, 1=on

    • required
    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-uta/uta-margin-trade.html b/zh-TW/api-explorer/v5/spot-margin-uta/uta-margin-trade.html index 6204846eb0..f621995d19 100644 --- a/zh-TW/api-explorer/v5/spot-margin-uta/uta-margin-trade.html +++ b/zh-TW/api-explorer/v5/spot-margin-uta/uta-margin-trade.html @@ -4,13 +4,13 @@ Spot Margin Trade (UTA) | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/spot-margin-uta/vip-margin.html b/zh-TW/api-explorer/v5/spot-margin-uta/vip-margin.html index 8391c67ac5..e04f2f661d 100644 --- a/zh-TW/api-explorer/v5/spot-margin-uta/vip-margin.html +++ b/zh-TW/api-explorer/v5/spot-margin-uta/vip-margin.html @@ -4,13 +4,13 @@ Get VIP Margin Data | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/amend-order.html b/zh-TW/api-explorer/v5/trade/amend-order.html index b2dc0f5f8b..e7cf533c4b 100644 --- a/zh-TW/api-explorer/v5/trade/amend-order.html +++ b/zh-TW/api-explorer/v5/trade/amend-order.html @@ -4,13 +4,13 @@ Amend Order | Bybit API Documentation - +

    Amend Order

    Amend an order.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse, option, spot]

      Product type

    • symbol string required

      Symbol name

    • orderId string

      Either orderId or orderLinkId is required

    • orderLinkId string

      Either orderId or orderLinkId is required

    • qty string

      Modify the order qty

    • price string

      Modify the order price

    • orderIv string

      Modify option order iv

    • triggerPrice string

      Modify StopOrder trigger price

    • tpslMode string

      Possible values: [Full, Partial]

      Full:TPSL for full size, Partial:TPSL for partial size

    • takeProfit string

      Modify take profit price

    • stopLoss string

      Modify stop loss price

    • triggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      Modify the type of trigger price

    • tpTriggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      Modify trigger take profit price price type

    • slTriggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      Modify trigger stop loss price price type

    • tpLimitPrice string

      The limit order price when take profit price is triggered

    • slLimitPrice string

      The limit order price when stop loss price is triggered

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/batch-amend.html b/zh-TW/api-explorer/v5/trade/batch-amend.html index 5d3a5d9e9b..6b19f5eec7 100644 --- a/zh-TW/api-explorer/v5/trade/batch-amend.html +++ b/zh-TW/api-explorer/v5/trade/batch-amend.html @@ -4,13 +4,13 @@ Batch Amend Order | Bybit API Documentation - +

    Batch Amend Order

    Batch amend orders

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [option, linear]

      Product type

    • request object[] required

      Possible values: <= 10

    • symbol string required

      Symbol name

    • orderId string

      Either orderId or orderLinkId is required

    • orderLinkId string

      Either orderId or orderLinkId is required

    • qty string

      Modify the order qty

    • price string

      Modify the order price

    • orderIv string

      Modify option order iv

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/batch-cancel.html b/zh-TW/api-explorer/v5/trade/batch-cancel.html index 38e3b24b19..cb46c55711 100644 --- a/zh-TW/api-explorer/v5/trade/batch-cancel.html +++ b/zh-TW/api-explorer/v5/trade/batch-cancel.html @@ -4,13 +4,13 @@ Batch Cancel Order | Bybit API Documentation - +

    Batch Cancel Order

    Batch cancel orders

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [option, linear]

      Product type

    • request object[] required

      Possible values: <= 10

    • symbol string required

      Symbol name

    • orderId string

      Either orderId or orderLinkId is required

    • orderLinkId string

      Either orderId or orderLinkId is required

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/batch-place.html b/zh-TW/api-explorer/v5/trade/batch-place.html index 43fac1daf8..20b0c91b76 100644 --- a/zh-TW/api-explorer/v5/trade/batch-place.html +++ b/zh-TW/api-explorer/v5/trade/batch-place.html @@ -4,13 +4,13 @@ Batch Place Order | Bybit API Documentation - +

    Batch Place Order

    Batch place orders

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [option, linear]

      Product type. linear, option

    • request object[] required

      Possible values: <= 10

    • symbol string required

      Symbol name

    • side string required

      Possible values: [Buy, Sell]

    • orderType string required

      Possible values: [Market, Limit]

      Order type

    • qty string required
    • price string
    • orderIv string
    • timeInForce string required

      Possible values: [GTC, IOC, FOK, PostOnly]

      Time in force

    • positionIdx integer

      Possible values: [0]

      Position mode. one-way mode only for unified.

    • orderLinkId string required

      REQUIRED param when place an option order

    • reduceOnly boolean

      Possible values: [true, false]

      specify true if a close position order

    • mmp boolean

      Possible values: [true, false]

      enable market marker protection

    • smpType string

      Possible values: [None, CancelMaker, CancelTaker, CancelBoth]

      Smp execution type

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/cancel-all.html b/zh-TW/api-explorer/v5/trade/cancel-all.html index b4b1ea65f2..a59dca022c 100644 --- a/zh-TW/api-explorer/v5/trade/cancel-all.html +++ b/zh-TW/api-explorer/v5/trade/cancel-all.html @@ -4,13 +4,13 @@ Cancel All Orders | Bybit API Documentation - +

    Cancel All Orders

    Cancel all orders.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse, option, spot]

      Product type

    • symbol string

      Symbol name. Required if not passing baseCoin or settleCoin

    • baseCoin string

      Cancel by base coin. Required if not passing symbol or settleCoin

    • settleCoin string

      Cancel by settle coin. Does not support spot. Required if not passing symbol or baseCoin

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/cancel-order.html b/zh-TW/api-explorer/v5/trade/cancel-order.html index 66cdf5a5a1..9b79bfc808 100644 --- a/zh-TW/api-explorer/v5/trade/cancel-order.html +++ b/zh-TW/api-explorer/v5/trade/cancel-order.html @@ -4,13 +4,13 @@ Cancel Order | Bybit API Documentation - +

    Cancel Order

    Cancel a single order.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse, option, spot]

      Product type

    • symbol string required

      Symbol name

    • orderId string

      Either orderId or orderLinkId is required

    • orderLinkId string

      Either orderId or orderLinkId is required

    • orderFilter string

      Possible values: [Order, tpslOrder, StopOrder]

      Default value: Order

      Take profit stop loss or ordinary order. Only valid for spot.

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/create-order.html b/zh-TW/api-explorer/v5/trade/create-order.html index 2d874b2266..35c0d4e570 100644 --- a/zh-TW/api-explorer/v5/trade/create-order.html +++ b/zh-TW/api-explorer/v5/trade/create-order.html @@ -4,13 +4,13 @@ Place Order | Bybit API Documentation - +

    Place Order

    Place an order.

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Request Body
    • category string required

      Possible values: [linear, inverse, option, spot]

      Product type

    • symbol string required

      Symbol name

    • isLeverage integer

      Possible values: [0, 1]

      Whether to loan, only for spot. 0:No;1:Yes.

    • side string required

      Possible values: [Buy, Sell]

    • orderType string required

      Possible values: [Market, Limit]

      Order type

    • qty string required

      Order qty

    • price string

      ignore it if Market order

    • triggerPrice string

      param for StopOrder

    • triggerDirection integer

      param for StopOrder. 1=rise, 2=fall

    • triggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      param for StopOrder

    • orderFilter string

      Possible values: [Order, tpslOrder, StopOrder]

      Default value: Order

      Take profit stop loss, normal order or conditional order. Only valid for spot.

    • orderIv string

      Implied volatility. param for option order

    • timeInForce string

      Possible values: [GTC, IOC, FOK, PostOnly]

      Time in force

    • positionIdx integer

      Possible values: [0, 1, 2]

      0=one-way mode, 1=buy-hedge-mode, 2=sell-hedge-mode

    • orderLinkId string

      required param for option order

    • takeProfit string

      Take profit price

    • stopLoss string

      Stop loss price

    • tpTriggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      Trigger take profit price price type

    • slTriggerBy string

      Possible values: [LastPrice, MarkPrice, IndexPrice]

      Trigger stop loss price price type

    • reduceOnly boolean

      Possible values: [true, false]

      specify true if a close position order

    • closeOnTrigger boolean

      Possible values: [true, false]

      close on trigger

    • smpType string

      Possible values: [None, CancelMaker, CancelTaker, CancelBoth]

      Smp execution type

    • mmp boolean

      Possible values: [true, false]

      market marker protection. for option order

    • tpslMode string

      Possible values: [Full, Partial]

      TP/SL mode

    • tpLimitPrice string

      The limit order price when take profit price is triggered

    • slLimitPrice string

      The limit order price when stop loss price is triggered

    • tpOrderType string

      Possible values: [Market, Limit]

      The order type when take profit is triggered

    • slOrderType string

      Possible values: [Market, Limit]

      The order type when stop loss is triggered

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/open-order.html b/zh-TW/api-explorer/v5/trade/open-order.html index b96e00d8df..260d5b7368 100644 --- a/zh-TW/api-explorer/v5/trade/open-order.html +++ b/zh-TW/api-explorer/v5/trade/open-order.html @@ -4,13 +4,13 @@ Get Open Orders (real-time) | Bybit API Documentation - +

    Get Open Orders (real-time)

    Get unfilled orders or partially filled orders

    Query Parameters
    • category string required

      Possible values: [linear, inverse, option, spot]

      Product type

    • symbol string

      Symbol name

    • baseCoin string

      Base coin

    • settleCoin string

      Settle coin. Spot is not available

    • orderId string
    • orderLinkId string

      User customised order id

    • orderFilter string

      Possible values: [Order, StopOrder, tpslOrder]

      Order filter. Default:all kinds of orders

    • openOnly integer

      Possible values: [0, 1, 2]

      Whether to only query active orders, if openOnly = 0, only get active orders. If it is 1, return only the order data of the final status (cancelled/rejected/completely filled, etc.) in the last 10 minutes

    • limit integer

      Default value: 20

      1-50. max 50

    • cursor string

      cursor, used for pagination

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/order-list.html b/zh-TW/api-explorer/v5/trade/order-list.html index 0f36baf2a8..04d8973388 100644 --- a/zh-TW/api-explorer/v5/trade/order-list.html +++ b/zh-TW/api-explorer/v5/trade/order-list.html @@ -4,13 +4,13 @@ Get Order History (2 years) | Bybit API Documentation - +

    Get Order History (2 years)

    Get order history.

    Query Parameters
    • category string required

      Possible values: [linear, inverse, option, spot]

      Product type

    • symbol string

      Symbol name

    • baseCoin string

      Base coin

    • orderId string
    • orderLinkId string

      User customised order id

    • startTime integer

      The start timestamp (ms)

    • endTime integer

      The end timestamp (ms)

    • orderStatus string

      Possible values: [Created, New, Rejected, PartiallyFilled, PartillyFilledCancelled, Filled, PendingCancel, Cancelled, Untriggered, Triggered, Deactivated, Active]

      Order status

    • orderFilter string

      Possible values: [Order, StopOrder, tpslOrder]

      Order filter

    • limit integer

      Default value: 20

      1-50. max 50

    • cursor string

      cursor to pagnition

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/query-spot-quota.html b/zh-TW/api-explorer/v5/trade/query-spot-quota.html index b0a428f490..79a67c51da 100644 --- a/zh-TW/api-explorer/v5/trade/query-spot-quota.html +++ b/zh-TW/api-explorer/v5/trade/query-spot-quota.html @@ -4,13 +4,13 @@ Get Borrow Quota (Spot) | Bybit API Documentation - +

    Get Borrow Quota (Spot)

    Query user's spot available quota

    Query Parameters
    • category string required

      Possible values: [spot]

      Product type

    • symbol string required

      Symbol name

    • side string required

      Possible values: [Buy, Sell]

      Buy or Sell

    Header Parameters
    • apiKey string

      A UTA sub account API key is provided by default

    • secret string

      A UTA sub account API key is provided by default

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/trade/trade.html b/zh-TW/api-explorer/v5/trade/trade.html index 2210494ce3..328c817065 100644 --- a/zh-TW/api-explorer/v5/trade/trade.html +++ b/zh-TW/api-explorer/v5/trade/trade.html @@ -4,13 +4,13 @@ Trade | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/user/affiliate-info.html b/zh-TW/api-explorer/v5/user/affiliate-info.html index 22271de859..cf115bfeba 100644 --- a/zh-TW/api-explorer/v5/user/affiliate-info.html +++ b/zh-TW/api-explorer/v5/user/affiliate-info.html @@ -4,13 +4,13 @@ Get Affiliate User Info | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/user/apikey-info.html b/zh-TW/api-explorer/v5/user/apikey-info.html index 74a8bc17cf..6e88d34580 100644 --- a/zh-TW/api-explorer/v5/user/apikey-info.html +++ b/zh-TW/api-explorer/v5/user/apikey-info.html @@ -4,13 +4,13 @@ Get API Key Information | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/user/list-sub-apikeys.html b/zh-TW/api-explorer/v5/user/list-sub-apikeys.html index a8e0994b77..16496703a7 100644 --- a/zh-TW/api-explorer/v5/user/list-sub-apikeys.html +++ b/zh-TW/api-explorer/v5/user/list-sub-apikeys.html @@ -4,13 +4,13 @@ Get Sub Account All API Keys | Bybit API Documentation - +

    Get Sub Account All API Keys

    Get Sub Account All API Keys

    Query Parameters
    • subMemberId string required

      Sub UID

    • limit integer

      Default value: 20

      1-20. max 20

    • cursor string

      cursor, used for pagination

    Header Parameters
    • apiKey string required

      Please use main account API key

    • secret string required

      Please use main account secret key

    Responses

    successful operation

    Loading...
    - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/user/user.html b/zh-TW/api-explorer/v5/user/user.html index bf2a177f42..434d6d9432 100644 --- a/zh-TW/api-explorer/v5/user/user.html +++ b/zh-TW/api-explorer/v5/user/user.html @@ -4,13 +4,13 @@ User | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/api-explorer/v5/user/wallet-type.html b/zh-TW/api-explorer/v5/user/wallet-type.html index b805bdfd73..1f307d60f5 100644 --- a/zh-TW/api-explorer/v5/user/wallet-type.html +++ b/zh-TW/api-explorer/v5/user/wallet-type.html @@ -4,13 +4,13 @@ Get UID Wallet Type | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/assets/js/935f2afb.31c47aad.js b/zh-TW/assets/js/935f2afb.9f1c6e04.js similarity index 85% rename from zh-TW/assets/js/935f2afb.31c47aad.js rename to zh-TW/assets/js/935f2afb.9f1c6e04.js index fa75dcd9bd..808cd1c011 100644 --- a/zh-TW/assets/js/935f2afb.31c47aad.js +++ b/zh-TW/assets/js/935f2afb.9f1c6e04.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"v3SideBar":[{"type":"link","label":"\u6982\u89bd","href":"/docs/zh-TW/v3/intro","docId":"v3/intro"},{"type":"category","label":"Tax","items":[{"type":"link","label":"\u67e5\u8a62\u7279\u5b9a\u7528\u6236\u5728\u5e73\u53f0\u8a3b\u518a\u65e5\u671f","href":"/docs/zh-TW/tax/time","docId":"v3/tax/register-time"},{"type":"link","label":"\u5275\u5efa\u5c0e\u51fa\u5831\u544a\u8acb\u6c42","href":"/docs/zh-TW/tax/report","docId":"v3/tax/request-report"},{"type":"link","label":"\u67e5\u8a62\u5831\u544a\u5c0e\u51fa\u72c0\u614b","href":"/docs/zh-TW/tax/status","docId":"v3/tax/report-status"},{"type":"link","label":"\u6578\u64da\u5c0e\u51fa","href":"/docs/zh-TW/tax/data-export","docId":"v3/tax/data-export"},{"type":"link","label":"\u6578\u64da\u8aaa\u660e","href":"/docs/zh-TW/tax/explain","docId":"v3/tax/data-explain"},{"type":"link","label":"\u679a\u8209\u5b9a\u7fa9","href":"/docs/zh-TW/tax/enum","docId":"v3/tax/enum"}],"collapsed":true,"collapsible":true}],"v5SideBar":[{"type":"link","label":"\u6982\u89bd","href":"/docs/zh-TW/v5/intro","docId":"v5/intro"},{"type":"link","label":"\u63a5\u5165\u6307\u5357","href":"/docs/zh-TW/v5/guide","docId":"v5/guide"},{"type":"link","label":"\u5e33\u6236\u6a21\u5f0f\u4ecb\u7d39","href":"/docs/zh-TW/v5/acct-mode","docId":"v5/acct-mode"},{"type":"link","label":"\u67e5\u8a62\u516c\u544a","href":"/docs/zh-TW/v5/announcement","docId":"v5/announcement"},{"type":"link","label":"\u81ea\u6210\u4ea4\u6514\u622a","href":"/docs/zh-TW/v5/smp","docId":"v5/smp"},{"type":"link","label":"\u5982\u4f55\u4f7f\u7528API\u5e36\u55ae","href":"/docs/zh-TW/v5/copytrade","docId":"v5/copytrade"},{"type":"link","label":"\u6a21\u64ec\u4ea4\u6613","href":"/docs/zh-TW/v5/demo","docId":"v5/demo"},{"type":"category","label":"\u516c\u6709\u884c\u60c5","items":[{"type":"link","label":"\u67e5\u8a62\u5e02\u5834\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/kline","docId":"v5/market/kline"},{"type":"link","label":"\u67e5\u8a62\u6a19\u8a18\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/mark-kline","docId":"v5/market/mark-kline"},{"type":"link","label":"\u67e5\u8a62\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/index-kline","docId":"v5/market/index-kline"},{"type":"link","label":"\u67e5\u8a62\u6ea2\u50f9\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/preimum-index-kline","docId":"v5/market/preimum-index-kline"},{"type":"link","label":"\u67e5\u8a62\u53ef\u4ea4\u6613\u7522\u54c1\u7684\u898f\u683c\u4fe1\u606f","href":"/docs/zh-TW/v5/market/instrument","docId":"v5/market/instrument"},{"type":"link","label":"Order Book (\u6df1\u5ea6)","href":"/docs/zh-TW/v5/market/orderbook","docId":"v5/market/orderbook"},{"type":"link","label":"\u67e5\u8a62\u6700\u65b0\u884c\u60c5\u4fe1\u606f","href":"/docs/zh-TW/v5/market/tickers","docId":"v5/market/tickers"},{"type":"link","label":"\u67e5\u8a62\u6b77\u53f2\u8cc7\u91d1\u8cbb\u7387","href":"/docs/zh-TW/v5/market/history-fund-rate","docId":"v5/market/history-fund-rate"},{"type":"link","label":"\u67e5\u8a62\u5e73\u53f0\u6700\u8fd1\u6210\u4ea4\u6b77\u53f2","href":"/docs/zh-TW/v5/market/recent-trade","docId":"v5/market/recent-trade"},{"type":"link","label":"\u67e5\u8a62\u672a\u5e73\u5009\u5408\u7d04\u6301\u5009\u6578\u91cf","href":"/docs/zh-TW/v5/market/open-interest","docId":"v5/market/open-interest"},{"type":"link","label":"\u67e5\u8a62\u671f\u6b0a\u6ce2\u52d5\u7387","href":"/docs/zh-TW/v5/market/iv","docId":"v5/market/iv"},{"type":"link","label":"\u67e5\u8a62\u4fdd\u96aa\u57fa\u91d1","href":"/docs/zh-TW/v5/market/insurance","docId":"v5/market/insurance"},{"type":"link","label":"\u67e5\u8a62\u5408\u7d04\u98a8\u96aa\u9650\u984d","href":"/docs/zh-TW/v5/market/risk-limit","docId":"v5/market/risk-limit"},{"type":"link","label":"\u67e5\u8a62\u4ea4\u5272\u50f9\u683c","href":"/docs/zh-TW/v5/market/delivery-price","docId":"v5/market/delivery-price"},{"type":"link","label":"\u67e5\u8a62\u591a\u7a7a\u6bd4","href":"/docs/zh-TW/v5/market/long-short-ratio","docId":"v5/market/long-short-ratio"},{"type":"link","label":"Bybit\u670d\u52d9\u5668\u6642\u9593","href":"/docs/zh-TW/v5/market/time","docId":"v5/market/time"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u4ea4\u6613","items":[{"type":"link","label":"\u5275\u5efa\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/create-order","docId":"v5/order/create-order"},{"type":"link","label":"\u4fee\u6539\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/amend-order","docId":"v5/order/amend-order"},{"type":"link","label":"\u64a4\u92b7\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/cancel-order","docId":"v5/order/cancel-order"},{"type":"link","label":"\u67e5\u8a62\u5be6\u6642\u548c\u7d42\u614b\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/open-order","docId":"v5/order/open-order"},{"type":"link","label":"\u64a4\u92b7\u6240\u6709\u8a02\u55ae","href":"/docs/zh-TW/v5/order/cancel-all","docId":"v5/order/cancel-all"},{"type":"link","label":"\u67e5\u8a62\u6b77\u53f2\u8a02\u55ae (2\u5e74)","href":"/docs/zh-TW/v5/order/order-list","docId":"v5/order/order-list"},{"type":"link","label":"\u67e5\u8a62\u6210\u4ea4\u7d00\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/order/execution","docId":"v5/order/execution"},{"type":"link","label":"\u6279\u91cf\u5275\u5efa\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/batch-place","docId":"v5/order/batch-place"},{"type":"link","label":"\u6279\u91cf\u4fee\u6539\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/batch-amend","docId":"v5/order/batch-amend"},{"type":"link","label":"\u6279\u91cf\u64a4\u92b7\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/batch-cancel","docId":"v5/order/batch-cancel"},{"type":"link","label":"\u67e5\u8a62\u7528\u6236\u53ef\u7528\u984d\u5ea6 (\u73fe\u8ca8)","href":"/docs/zh-TW/v5/order/spot-borrow-quota","docId":"v5/order/spot-borrow-quota"},{"type":"link","label":"\u8a2d\u7f6e\u65b7\u7dda\u4fdd\u8b77\u6642\u9593","href":"/docs/zh-TW/v5/order/dcp","docId":"v5/order/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u6301\u5009","items":[{"type":"link","label":"\u67e5\u8a62\u6301\u5009 (\u5be6\u6642)","href":"/docs/zh-TW/v5/position/","docId":"v5/position/position"},{"type":"link","label":"\u8a2d\u7f6e\u69d3\u687f","href":"/docs/zh-TW/v5/position/leverage","docId":"v5/position/leverage"},{"type":"link","label":"\u5207\u63db\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1(\u4ea4\u6613\u5c0d)","href":"/docs/zh-TW/v5/position/cross-isolate","docId":"v5/position/cross-isolate"},{"type":"link","label":"\u5207\u63db\u6301\u5009\u6a21\u5f0f","href":"/docs/zh-TW/v5/position/position-mode","docId":"v5/position/position-mode"},{"type":"link","label":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d","href":"/docs/zh-TW/v5/position/trading-stop","docId":"v5/position/trading-stop"},{"type":"link","label":"\u8a2d\u7f6e\u81ea\u52d5\u8ffd\u52a0\u4fdd\u8b49\u91d1","href":"/docs/zh-TW/v5/position/auto-add-margin","docId":"v5/position/auto-add-margin"},{"type":"link","label":"\u624b\u52d5\u589e\u52a0\u6216\u6e1b\u5c11\u4fdd\u8b49\u91d1","href":"/docs/zh-TW/v5/position/manual-add-margin","docId":"v5/position/manual-add-margin"},{"type":"link","label":"\u67e5\u8a62\u5e73\u5009\u76c8\u8667","href":"/docs/zh-TW/v5/position/close-pnl","docId":"v5/position/close-pnl"},{"type":"link","label":"\u79fb\u5009","href":"/docs/zh-TW/v5/position/move-position","docId":"v5/position/move-position"},{"type":"link","label":"\u67e5\u8a62\u79fb\u5009\u6b77\u53f2","href":"/docs/zh-TW/v5/position/move-position-history","docId":"v5/position/move-position-history"},{"type":"link","label":"\u78ba\u8a8d\u65b0\u7684\u98a8\u96aa\u9650\u984d","href":"/docs/zh-TW/v5/position/confirm-mmr","docId":"v5/position/confirm-mmr"},{"type":"link","label":"\u8a2d\u7f6e\u98a8\u96aa\u9650\u984d (\u5ee2\u68c4)","href":"/docs/zh-TW/v5/position/set-risk-limit","docId":"v5/position/set-risk-limit"},{"type":"link","label":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d\u6a21\u5f0f (\u5ee2\u68c4)","href":"/docs/zh-TW/v5/position/tpsl-mode","docId":"v5/position/tpsl-mode"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5347\u7d1a\u524d\u76f8\u95dc\u7d00\u9304","items":[{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u8a02\u55ae\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/order-list","docId":"v5/pre-upgrade/order-list"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u6210\u4ea4\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/execution","docId":"v5/pre-upgrade/execution"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u5e73\u5009\u76c8\u8667","href":"/docs/zh-TW/v5/pre-upgrade/close-pnl","docId":"v5/pre-upgrade/close-pnl"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u4ea4\u6613\u65e5\u8a8c","href":"/docs/zh-TW/v5/pre-upgrade/transaction-log","docId":"v5/pre-upgrade/transaction-log"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u671f\u6b0a\u4ea4\u5272\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/delivery","docId":"v5/pre-upgrade/delivery"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524dUSDC\u7d50\u7b97\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/settlement","docId":"v5/pre-upgrade/settlement"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5e33\u6236","items":[{"type":"link","label":"\u67e5\u8a62\u9322\u5305\u9918\u984d","href":"/docs/zh-TW/v5/account/wallet-balance","docId":"v5/account/wallet-balance"},{"type":"link","label":"\u5347\u7d1a\u7d71\u4e00\u4fdd\u8b49\u91d1\u8cec\u6236","href":"/docs/zh-TW/v5/account/upgrade-unified-account","docId":"v5/account/upgrade-unified-account"},{"type":"link","label":"\u67e5\u8a62\u5229\u606f\u8a18\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/account/borrow-history","docId":"v5/account/borrow-history"},{"type":"link","label":"\u4e00\u9375\u9084\u6b3e","href":"/docs/zh-TW/v5/account/repay-liability","docId":"v5/account/repay-liability"},{"type":"link","label":"\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","href":"/docs/zh-TW/v5/account/set-collateral","docId":"v5/account/set-collateral"},{"type":"link","label":"\u6279\u91cf\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","href":"/docs/zh-TW/v5/account/batch-set-collateral","docId":"v5/account/batch-set-collateral"},{"type":"link","label":"\u67e5\u8a62\u62b5\u62bc\u54c1\u4fe1\u606f","href":"/docs/zh-TW/v5/account/collateral-info","docId":"v5/account/collateral-info"},{"type":"link","label":"\u67e5\u8a62Greeks\u4fe1\u606f","href":"/docs/zh-TW/v5/account/coin-greeks","docId":"v5/account/coin-greeks"},{"type":"link","label":"\u67e5\u8a62\u624b\u7e8c\u8cbb\u7387","href":"/docs/zh-TW/v5/account/fee-rate","docId":"v5/account/fee-rate"},{"type":"link","label":"\u67e5\u8a62\u8cec\u6236\u914d\u7f6e","href":"/docs/zh-TW/v5/account/account-info","docId":"v5/account/account-info"},{"type":"link","label":"\u67e5\u8a62DCP\u914d\u7f6e","href":"/docs/zh-TW/v5/account/dcp-info","docId":"v5/account/dcp-info"},{"type":"link","label":"\u4ea4\u6613\u65e5\u8a8c (\u7d71\u4e00\u5e33\u6236)","href":"/docs/zh-TW/v5/account/transaction-log","docId":"v5/account/transaction-log"},{"type":"link","label":"\u4ea4\u6613\u65e5\u8a8c (\u7d93\u5178\u5e33\u6236)","href":"/docs/zh-TW/v5/account/contract-transaction-log","docId":"v5/account/contract-transaction-log"},{"type":"link","label":"\u67e5\u8a62SMP\u7d44ID","href":"/docs/zh-TW/v5/account/smp-group","docId":"v5/account/smp-group"},{"type":"link","label":"\u8a2d\u7f6e\u4fdd\u8b49\u91d1\u6a21\u5f0f(\u5e33\u6236)","href":"/docs/zh-TW/v5/account/set-margin-mode","docId":"v5/account/set-margin-mode"},{"type":"link","label":"\u8a2d\u7f6e\u73fe\u8ca8\u5c0d\u885d","href":"/docs/zh-TW/v5/account/set-spot-hedge","docId":"v5/account/set-spot-hedge"},{"type":"link","label":"\u8bbe\u7f6e\u5e02\u5546\u4fdd\u8b77","href":"/docs/zh-TW/v5/account/set-mmp","docId":"v5/account/set-mmp"},{"type":"link","label":"\u91cd\u7f6e\u5e02\u5546\u4fdd\u8b77\u51cd\u7d50","href":"/docs/zh-TW/v5/account/reset-mmp","docId":"v5/account/reset-mmp"},{"type":"link","label":"\u67e5\u8a62\u5e02\u5546\u4fdd\u8b77\u914d\u7f6e\u4fe1\u606f","href":"/docs/zh-TW/v5/account/get-mmp-state","docId":"v5/account/get-mmp-state"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u8cc7\u7522","items":[{"type":"link","label":"\u67e5\u8a62\u4ea4\u5272\u7d00\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/asset/delivery","docId":"v5/asset/delivery"},{"type":"link","label":"\u67e5\u8a62USDC\u7d50\u7b97\u7d00\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/asset/settlement","docId":"v5/asset/settlement"},{"type":"link","label":"\u67e5\u8a62\u514c\u63db\u8a02\u55ae\u7d00\u9304","href":"/docs/zh-TW/v5/asset/exchange","docId":"v5/asset/exchange"},{"type":"link","label":"\u67e5\u8a62\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/asset/coin-info","docId":"v5/asset/coin-info"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u5217\u8868","href":"/docs/zh-TW/v5/asset/sub-uid-list","docId":"v5/asset/sub-uid-list"},{"type":"category","label":"\u9918\u984d","items":[{"type":"link","label":"\u67e5\u8a62\u8cc7\u7522\u4fe1\u606f (\u73fe\u8ca8)","href":"/docs/zh-TW/v5/asset/balance/asset-info","docId":"v5/asset/balance/asset-info"},{"type":"link","label":"\u67e5\u8a62\u8cec\u6236\u6240\u6709\u5e63\u7a2e\u4f59\u984d","href":"/docs/zh-TW/v5/asset/balance/all-balance","docId":"v5/asset/balance/all-balance"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u55ae\u500b\u5e63\u7a2e\u9918\u984d","href":"/docs/zh-TW/v5/asset/balance/account-coin-balance","docId":"v5/asset/balance/account-coin-balance"},{"type":"link","label":"\u67e5\u8a62\u5ef6\u9072\u63d0\u5e63\u51cd\u7d50\u91d1\u984d","href":"/docs/zh-TW/v5/asset/balance/delay-amount","docId":"v5/asset/balance/delay-amount"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5283\u8f49","items":[{"type":"link","label":"\u67e5\u8a62\u5283\u8f49\u7d00\u9304 (\u55ae\u5e33\u865f\u5167)","href":"/docs/zh-TW/v5/asset/transfer/inter-transfer-list","docId":"v5/asset/transfer/inter-transfer-list"},{"type":"link","label":"\u5e33\u6236\u985e\u578b\u9593\u53ef\u5283\u8f49\u7684\u5e63\u7a2e","href":"/docs/zh-TW/v5/asset/transfer/transferable-coin","docId":"v5/asset/transfer/transferable-coin"},{"type":"link","label":"\u5283\u8f49 (\u55ae\u5e33\u865f\u5167)","href":"/docs/zh-TW/v5/asset/transfer/create-inter-transfer","docId":"v5/asset/transfer/create-inter-transfer"},{"type":"link","label":"\u5275\u5efa\u842c\u80fd\u5283\u8f49","href":"/docs/zh-TW/v5/asset/transfer/unitransfer","docId":"v5/asset/transfer/unitransfer"},{"type":"link","label":"\u67e5\u8a62\u842c\u80fd\u5283\u8f49\u7d00\u9304","href":"/docs/zh-TW/v5/asset/transfer/unitransfer-list","docId":"v5/asset/transfer/unitransfer-list"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5145\u503c","items":[{"type":"link","label":"\u67e5\u8a62\u652f\u6301\u7684\u5145\u503c\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/asset/deposit/deposit-coin-spec","docId":"v5/asset/deposit/deposit-coin-spec"},{"type":"link","label":"\u8a2d\u7f6e\u5145\u503c\u5e33\u6236","href":"/docs/zh-TW/v5/asset/deposit/set-deposit-acct","docId":"v5/asset/deposit/set-deposit-acct"},{"type":"link","label":"\u67e5\u8a62\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","href":"/docs/zh-TW/v5/asset/deposit/deposit-record","docId":"v5/asset/deposit/deposit-record"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","href":"/docs/zh-TW/v5/asset/deposit/sub-deposit-record","docId":"v5/asset/deposit/sub-deposit-record"},{"type":"link","label":"\u67e5\u8a62\u5145\u503c\u8a18\u9304 (\u5e73\u53f0\u8f6c\u8d26)","href":"/docs/zh-TW/v5/asset/deposit/internal-deposit-record","docId":"v5/asset/deposit/internal-deposit-record"},{"type":"link","label":"\u67e5\u8a62\u4e3b\u5e33\u865f\u5145\u503c\u5730\u5740","href":"/docs/zh-TW/v5/asset/deposit/master-deposit-addr","docId":"v5/asset/deposit/master-deposit-addr"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u5730\u5740","href":"/docs/zh-TW/v5/asset/deposit/sub-deposit-addr","docId":"v5/asset/deposit/sub-deposit-addr"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u63d0\u73fe","items":[{"type":"link","label":"\u67e5\u8a62\u63d0\u73fe\u7d00\u9304","href":"/docs/zh-TW/v5/asset/withdraw/withdraw-record","docId":"v5/asset/withdraw/withdraw-record"},{"type":"link","label":"\u67e5\u8a62\u4ea4\u6613\u6240\u5217\u8868 (\u97d3\u570b\u7528\u6236)","href":"/docs/zh-TW/v5/asset/withdraw/vasp-list","docId":"v5/asset/withdraw/vasp-list"},{"type":"link","label":"\u63d0\u73fe","href":"/docs/zh-TW/v5/asset/withdraw/","docId":"v5/asset/withdraw/withdraw"},{"type":"link","label":"\u64a4\u92b7\u63d0\u5e63","href":"/docs/zh-TW/v5/asset/withdraw/cancel-withdraw","docId":"v5/asset/withdraw/cancel-withdraw"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u9583\u514c","items":[{"type":"link","label":"\u63a5\u5165\u6307\u5357","href":"/docs/zh-TW/v5/asset/convert/guideline","docId":"v5/asset/convert/guideline"},{"type":"link","label":"\u67e5\u8a62\u514c\u63db\u5e63\u7a2e\u5217\u8868","href":"/docs/zh-TW/v5/asset/convert/convert-coin-list","docId":"v5/asset/convert/convert-coin-list"},{"type":"link","label":"\u7533\u8acb\u5831\u50f9","href":"/docs/zh-TW/v5/asset/convert/apply-quote","docId":"v5/asset/convert/apply-quote"},{"type":"link","label":"\u78ba\u8a8d\u5831\u50f9","href":"/docs/zh-TW/v5/asset/convert/confirm-quote","docId":"v5/asset/convert/confirm-quote"},{"type":"link","label":"\u67e5\u8a62\u5831\u50f9\u55ae\u72c0\u614b","href":"/docs/zh-TW/v5/asset/convert/get-convert-result","docId":"v5/asset/convert/get-convert-result"},{"type":"link","label":"\u67e5\u8a62\u514c\u63db\u6b77\u53f2","href":"/docs/zh-TW/v5/asset/convert/get-convert-history","docId":"v5/asset/convert/get-convert-history"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u7528\u6236","items":[{"type":"link","label":"\u65b0\u5efa\u5b50\u5e33\u6236","href":"/docs/zh-TW/v5/user/create-subuid","docId":"v5/user/create-subuid"},{"type":"link","label":"\u65b0\u5efa\u5b50\u5e33\u6236\u7684API Key","href":"/docs/zh-TW/v5/user/create-subuid-apikey","docId":"v5/user/create-subuid-apikey"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u9650\u5236)","href":"/docs/zh-TW/v5/user/subuid-list","docId":"v5/user/subuid-list"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u7121\u9650\u5236)","href":"/docs/zh-TW/v5/user/page-subuid","docId":"v5/user/page-subuid"},{"type":"link","label":"\u51cd\u7d50/\u89e3\u51cd\u5b50\u5e33\u6236","href":"/docs/zh-TW/v5/user/froze-subuid","docId":"v5/user/froze-subuid"},{"type":"link","label":"\u67e5\u8a62API Key\u76f8\u95dc\u4fe1\u606f","href":"/docs/zh-TW/v5/user/apikey-info","docId":"v5/user/apikey-info"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u6236\u7684\u6240\u6709API Key\u4fe1\u606f","href":"/docs/zh-TW/v5/user/list-sub-apikeys","docId":"v5/user/list-sub-apikeys"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u652f\u6301\u7684\u9322\u5305\u985e\u578b","href":"/docs/zh-TW/v5/user/wallet-type","docId":"v5/user/wallet-type"},{"type":"link","label":"\u4fee\u6539\u6bcd\u5e33\u6236\u7684API Key\u8a2d\u7f6e","href":"/docs/zh-TW/v5/user/modify-master-apikey","docId":"v5/user/modify-master-apikey"},{"type":"link","label":"\u4fee\u6539\u5b50\u5e33\u6236\u7684API Key\u8a2d\u7f6e","href":"/docs/zh-TW/v5/user/modify-sub-apikey","docId":"v5/user/modify-sub-apikey"},{"type":"link","label":"\u522a\u9664\u5b50\u5e33\u6236","href":"/docs/zh-TW/v5/user/rm-subuid","docId":"v5/user/rm-subuid"},{"type":"link","label":"\u522a\u9664\u6bcd\u5e33\u6236\u7684API Key","href":"/docs/zh-TW/v5/user/rm-master-apikey","docId":"v5/user/rm-master-apikey"},{"type":"link","label":"\u522a\u9664\u5b50\u5e33\u6236\u4e0b\u7684API Key","href":"/docs/zh-TW/v5/user/rm-sub-apikey","docId":"v5/user/rm-sub-apikey"},{"type":"link","label":"\u67e5\u8a62\u4ee3\u7406\u7528\u6236\u4fe1\u606f","href":"/docs/zh-TW/v5/user/affiliate-info","docId":"v5/user/affiliate-info"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u69d3\u687f\u4ee3\u5e63","items":[{"type":"link","label":"LT\u5168\u91cf\u8cc7\u7522\u67e5\u8a62","href":"/docs/zh-TW/v5/lt/leverage-token-info","docId":"v5/lt/leverage-token-info"},{"type":"link","label":"\u67e5\u8a62LT\u884c\u60c5","href":"/docs/zh-TW/v5/lt/leverage-token-reference","docId":"v5/lt/leverage-token-reference"},{"type":"link","label":"\u7533\u8cfc","href":"/docs/zh-TW/v5/lt/purchase","docId":"v5/lt/purchase"},{"type":"link","label":"\u7533\u8d16\u8a18\u9304\u67e5\u8a62","href":"/docs/zh-TW/v5/lt/order-record","docId":"v5/lt/order-record"},{"type":"link","label":"\u8d16\u56de","href":"/docs/zh-TW/v5/lt/redeem","docId":"v5/lt/redeem"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5168\u5009\u69d3\u687f (\u7d71\u4e00\u5e33\u6236)","items":[{"type":"link","label":"\u67e5\u8a62\u4e0d\u540cVIP\u7684\u69d3\u687f\u6578\u64da","href":"/docs/zh-TW/v5/spot-margin-uta/vip-margin","docId":"v5/spot-margin-uta/vip-margin"},{"type":"link","label":"\u67e5\u8a62\u501f\u8cb8\u6b77\u53f2\u5229\u7387","href":"/docs/zh-TW/v5/spot-margin-uta/historical-interest","docId":"v5/spot-margin-uta/historical-interest"},{"type":"link","label":"\u5168\u5009\u69d3\u687f\u958b\u95dc","href":"/docs/zh-TW/v5/spot-margin-uta/switch-mode","docId":"v5/spot-margin-uta/switch-mode"},{"type":"link","label":"\u5168\u5009\u69d3\u687f\u8a2d\u7f6e","href":"/docs/zh-TW/v5/spot-margin-uta/set-leverage","docId":"v5/spot-margin-uta/set-leverage"},{"type":"link","label":"\u67e5\u8a62\u958b\u95dc\u72c0\u614b\u548c\u500d\u6578","href":"/docs/zh-TW/v5/spot-margin-uta/status","docId":"v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u8cea\u62bc\u501f\u8cb8","items":[{"type":"link","label":"\u67e5\u8a62\u8cea\u62bc\u5e63\u7a2e","href":"/docs/zh-TW/v5/crypto-loan/collateral-coin","docId":"v5/crypto-loan/collateral-coin"},{"type":"link","label":"\u67e5\u8a62\u53ef\u501f\u5e63\u7a2e","href":"/docs/zh-TW/v5/crypto-loan/loan-coin","docId":"v5/crypto-loan/loan-coin"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u53ef\u501f\u8cb8/\u62b5\u62bc\u7684\u9650\u984d","href":"/docs/zh-TW/v5/crypto-loan/acct-borrow-collateral","docId":"v5/crypto-loan/acct-borrow-collateral"},{"type":"link","label":"\u501f\u6b3e","href":"/docs/zh-TW/v5/crypto-loan/borrow","docId":"v5/crypto-loan/borrow"},{"type":"link","label":"\u9084\u6b3e","href":"/docs/zh-TW/v5/crypto-loan/repay","docId":"v5/crypto-loan/repay"},{"type":"link","label":"\u67e5\u8a62\u9032\u884c\u4e2d\u7684\u501f\u8cb8\u8a02\u55ae","href":"/docs/zh-TW/v5/crypto-loan/unpaid-loan-order","docId":"v5/crypto-loan/unpaid-loan-order"},{"type":"link","label":"\u67e5\u8a62\u9084\u6b3e\u7d00\u9304","href":"/docs/zh-TW/v5/crypto-loan/repay-transaction","docId":"v5/crypto-loan/repay-transaction"},{"type":"link","label":"\u67e5\u8a62\u5df2\u7d50\u6e05\u7684\u501f\u8cb8\u6b77\u53f2\u8a02\u55ae","href":"/docs/zh-TW/v5/crypto-loan/comleted-loan-order","docId":"v5/crypto-loan/comleted-loan-order"},{"type":"link","label":"\u67e5\u8a62\u6700\u5927\u53ef\u6e1b\u5c11\u7684\u8cea\u62bc\u91d1\u984d","href":"/docs/zh-TW/v5/crypto-loan/reduce-max-collateral-amt","docId":"v5/crypto-loan/reduce-max-collateral-amt"},{"type":"link","label":"\u8abf\u6574\u8cea\u62bc\u91d1\u984d","href":"/docs/zh-TW/v5/crypto-loan/adjust-collateral","docId":"v5/crypto-loan/adjust-collateral"},{"type":"link","label":"\u67e5\u8a62\u8cea\u62bc\u91d1\u8abf\u6574\u6b77\u53f2","href":"/docs/zh-TW/v5/crypto-loan/ltv-adjust-history","docId":"v5/crypto-loan/ltv-adjust-history"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u6a5f\u69cb\u501f\u8cb8","items":[{"type":"link","label":"\u67e5\u8a62\u7522\u54c1\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/margin-product-info","docId":"v5/otc/margin-product-info"},{"type":"link","label":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/margin-coin-convert-info","docId":"v5/otc/margin-coin-convert-info"},{"type":"link","label":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/loan-info","docId":"v5/otc/loan-info"},{"type":"link","label":"\u67e5\u8a62\u9084\u6b3e\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/repay-info","docId":"v5/otc/repay-info"},{"type":"link","label":"\u67e5\u8a62\u98a8\u96aa\u7387","href":"/docs/zh-TW/v5/otc/ltv-convert","docId":"v5/otc/ltv-convert"},{"type":"link","label":"\u7d81\u5b9a/\u89e3\u7d81UID","href":"/docs/zh-TW/v5/otc/bind-uid","docId":"v5/otc/bind-uid"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u7d93\u7d00\u5546","items":[{"type":"link","label":"\u67e5\u8a62\u8fd4\u4f63\u4fe1\u606f","href":"/docs/zh-TW/v5/broker/exchange-earning","docId":"v5/broker/exchange-earning"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u4fe1\u606f","href":"/docs/zh-TW/v5/broker/account-info","docId":"v5/broker/account-info"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u7d00\u9304","href":"/docs/zh-TW/v5/broker/sub-deposit-record","docId":"v5/broker/sub-deposit-record"},{"type":"category","label":"\u5361\u5238","items":[{"type":"link","label":"\u67e5\u8a62\u4ee3\u91d1\u5238\u53c3\u6578","href":"/docs/zh-TW/v5/broker/reward/voucher","docId":"v5/broker/reward/voucher"},{"type":"link","label":"\u767c\u653e\u4ee3\u91d1\u5238","href":"/docs/zh-TW/v5/broker/reward/issue-voucher","docId":"v5/broker/reward/issue-voucher"},{"type":"link","label":"\u67e5\u8a62\u5df2\u767c\u653e\u4ee3\u91d1\u5238","href":"/docs/zh-TW/v5/broker/reward/get-issue-voucher","docId":"v5/broker/reward/get-issue-voucher"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"WebSocket\u6d41","items":[{"type":"link","label":"\u8a02\u95b1WebSocket","href":"/docs/zh-TW/v5/ws/connect","docId":"v5/websocket/wss-authentication"},{"type":"category","label":"\u516c\u5171\u983b\u9053","items":[{"type":"link","label":"\u6df1\u5ea6","href":"/docs/zh-TW/v5/websocket/public/orderbook","docId":"v5/websocket/public/orderbook"},{"type":"link","label":"\u5e73\u53f0\u6210\u4ea4","href":"/docs/zh-TW/v5/websocket/public/trade","docId":"v5/websocket/public/trade"},{"type":"link","label":"\u884c\u60c5","href":"/docs/zh-TW/v5/websocket/public/ticker","docId":"v5/websocket/public/ticker"},{"type":"link","label":"K\u7dda","href":"/docs/zh-TW/v5/websocket/public/kline","docId":"v5/websocket/public/kline"},{"type":"link","label":"\u5f37\u5e73\u63a8\u9001","href":"/docs/zh-TW/v5/websocket/public/liquidation","docId":"v5/websocket/public/liquidation"},{"type":"link","label":"ETP\u6de8\u503cK\u7dda","href":"/docs/zh-TW/v5/websocket/public/etp-kline","docId":"v5/websocket/public/etp-kline"},{"type":"link","label":"ETP\u6de8\u503c\u884c\u60c5\u63a8\u9001","href":"/docs/zh-TW/v5/websocket/public/etp-ticker","docId":"v5/websocket/public/etp-ticker"},{"type":"link","label":"ETP\u6700\u65b0\u6de8\u503c\u63a8\u9001","href":"/docs/zh-TW/v5/websocket/public/etp-nav","docId":"v5/websocket/public/etp-nav"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u79c1\u6709\u983b\u9053","items":[{"type":"link","label":"\u6301\u5009","href":"/docs/zh-TW/v5/websocket/private/position","docId":"v5/websocket/private/position"},{"type":"link","label":"\u500b\u4eba\u6210\u4ea4","href":"/docs/zh-TW/v5/websocket/private/execution","docId":"v5/websocket/private/execution"},{"type":"link","label":"\u500b\u4eba\u6210\u4ea4 (Fast)","href":"/docs/zh-TW/v5/websocket/private/fast-execution","docId":"v5/websocket/private/fast-execution"},{"type":"link","label":"\u8a02\u55ae","href":"/docs/zh-TW/v5/websocket/private/order","docId":"v5/websocket/private/order"},{"type":"link","label":"\u9322\u5305","href":"/docs/zh-TW/v5/websocket/private/wallet","docId":"v5/websocket/private/wallet"},{"type":"link","label":"\u7528\u6236\u5e0c\u81d8\u5b57\u6bcd\u4fe1\u606f (\u671f\u6b0a)","href":"/docs/zh-TW/v5/websocket/private/greek","docId":"v5/websocket/private/greek"},{"type":"link","label":"\u65b7\u7dda\u4fdd\u8b77 (\u671f\u6b0a)","href":"/docs/zh-TW/v5/websocket/private/dcp","docId":"v5/websocket/private/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u4ea4\u6613","items":[{"type":"link","label":"Websocket\u4e0b\u55ae\u6307\u5357","href":"/docs/zh-TW/v5/websocket/trade/guideline","docId":"v5/websocket/trade/guideline"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"link","label":"\u983b\u7387\u9650\u5236","href":"/docs/zh-TW/v5/rate-limit","docId":"v5/rate-limit"},{"type":"link","label":"\u679a\u8209\u5b9a\u7fa9","href":"/docs/zh-TW/v5/enum","docId":"v5/enum"},{"type":"link","label":"\u932f\u8aa4\u78bc","href":"/docs/zh-TW/v5/error","docId":"v5/error"},{"type":"category","label":"\u5ee2\u68c4\u63a5\u53e3","items":[{"type":"link","label":"\u67e5\u8a62\u53ef\u5b58\u5165\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/abandon/coin-info","docId":"v5/abandon/coin-info"},{"type":"link","label":"\u67e5\u8a62\u98a8\u96aa\u7387","href":"/docs/zh-TW/v5/abandon/ltv","docId":"v5/abandon/ltv"},{"type":"link","label":"\u5b58\u5165\u8cc7\u91d1","href":"/docs/zh-TW/v5/abandon/deposit","docId":"v5/abandon/deposit"},{"type":"link","label":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/abandon/margin-coin-info","docId":"v5/abandon/margin-coin-info"},{"type":"link","label":"\u914d\u7f6e\u4e92\u76f8\u5283\u8f49\u7684\u5b50\u5e33\u865f","href":"/docs/zh-TW/v5/abandon/enable-unitransfer-subuid","docId":"v5/abandon/enable-unitransfer-subuid"},{"type":"link","label":"\u8d16\u56de\u8cc7\u91d1","href":"/docs/zh-TW/v5/abandon/redeem","docId":"v5/abandon/redeem"},{"type":"link","label":"\u64a4\u92b7\u8d16\u56de","href":"/docs/zh-TW/v5/abandon/cancel-redeem","docId":"v5/abandon/cancel-redeem"},{"type":"link","label":"\u67e5\u8a62\u7d93\u7d00\u5546\u8fd4\u4f63","href":"/docs/zh-TW/v5/abandon/earning","docId":"v5/abandon/earning"},{"type":"link","label":"\u67e5\u8a62\u8a02\u55ae\u6b77\u53f2","href":"/docs/zh-TW/v5/abandon/order-record","docId":"v5/abandon/order-record"},{"type":"link","label":"\u67e5\u8a62\u4f59\u5e63\u5bf6\u5e33\u6236\u4fe1\u606f","href":"/docs/zh-TW/v5/abandon/account-info","docId":"v5/abandon/account-info"}],"collapsed":true,"collapsible":true}],"apiExplorerSideBar":[{"type":"category","label":"V5","items":[{"type":"category","label":"Market","items":[{"type":"link","label":"Get Bybit Server Time","href":"/docs/zh-TW/api-explorer/v5/market/time","className":"api-method get","docId":"api-explorer/v5/market/time"},{"type":"link","label":"Get Kline","href":"/docs/zh-TW/api-explorer/v5/market/kline","className":"api-method get","docId":"api-explorer/v5/market/kline"},{"type":"link","label":"Get Mark Price Kline","href":"/docs/zh-TW/api-explorer/v5/market/mark-kline","className":"api-method get","docId":"api-explorer/v5/market/mark-kline"},{"type":"link","label":"Get Index Price Kline","href":"/docs/zh-TW/api-explorer/v5/market/index-kline","className":"api-method get","docId":"api-explorer/v5/market/index-kline"},{"type":"link","label":"Get Premium Index Price Kline","href":"/docs/zh-TW/api-explorer/v5/market/premium-index-kline","className":"api-method get","docId":"api-explorer/v5/market/premium-index-kline"},{"type":"link","label":"Get Instrument Info","href":"/docs/zh-TW/api-explorer/v5/market/instrument","className":"api-method get","docId":"api-explorer/v5/market/instrument"},{"type":"link","label":"Get Orderbook","href":"/docs/zh-TW/api-explorer/v5/market/orderbook","className":"api-method get","docId":"api-explorer/v5/market/orderbook"},{"type":"link","label":"Get Tickers","href":"/docs/zh-TW/api-explorer/v5/market/tickers","className":"api-method get","docId":"api-explorer/v5/market/tickers"},{"type":"link","label":"Get Funding Rate History","href":"/docs/zh-TW/api-explorer/v5/market/history-fund-rate","className":"api-method get","docId":"api-explorer/v5/market/history-fund-rate"},{"type":"link","label":"Get Public Recent Trading History","href":"/docs/zh-TW/api-explorer/v5/market/recent-trade","className":"api-method get","docId":"api-explorer/v5/market/recent-trade"},{"type":"link","label":"Get Open Interest","href":"/docs/zh-TW/api-explorer/v5/market/open-interest","className":"api-method get","docId":"api-explorer/v5/market/open-interest"},{"type":"link","label":"Get Historical Volatility","href":"/docs/zh-TW/api-explorer/v5/market/iv","className":"api-method get","docId":"api-explorer/v5/market/iv"},{"type":"link","label":"Get Insurance","href":"/docs/zh-TW/api-explorer/v5/market/insurance","className":"api-method get","docId":"api-explorer/v5/market/insurance"},{"type":"link","label":"Get Risk Limit","href":"/docs/zh-TW/api-explorer/v5/market/risk-limit","className":"api-method get","docId":"api-explorer/v5/market/risk-limit"},{"type":"link","label":"Get Delivery Price","href":"/docs/zh-TW/api-explorer/v5/market/delivery-price","className":"api-method get","docId":"api-explorer/v5/market/delivery-price"},{"type":"link","label":"Get Long Short Ratio","href":"/docs/zh-TW/api-explorer/v5/market/long-short-ratio","className":"api-method get","docId":"api-explorer/v5/market/long-short-ratio"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/market/market"},{"type":"category","label":"Trade","items":[{"type":"link","label":"Place Order","href":"/docs/zh-TW/api-explorer/v5/trade/create-order","className":"api-method post","docId":"api-explorer/v5/trade/create-order"},{"type":"link","label":"Amend Order","href":"/docs/zh-TW/api-explorer/v5/trade/amend-order","className":"api-method post","docId":"api-explorer/v5/trade/amend-order"},{"type":"link","label":"Cancel Order","href":"/docs/zh-TW/api-explorer/v5/trade/cancel-order","className":"api-method post","docId":"api-explorer/v5/trade/cancel-order"},{"type":"link","label":"Get Open Orders (real-time)","href":"/docs/zh-TW/api-explorer/v5/trade/open-order","className":"api-method get","docId":"api-explorer/v5/trade/open-order"},{"type":"link","label":"Cancel All Orders","href":"/docs/zh-TW/api-explorer/v5/trade/cancel-all","className":"api-method post","docId":"api-explorer/v5/trade/cancel-all"},{"type":"link","label":"Get Order History (2 years)","href":"/docs/zh-TW/api-explorer/v5/trade/order-list","className":"api-method get","docId":"api-explorer/v5/trade/order-list"},{"type":"link","label":"Batch Place Order","href":"/docs/zh-TW/api-explorer/v5/trade/batch-place","className":"api-method post","docId":"api-explorer/v5/trade/batch-place"},{"type":"link","label":"Batch Amend Order","href":"/docs/zh-TW/api-explorer/v5/trade/batch-amend","className":"api-method post","docId":"api-explorer/v5/trade/batch-amend"},{"type":"link","label":"Batch Cancel Order","href":"/docs/zh-TW/api-explorer/v5/trade/batch-cancel","className":"api-method post","docId":"api-explorer/v5/trade/batch-cancel"},{"type":"link","label":"Get Borrow Quota (Spot)","href":"/docs/zh-TW/api-explorer/v5/trade/query-spot-quota","className":"api-method get","docId":"api-explorer/v5/trade/query-spot-quota"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/trade/trade"},{"type":"category","label":"Position","items":[{"type":"link","label":"Get Position Info","href":"/docs/zh-TW/api-explorer/v5/position/position-info","className":"api-method get","docId":"api-explorer/v5/position/position-info"},{"type":"link","label":"Set Leverage","href":"/docs/zh-TW/api-explorer/v5/position/leverage","className":"api-method post","docId":"api-explorer/v5/position/leverage"},{"type":"link","label":"Switch Cross/Isolated Margin","href":"/docs/zh-TW/api-explorer/v5/position/cross-isolate","className":"api-method post","docId":"api-explorer/v5/position/cross-isolate"},{"type":"link","label":"Set TP/SL Mode","href":"/docs/zh-TW/api-explorer/v5/position/tpsl-mode","className":"api-method post","docId":"api-explorer/v5/position/tpsl-mode"},{"type":"link","label":"Switch Position Mode","href":"/docs/zh-TW/api-explorer/v5/position/position-mode","className":"api-method post","docId":"api-explorer/v5/position/position-mode"},{"type":"link","label":"Set Risk Limit","href":"/docs/zh-TW/api-explorer/v5/position/set-risk-limit","className":"api-method post","docId":"api-explorer/v5/position/set-risk-limit"},{"type":"link","label":"Set Trading Stop","href":"/docs/zh-TW/api-explorer/v5/position/trading-stop","className":"api-method post","docId":"api-explorer/v5/position/trading-stop"},{"type":"link","label":"Set Auto Add Margin","href":"/docs/zh-TW/api-explorer/v5/position/auto-add-margin","className":"api-method post","docId":"api-explorer/v5/position/auto-add-margin"},{"type":"link","label":"Add Or Reduce Margin","href":"/docs/zh-TW/api-explorer/v5/position/manual-add-margin","className":"api-method post","docId":"api-explorer/v5/position/manual-add-margin"},{"type":"link","label":"Get Execution (2 years)","href":"/docs/zh-TW/api-explorer/v5/position/execution","className":"api-method get","docId":"api-explorer/v5/position/execution"},{"type":"link","label":"Get Closed PnL","href":"/docs/zh-TW/api-explorer/v5/position/close-pnl","className":"api-method get","docId":"api-explorer/v5/position/close-pnl"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/position/position"},{"type":"category","label":"Account","items":[{"type":"link","label":"Get Wallet Balance","href":"/docs/zh-TW/api-explorer/v5/account/wallet","className":"api-method get","docId":"api-explorer/v5/account/wallet"},{"type":"link","label":"Upgrade to Unified Account","href":"/docs/zh-TW/api-explorer/v5/account/upgrade-unified-account","className":"api-method post","docId":"api-explorer/v5/account/upgrade-unified-account"},{"type":"link","label":"Set Collateral Coin","href":"/docs/zh-TW/api-explorer/v5/account/set-collateral","className":"api-method post","docId":"api-explorer/v5/account/set-collateral"},{"type":"link","label":"Get Borrow History","href":"/docs/zh-TW/api-explorer/v5/account/borrow-history","className":"api-method get","docId":"api-explorer/v5/account/borrow-history"},{"type":"link","label":"Get Collateral Info","href":"/docs/zh-TW/api-explorer/v5/account/collateral-info","className":"api-method get","docId":"api-explorer/v5/account/collateral-info"},{"type":"link","label":"Get Coin Greeks","href":"/docs/zh-TW/api-explorer/v5/account/coin-greeks","className":"api-method get","docId":"api-explorer/v5/account/coin-greeks"},{"type":"link","label":"Get Fee Rate","href":"/docs/zh-TW/api-explorer/v5/account/fee-rate","className":"api-method get","docId":"api-explorer/v5/account/fee-rate"},{"type":"link","label":"Get Account Info","href":"/docs/zh-TW/api-explorer/v5/account/account-info","className":"api-method get","docId":"api-explorer/v5/account/account-info"},{"type":"link","label":"Get Transaction Log","href":"/docs/zh-TW/api-explorer/v5/account/transaction-log","className":"api-method get","docId":"api-explorer/v5/account/transaction-log"},{"type":"link","label":"Set Margin Mode","href":"/docs/zh-TW/api-explorer/v5/account/set-margin-mode","className":"api-method post","docId":"api-explorer/v5/account/set-margin-mode"},{"type":"link","label":"Set Spot Hedging","href":"/docs/zh-TW/api-explorer/v5/account/set-spot-hedge","className":"api-method post","docId":"api-explorer/v5/account/set-spot-hedge"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/account/account"},{"type":"category","label":"Asset","items":[{"type":"link","label":"Get Coin Exchange Records","href":"/docs/zh-TW/api-explorer/v5/asset/exchange","className":"api-method get","docId":"api-explorer/v5/asset/exchange"},{"type":"link","label":"Get Delivery Record","href":"/docs/zh-TW/api-explorer/v5/asset/delivery","className":"api-method get","docId":"api-explorer/v5/asset/delivery"},{"type":"link","label":"Get USDC Session Settlement","href":"/docs/zh-TW/api-explorer/v5/asset/settlement","className":"api-method get","docId":"api-explorer/v5/asset/settlement"},{"type":"link","label":"Get Asset Info (Spot)","href":"/docs/zh-TW/api-explorer/v5/asset/asset-info","className":"api-method get","docId":"api-explorer/v5/asset/asset-info"},{"type":"link","label":"Get All Coins Balance","href":"/docs/zh-TW/api-explorer/v5/asset/all-balance","className":"api-method get","docId":"api-explorer/v5/asset/all-balance"},{"type":"link","label":"Get Single Coin Balance","href":"/docs/zh-TW/api-explorer/v5/asset/account-coin-balance","className":"api-method get","docId":"api-explorer/v5/asset/account-coin-balance"},{"type":"link","label":"Get Transferable Coin","href":"/docs/zh-TW/api-explorer/v5/asset/transferable-coin","className":"api-method get","docId":"api-explorer/v5/asset/transferable-coin"},{"type":"link","label":"Create Internal Transfer","href":"/docs/zh-TW/api-explorer/v5/asset/create-inter-transfer","className":"api-method post","docId":"api-explorer/v5/asset/create-inter-transfer"},{"type":"link","label":"Get Internal Transfer Records","href":"/docs/zh-TW/api-explorer/v5/asset/inter-transfer-list","className":"api-method get","docId":"api-explorer/v5/asset/inter-transfer-list"},{"type":"link","label":"Get Sub UID","href":"/docs/zh-TW/api-explorer/v5/asset/sub-uid-list","className":"api-method get","docId":"api-explorer/v5/asset/sub-uid-list"},{"type":"link","label":"Create Universal Transfer","href":"/docs/zh-TW/api-explorer/v5/asset/unitransfer","className":"api-method post","docId":"api-explorer/v5/asset/unitransfer"},{"type":"link","label":"Get Universal Transfer Records","href":"/docs/zh-TW/api-explorer/v5/asset/unitransfer-list","className":"api-method get","docId":"api-explorer/v5/asset/unitransfer-list"},{"type":"link","label":"Get Allowed Deposit Coin Info","href":"/docs/zh-TW/api-explorer/v5/asset/deposit-coin-spec","className":"api-method get","docId":"api-explorer/v5/asset/deposit-coin-spec"},{"type":"link","label":"Set Deposit Account","href":"/docs/zh-TW/api-explorer/v5/asset/set-deposit-acct","className":"api-method post","docId":"api-explorer/v5/asset/set-deposit-acct"},{"type":"link","label":"Get Deposit Record (on-chain)","href":"/docs/zh-TW/api-explorer/v5/asset/deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/deposit-record"},{"type":"link","label":"Get Sub Account Deposit Records (on-chain)","href":"/docs/zh-TW/api-explorer/v5/asset/sub-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-record"},{"type":"link","label":"Get Internal Deposit Records (off-chain)","href":"/docs/zh-TW/api-explorer/v5/asset/internal-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/internal-deposit-record"},{"type":"link","label":"Get Master Deposit Address","href":"/docs/zh-TW/api-explorer/v5/asset/master-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/master-deposit-addr"},{"type":"link","label":"Get Sub Deposit Address","href":"/docs/zh-TW/api-explorer/v5/asset/sub-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-addr"},{"type":"link","label":"Get Coin Info","href":"/docs/zh-TW/api-explorer/v5/asset/coin-info","className":"api-method get","docId":"api-explorer/v5/asset/coin-info"},{"type":"link","label":"Get Withdraw Records","href":"/docs/zh-TW/api-explorer/v5/asset/withdraw-record","className":"api-method get","docId":"api-explorer/v5/asset/withdraw-record"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/asset/asset"},{"type":"category","label":"User","items":[{"type":"link","label":"Get API Key Information","href":"/docs/zh-TW/api-explorer/v5/user/apikey-info","className":"api-method get","docId":"api-explorer/v5/user/apikey-info"},{"type":"link","label":"Get Sub Account All API Keys","href":"/docs/zh-TW/api-explorer/v5/user/list-sub-apikeys","className":"api-method get","docId":"api-explorer/v5/user/list-sub-apikeys"},{"type":"link","label":"Get UID Wallet Type","href":"/docs/zh-TW/api-explorer/v5/user/wallet-type","className":"api-method get","docId":"api-explorer/v5/user/wallet-type"},{"type":"link","label":"Get Affiliate User Info","href":"/docs/zh-TW/api-explorer/v5/user/affiliate-info","className":"api-method get","docId":"api-explorer/v5/user/affiliate-info"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/user/user"},{"type":"category","label":"Spot Leverage Token","items":[{"type":"link","label":"Get Leverage Token Info","href":"/docs/zh-TW/api-explorer/v5/lt/leverage-token-info","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-info"},{"type":"link","label":"Get Leverage Token Market","href":"/docs/zh-TW/api-explorer/v5/lt/leverage-token-reference","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-reference"},{"type":"link","label":"Purchase","href":"/docs/zh-TW/api-explorer/v5/lt/purchase","className":"api-method post","docId":"api-explorer/v5/lt/purchase"},{"type":"link","label":"Redeem","href":"/docs/zh-TW/api-explorer/v5/lt/redeem","className":"api-method post","docId":"api-explorer/v5/lt/redeem"},{"type":"link","label":"Get Purchase or Redeem Records","href":"/docs/zh-TW/api-explorer/v5/lt/order-record","className":"api-method get","docId":"api-explorer/v5/lt/order-record"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/lt/etp"},{"type":"category","label":"Spot Margin Trade (UTA)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/vip-margin"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/switch-mode"},{"type":"link","label":"Set Leverage","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/set-leverage","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/set-leverage"},{"type":"link","label":"Get Status And Leverage","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/status","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/uta-margin-trade"},{"type":"category","label":"Spot Margin Trade (Classic)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/vip-margin"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/margin-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/margin-data"},{"type":"link","label":"Get Borrowable Coin Info","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/borrowable-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrowable-data"},{"type":"link","label":"Get Interest & Quota","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/interest-quota","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/interest-quota"},{"type":"link","label":"Get Loan Account Info","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/account-info","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/account-info"},{"type":"link","label":"Borrow","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/borrow","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/borrow"},{"type":"link","label":"Repay","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/repay","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/repay"},{"type":"link","label":"Get Borrow Order Detail","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/borrow-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrow-order"},{"type":"link","label":"Get Repayment Order Detail","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/repay-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/repay-order"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/switch-mode"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/normal-margin-trade"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/category/"}],"changelogSidebar":[{"type":"link","label":"V5","href":"/docs/zh-TW/changelog/v5","docId":"changelog/v5"}]},"docs":{"api-explorer/v5/account/account":{"id":"api-explorer/v5/account/account","title":"Account","description":"Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/account-info":{"id":"api-explorer/v5/account/account-info","title":"Get Account Info","description":"Get account info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/borrow-history":{"id":"api-explorer/v5/account/borrow-history","title":"Get Borrow History","description":"Get borrow history","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/coin-greeks":{"id":"api-explorer/v5/account/coin-greeks","title":"Get Coin Greeks","description":"Get coin greek info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/collateral-info":{"id":"api-explorer/v5/account/collateral-info","title":"Get Collateral Info","description":"Get collateral info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/fee-rate":{"id":"api-explorer/v5/account/fee-rate","title":"Get Fee Rate","description":"Get fee rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-collateral":{"id":"api-explorer/v5/account/set-collateral","title":"Set Collateral Coin","description":"Set collateral coin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-margin-mode":{"id":"api-explorer/v5/account/set-margin-mode","title":"Set Margin Mode","description":"Set margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-spot-hedge":{"id":"api-explorer/v5/account/set-spot-hedge","title":"Set Spot Hedging","description":"Set spot hedging for Portfolio margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/transaction-log":{"id":"api-explorer/v5/account/transaction-log","title":"Get Transaction Log","description":"Get transaction log","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/upgrade-unified-account":{"id":"api-explorer/v5/account/upgrade-unified-account","title":"Upgrade to Unified Account","description":"Upgrade to UTA","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/wallet":{"id":"api-explorer/v5/account/wallet","title":"Get Wallet Balance","description":"Get wallet balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/account-coin-balance":{"id":"api-explorer/v5/asset/account-coin-balance","title":"Get Single Coin Balance","description":"Get Single Coin Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/all-balance":{"id":"api-explorer/v5/asset/all-balance","title":"Get All Coins Balance","description":"Get All Coins Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset":{"id":"api-explorer/v5/asset/asset","title":"Asset","description":"Asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset-info":{"id":"api-explorer/v5/asset/asset-info","title":"Get Asset Info (Spot)","description":"Get spot asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/coin-info":{"id":"api-explorer/v5/asset/coin-info","title":"Get Coin Info","description":"Get coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/create-inter-transfer":{"id":"api-explorer/v5/asset/create-inter-transfer","title":"Create Internal Transfer","description":"Create internal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/delivery":{"id":"api-explorer/v5/asset/delivery","title":"Get Delivery Record","description":"Get delivery record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-coin-spec":{"id":"api-explorer/v5/asset/deposit-coin-spec","title":"Get Allowed Deposit Coin Info","description":"Get allowed deposit coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-record":{"id":"api-explorer/v5/asset/deposit-record","title":"Get Deposit Record (on-chain)","description":"Get deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/exchange":{"id":"api-explorer/v5/asset/exchange","title":"Get Coin Exchange Records","description":"Get exchange records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/inter-transfer-list":{"id":"api-explorer/v5/asset/inter-transfer-list","title":"Get Internal Transfer Records","description":"Get internal transfer records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/internal-deposit-record":{"id":"api-explorer/v5/asset/internal-deposit-record","title":"Get Internal Deposit Records (off-chain)","description":"Get deposit records through Bybit platform","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/master-deposit-addr":{"id":"api-explorer/v5/asset/master-deposit-addr","title":"Get Master Deposit Address","description":"Get master deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/set-deposit-acct":{"id":"api-explorer/v5/asset/set-deposit-acct","title":"Set Deposit Account","description":"Set Deposit Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/settlement":{"id":"api-explorer/v5/asset/settlement","title":"Get USDC Session Settlement","description":"Get usdc session settlement record.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-addr":{"id":"api-explorer/v5/asset/sub-deposit-addr","title":"Get Sub Deposit Address","description":"Get sub deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-record":{"id":"api-explorer/v5/asset/sub-deposit-record","title":"Get Sub Account Deposit Records (on-chain)","description":"Get sub account deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-uid-list":{"id":"api-explorer/v5/asset/sub-uid-list","title":"Get Sub UID","description":"Get sub uid","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/transferable-coin":{"id":"api-explorer/v5/asset/transferable-coin","title":"Get Transferable Coin","description":"Get transferable coins","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer":{"id":"api-explorer/v5/asset/unitransfer","title":"Create Universal Transfer","description":"Create universal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer-list":{"id":"api-explorer/v5/asset/unitransfer-list","title":"Get Universal Transfer Records","description":"Get universal transfer record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/withdraw-record":{"id":"api-explorer/v5/asset/withdraw-record","title":"Get Withdraw Records","description":"Get withdraw record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/etp":{"id":"api-explorer/v5/lt/etp","title":"Spot Leverage Token","description":"Spot Leverage Token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-info":{"id":"api-explorer/v5/lt/leverage-token-info","title":"Get Leverage Token Info","description":"Get lt information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-reference":{"id":"api-explorer/v5/lt/leverage-token-reference","title":"Get Leverage Token Market","description":"Get lt market information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/order-record":{"id":"api-explorer/v5/lt/order-record","title":"Get Purchase or Redeem Records","description":"Get the order history of purchase or redeem","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/purchase":{"id":"api-explorer/v5/lt/purchase","title":"Purchase","description":"Purchase leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/redeem":{"id":"api-explorer/v5/lt/redeem","title":"Redeem","description":"Redeem leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/delivery-price":{"id":"api-explorer/v5/market/delivery-price","title":"Get Delivery Price","description":"Get delivery price","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/history-fund-rate":{"id":"api-explorer/v5/market/history-fund-rate","title":"Get Funding Rate History","description":"Get historical funding rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/index-kline":{"id":"api-explorer/v5/market/index-kline","title":"Get Index Price Kline","description":"Get Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/instrument":{"id":"api-explorer/v5/market/instrument","title":"Get Instrument Info","description":"Get launched instruments information.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/insurance":{"id":"api-explorer/v5/market/insurance","title":"Get Insurance","description":"Get Insurance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/iv":{"id":"api-explorer/v5/market/iv","title":"Get Historical Volatility","description":"Get historical volatility","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/kline":{"id":"api-explorer/v5/market/kline","title":"Get Kline","description":"Get kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/long-short-ratio":{"id":"api-explorer/v5/market/long-short-ratio","title":"Get Long Short Ratio","description":"Get long short ratio","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/mark-kline":{"id":"api-explorer/v5/market/mark-kline","title":"Get Mark Price Kline","description":"Get Mark Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/market":{"id":"api-explorer/v5/market/market","title":"Market","description":"Market","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/open-interest":{"id":"api-explorer/v5/market/open-interest","title":"Get Open Interest","description":"Get open interest","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/orderbook":{"id":"api-explorer/v5/market/orderbook","title":"Get Orderbook","description":"Get order book data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/premium-index-kline":{"id":"api-explorer/v5/market/premium-index-kline","title":"Get Premium Index Price Kline","description":"Get Premium Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/recent-trade":{"id":"api-explorer/v5/market/recent-trade","title":"Get Public Recent Trading History","description":"Get public trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/risk-limit":{"id":"api-explorer/v5/market/risk-limit","title":"Get Risk Limit","description":"Get risk limit","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/tickers":{"id":"api-explorer/v5/market/tickers","title":"Get Tickers","description":"Get all latest information of symbols. All parameters are needed for OPTION","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/time":{"id":"api-explorer/v5/market/time","title":"Get Bybit Server Time","description":"Get server time","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/auto-add-margin":{"id":"api-explorer/v5/position/auto-add-margin","title":"Set Auto Add Margin","description":"Set Auto Add Margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/close-pnl":{"id":"api-explorer/v5/position/close-pnl","title":"Get Closed PnL","description":"Get closed pnl","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/cross-isolate":{"id":"api-explorer/v5/position/cross-isolate","title":"Switch Cross/Isolated Margin","description":"Select cross margin mode or isolated margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/execution":{"id":"api-explorer/v5/position/execution","title":"Get Execution (2 years)","description":"Get execution list","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/leverage":{"id":"api-explorer/v5/position/leverage","title":"Set Leverage","description":"Set levearage.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/manual-add-margin":{"id":"api-explorer/v5/position/manual-add-margin","title":"Add Or Reduce Margin","description":"Manually add or reduce margin for isolated margin position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position":{"id":"api-explorer/v5/position/position","title":"Position","description":"Position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-info":{"id":"api-explorer/v5/position/position-info","title":"Get Position Info","description":"Get Position Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-mode":{"id":"api-explorer/v5/position/position-mode","title":"Switch Position Mode","description":"Switch Position Mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/set-risk-limit":{"id":"api-explorer/v5/position/set-risk-limit","title":"Set Risk Limit","description":"Set risk limit.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/tpsl-mode":{"id":"api-explorer/v5/position/tpsl-mode","title":"Set TP/SL Mode","description":"Set tp/sl mode.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/trading-stop":{"id":"api-explorer/v5/position/trading-stop","title":"Set Trading Stop","description":"Set trade stop.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/account-info":{"id":"api-explorer/v5/spot-margin-normal/account-info","title":"Get Loan Account Info","description":"Get Loan Account Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow":{"id":"api-explorer/v5/spot-margin-normal/borrow","title":"Borrow","description":"Borrow","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow-order":{"id":"api-explorer/v5/spot-margin-normal/borrow-order","title":"Get Borrow Order Detail","description":"Get Borrow Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrowable-data":{"id":"api-explorer/v5/spot-margin-normal/borrowable-data","title":"Get Borrowable Coin Info","description":"Get Borrowable Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/interest-quota":{"id":"api-explorer/v5/spot-margin-normal/interest-quota","title":"Get Interest & Quota","description":"Get Interest & Quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/margin-data":{"id":"api-explorer/v5/spot-margin-normal/margin-data","title":"Get Margin Coin Info","description":"Get Margin Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/normal-margin-trade":{"id":"api-explorer/v5/spot-margin-normal/normal-margin-trade","title":"Spot Margin Trade (Classic)","description":"Spot Margin Trade (Classic)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay":{"id":"api-explorer/v5/spot-margin-normal/repay","title":"Repay","description":"Repay","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay-order":{"id":"api-explorer/v5/spot-margin-normal/repay-order","title":"Get Repayment Order Detail","description":"Get Repayment Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/switch-mode":{"id":"api-explorer/v5/spot-margin-normal/switch-mode","title":"Toggle Margin Trade","description":"Toggle Margin Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/vip-margin":{"id":"api-explorer/v5/spot-margin-normal/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/set-leverage":{"id":"api-explorer/v5/spot-margin-uta/set-leverage","title":"Set Leverage","description":"Set leverage for margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/status":{"id":"api-explorer/v5/spot-margin-uta/status","title":"Get Status And Leverage","description":"Get status and leverage","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/switch-mode":{"id":"api-explorer/v5/spot-margin-uta/switch-mode","title":"Toggle Margin Trade","description":"Toggle margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/uta-margin-trade":{"id":"api-explorer/v5/spot-margin-uta/uta-margin-trade","title":"Spot Margin Trade (UTA)","description":"Spot Margin Trade (UTA)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/vip-margin":{"id":"api-explorer/v5/spot-margin-uta/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/amend-order":{"id":"api-explorer/v5/trade/amend-order","title":"Amend Order","description":"Amend an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-amend":{"id":"api-explorer/v5/trade/batch-amend","title":"Batch Amend Order","description":"Batch amend orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-cancel":{"id":"api-explorer/v5/trade/batch-cancel","title":"Batch Cancel Order","description":"Batch cancel orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-place":{"id":"api-explorer/v5/trade/batch-place","title":"Batch Place Order","description":"Batch place orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-all":{"id":"api-explorer/v5/trade/cancel-all","title":"Cancel All Orders","description":"Cancel all orders.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-order":{"id":"api-explorer/v5/trade/cancel-order","title":"Cancel Order","description":"Cancel a single order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/create-order":{"id":"api-explorer/v5/trade/create-order","title":"Place Order","description":"Place an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/open-order":{"id":"api-explorer/v5/trade/open-order","title":"Get Open Orders (real-time)","description":"Get unfilled orders or partially filled orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/order-list":{"id":"api-explorer/v5/trade/order-list","title":"Get Order History (2 years)","description":"Get order history.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/query-spot-quota":{"id":"api-explorer/v5/trade/query-spot-quota","title":"Get Borrow Quota (Spot)","description":"Query user\'s spot available quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/trade":{"id":"api-explorer/v5/trade/trade","title":"Trade","description":"Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/affiliate-info":{"id":"api-explorer/v5/user/affiliate-info","title":"Get Affiliate User Info","description":"Get affiliate user info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/apikey-info":{"id":"api-explorer/v5/user/apikey-info","title":"Get API Key Information","description":"Get API Key Information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/list-sub-apikeys":{"id":"api-explorer/v5/user/list-sub-apikeys","title":"Get Sub Account All API Keys","description":"Get Sub Account All API Keys","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/user":{"id":"api-explorer/v5/user/user","title":"User","description":"User","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/wallet-type":{"id":"api-explorer/v5/user/wallet-type","title":"Get UID Wallet Type","description":"Get uid wallet type","sidebar":"apiExplorerSideBar"},"changelog/v5":{"id":"changelog/v5","title":"V5","description":"2024-10-15","sidebar":"changelogSidebar"},"faq":{"id":"faq","title":"\u5e38\u898b\u554f\u984c","description":"Bybit\u7684\u670d\u52d9\u5668\u5728\u54ea\u88e1?"},"pilot-feature/pilot":{"id":"pilot-feature/pilot","title":"\u8a66\u9ede\u529f\u80fd","description":"\u5347\u7d1a\u53cd\u5411\u5408\u7d04\u5e33\u6236"},"v3/intro":{"id":"v3/intro","title":"\u6982\u89bd","description":"\u9452\u6b0a/\u8a8d\u8b49","sidebar":"v3SideBar"},"v3/tax/data-explain":{"id":"v3/tax/data-explain","title":"\u6578\u64da\u8aaa\u660e","description":"\u4ea4\u6613\u6b77\u53f2","sidebar":"v3SideBar"},"v3/tax/data-export":{"id":"v3/tax/data-export","title":"\u6578\u64da\u5c0e\u51fa","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v3/tax/enum":{"id":"v3/tax/enum","title":"\u679a\u8209\u5b9a\u7fa9","description":"ReportType","sidebar":"v3SideBar"},"v3/tax/register-time":{"id":"v3/tax/register-time","title":"\u67e5\u8a62\u7279\u5b9a\u7528\u6236\u5728\u5e73\u53f0\u8a3b\u518a\u65e5\u671f","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v3/tax/report-status":{"id":"v3/tax/report-status","title":"\u67e5\u8a62\u5831\u544a\u5c0e\u51fa\u72c0\u614b","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v3/tax/request-report":{"id":"v3/tax/request-report","title":"\u5275\u5efa\u5c0e\u51fa\u5831\u544a\u8acb\u6c42","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v5/abandon/account-info":{"id":"v5/abandon/account-info","title":"\u67e5\u8a62\u4f59\u5e63\u5bf6\u5e33\u6236\u4fe1\u606f","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/abandon/cancel-redeem":{"id":"v5/abandon/cancel-redeem","title":"\u64a4\u92b7\u8d16\u56de","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/abandon/coin-info":{"id":"v5/abandon/coin-info","title":"\u67e5\u8a62\u53ef\u5b58\u5165\u5e63\u7a2e\u4fe1\u606f","description":"\u67e5\u8a62\u53ef\u5b58\u5165\u5e63\u7a2e\u7684\u57fa\u672c\u4fe1\u606f","sidebar":"v5SideBar"},"v5/abandon/deposit":{"id":"v5/abandon/deposit","title":"\u5b58\u5165\u8cc7\u91d1","description":"- \u7d93\u5178\u5e33\u6236&UMA\u5e33\u6236: \u8cc7\u91d1\u662f\u5f9e\u73fe\u8ca8\u9322\u5305\u6263\u9664","sidebar":"v5SideBar"},"v5/abandon/earning":{"id":"v5/abandon/earning","title":"\u67e5\u8a62\u7d93\u7d00\u5546\u8fd4\u4f63","description":"\u8a72\u63a5\u53e3\u5df2\u7d93\u5ee2\u68c4, \u8acb\u4f7f\u7528\u67e5\u8a62\u7d93\u7d00\u5546\u8fd4\u4f63\u4fe1\u606f","sidebar":"v5SideBar"},"v5/abandon/enable-unitransfer-subuid":{"id":"v5/abandon/enable-unitransfer-subuid","title":"\u914d\u7f6e\u4e92\u76f8\u5283\u8f49\u7684\u5b50\u5e33\u865f","description":"\u7121\u9700\u518d\u914d\u7f6e\u53ef\u5283\u8f49\u7684\u5b50\u5e33\u865f, \u8a72\u9650\u5236\u5df2\u79fb\u9664, \u9ed8\u8a8d\u4efb\u610f\u5b50\u5e33\u865f\u4e4b\u9593\u53ef\u4ee5\u5283\u8f49","sidebar":"v5SideBar"},"v5/abandon/ltv":{"id":"v5/abandon/ltv","title":"\u67e5\u8a62\u98a8\u96aa\u7387","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/abandon/margin-coin-info":{"id":"v5/abandon/margin-coin-info","title":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","description":"\u9019\u662f\u516c\u5171\u63a5\u53e3\uff0c\u7121\u9700\u9452\u6b0a\u3002","sidebar":"v5SideBar"},"v5/abandon/order-record":{"id":"v5/abandon/order-record","title":"\u67e5\u8a62\u8a02\u55ae\u6b77\u53f2","description":"\u67e5\u8a62\u5b58\u5165/\u8d16\u56de/\u6536\u76ca\u767c\u653e\u7684\u8a02\u55ae\u6b77\u53f2","sidebar":"v5SideBar"},"v5/abandon/redeem":{"id":"v5/abandon/redeem","title":"\u8d16\u56de\u8cc7\u91d1","description":"\u5728\u8d16\u56de\u672c\u91d1\u6642\uff0c\u7cfb\u7d71\u9084\u6703\u81ea\u52d5\u8d16\u56de\u7576\u524d\u7684\u6536\u76ca\u3002","sidebar":"v5SideBar"},"v5/account/account-info":{"id":"v5/account/account-info","title":"\u67e5\u8a62\u8cec\u6236\u914d\u7f6e","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u67e5\u8a62\u8cec\u6236\u7684\u4fdd\u8b49\u91d1\u6a21\u5f0f(\u7d71\u4e00\u5e33\u6236), \u7576\u524d\u5e33\u6236\u6a21\u5f0f\u7b49\u914d\u7f6e","sidebar":"v5SideBar"},"v5/account/batch-set-collateral":{"id":"v5/account/batch-set-collateral","title":"\u6279\u91cf\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","description":"\u7528\u6236\u53ef\u4ee5\u6279\u91cf\u958b\u555f\u6216\u95dc\u9589\u7d71\u4e00\u5e33\u6236\u4e2d\u5e63\u7a2e\u62b5\u62bc\u5c6c\u6027\uff0c\u9ed8\u8a8d\u90fd\u662f\u95dc\u9589\u7684","sidebar":"v5SideBar"},"v5/account/borrow-history":{"id":"v5/account/borrow-history","title":"\u67e5\u8a62\u5229\u606f\u8a18\u9304","description":"\u7372\u53d6\u5229\u606f\u8a18\u9304\uff0c\u6309\u7167\u5275\u5efa\u6642\u9593\u5012\u6558\u6392\u5217","sidebar":"v5SideBar"},"v5/account/coin-greeks":{"id":"v5/account/coin-greeks","title":"\u67e5\u8a62Greeks\u4fe1\u606f","description":"\u7372\u53d6\u7576\u524d\u8cec\u6236Greeks\u4fe1\u606f","sidebar":"v5SideBar"},"v5/account/collateral-info":{"id":"v5/account/collateral-info","title":"\u67e5\u8a62\u62b5\u62bc\u54c1\u4fe1\u606f","description":"\u7372\u53d6\u7576\u524d\u7d71\u4e00\u4fdd\u8b49\u91d1\u8cec\u6236\u7684\u62b5\u62bc\u54c1\u4fe1\u606f\uff0c\u5305\u62ec\u501f\u8cb8\u5229\u7387\uff0c\u53ef\u85c9\u8cb8\u91d1\u984d\u4ee5\u53ca\u62b5\u62bc\u54c1\u6298\u7b97\u7387\uff0c\u662f\u5426\u53ef\u62b5\u62bc\u4f5c\u70ba\u4fdd\u8b49\u91d1\u7b49\u4fe1\u606f","sidebar":"v5SideBar"},"v5/account/contract-transaction-log":{"id":"v5/account/contract-transaction-log","title":"\u4ea4\u6613\u65e5\u8a8c","description":"\u652f\u6301\u67e5\u8a62\u7d93\u5178\u5e33\u6236\u4e0b\u5408\u7d04\u9322\u5305, \u4ee5\u53ca\u7d71\u4e00\u5e33\u6236\u4e0b\u53cd\u5411\u5408\u7d04\u9322\u5305\u88e1\u7684\u4ea4\u6613\u65e5\u8a8c","sidebar":"v5SideBar"},"v5/account/dcp-info":{"id":"v5/account/dcp-info","title":"\u67e5\u8a62DCP\u914d\u7f6e","description":"\u67e5\u8a62\u5e33\u6236\u7684\u671f\u8ca8 / \u73fe\u8ca8 / \u671f\u6b0a\u7684dcp\u914d\u7f6e. \u5728\u8abf\u7528\u63a5\u53e3\u524d, \u8acb\u78ba\u4fdd\u5df2\u7d93\u548c\u5ba2\u6236\u7d93\u7406\u7533\u8acb\u4e86\u5e33\u6236DCP\u958b\u901a","sidebar":"v5SideBar"},"v5/account/fee-rate":{"id":"v5/account/fee-rate","title":"\u67e5\u8a62\u624b\u7e8c\u8cbb\u7387","description":"\u67e5\u8a62\u4ea4\u6613\u624b\u7e8c\u8cbb\u7387","sidebar":"v5SideBar"},"v5/account/get-mmp-state":{"id":"v5/account/get-mmp-state","title":"\u67e5\u8a62\u5e02\u5546\u4fdd\u8b77\u914d\u7f6e\u4fe1\u606f","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/account/repay-liability":{"id":"v5/account/repay-liability","title":"\u4e00\u9375\u9084\u6b3e","description":"\u60a8\u53ef\u4ee5\u901a\u904e\u8a72\u63a5\u53e3\u624b\u52d5\u9084\u6e05\u7d71\u4e00\u5e33\u6236\u4e2d\u7684\u501f\u6b3e","sidebar":"v5SideBar"},"v5/account/reset-mmp":{"id":"v5/account/reset-mmp","title":"\u91cd\u7f6e\u5e02\u5546\u4fdd\u8b77\u51cd\u7d50","description":"* \u4e00\u65e6mmp\u88ab\u89f8\u767c, \u60a8\u7684\u5e33\u6236\u53ef\u4ee5\u8abf\u7528\u8a72\u63a5\u53e3\u9032\u884c\u4e3b\u52d5\u89e3\u51cd, \u89e3\u51cd\u5f8c, qtyLimit\u548cdeltaLimit\u5c31\u91cd\u7f6e\u70ba0.","sidebar":"v5SideBar"},"v5/account/set-collateral":{"id":"v5/account/set-collateral","title":"\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","description":"\u7528\u6236\u53ef\u4ee5\u81ea\u884c\u6c7a\u5b9a\u662f\u5426\u958b\u555f\u7d71\u4e00\u5e33\u6236\u4e2d\u5e63\u7a2e\u662f\u5426\u9032\u884c\u62b5\u62bc\uff0c\u9ed8\u8a8d\u90fd\u662f\u95dc\u9589\u7684","sidebar":"v5SideBar"},"v5/account/set-margin-mode":{"id":"v5/account/set-margin-mode","title":"\u8a2d\u7f6e\u4fdd\u8b49\u91d1\u6a21\u5f0f(\u5e33\u6236)","description":"\u7528\u6236\u5982\u679c\u4e0d\u8a2d\u7f6e\uff0c\u9ed8\u8a8d\u6309\u5168\u5009\u4fdd\u8b49\u91d1","sidebar":"v5SideBar"},"v5/account/set-mmp":{"id":"v5/account/set-mmp","title":"\u8bbe\u7f6e\u5e02\u5546\u4fdd\u8b77","description":"\u4ec0\u9ebc\u662fMMP?","sidebar":"v5SideBar"},"v5/account/set-spot-hedge":{"id":"v5/account/set-spot-hedge","title":"\u8a2d\u7f6e\u73fe\u8ca8\u5c0d\u885d","description":"\u60a8\u53ef\u4ee5\u958b\u95dc\u73fe\u8ca8\u5c0d\u5f9e\u529f\u80fd, \u50c5\u9650\u7d71\u4e00\u5e33\u6236\u7d44\u5408\u4fdd\u8b49\u91d1\u6a21\u5f0f\u4e0b","sidebar":"v5SideBar"},"v5/account/smp-group":{"id":"v5/account/smp-group","title":"\u67e5\u8a62SMP\u7d44ID","description":"\u67e5\u8a62\u81ea\u6210\u4ea4\u6514\u622a\u7684SMP\u4ea4\u6613\u7fa4\u7d44ID","sidebar":"v5SideBar"},"v5/account/transaction-log":{"id":"v5/account/transaction-log","title":"\u4ea4\u6613\u65e5\u8a8c","description":"\u6574\u500b\u8cec\u6236\u7d71\u4e00\u9322\u5305\u88e1\u7684\u4ea4\u6613\u65e5\u8a8c, \u652f\u6301\u6700\u591a\u67e5\u8a62\u904e\u53bb2\u5e74\u7684\u6578\u64da","sidebar":"v5SideBar"},"v5/account/upgrade-unified-account":{"id":"v5/account/upgrade-unified-account","title":"\u5347\u7d1a\u7d71\u4e00\u4fdd\u8b49\u91d1\u8cec\u6236","description":"\u901a\u904e\u8abf\u7528\u67e5\u8a62\u8cec\u6236\u914d\u7f6e\u63a5\u53e3\u4f86\u78ba\u8a8d\u7576\u524d\u7684\u5e33\u6236\u578b\u614b","sidebar":"v5SideBar"},"v5/account/wallet-balance":{"id":"v5/account/wallet-balance","title":"\u67e5\u8a62\u9322\u5305\u9918\u984d","description":"\u7372\u53d6\u7d71\u4e00\u5e33\u6236\u548c\u7d93\u5178\u5e33\u6236\u9322\u5305\u9918\u984d, \u67e5\u8a62\u5404\u500b\u5e63\u7a2e\u7684\u8cc7\u7522\u4fe1\u606f. \u9ed8\u8a8d\u4e0d\u8fd4\u56de\u8cc7\u7522\u6216\u8ca0\u50b5\u70ba0\u7684\u5e63\u7a2e\u4fe1\u606f\u3002","sidebar":"v5SideBar"},"v5/acct-mode":{"id":"v5/acct-mode","title":"\u5e33\u6236\u6a21\u5f0f\u4ecb\u7d39","description":"\u73fe\u5728Bybit\u5e73\u53f0\u4e0a\u5171\u6709\u4e09\u7a2e\u5e33\u6236\u6a21\u5f0f\u4e26\u5b58, \u5206\u5225\u662f\u7d93\u5178\u5e33\u6236, \u7d71\u4e00\u5e33\u62361.0, \u7d71\u4e00\u5e33\u62362.0","sidebar":"v5SideBar"},"v5/announcement":{"id":"v5/announcement","title":"\u67e5\u8a62\u516c\u544a","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/balance/account-coin-balance":{"id":"v5/asset/balance/account-coin-balance","title":"\u67e5\u8a62\u5e33\u6236\u55ae\u500b\u5e63\u7a2e\u9918\u984d","description":"\u7372\u53d6\u67d0\u5e33\u6236\u985e\u578b\u4e0b\u67d0\u6307\u5b9a\u5e63\u7a2e\u7684\u9918\u984d\u3002\u652f\u6301\u901a\u904e\u8f38\u5165\u5b50\u5e33\u6236id\u4f86\u67e5\u8a62\u5b50\u5e33\u6236\u7684\u67d0\u500b\u5e33\u6236\u985e\u578b\u4e0b\u7684\u67d0\u500b\u5e63\u7a2e\u9918\u984d","sidebar":"v5SideBar"},"v5/asset/balance/all-balance":{"id":"v5/asset/balance/all-balance","title":"\u67e5\u8a62\u8cec\u6236\u6240\u6709\u5e63\u7a2e\u4f59\u984d","description":"\u652f\u6301\u67e5\u8a62\u6bcd\u5e33\u6236\u7684\u5404\u500b\u5e33\u6236\u985e\u578b\u7684\u5e63\u7a2e\u9918\u984d\uff0c\u4ee5\u53ca\u6bcd\u5e33\u6236\u4e0b\u5404\u5b50\u5e33\u6236\u7684\u5404\u500b\u5e33\u6236\u985e\u578b\u7684\u5e63\u7a2e\u9918\u984d\u3002","sidebar":"v5SideBar"},"v5/asset/balance/asset-info":{"id":"v5/asset/balance/asset-info","title":"\u67e5\u8a62\u8cc7\u7522\u4fe1\u606f","description":"\u53ea\u80fd\u67e5\u8a62\u7d93\u5178\u5e33\u6236\u7684\u73fe\u8ca8\u5e33\u6236\u8cc7\u7522","sidebar":"v5SideBar"},"v5/asset/balance/delay-amount":{"id":"v5/asset/balance/delay-amount","title":"\u67e5\u8a62\u5ef6\u9072\u63d0\u5e63\u51cd\u7d50\u91d1\u984d","description":"\u5982\u4f55\u6703\u5c0e\u81f4\u90e8\u5206\u8cc7\u91d1\u88ab\u8981\u6c42\u5ef6\u9072\u63d0\u5e63\uff1f","sidebar":"v5SideBar"},"v5/asset/coin-info":{"id":"v5/asset/coin-info","title":"\u67e5\u8a62\u5e63\u7a2e\u4fe1\u606f","description":"\u7372\u53d6\u5e63\u7a2e\u4fe1\u606f\uff0c\u5305\u62ec\u93c8\u4fe1\u606f\uff0c\u662f\u5426\u53ef\u5145\u53ef\u63d0","sidebar":"v5SideBar"},"v5/asset/convert/apply-quote":{"id":"v5/asset/convert/apply-quote","title":"\u7533\u8acb\u5831\u50f9","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/convert/confirm-quote":{"id":"v5/asset/convert/confirm-quote","title":"\u78ba\u8a8d\u5831\u50f9","description":"1. \u8a72\u63a5\u53e3\u662f\u7570\u6b65\u7684, \u8acb\u901a\u904e\u67e5\u8a62\u8acb\u6c42\u78ba\u8a8d\u6700\u7d42\u514c\u63db\u7d50\u679c","sidebar":"v5SideBar"},"v5/asset/convert/convert-coin-list":{"id":"v5/asset/convert/convert-coin-list","title":"\u67e5\u8a62\u514c\u63db\u5e63\u7a2e\u5217\u8868","description":"\u60a8\u53ef\u4ee5\u901a\u904e\u8a72\u63a5\u53e3\u7372\u53d6\u5230\u5404\u500b\u5e33\u6236\u5167\u7684\u514c\u5165\u514c\u51fa\u5e63\u7a2e\u5217\u8868","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-history":{"id":"v5/asset/convert/get-convert-history","title":"\u67e5\u8a62\u514c\u63db\u6b77\u53f2","description":"\u90a3\u4e9b\u88ab\u78ba\u8a8d\u7684\u5831\u50f9\u55ae, \u4e0d\u7ba1\u6700\u7d42\u72c0\u614b\u5982\u4f55, \u8a72\u63a5\u53e3\u90fd\u6703\u8fd4\u56de","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-result":{"id":"v5/asset/convert/get-convert-result","title":"\u67e5\u8a62\u5831\u50f9\u55ae\u72c0\u614b","description":"* \u60a8\u53ef\u4ee5\u901a\u904equoteTxId\u6307\u5b9a\u67e5\u8a62\u67d0\u7b46\u88ab\u78ba\u8a8d\u7684\u5831\u50f9\u55ae","sidebar":"v5SideBar"},"v5/asset/convert/guideline":{"id":"v5/asset/convert/guideline","title":"\u9583\u514c\u63a5\u5165\u6307\u5357","description":"* \u6240\u6709\u63a5\u53e3\u90fd\u9700\u8981\u9032\u884c\u9452\u6b0a","sidebar":"v5SideBar"},"v5/asset/delivery":{"id":"v5/asset/delivery","title":"\u67e5\u8a62\u4ea4\u5272\u7d00\u9304","description":"\u67e5\u8a62\u53cd\u5411\u4ea4\u5272 / USDC\u4ea4\u5272 / \u671f\u6b0a\u7684\u4ea4\u5272\u7d00\u9304, \u8fd4\u56de\u7d50\u679c\u6309\u7167deliveryTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-coin-spec":{"id":"v5/asset/deposit/deposit-coin-spec","title":"\u67e5\u8a62\u652f\u6301\u7684\u5145\u503c\u5e63\u7a2e\u4fe1\u606f","description":"\u901a\u904e\u5e63\u7a2e\u4fe1\u606f\u63a5\u53e3\uff0c\u7372\u53d6\u5e63\u93c8\u7d44\u5408","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-record":{"id":"v5/asset/deposit/deposit-record","title":"\u67e5\u8a62\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","description":"* endTime - startTime\u9700\u8981\u5c0f\u65bc\u7b49\u65bc30\u5929\uff0c\u9ed8\u8a8d\u67e5\u8a62\u6700\u8fd130\u5929\u7684\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/deposit/internal-deposit-record":{"id":"v5/asset/deposit/internal-deposit-record","title":"\u67e5\u8a62\u5145\u503c\u8a18\u9304 (\u5e73\u53f0\u8f6c\u8d26)","description":"\u67e5\u8a62Bybit\u5e73\u53f0\u5167\u90e8\u5145\u503c\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/deposit/master-deposit-addr":{"id":"v5/asset/deposit/master-deposit-addr","title":"\u67e5\u8a62\u4e3b\u5e33\u865f\u5145\u503c\u5730\u5740","description":"\u50c5\u652f\u6301\u6bcd\u5e33\u865fAPI key","sidebar":"v5SideBar"},"v5/asset/deposit/set-deposit-acct":{"id":"v5/asset/deposit/set-deposit-acct","title":"\u8a2d\u7f6e\u5145\u503c\u5e33\u6236","description":"\u8a2d\u7f6e\u5145\u503c\u5f8c\u7684\u81ea\u52d5\u8f49\u5165\u5e33\u6236\u985e\u578b\u3002\u8a72\u529f\u80fd\u8207\u7db2\u9801\u7aef-\u8a2d\u7f6e-\u5145\u503c\u4fdd\u6301\u4e00\u81f4\u3002","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-addr":{"id":"v5/asset/deposit/sub-deposit-addr","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u5730\u5740","description":"\u50c5\u80fd\u4f7f\u7528\u8a72\u6bcd\u5e33\u865f*\u7684API key","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-record":{"id":"v5/asset/deposit/sub-deposit-record","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","description":"\u50c5\u80fd\u901a\u904e\u4e3b\u5e33\u865f\u7684API key\u4f86\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/exchange":{"id":"v5/asset/exchange","title":"\u67e5\u8a62\u514c\u63db\u8a02\u55ae\u7d00\u9304","description":"\u60a8\u53ef\u80fd\u6703\u906d\u9047\u8f03\u9577\u7684\u6578\u64da\u8fd4\u56de\u5ef6\u9072","sidebar":"v5SideBar"},"v5/asset/settlement":{"id":"v5/asset/settlement","title":"\u67e5\u8a62USDC\u7d50\u7b97\u7d00\u9304","description":"\u67e5\u8a62USDC\u6c38\u7e8c\u7684\u7d50\u7b97\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/sub-uid-list":{"id":"v5/asset/sub-uid-list","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u5217\u8868","description":"\u67e5\u8a62\u67d0\u500b\u6bcd\u5e33\u6236\u7684\u5b50\u5e33\u865f\u5217\u8868, \u8fd4\u56de\u81f3\u591a2000\u500b\u5b50\u5e33\u6236, \u5982\u679c\u60a8\u6709\u66f4\u591a, \u53ef\u4ee5\u8abf\u7528\u9019\u500b\u63a5\u53e3.","sidebar":"v5SideBar"},"v5/asset/transfer/create-inter-transfer":{"id":"v5/asset/transfer/create-inter-transfer","title":"\u5283\u8f49 (\u55ae\u5e33\u865f\u5167)","description":"\u5275\u5efa\u55ae\u5e33\u865f\u4e0b\u5e33\u6236\u985e\u578b\u9593\u7684\u5283\u8f49\u64cd\u4f5c","sidebar":"v5SideBar"},"v5/asset/transfer/inter-transfer-list":{"id":"v5/asset/transfer/inter-transfer-list","title":"\u67e5\u8a62\u5283\u8f49\u7d00\u9304 (\u55ae\u5e33\u865f\u5167)","description":"\u7372\u53d6\u55ae\u5e33\u865f\u5167\u7684\u5283\u8f49\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/transfer/transferable-coin":{"id":"v5/asset/transfer/transferable-coin","title":"\u5e33\u6236\u985e\u578b\u9593\u53ef\u5283\u8f49\u7684\u5e63\u7a2e","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer":{"id":"v5/asset/transfer/unitransfer","title":"\u5275\u5efa\u842c\u80fd\u5283\u8f49","description":"\u652f\u6301\u5b50\u5b50\u5e33\u6236\u9593\u5283\u8f49\u6216\u6bcd\u5b50\u5e33\u865f\u9593\u5283\u8f49\u3002","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer-list":{"id":"v5/asset/transfer/unitransfer-list","title":"\u67e5\u8a62\u842c\u80fd\u5283\u8f49\u7d00\u9304","description":"* \u6bcd\u5b50\u5e33\u865f\u7684api key\u90fd\u652f\u6301\u8abf\u7528","sidebar":"v5SideBar"},"v5/asset/withdraw/cancel-withdraw":{"id":"v5/asset/withdraw/cancel-withdraw","title":"\u64a4\u92b7\u63d0\u5e63","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/withdraw/vasp-list":{"id":"v5/asset/withdraw/vasp-list","title":"\u67e5\u8a62\u4ea4\u6613\u6240\u5217\u8868","description":"\u8a72\u63a5\u53e3\u4e3b\u8981\u7528\u65bckyc=KOR\u7684\u97d3\u570b\u500b\u4eba\u7528\u6236, \u5728\u63d0\u73fe\u6642\u9700\u8981\u586b\u5beb\u63a5\u6536\u65b9\u4ea4\u6613\u6240\u4fe1\u606f","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw":{"id":"v5/asset/withdraw/withdraw","title":"\u63d0\u73fe","description":"\u82e5\u76ee\u6a19\u5730\u5740\u662fBybit\u5e73\u53f0\u5167\u90e8\u5730\u5740, \u60a8\u53ef\u4ee5\u5be6\u73fe\u5167\u90e8\u5e73\u53f0\u8f49\u5e33","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw-record":{"id":"v5/asset/withdraw/withdraw-record","title":"\u67e5\u8a62\u63d0\u73fe\u7d00\u9304","description":"* endTime - startTime\u9700\u8981\u5c0f\u65bc\u7b49\u65bc30\u5929. \u9ed8\u8a8d\u67e5\u8a62\u6700\u8fd130\u5929\u7684\u7d00\u9304\u3002","sidebar":"v5SideBar"},"v5/backup/set-pledge-token":{"id":"v5/backup/set-pledge-token","title":"Set Pledge Token","description":"Set Pledge Token in cross margin"},"v5/broker/account-info":{"id":"v5/broker/account-info","title":"\u67e5\u8a62\u5e33\u6236\u4fe1\u606f","description":"* \u4f7f\u7528\u7d93\u7d00\u5546\u7684\u6bcd\u5e33\u6236\u9032\u884c\u67e5\u8a62","sidebar":"v5SideBar"},"v5/broker/exchange-earning":{"id":"v5/broker/exchange-earning","title":"\u67e5\u8a62\u8fd4\u4f63\u4fe1\u606f","description":"* \u4f7f\u7528\u7d93\u7d00\u5546\u7684\u6bcd\u5e33\u6236\u9032\u884c\u67e5\u8a62","sidebar":"v5SideBar"},"v5/broker/reward/get-issue-voucher":{"id":"v5/broker/reward/get-issue-voucher","title":"\u67e5\u8a62\u5df2\u767c\u653e\u4ee3\u91d1\u5238","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/broker/reward/issue-voucher":{"id":"v5/broker/reward/issue-voucher","title":"\u767c\u653e\u4ee3\u91d1\u5238","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/broker/reward/voucher":{"id":"v5/broker/reward/voucher","title":"\u67e5\u8a62\u4ee3\u91d1\u5238\u53c3\u6578","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/broker/sub-deposit-record":{"id":"v5/broker/sub-deposit-record","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u7d00\u9304","description":"\u7d93\u7d00\u5546\u50c5\u80fd\u901a\u904e\u4e3b\u5e33\u865f\u7684API key\u4f86\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304","sidebar":"v5SideBar"},"v5/copytrade":{"id":"v5/copytrade","title":"\u5982\u4f55\u4f7f\u7528API\u5e36\u55ae","description":"\u6210\u70ba\u4ea4\u6613\u9054\u4eba","sidebar":"v5SideBar"},"v5/crypto-loan/acct-borrow-collateral":{"id":"v5/crypto-loan/acct-borrow-collateral","title":"\u67e5\u8a62\u5e33\u6236\u53ef\u501f\u8cb8/\u62b5\u62bc\u7684\u9650\u984d","description":"\u67e5\u8a62\u672c\u5e33\u6236\u652f\u6301\u7684\u6700\u5c0f/\u6700\u5927\u7684\u501f\u8cb8\u548c\u8cea\u62bc\u984d","sidebar":"v5SideBar"},"v5/crypto-loan/adjust-collateral":{"id":"v5/crypto-loan/adjust-collateral","title":"\u8abf\u6574\u8cea\u62bc\u91d1\u984d","description":"\u60a8\u53ef\u4ee5\u589e\u52a0\u6216\u6e1b\u5c11\u8cea\u62bc\u91d1\u984d. \u9078\u64c7\u6e1b\u5c11\u6642, \u8acb\u5148\u78ba\u8a8d\u5141\u8a31\u6e1b\u5c11\u7684\u6700\u5927\u8cea\u62bc\u6578\u91cf","sidebar":"v5SideBar"},"v5/crypto-loan/borrow":{"id":"v5/crypto-loan/borrow","title":"\u501f\u6b3e","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/crypto-loan/collateral-coin":{"id":"v5/crypto-loan/collateral-coin","title":"\u67e5\u8a62\u8cea\u62bc\u5e63\u7a2e","description":"\u4e0d\u9700\u8981\u9452\u6b0a","sidebar":"v5SideBar"},"v5/crypto-loan/comleted-loan-order":{"id":"v5/crypto-loan/comleted-loan-order","title":"\u67e5\u8a62\u5df2\u7d50\u6e05\u7684\u501f\u8cb8\u6b77\u53f2\u8a02\u55ae","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/crypto-loan/loan-coin":{"id":"v5/crypto-loan/loan-coin","title":"\u67e5\u8a62\u53ef\u501f\u5e63\u7a2e","description":"\u4e0d\u9700\u8981\u9452\u6b0a","sidebar":"v5SideBar"},"v5/crypto-loan/ltv-adjust-history":{"id":"v5/crypto-loan/ltv-adjust-history","title":"\u67e5\u8a62\u8cea\u62bc\u91d1\u8abf\u6574\u6b77\u53f2","description":"\u67e5\u8a62\u589e\u6e1b\u8cea\u62bc\u91d1\u7684\u64cd\u4f5c\u6b77\u53f2","sidebar":"v5SideBar"},"v5/crypto-loan/reduce-max-collateral-amt":{"id":"v5/crypto-loan/reduce-max-collateral-amt","title":"\u67e5\u8a62\u6700\u5927\u53ef\u6e1b\u5c11\u7684\u8cea\u62bc\u91d1\u984d","description":"\u67e5\u8a62\u67d0\u500b\u501f\u8cb8\u8a02\u55ae\u5141\u8a31\u7684\u6700\u5927\u53ef\u6e1b\u5c11\u8cea\u62bc\u91d1\u984d","sidebar":"v5SideBar"},"v5/crypto-loan/repay":{"id":"v5/crypto-loan/repay","title":"\u9084\u6b3e","description":"\u60a8\u53ef\u4ee5\u9078\u64c7\u63d0\u524d\u9084\u6b3e, \u4e26\u4e14\u652f\u6301\u90e8\u5206\u9084\u6b3e, \u5982\u679c\u5b58\u5728\u5229\u606f, \u5c07\u512a\u5148\u9084\u5229\u606f","sidebar":"v5SideBar"},"v5/crypto-loan/repay-transaction":{"id":"v5/crypto-loan/repay-transaction","title":"\u67e5\u8a62\u9084\u6b3e\u7d00\u9304","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/crypto-loan/unpaid-loan-order":{"id":"v5/crypto-loan/unpaid-loan-order","title":"\u67e5\u8a62\u9032\u884c\u4e2d\u7684\u501f\u8cb8\u8a02\u55ae","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/demo":{"id":"v5/demo","title":"\u6a21\u64ec\u4ea4\u6613","description":"\u6982\u89bd","sidebar":"v5SideBar"},"v5/enum":{"id":"v5/enum","title":"\u679a\u8209\u5b9a\u7fa9","description":"locale","sidebar":"v5SideBar"},"v5/error":{"id":"v5/error","title":"\u932f\u8aa4\u78bc","description":"HTTP \u97ff\u61c9\u78bc","sidebar":"v5SideBar"},"v5/guide":{"id":"v5/guide","title":"\u63a5\u5165\u6307\u5357","description":"\u6b32\u8a73\u7d30\u4e86\u89e3 V5 API \u5185\u5bb9\uff0c\u9084\u8acb\u4ed4\u7d30\u95b1\u8b80\u6982\u89bd","sidebar":"v5SideBar"},"v5/intro":{"id":"v5/intro","title":"\u6982\u89bd","description":"\u7c21\u4ecb","sidebar":"v5SideBar"},"v5/lt/leverage-token-info":{"id":"v5/lt/leverage-token-info","title":"LT\u5168\u91cf\u8cc7\u7522\u67e5\u8a62","description":"\u67e5\u8a62\u69d3\u687f\u4ee3\u5e63\u4fe1\u606f","sidebar":"v5SideBar"},"v5/lt/leverage-token-reference":{"id":"v5/lt/leverage-token-reference","title":"\u67e5\u8a62LT\u884c\u60c5","description":"\u67e5\u8a62LT\u884c\u60c5","sidebar":"v5SideBar"},"v5/lt/order-record":{"id":"v5/lt/order-record","title":"\u7533\u8d16\u8a18\u9304\u67e5\u8a62","description":"\u7533\u8d16\u8a18\u9304\u67e5\u8a62","sidebar":"v5SideBar"},"v5/lt/purchase":{"id":"v5/lt/purchase","title":"\u7533\u8cfc","description":"\u7533\u8cfc","sidebar":"v5SideBar"},"v5/lt/redeem":{"id":"v5/lt/redeem","title":"\u8d16\u56de","description":"\u8d16\u56de","sidebar":"v5SideBar"},"v5/market/delivery-price":{"id":"v5/market/delivery-price","title":"\u67e5\u8a62\u4ea4\u5272\u50f9\u683c","description":"\u67e5\u8a62\u5e73\u53f0\u4ea4\u5272\u7522\u54c1\u7684\u4ea4\u5272\u50f9\u683c\uff0c\u652f\u6301\u53cd\u5411\u4ea4\u5272, USDC\u4ea4\u5272\u548c\u671f\u6b0a","sidebar":"v5SideBar"},"v5/market/history-fund-rate":{"id":"v5/market/history-fund-rate","title":"\u67e5\u8a62\u6b77\u53f2\u8cc7\u91d1\u8cbb\u7387","description":"\u67e5\u8a62\u8cc7\u91d1\u8cbb\u7387\uff0c\u6bcf\u500bsymbol\u7684\u8cc7\u91d1\u8cbb\u7387\u7522\u751f\u9031\u671f\u4e0d\u540c\u3002\u5047\u8a2d\u8cc7\u91d1\u8cbb\u7387\u70ba8\u5c0f\u6642\uff0c\u7576\u524d\u6642\u9593\u662fUTC12\u9ede\uff0c\u5247\u8fd4\u56de\u7684\u662f\u4e0a\u4e00\u500b\u7d50\u7b97\u5373UTC8\u9ede\u7522\u751f\u7684\u8cc7\u91d1\u8cbb\u7387\u3002\u5982\u8981\u67e5\u8a62symbol\u7684\u8cc7\u91d1\u8cbb\u7387\u6642\u9593\u9593\u9694\uff0c\u8acb\u67e5\u8a62\u53ef\u4ea4\u6613\u7522\u54c1\u898f\u683c\u63a5\u53e3","sidebar":"v5SideBar"},"v5/market/index-kline":{"id":"v5/market/index-kline","title":"\u67e5\u8a62\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u6307\u6578\u50f9\u683cK\u7dda","sidebar":"v5SideBar"},"v5/market/instrument":{"id":"v5/market/instrument","title":"\u67e5\u8a62\u53ef\u4ea4\u6613\u7522\u54c1\u7684\u898f\u683c\u4fe1\u606f","description":"\u67e5\u8a62\u5168\u7ad9\u53ef\u4ea4\u6613\u7522\u54c1\u7684\u57fa\u790e\u914d\u7f6e\u898f\u5247\u4fe1\u606f","sidebar":"v5SideBar"},"v5/market/insurance":{"id":"v5/market/insurance","title":"\u67e5\u8a62\u4fdd\u96aa\u57fa\u91d1","description":"\u67e5\u8a62Bybit\u5e73\u53f0\u7684\u4fdd\u96aa\u57fa\u91d1\u7684\u6578\u64da\uff0c\u5305\u542b\u6240\u6709\u4fdd\u96aa\u6c60\u7684\u6578\u64da\uff0c\u6578\u64da\u6bcf24\u5c0f\u6642\u66f4\u65b0\u4e00\u6b21\u3002","sidebar":"v5SideBar"},"v5/market/iv":{"id":"v5/market/iv","title":"\u67e5\u8a62\u671f\u6b0a\u6ce2\u52d5\u7387","description":"\u7372\u53d6\u671f\u6b0a\u7684\u6b77\u53f2\u6ce2\u52d5\u7387\u6578\u64da","sidebar":"v5SideBar"},"v5/market/kline":{"id":"v5/market/kline","title":"\u67e5\u8a62\u5e02\u5834\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u5e02\u5834\u50f9\u683cK\u7dda\u6578\u64da","sidebar":"v5SideBar"},"v5/market/long-short-ratio":{"id":"v5/market/long-short-ratio","title":"\u67e5\u8a62\u591a\u7a7a\u6bd4","description":"HTTP\u8acb\u6c42","sidebar":"v5SideBar"},"v5/market/mark-kline":{"id":"v5/market/mark-kline","title":"\u67e5\u8a62\u6a19\u8a18\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u6a19\u8a18\u50f9\u683cK\u7dda","sidebar":"v5SideBar"},"v5/market/open-interest":{"id":"v5/market/open-interest","title":"\u67e5\u8a62\u672a\u5e73\u5009\u5408\u7d04\u6301\u5009\u6578\u91cf","description":"\u67e5\u8a62\u5404\u500b\u5408\u7d04\u5e02\u5834\u5167\u6240\u6709\u672a\u5e73\u5009\u7684\u6578\u91cf","sidebar":"v5SideBar"},"v5/market/orderbook":{"id":"v5/market/orderbook","title":"Order Book (\u6df1\u5ea6)","description":"\u7372\u53d6\u6df1\u5ea6\u6578\u64da","sidebar":"v5SideBar"},"v5/market/preimum-index-kline":{"id":"v5/market/preimum-index-kline","title":"\u67e5\u8a62\u6ea2\u50f9\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u6ea2\u50f9\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","sidebar":"v5SideBar"},"v5/market/recent-trade":{"id":"v5/market/recent-trade","title":"\u67e5\u8a62\u5e73\u53f0\u6700\u8fd1\u6210\u4ea4\u6b77\u53f2","description":"\u7372\u53d6\u5e73\u53f0\u6700\u8fd1\u6210\u4ea4\u6578\u64da","sidebar":"v5SideBar"},"v5/market/risk-limit":{"id":"v5/market/risk-limit","title":"\u67e5\u8a62\u5408\u7d04\u98a8\u96aa\u9650\u984d","description":"\u67e5\u8a62\u671f\u8ca8\u5408\u7d04\u7684\u98a8\u96aa\u9650\u984d\u8868","sidebar":"v5SideBar"},"v5/market/tickers":{"id":"v5/market/tickers","title":"\u67e5\u8a62\u6700\u65b0\u884c\u60c5\u4fe1\u606f","description":"\u53ef\u7372\u53d6\u5230\u5feb\u7167\u7684\u6700\u65b0\u5e02\u5834\u50f9\u683c\uff0c\u6700\u4f73\u8cb7\u8ce3\u50f9\u683c\uff0c\u4ee5\u53ca\u904e\u53bb\u6642\u9593\u5167\u7684\u4ea4\u6613\u91cf\u7b49.","sidebar":"v5SideBar"},"v5/market/time":{"id":"v5/market/time","title":"Bybit\u670d\u52d9\u5668\u6642\u9593","description":"\u7372\u53d6Bybit\u670d\u52d9\u5668\u6642\u9593","sidebar":"v5SideBar"},"v5/order/amend-order":{"id":"v5/order/amend-order","title":"\u4fee\u6539\u59d4\u8a17\u55ae","description":"\u60a8\u53ea\u80fd\u4fee\u6539\u90a3\u4e9b\u672a\u6210\u4ea4\u6216\u8005\u90e8\u5206\u6210\u4ea4\u7684\u8a02\u55ae\u3002","sidebar":"v5SideBar"},"v5/order/batch-amend":{"id":"v5/order/batch-amend","title":"\u6279\u91cf\u4fee\u6539\u59d4\u8a17\u55ae","description":"\u8a72\u63a5\u53e3\u652f\u6301\u6279\u91cf\u4fee\u6539\u59d4\u8a17\u55ae","sidebar":"v5SideBar"},"v5/order/batch-cancel":{"id":"v5/order/batch-cancel","title":"\u6279\u91cf\u64a4\u92b7\u59d4\u8a17\u55ae","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u6279\u91cf\u64a4\u92b7\u591a\u7b46\u8a02\u55ae","sidebar":"v5SideBar"},"v5/order/batch-place":{"id":"v5/order/batch-place","title":"\u6279\u91cf\u5275\u5efa\u59d4\u8a17\u55ae","description":"\u8a72\u63a5\u53e3\u652f\u6301\u6279\u91cf\u5275\u5efa\u59d4\u8a17\u55ae","sidebar":"v5SideBar"},"v5/order/cancel-all":{"id":"v5/order/cancel-all","title":"\u64a4\u92b7\u6240\u6709\u8a02\u55ae","description":"- \u652f\u6301\u6309\u7167symbol/baseCoin/settleCoin\u64a4\u92b7\u8a02\u55ae\uff0c\u82e5\u60a8\u50b3\u5165\u4e86\u591a\u500b\u53c3\u6578\u7d44\u5408, \u7cfb\u7d71\u50c5\u6703\u8655\u7406\u5176\u4e2d\u4e00\u500b\u53c3\u6578\uff0c\u5176\u4e2d\u512a\u5148\u7d1a\u70basymbol > baseCoin > settleCoin.","sidebar":"v5SideBar"},"v5/order/cancel-order":{"id":"v5/order/cancel-order","title":"\u64a4\u92b7\u59d4\u8a17\u55ae","description":"- \u60a8\u5fc5\u9808\u6307\u5b9aorderId\u6216\u8005orderLinkId.","sidebar":"v5SideBar"},"v5/order/create-order":{"id":"v5/order/create-order","title":"\u5275\u5efa\u59d4\u8a17\u55ae","description":"\u672c\u63a5\u53e3\u63d0\u4f9b\u5e63\u5e63\u4ea4\u6613\uff0c\u73fe\u8ca8\u69d3\u687f\u4ea4\u6613\uff0c\u5408\u7d04\u4ee5\u53ca\u671f\u6b0a\u7684\u8a02\u55ae\u5275\u5efa","sidebar":"v5SideBar"},"v5/order/dcp":{"id":"v5/order/dcp","title":"\u8a2d\u7f6e\u65b7\u7dda\u4fdd\u8b77\u6642\u9593","description":"\u4ec0\u9ebc\u662f\u65b7\u7dda\u4fdd\u8b77 (Disconnection Protect)?","sidebar":"v5SideBar"},"v5/order/execution":{"id":"v5/order/execution","title":"\u67e5\u8a62\u6210\u4ea4\u7d00\u9304","description":"\u7372\u53d6\u7528\u6236\u6210\u4ea4\u7d00\u9304\uff0c\u8fd4\u56de\u7d50\u679c\u6309execTime\u964d\u5e8f\u6392\u5217\u3002\u4f46\u662f\uff0c\u5c0d\u65bc\u7d93\u5178\u5e33\u6236\u73fe\u8ca8\u4ea4\u6613\uff0c\u8fd4\u56de\u7d50\u679c\u6309execId\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/order/open-order":{"id":"v5/order/open-order","title":"\u67e5\u8a62\u5be6\u6642\u548c\u7d42\u614b\u59d4\u8a17\u55ae","description":"\u4e3b\u8981\u7528\u65bc\u5be6\u6642\u67e5\u8a62\u672a\u6210\u4ea4\u6216\u90e8\u5206\u6210\u4ea4\u7684\u8a02\u55ae\u4fe1\u606f, \u4f46\u7d50\u5408\u5165\u53c2openOnly\u80fd\u5920\u67e5\u8a62\u5230\u6700\u8fd1500\u689d\u5230\u9054\u7d42\u614b\u7684\u8a02\u55ae. \u82e5\u9700\u8981\u67e5\u8a62\u66f4\u4e45\u7684\u8a02\u55ae\u7d00\u9304\uff0c\u8acb\u4f7f\u7528\u67e5\u8a62\u6b77\u53f2\u8a02\u55ae\u63a5\u53e3.","sidebar":"v5SideBar"},"v5/order/order-list":{"id":"v5/order/order-list","title":"\u67e5\u8a62\u6b77\u53f2\u8a02\u55ae","description":"\u7372\u53d6\u6b77\u53f2\u8a02\u55ae\u7d00\u9304. \u7531\u65bc\u8a02\u55ae\u5275\u5efa/\u64a4\u92b7\u662f\u7570\u6b65\u7684, \u8a72\u63a5\u53e3\u8fd4\u56de\u6578\u64da\u53ef\u80fd\u6703\u6709\u5ef6\u9072. \u82e5\u60a8\u60f3\u5be6\u6642\u7372\u53d6\u8a02\u55ae\u4fe1\u606f, \u60a8\u53ef\u4ee5\u67e5\u8a62\u8a72\u63a5\u53e3\u6216\u8005\u901a\u904ewebsocket\u63a8\u9001(\u63a8\u85a6)","sidebar":"v5SideBar"},"v5/order/spot-borrow-quota":{"id":"v5/order/spot-borrow-quota","title":"\u67e5\u8a62\u7528\u6236\u53ef\u7528\u984d\u5ea6 (\u73fe\u8ca8)","description":"\u53ef\u4ee5\u67e5\u8a62\u73fe\u8ca8\u5e63\u5e63\u4ea4\u6613\u4ee5\u53ca\u69d3\u687f\u4ea4\u6613\u6642, \u53ef\u7528\u5c0d\u61c9\u5e63\u7a2e\u7684\u5be6\u6642\u9918\u984d","sidebar":"v5SideBar"},"v5/otc/bind-uid":{"id":"v5/otc/bind-uid","title":"\u7d81\u5b9a/\u89e3\u7d81UID","description":"\u5c0d\u65bc\u5834\u5916\u501f\u8cb8\u7522\u54c1, \u60a8\u53ef\u4ee5\u81ea\u884c\u7d81\u5b9a\u65b0\u7684UID\u5230\u98a8\u96aa\u55ae\u5143\u5167\u6216\u8005\u89e3\u7d81\u67d0\u500bUID","sidebar":"v5SideBar"},"v5/otc/loan-info":{"id":"v5/otc/loan-info","title":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae\u4fe1\u606f","description":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae\u7684\u8a73\u60c5","sidebar":"v5SideBar"},"v5/otc/ltv-convert":{"id":"v5/otc/ltv-convert","title":"\u67e5\u8a62\u98a8\u96aa\u7387","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/otc/margin-coin-convert-info":{"id":"v5/otc/margin-coin-convert-info","title":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","description":"* \u8a72\u63a5\u53e3\u5728\u4e0d\u50b3\u5165api key\u548csecret\u9032\u884c\u9452\u6b0a\u6642, \u5247\u8fd4\u56de\u516c\u5171\u6578\u64da","sidebar":"v5SideBar"},"v5/otc/margin-product-info":{"id":"v5/otc/margin-product-info","title":"\u67e5\u8a62\u7522\u54c1\u4fe1\u606f","description":"* \u8a72\u63a5\u53e3\u5728\u4e0d\u50b3\u5165api key\u548csecret\u9032\u884c\u9452\u6b0a\u6642, \u5247\u8fd4\u56de\u516c\u5171\u7522\u54c1\u6578\u64da","sidebar":"v5SideBar"},"v5/otc/repay-info":{"id":"v5/otc/repay-info","title":"\u67e5\u8a62\u9084\u6b3e\u4fe1\u606f","description":"* \u9ed8\u8a8d\u67e5\u8a62\u904e\u53bb2\u5e74\u7684\u6578\u64da","sidebar":"v5SideBar"},"v5/position/auto-add-margin":{"id":"v5/position/auto-add-margin","title":"\u8a2d\u7f6e\u81ea\u52d5\u8ffd\u52a0\u4fdd\u8b49\u91d1","description":"\u958b\u95dc\u81ea\u52d5\u8ffd\u52a0\u4fdd\u8b49\u91d1\uff0c\u50c5\u9069\u7528\u65bc\u9010\u5009\u4fdd\u8b49\u91d1\u6a21\u5f0f","sidebar":"v5SideBar"},"v5/position/close-pnl":{"id":"v5/position/close-pnl","title":"\u67e5\u8a62\u5e73\u5009\u76c8\u8667","description":"\u7372\u53d6\u7576\u524d\u7528\u6236\u7684\u6240\u6709\u5e73\u5009\u76c8\u8667\u6578\u64da\uff0c\u8fd4\u56de\u7d50\u679c\u6309\u7167createdTime\u964d\u5e8f\u6392\u5217.","sidebar":"v5SideBar"},"v5/position/confirm-mmr":{"id":"v5/position/confirm-mmr","title":"\u78ba\u8a8d\u65b0\u7684\u98a8\u96aa\u9650\u984d","description":"\u50c5\u9069\u7528\u65bc\u7576\u7528\u6236\u88ab\u6a19\u8a18\u70ba\u50c5\u6e1b\u5009 (\u8acb\u770b\u6301\u5009\u63a5\u53e3\u4e2d\u7684isReduceOnly\u5b57\u6bb5) \u6642, \u5728\u7528\u6236\u4e3b\u52d5\u8abf\u6574\u98a8\u96aa\u6c34\u4f4d\u5f8c, \u8abf\u7528\u8a72\u63a5\u53e3\u4f86\u8a66\u7b97\u8abf\u6574\u5f8c\u7684\u98a8","sidebar":"v5SideBar"},"v5/position/cross-isolate":{"id":"v5/position/cross-isolate","title":"\u5207\u63db\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1(\u4ea4\u6613\u5c0d)","description":"\u9078\u64c7\u5168\u5009\u4fdd\u8b49\u91d1\u6216\u8005\u662f\u9010\u5009\u4fdd\u8b49\u91d1\uff0c\u8acb\u53c3\u95b1\u9019\u88e1\u4e86\u89e3\u95dc\u65bc\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1\u6a21\u5f0f\u3002","sidebar":"v5SideBar"},"v5/position/leverage":{"id":"v5/position/leverage","title":"\u8a2d\u7f6e\u69d3\u687f","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/position/manual-add-margin":{"id":"v5/position/manual-add-margin","title":"\u624b\u52d5\u589e\u52a0\u6216\u6e1b\u5c11\u4fdd\u8b49\u91d1","description":"\u624b\u52d5\u589e\u52a0\u6216\u6e1b\u5c11\u4fdd\u8b49\u91d1\uff0c\u50c5\u9069\u7528\u65bc\u9010\u5009\u4fdd\u8b49\u91d1\u6a21\u5f0f","sidebar":"v5SideBar"},"v5/position/move-position":{"id":"v5/position/move-position","title":"\u79fb\u5009","description":"\u60a8\u53ef\u4ee5\u5728\u540c\u4e00\u500b\u6bcd\u5b50\u5e33\u6236\u9ad4\u7cfb\u4e0b\u79fb\u52d5\u671f\u8ca8\u3001\u671f\u6b0a\u7684\u5009\u4f4d, \u4ee5\u53ca\u73fe\u8ca8\u7684\u5e63\u5e63\u4ea4\u6613","sidebar":"v5SideBar"},"v5/position/move-position-history":{"id":"v5/position/move-position-history","title":"\u67e5\u8a62\u79fb\u5009\u6b77\u53f2","description":"\u60a8\u53ef\u4ee5\u901a\u904e\u4f7f\u7528\u6bcd\u5e33\u6236\u7684api key\u67e5\u8a62\u904e\u53bb\u7684\u79fb\u5009\u6b77\u53f2\u7d00\u9304","sidebar":"v5SideBar"},"v5/position/position":{"id":"v5/position/position","title":"\u67e5\u8a62\u6301\u5009 (\u5be6\u6642)","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u7372\u53d6\u7528\u6236\u7684\u6301\u5009\u4fe1\u606f\uff0c\u6bd4\u5982\u6301\u5009\u6578\u91cf\uff0c\u7d2f\u8a08\u76c8\u8667\u7b49","sidebar":"v5SideBar"},"v5/position/position-mode":{"id":"v5/position/position-mode","title":"\u5207\u63db\u6301\u5009\u6a21\u5f0f","description":"\u8a72\u63a5\u53e3\u652f\u6301\u5207\u63dbUSDT\u6c38\u7e8c\u548c\u53cd\u5411\u4ea4\u5272\u7684\u6301\u5009\u6a21\u5f0f\u3002\u5982\u679c\u8655\u65bc\u55ae\u5411\u6301\u5009\u6a21\u5f0f\u4e0b\uff0c\u60a8\u53ea\u80fd\u8981\u9ebc\u6301\u6709\u591a\u982d\u8981\u9ebc\u7a7a\u982d\u5009\u4f4d\uff1b\u5982\u679c\u8655\u65bc\u96d9\u5411\u6301\u5009\u6a21\u5f0f\u4e0b\uff0c\u60a8\u53ef\u4ee5\u540c\u6642\u6301\u5009\u591a\u982d\u548c\u7a7a\u982d\u7684\u5009\u4f4d\u3002","sidebar":"v5SideBar"},"v5/position/set-risk-limit":{"id":"v5/position/set-risk-limit","title":"\u8a2d\u7f6e\u98a8\u96aa\u9650\u984d","description":"\u7531\u65bcBybit\u57282024\u5e743\u670812\u65e5\u4e0a\u7dda\u4e86\u81ea\u52d5\u8abf\u6574risk limit\u529f\u80fd, \u8a73\u60c5\u8acb\u898b\u9019\u88e1, \u56e0\u6b64\u5118\u7ba1\u63a5\u53e3\u80fd\u8abf\u901a, \u4f46\u662f\u6c92\u6709\u4efb\u4f55\u610f\u7fa9","sidebar":"v5SideBar"},"v5/position/tpsl-mode":{"id":"v5/position/tpsl-mode","title":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d\u6a21\u5f0f","description":"\u67d0\u7a2e\u7a0b\u5ea6\u4e0a\u4f86\u8aaa\uff0c\u8a72\u63a5\u53e3\u5df2\u7d93**\u5ee2\u68c4**, \u539f\u56e0\u5728\u65bc\u65b0\u7248\u7684\u6b62\u76c8\u6b62\u640d\u6a5f\u5236\u662f\u57fa\u65bc\u8a02\u55ae\u7dad\u5ea6. \u9019\u500b\u63a5\u53e3\u7576\u521d\u4e3b\u8981\u662f\u7528\u65bc\u5009\u4f4d\u7dad\u5ea6\u7684\u6b62\u76c8\u6b62\u640d","sidebar":"v5SideBar"},"v5/position/trading-stop":{"id":"v5/position/trading-stop","title":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u8a2d\u7f6e\u6b62\u76c8\u3001\u6b62\u640d\u548c\u8ffd\u8e64\u6b62\u640d","sidebar":"v5SideBar"},"v5/pre-upgrade/close-pnl":{"id":"v5/pre-upgrade/close-pnl","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u5e73\u5009\u76c8\u8667","description":"\u652f\u6301\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDT\u6c38\u7e8c / \u53cd\u5411\u5408\u7d04, \u8fd4\u56de\u7d50\u679c\u6309\u7167updatedTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/pre-upgrade/delivery":{"id":"v5/pre-upgrade/delivery","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u671f\u6b0a\u4ea4\u5272\u7d00\u9304","description":"\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684\u671f\u6b0a\u7684\u4ea4\u5272\u7d00\u9304, \u8fd4\u56de\u7d50\u679c\u6309\u7167deliveryTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/pre-upgrade/execution":{"id":"v5/pre-upgrade/execution","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u6210\u4ea4\u7d00\u9304","description":"\u652f\u6301\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDT\u6c38\u7e8c, USDC\u6c38\u7e8c, \u53cd\u5411\u5408\u7d04, \u73fe\u8ca8\u548c\u671f\u6b0a, \u8fd4\u56de\u7d50\u679c\u6309execTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/pre-upgrade/order-list":{"id":"v5/pre-upgrade/order-list","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u8a02\u55ae\u7d00\u9304","description":"\u652f\u6301\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDT\u6c38\u7e8c, USDC\u6c38\u7e8c, \u53cd\u5411\u5408\u7d04, \u73fe\u8ca8\u548c\u671f\u6b0a","sidebar":"v5SideBar"},"v5/pre-upgrade/settlement":{"id":"v5/pre-upgrade/settlement","title":"\u67e5\u8a62\u5347\u7d1a\u524dUSDC\u7d50\u7b97\u7d00\u9304","description":"\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDC\u6c38\u7e8c\u7684\u7d50\u7b97\u7d00\u9304","sidebar":"v5SideBar"},"v5/pre-upgrade/transaction-log":{"id":"v5/pre-upgrade/transaction-log","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u4ea4\u6613\u65e5\u8a8c","description":"\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524dUSDC\u5408\u7d04\u5e33\u6236\u88e1\u7684\u4ea4\u6613\u65e5\u8a8c","sidebar":"v5SideBar"},"v5/rate-limit":{"id":"v5/rate-limit","title":"\u983b\u7387\u9650\u5236","description":"IP\u9650\u983b","sidebar":"v5SideBar"},"v5/smp":{"id":"v5/smp","title":"\u81ea\u6210\u4ea4\u6514\u622a","description":"\u4ec0\u9ebc\u662f\u81ea\u6210\u4ea4\uff1f","sidebar":"v5SideBar"},"v5/spot-margin-normal/account-info":{"id":"v5/spot-margin-normal/account-info","title":"\u67e5\u8a62\u501f\u8cb8\u5e33\u6236\u4fe1\u606f","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/borrow":{"id":"v5/spot-margin-normal/borrow","title":"\u501f\u6b3e","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/borrow-order":{"id":"v5/spot-margin-normal/borrow-order","title":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/borrowable-data":{"id":"v5/spot-margin-normal/borrowable-data","title":"\u67e5\u8a62\u53ef\u501f\u5e63\u7a2e\u7cbe\u5ea6","description":"\u4e0d\u9700\u8981\u9452\u6b0a"},"v5/spot-margin-normal/interest-quota":{"id":"v5/spot-margin-normal/interest-quota","title":"\u67e5\u8a62\u5229\u7387\u53ca\u984d\u5ea6","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/margin-data":{"id":"v5/spot-margin-normal/margin-data","title":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","description":"\u4e0d\u9700\u8981\u9452\u6b0a"},"v5/spot-margin-normal/repay":{"id":"v5/spot-margin-normal/repay","title":"\u9084\u6b3e","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/repay-order":{"id":"v5/spot-margin-normal/repay-order","title":"\u67e5\u8a62\u9084\u6b3e\u8a02\u55ae\u4fe1\u606f","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/switch-mode":{"id":"v5/spot-margin-normal/switch-mode","title":"\u5168\u5009\u69d3\u687f\u958b\u95dc","description":"\u958b\u555f\u6216\u95dc\u9589\u5168\u5009\u69d3\u687f\u4ea4\u6613"},"v5/spot-margin-normal/vip-margin":{"id":"v5/spot-margin-normal/vip-margin","title":"\u67e5\u8a62\u4e0d\u540cVIP\u7684\u69d3\u687f\u6578\u64da","description":"\u67e5\u8a62\u7d93\u5178\u5e33\u6236\u4e0b\u4e0d\u540cVIP\u7b49\u7d1a\u7684\u69d3\u687f\u6578\u64da"},"v5/spot-margin-uta/historical-interest":{"id":"v5/spot-margin-uta/historical-interest","title":"\u67e5\u8a62\u501f\u8cb8\u6b77\u53f2\u5229\u7387","description":"\u60a8\u53ef\u4ee5\u67e5\u8a62\u6700\u591a\u904e\u53bb6\u500b\u6708\u7684\u501f\u8cb8\u5229\u7387\u6578\u64da","sidebar":"v5SideBar"},"v5/spot-margin-uta/set-leverage":{"id":"v5/spot-margin-uta/set-leverage","title":"\u5168\u5009\u69d3\u687f\u8a2d\u7f6e","description":"\u5168\u5009\u69d3\u687f\u8a2d\u7f6e\u7528\u6236\u6700\u5927\u69d3\u687f\u500d\u6578","sidebar":"v5SideBar"},"v5/spot-margin-uta/status":{"id":"v5/spot-margin-uta/status","title":"\u67e5\u8a62\u958b\u95dc\u72c0\u614b\u548c\u500d\u6578","description":"\u67e5\u8a62\u7d71\u4e00\u5e33\u6236\u4e0b\u69d3\u687f\u4ea4\u6613\u7684\u958b\u95dc\u72c0\u614b\u548c\u69d3\u687f\u500d\u6578","sidebar":"v5SideBar"},"v5/spot-margin-uta/switch-mode":{"id":"v5/spot-margin-uta/switch-mode","title":"\u5168\u5009\u69d3\u687f\u958b\u95dc","description":"\u5168\u5009\u69d3\u687f\u958b\u95dc","sidebar":"v5SideBar"},"v5/spot-margin-uta/vip-margin":{"id":"v5/spot-margin-uta/vip-margin","title":"\u67e5\u8a62\u4e0d\u540cVIP\u7684\u69d3\u687f\u6578\u64da","description":"\u67e5\u8a62\u7d71\u4e00\u5e33\u6236\u4e0b\u4e0d\u540cVIP\u7b49\u7d1a\u7684\u69d3\u687f\u6578\u64da","sidebar":"v5SideBar"},"v5/user/affiliate-info":{"id":"v5/user/affiliate-info","title":"\u67e5\u8a62\u4ee3\u7406\u7528\u6236\u4fe1\u606f","description":"\u8981\u4f7f\u7528\u6b64\u63a5\u53e3\uff0c\u60a8\u5e94\u8be5\u6709\u4e00\u4e2a\u4ee3\u7406\u5546\u8d26\u6237\uff0c\u5e76\u4e14\u5728\u521b\u5efa API \u5bc6\u94a5\u65f6\u4ec5\u52fe\u9009\u201c\u4ee3\u7406\u5546\u201d\u6743\u9650\u3002","sidebar":"v5SideBar"},"v5/user/apikey-info":{"id":"v5/user/apikey-info","title":"\u67e5\u8a62API Key\u76f8\u95dc\u4fe1\u606f","description":"\u7372\u53d6API key\u7684\u76f8\u95dc\u4fe1\u606f\u3002\u4f7f\u7528\u5f85\u67e5\u8a62\u7684api key\u8abf\u7528\u63a5\u53e3\u3002\u9069\u7528\u65bc\u6bcd\u3001\u5b50\u5e33\u6236\u7684api key\u3002","sidebar":"v5SideBar"},"v5/user/create-subuid":{"id":"v5/user/create-subuid","title":"\u65b0\u5efa\u5b50\u5e33\u6236","description":"\u5275\u5efa\u65b0\u7684\u5b50\u5e33\u6236\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/create-subuid-apikey":{"id":"v5/user/create-subuid-apikey","title":"\u65b0\u5efa\u5b50\u5e33\u6236\u7684API Key","description":"\u7d66\u65b0\u5efa\u597d\u7684\u5b50\u5e33\u6236\u5275\u5efa\u65b0\u7684API key\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/froze-subuid":{"id":"v5/user/froze-subuid","title":"\u51cd\u7d50/\u89e3\u51cd\u5b50\u5e33\u6236","description":"\u51cd\u7d50\u6216\u89e3\u51cd\u5b50\u5e33\u6236\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/list-sub-apikeys":{"id":"v5/user/list-sub-apikeys","title":"\u67e5\u8a62\u5b50\u5e33\u6236\u7684\u6240\u6709API Key\u4fe1\u606f","description":"\u67e5\u8a62\u67d0\u500b\u5b50\u5e33\u6236\u4e0b\u6240\u6709\u7684api key","sidebar":"v5SideBar"},"v5/user/modify-master-apikey":{"id":"v5/user/modify-master-apikey","title":"\u4fee\u6539\u6bcd\u5e33\u6236\u7684API Key\u8a2d\u7f6e","description":"\u4fee\u6539\u6bcd\u5e33\u6236API key\u7684\u8a2d\u7f6e\u3002\u4f7f\u7528\u5f85\u4fee\u6539\u7684api key\u8abf\u7528\u63a5\u53e3\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/modify-sub-apikey":{"id":"v5/user/modify-sub-apikey","title":"\u4fee\u6539\u5b50\u5e33\u6236\u7684API Key\u8a2d\u7f6e","description":"\u4fee\u6539\u5b50\u5e33\u6236API key\u7684\u8a2d\u7f6e, \u652f\u6301\u6bcd\u5e33\u6236\u7ba1\u7406\u5b50\u5e33\u6236key\u7684\u8a2d\u7f6e, \u6216\u8005\u5b50\u5e33\u6236key\u76f4\u63a5\u4fee\u6539\u672c\u8eab\u3002","sidebar":"v5SideBar"},"v5/user/page-subuid":{"id":"v5/user/page-subuid","title":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u7121\u9650\u5236)","description":"\u901a\u904e\u7ffb\u9801\u7372\u53d6\u7576\u524d\u6bcd\u5e33\u6236\u4e0b\u6240\u6709\u7684\u5b50\u5e33\u6236\u5217\u8868\uff0c\u9069\u5408\u8d85\u904e\u64c1\u67091\u842c\u500b\u5b50\u5e33\u6236\u7684\u6bcd\u5e33\u6236\u9032\u884c\u8abf\u7528\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/rm-master-apikey":{"id":"v5/user/rm-master-apikey","title":"\u522a\u9664\u6bcd\u5e33\u6236\u7684API Key","description":"\u522a\u9664\u6bcd\u5e33\u6236\u4e0b\u7684api key\u3002\u4f7f\u7528\u5f85\u522a\u9664\u7684api key\u8abf\u7528\u63a5\u53e3\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/rm-sub-apikey":{"id":"v5/user/rm-sub-apikey","title":"\u522a\u9664\u5b50\u5e33\u6236\u4e0b\u7684API Key","description":"\u522a\u9664\u5b50\u5e33\u6236\u4e0b\u7684api key\u3002\u4f7f\u7528\u5f85\u522a\u9664\u7684\u5b50\u5e33\u6236api key\u8abf\u7528\u63a5\u53e3\u6216\u8005\u4f7f\u7528\u6bcd\u5e33\u6236\u8abf\u7528\u522a\u9664\u6307\u5b9aapi key","sidebar":"v5SideBar"},"v5/user/rm-subuid":{"id":"v5/user/rm-subuid","title":"\u522a\u9664\u5b50\u5e33\u6236","description":"\u522a\u9664\u5b50\u5e33\u6236. \u5728\u522a\u9664\u524d, \u78ba\u4fdd\u8a72\u5e33\u6236\u5df2\u7d93\u6c92\u6709\u8cc7\u7522\u4e86","sidebar":"v5SideBar"},"v5/user/subuid-list":{"id":"v5/user/subuid-list","title":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u9650\u5236)","description":"\u6700\u591a\u8fd4\u56de10000\u500b\u5b50\u5e33\u6236, \u9069\u5408\u5c11\u65bc1\u842c\u500b\u5b50\u5e33\u6236\u7684\u6bcd\u5e33\u6236\u8abf\u7528\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/wallet-type":{"id":"v5/user/wallet-type","title":"\u67e5\u8a62\u5e33\u6236\u652f\u6301\u7684\u9322\u5305\u985e\u578b","description":"\u67e5\u8a62\u6bcd\u5e33\u6236\u6216\u8005\u5b50\u5e33\u6236\u4e0b\u652f\u6301\u7684\u9322\u5305\u985e\u578b","sidebar":"v5SideBar"},"v5/websocket/private/dcp":{"id":"v5/websocket/private/dcp","title":"\u65b7\u7dda\u4fdd\u8b77 (\u671f\u6b0a)","description":"\u901a\u904e\u8a02\u95b1DCP\u6d41\u4f86\u89f8\u767c\u529f\u80fd","sidebar":"v5SideBar"},"v5/websocket/private/execution":{"id":"v5/websocket/private/execution","title":"\u500b\u4eba\u6210\u4ea4","description":"\u8a02\u95b1\u500b\u4eba\u6210\u4ea4\u7684\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/fast-execution":{"id":"v5/websocket/private/fast-execution","title":"\u500b\u4eba\u6210\u4ea4 (Fast)","description":"\u7cbe\u7c21\u7248\u672c\u7684\u500b\u4eba\u6210\u4ea4\u63a8\u9001, \u76f8\u6bd4\u539f\u59cb\u7684\u5feb\u901f\u6210\u4ea4\u6d41, \u5ef6\u9072\u66f4\u52a0\u4f4e","sidebar":"v5SideBar"},"v5/websocket/private/greek":{"id":"v5/websocket/private/greek","title":"\u7528\u6236\u5e0c\u81d8\u5b57\u6bcd\u4fe1\u606f (\u671f\u6b0a)","description":"\u8a02\u95b1\u7528\u6236\u5e0c\u81d8\u5b57\u6bcd\u6578\u64da\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/order":{"id":"v5/websocket/private/order","title":"\u8a02\u55ae","description":"\u8a02\u95b1\u8a02\u55ae\u6578\u64da\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/position":{"id":"v5/websocket/private/position","title":"\u6301\u5009","description":"\u8a02\u95b1\u6301\u5009\u6578\u64da\u7684\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/wallet":{"id":"v5/websocket/private/wallet","title":"\u9322\u5305","description":"\u8a02\u95b1\u9322\u5305\u6578\u64da\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/public/etp-kline":{"id":"v5/websocket/public/etp-kline","title":"ETP\u6de8\u503cK\u7dda","description":"\u8a02\u95b1\u69d3\u687f\u4ee3\u5e63\u7684\u6de8\u503cK\u7dda\u884c\u60c5\u63a8\u9001\u670d\u52d9","sidebar":"v5SideBar"},"v5/websocket/public/etp-nav":{"id":"v5/websocket/public/etp-nav","title":"ETP\u6700\u65b0\u6de8\u503c\u63a8\u9001","description":"\u8a02\u95b1\u69d3\u687f\u4ee3\u5e63\u7684\u6700\u65b0\u6de8\u503c\u884c\u60c5\u6578\u64da","sidebar":"v5SideBar"},"v5/websocket/public/etp-ticker":{"id":"v5/websocket/public/etp-ticker","title":"ETP\u6de8\u503c\u884c\u60c5\u63a8\u9001","description":"\u8a02\u95b1\u69d3\u687f\u4ee3\u5e63\u6de8\u503c\u884c\u60c5\u6578\u64da","sidebar":"v5SideBar"},"v5/websocket/public/kline":{"id":"v5/websocket/public/kline","title":"K\u7dda","description":"\u8a02\u95b1K\u7dda\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/public/liquidation":{"id":"v5/websocket/public/liquidation","title":"\u5f37\u5e73\u63a8\u9001","description":"\u8a02\u95b1Bybit\u5e73\u53f0\u4e0a\u7684\u5f37\u5e73\u63a8\u9001, symbol\u7ef4\u5ea6\u6700\u591a1\u79d2\u63a8\u4e00\u6761\u7206\u4ed3\u6570\u636e","sidebar":"v5SideBar"},"v5/websocket/public/orderbook":{"id":"v5/websocket/public/orderbook","title":"\u6df1\u5ea6","description":"\u8a02\u95b1\u4e0d\u540c\u6df1\u5ea6\u7684\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/public/ticker":{"id":"v5/websocket/public/ticker","title":"\u884c\u60c5","description":"\u8a02\u95b1\u884c\u60c5\u6578\u64da\u63a8\u9001.","sidebar":"v5SideBar"},"v5/websocket/public/trade":{"id":"v5/websocket/public/trade","title":"\u5e73\u53f0\u6210\u4ea4","description":"\u8a02\u95b1Bybit\u5e73\u53f0\u4e0a\u6700\u8fd1\u6210\u4ea4\u7684\u63a8\u9001.","sidebar":"v5SideBar"},"v5/websocket/trade/guideline":{"id":"v5/websocket/trade/guideline","title":"Websocket\u4e0b\u55ae\u6307\u5357","description":"\u8def\u5f91","sidebar":"v5SideBar"},"v5/websocket/wss-authentication":{"id":"v5/websocket/wss-authentication","title":"\u8a02\u95b1WebSocket","description":"WebSocket\u516c\u5171\u983b\u9053:","sidebar":"v5SideBar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"v3SideBar":[{"type":"link","label":"\u6982\u89bd","href":"/docs/zh-TW/v3/intro","docId":"v3/intro"},{"type":"category","label":"Tax","items":[{"type":"link","label":"\u67e5\u8a62\u7279\u5b9a\u7528\u6236\u5728\u5e73\u53f0\u8a3b\u518a\u65e5\u671f","href":"/docs/zh-TW/tax/time","docId":"v3/tax/register-time"},{"type":"link","label":"\u5275\u5efa\u5c0e\u51fa\u5831\u544a\u8acb\u6c42","href":"/docs/zh-TW/tax/report","docId":"v3/tax/request-report"},{"type":"link","label":"\u67e5\u8a62\u5831\u544a\u5c0e\u51fa\u72c0\u614b","href":"/docs/zh-TW/tax/status","docId":"v3/tax/report-status"},{"type":"link","label":"\u6578\u64da\u5c0e\u51fa","href":"/docs/zh-TW/tax/data-export","docId":"v3/tax/data-export"},{"type":"link","label":"\u6578\u64da\u8aaa\u660e","href":"/docs/zh-TW/tax/explain","docId":"v3/tax/data-explain"},{"type":"link","label":"\u679a\u8209\u5b9a\u7fa9","href":"/docs/zh-TW/tax/enum","docId":"v3/tax/enum"}],"collapsed":true,"collapsible":true}],"v5SideBar":[{"type":"link","label":"\u6982\u89bd","href":"/docs/zh-TW/v5/intro","docId":"v5/intro"},{"type":"link","label":"\u63a5\u5165\u6307\u5357","href":"/docs/zh-TW/v5/guide","docId":"v5/guide"},{"type":"link","label":"\u5e33\u6236\u6a21\u5f0f\u4ecb\u7d39","href":"/docs/zh-TW/v5/acct-mode","docId":"v5/acct-mode"},{"type":"link","label":"\u67e5\u8a62\u516c\u544a","href":"/docs/zh-TW/v5/announcement","docId":"v5/announcement"},{"type":"link","label":"\u81ea\u6210\u4ea4\u6514\u622a","href":"/docs/zh-TW/v5/smp","docId":"v5/smp"},{"type":"link","label":"\u5982\u4f55\u4f7f\u7528API\u5e36\u55ae","href":"/docs/zh-TW/v5/copytrade","docId":"v5/copytrade"},{"type":"link","label":"\u6a21\u64ec\u4ea4\u6613","href":"/docs/zh-TW/v5/demo","docId":"v5/demo"},{"type":"category","label":"\u516c\u6709\u884c\u60c5","items":[{"type":"link","label":"\u67e5\u8a62\u5e02\u5834\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/kline","docId":"v5/market/kline"},{"type":"link","label":"\u67e5\u8a62\u6a19\u8a18\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/mark-kline","docId":"v5/market/mark-kline"},{"type":"link","label":"\u67e5\u8a62\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/index-kline","docId":"v5/market/index-kline"},{"type":"link","label":"\u67e5\u8a62\u6ea2\u50f9\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","href":"/docs/zh-TW/v5/market/preimum-index-kline","docId":"v5/market/preimum-index-kline"},{"type":"link","label":"\u67e5\u8a62\u53ef\u4ea4\u6613\u7522\u54c1\u7684\u898f\u683c\u4fe1\u606f","href":"/docs/zh-TW/v5/market/instrument","docId":"v5/market/instrument"},{"type":"link","label":"Order Book (\u6df1\u5ea6)","href":"/docs/zh-TW/v5/market/orderbook","docId":"v5/market/orderbook"},{"type":"link","label":"\u67e5\u8a62\u6700\u65b0\u884c\u60c5\u4fe1\u606f","href":"/docs/zh-TW/v5/market/tickers","docId":"v5/market/tickers"},{"type":"link","label":"\u67e5\u8a62\u6b77\u53f2\u8cc7\u91d1\u8cbb\u7387","href":"/docs/zh-TW/v5/market/history-fund-rate","docId":"v5/market/history-fund-rate"},{"type":"link","label":"\u67e5\u8a62\u5e73\u53f0\u6700\u8fd1\u6210\u4ea4\u6b77\u53f2","href":"/docs/zh-TW/v5/market/recent-trade","docId":"v5/market/recent-trade"},{"type":"link","label":"\u67e5\u8a62\u672a\u5e73\u5009\u5408\u7d04\u6301\u5009\u6578\u91cf","href":"/docs/zh-TW/v5/market/open-interest","docId":"v5/market/open-interest"},{"type":"link","label":"\u67e5\u8a62\u671f\u6b0a\u6ce2\u52d5\u7387","href":"/docs/zh-TW/v5/market/iv","docId":"v5/market/iv"},{"type":"link","label":"\u67e5\u8a62\u4fdd\u96aa\u57fa\u91d1","href":"/docs/zh-TW/v5/market/insurance","docId":"v5/market/insurance"},{"type":"link","label":"\u67e5\u8a62\u5408\u7d04\u98a8\u96aa\u9650\u984d","href":"/docs/zh-TW/v5/market/risk-limit","docId":"v5/market/risk-limit"},{"type":"link","label":"\u67e5\u8a62\u4ea4\u5272\u50f9\u683c","href":"/docs/zh-TW/v5/market/delivery-price","docId":"v5/market/delivery-price"},{"type":"link","label":"\u67e5\u8a62\u591a\u7a7a\u6bd4","href":"/docs/zh-TW/v5/market/long-short-ratio","docId":"v5/market/long-short-ratio"},{"type":"link","label":"Bybit\u670d\u52d9\u5668\u6642\u9593","href":"/docs/zh-TW/v5/market/time","docId":"v5/market/time"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u4ea4\u6613","items":[{"type":"link","label":"\u5275\u5efa\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/create-order","docId":"v5/order/create-order"},{"type":"link","label":"\u4fee\u6539\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/amend-order","docId":"v5/order/amend-order"},{"type":"link","label":"\u64a4\u92b7\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/cancel-order","docId":"v5/order/cancel-order"},{"type":"link","label":"\u67e5\u8a62\u5be6\u6642\u548c\u7d42\u614b\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/open-order","docId":"v5/order/open-order"},{"type":"link","label":"\u64a4\u92b7\u6240\u6709\u8a02\u55ae","href":"/docs/zh-TW/v5/order/cancel-all","docId":"v5/order/cancel-all"},{"type":"link","label":"\u67e5\u8a62\u6b77\u53f2\u8a02\u55ae (2\u5e74)","href":"/docs/zh-TW/v5/order/order-list","docId":"v5/order/order-list"},{"type":"link","label":"\u67e5\u8a62\u6210\u4ea4\u7d00\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/order/execution","docId":"v5/order/execution"},{"type":"link","label":"\u6279\u91cf\u5275\u5efa\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/batch-place","docId":"v5/order/batch-place"},{"type":"link","label":"\u6279\u91cf\u4fee\u6539\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/batch-amend","docId":"v5/order/batch-amend"},{"type":"link","label":"\u6279\u91cf\u64a4\u92b7\u59d4\u8a17\u55ae","href":"/docs/zh-TW/v5/order/batch-cancel","docId":"v5/order/batch-cancel"},{"type":"link","label":"\u67e5\u8a62\u7528\u6236\u53ef\u7528\u984d\u5ea6 (\u73fe\u8ca8)","href":"/docs/zh-TW/v5/order/spot-borrow-quota","docId":"v5/order/spot-borrow-quota"},{"type":"link","label":"\u8a2d\u7f6e\u65b7\u7dda\u4fdd\u8b77\u6642\u9593","href":"/docs/zh-TW/v5/order/dcp","docId":"v5/order/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u6301\u5009","items":[{"type":"link","label":"\u67e5\u8a62\u6301\u5009 (\u5be6\u6642)","href":"/docs/zh-TW/v5/position/","docId":"v5/position/position"},{"type":"link","label":"\u8a2d\u7f6e\u69d3\u687f","href":"/docs/zh-TW/v5/position/leverage","docId":"v5/position/leverage"},{"type":"link","label":"\u5207\u63db\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1(\u4ea4\u6613\u5c0d)","href":"/docs/zh-TW/v5/position/cross-isolate","docId":"v5/position/cross-isolate"},{"type":"link","label":"\u5207\u63db\u6301\u5009\u6a21\u5f0f","href":"/docs/zh-TW/v5/position/position-mode","docId":"v5/position/position-mode"},{"type":"link","label":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d","href":"/docs/zh-TW/v5/position/trading-stop","docId":"v5/position/trading-stop"},{"type":"link","label":"\u8a2d\u7f6e\u81ea\u52d5\u8ffd\u52a0\u4fdd\u8b49\u91d1","href":"/docs/zh-TW/v5/position/auto-add-margin","docId":"v5/position/auto-add-margin"},{"type":"link","label":"\u624b\u52d5\u589e\u52a0\u6216\u6e1b\u5c11\u4fdd\u8b49\u91d1","href":"/docs/zh-TW/v5/position/manual-add-margin","docId":"v5/position/manual-add-margin"},{"type":"link","label":"\u67e5\u8a62\u5e73\u5009\u76c8\u8667","href":"/docs/zh-TW/v5/position/close-pnl","docId":"v5/position/close-pnl"},{"type":"link","label":"\u79fb\u5009","href":"/docs/zh-TW/v5/position/move-position","docId":"v5/position/move-position"},{"type":"link","label":"\u67e5\u8a62\u79fb\u5009\u6b77\u53f2","href":"/docs/zh-TW/v5/position/move-position-history","docId":"v5/position/move-position-history"},{"type":"link","label":"\u78ba\u8a8d\u65b0\u7684\u98a8\u96aa\u9650\u984d","href":"/docs/zh-TW/v5/position/confirm-mmr","docId":"v5/position/confirm-mmr"},{"type":"link","label":"\u8a2d\u7f6e\u98a8\u96aa\u9650\u984d (\u5ee2\u68c4)","href":"/docs/zh-TW/v5/position/set-risk-limit","docId":"v5/position/set-risk-limit"},{"type":"link","label":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d\u6a21\u5f0f (\u5ee2\u68c4)","href":"/docs/zh-TW/v5/position/tpsl-mode","docId":"v5/position/tpsl-mode"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5347\u7d1a\u524d\u76f8\u95dc\u7d00\u9304","items":[{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u8a02\u55ae\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/order-list","docId":"v5/pre-upgrade/order-list"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u6210\u4ea4\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/execution","docId":"v5/pre-upgrade/execution"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u5e73\u5009\u76c8\u8667","href":"/docs/zh-TW/v5/pre-upgrade/close-pnl","docId":"v5/pre-upgrade/close-pnl"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u4ea4\u6613\u65e5\u8a8c","href":"/docs/zh-TW/v5/pre-upgrade/transaction-log","docId":"v5/pre-upgrade/transaction-log"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524d\u671f\u6b0a\u4ea4\u5272\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/delivery","docId":"v5/pre-upgrade/delivery"},{"type":"link","label":"\u67e5\u8a62\u5347\u7d1a\u524dUSDC\u7d50\u7b97\u7d00\u9304","href":"/docs/zh-TW/v5/pre-upgrade/settlement","docId":"v5/pre-upgrade/settlement"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5e33\u6236","items":[{"type":"link","label":"\u67e5\u8a62\u9322\u5305\u9918\u984d","href":"/docs/zh-TW/v5/account/wallet-balance","docId":"v5/account/wallet-balance"},{"type":"link","label":"\u5347\u7d1a\u7d71\u4e00\u4fdd\u8b49\u91d1\u8cec\u6236","href":"/docs/zh-TW/v5/account/upgrade-unified-account","docId":"v5/account/upgrade-unified-account"},{"type":"link","label":"\u67e5\u8a62\u5229\u606f\u8a18\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/account/borrow-history","docId":"v5/account/borrow-history"},{"type":"link","label":"\u4e00\u9375\u9084\u6b3e","href":"/docs/zh-TW/v5/account/repay-liability","docId":"v5/account/repay-liability"},{"type":"link","label":"\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","href":"/docs/zh-TW/v5/account/set-collateral","docId":"v5/account/set-collateral"},{"type":"link","label":"\u6279\u91cf\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","href":"/docs/zh-TW/v5/account/batch-set-collateral","docId":"v5/account/batch-set-collateral"},{"type":"link","label":"\u67e5\u8a62\u62b5\u62bc\u54c1\u4fe1\u606f","href":"/docs/zh-TW/v5/account/collateral-info","docId":"v5/account/collateral-info"},{"type":"link","label":"\u67e5\u8a62Greeks\u4fe1\u606f","href":"/docs/zh-TW/v5/account/coin-greeks","docId":"v5/account/coin-greeks"},{"type":"link","label":"\u67e5\u8a62\u624b\u7e8c\u8cbb\u7387","href":"/docs/zh-TW/v5/account/fee-rate","docId":"v5/account/fee-rate"},{"type":"link","label":"\u67e5\u8a62\u8cec\u6236\u914d\u7f6e","href":"/docs/zh-TW/v5/account/account-info","docId":"v5/account/account-info"},{"type":"link","label":"\u67e5\u8a62DCP\u914d\u7f6e","href":"/docs/zh-TW/v5/account/dcp-info","docId":"v5/account/dcp-info"},{"type":"link","label":"\u4ea4\u6613\u65e5\u8a8c (\u7d71\u4e00\u5e33\u6236)","href":"/docs/zh-TW/v5/account/transaction-log","docId":"v5/account/transaction-log"},{"type":"link","label":"\u4ea4\u6613\u65e5\u8a8c (\u7d93\u5178\u5e33\u6236)","href":"/docs/zh-TW/v5/account/contract-transaction-log","docId":"v5/account/contract-transaction-log"},{"type":"link","label":"\u67e5\u8a62SMP\u7d44ID","href":"/docs/zh-TW/v5/account/smp-group","docId":"v5/account/smp-group"},{"type":"link","label":"\u8a2d\u7f6e\u4fdd\u8b49\u91d1\u6a21\u5f0f(\u5e33\u6236)","href":"/docs/zh-TW/v5/account/set-margin-mode","docId":"v5/account/set-margin-mode"},{"type":"link","label":"\u8a2d\u7f6e\u73fe\u8ca8\u5c0d\u885d","href":"/docs/zh-TW/v5/account/set-spot-hedge","docId":"v5/account/set-spot-hedge"},{"type":"link","label":"\u8bbe\u7f6e\u5e02\u5546\u4fdd\u8b77","href":"/docs/zh-TW/v5/account/set-mmp","docId":"v5/account/set-mmp"},{"type":"link","label":"\u91cd\u7f6e\u5e02\u5546\u4fdd\u8b77\u51cd\u7d50","href":"/docs/zh-TW/v5/account/reset-mmp","docId":"v5/account/reset-mmp"},{"type":"link","label":"\u67e5\u8a62\u5e02\u5546\u4fdd\u8b77\u914d\u7f6e\u4fe1\u606f","href":"/docs/zh-TW/v5/account/get-mmp-state","docId":"v5/account/get-mmp-state"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u8cc7\u7522","items":[{"type":"link","label":"\u67e5\u8a62\u4ea4\u5272\u7d00\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/asset/delivery","docId":"v5/asset/delivery"},{"type":"link","label":"\u67e5\u8a62USDC\u7d50\u7b97\u7d00\u9304 (2\u5e74)","href":"/docs/zh-TW/v5/asset/settlement","docId":"v5/asset/settlement"},{"type":"link","label":"\u67e5\u8a62\u514c\u63db\u8a02\u55ae\u7d00\u9304","href":"/docs/zh-TW/v5/asset/exchange","docId":"v5/asset/exchange"},{"type":"link","label":"\u67e5\u8a62\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/asset/coin-info","docId":"v5/asset/coin-info"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u5217\u8868","href":"/docs/zh-TW/v5/asset/sub-uid-list","docId":"v5/asset/sub-uid-list"},{"type":"category","label":"\u9918\u984d","items":[{"type":"link","label":"\u67e5\u8a62\u8cc7\u7522\u4fe1\u606f (\u73fe\u8ca8)","href":"/docs/zh-TW/v5/asset/balance/asset-info","docId":"v5/asset/balance/asset-info"},{"type":"link","label":"\u67e5\u8a62\u8cec\u6236\u6240\u6709\u5e63\u7a2e\u4f59\u984d","href":"/docs/zh-TW/v5/asset/balance/all-balance","docId":"v5/asset/balance/all-balance"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u55ae\u500b\u5e63\u7a2e\u9918\u984d","href":"/docs/zh-TW/v5/asset/balance/account-coin-balance","docId":"v5/asset/balance/account-coin-balance"},{"type":"link","label":"\u67e5\u8a62\u5ef6\u9072\u63d0\u5e63\u51cd\u7d50\u91d1\u984d","href":"/docs/zh-TW/v5/asset/balance/delay-amount","docId":"v5/asset/balance/delay-amount"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5283\u8f49","items":[{"type":"link","label":"\u67e5\u8a62\u5283\u8f49\u7d00\u9304 (\u55ae\u5e33\u865f\u5167)","href":"/docs/zh-TW/v5/asset/transfer/inter-transfer-list","docId":"v5/asset/transfer/inter-transfer-list"},{"type":"link","label":"\u5e33\u6236\u985e\u578b\u9593\u53ef\u5283\u8f49\u7684\u5e63\u7a2e","href":"/docs/zh-TW/v5/asset/transfer/transferable-coin","docId":"v5/asset/transfer/transferable-coin"},{"type":"link","label":"\u5283\u8f49 (\u55ae\u5e33\u865f\u5167)","href":"/docs/zh-TW/v5/asset/transfer/create-inter-transfer","docId":"v5/asset/transfer/create-inter-transfer"},{"type":"link","label":"\u5275\u5efa\u842c\u80fd\u5283\u8f49","href":"/docs/zh-TW/v5/asset/transfer/unitransfer","docId":"v5/asset/transfer/unitransfer"},{"type":"link","label":"\u67e5\u8a62\u842c\u80fd\u5283\u8f49\u7d00\u9304","href":"/docs/zh-TW/v5/asset/transfer/unitransfer-list","docId":"v5/asset/transfer/unitransfer-list"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5145\u503c","items":[{"type":"link","label":"\u67e5\u8a62\u652f\u6301\u7684\u5145\u503c\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/asset/deposit/deposit-coin-spec","docId":"v5/asset/deposit/deposit-coin-spec"},{"type":"link","label":"\u8a2d\u7f6e\u5145\u503c\u5e33\u6236","href":"/docs/zh-TW/v5/asset/deposit/set-deposit-acct","docId":"v5/asset/deposit/set-deposit-acct"},{"type":"link","label":"\u67e5\u8a62\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","href":"/docs/zh-TW/v5/asset/deposit/deposit-record","docId":"v5/asset/deposit/deposit-record"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","href":"/docs/zh-TW/v5/asset/deposit/sub-deposit-record","docId":"v5/asset/deposit/sub-deposit-record"},{"type":"link","label":"\u67e5\u8a62\u5145\u503c\u8a18\u9304 (\u5e73\u53f0\u8f6c\u8d26)","href":"/docs/zh-TW/v5/asset/deposit/internal-deposit-record","docId":"v5/asset/deposit/internal-deposit-record"},{"type":"link","label":"\u67e5\u8a62\u4e3b\u5e33\u865f\u5145\u503c\u5730\u5740","href":"/docs/zh-TW/v5/asset/deposit/master-deposit-addr","docId":"v5/asset/deposit/master-deposit-addr"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u5730\u5740","href":"/docs/zh-TW/v5/asset/deposit/sub-deposit-addr","docId":"v5/asset/deposit/sub-deposit-addr"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u63d0\u73fe","items":[{"type":"link","label":"\u67e5\u8a62\u63d0\u73fe\u7d00\u9304","href":"/docs/zh-TW/v5/asset/withdraw/withdraw-record","docId":"v5/asset/withdraw/withdraw-record"},{"type":"link","label":"\u67e5\u8a62\u4ea4\u6613\u6240\u5217\u8868 (\u97d3\u570b\u7528\u6236)","href":"/docs/zh-TW/v5/asset/withdraw/vasp-list","docId":"v5/asset/withdraw/vasp-list"},{"type":"link","label":"\u63d0\u73fe","href":"/docs/zh-TW/v5/asset/withdraw/","docId":"v5/asset/withdraw/withdraw"},{"type":"link","label":"\u64a4\u92b7\u63d0\u5e63","href":"/docs/zh-TW/v5/asset/withdraw/cancel-withdraw","docId":"v5/asset/withdraw/cancel-withdraw"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u9583\u514c","items":[{"type":"link","label":"\u63a5\u5165\u6307\u5357","href":"/docs/zh-TW/v5/asset/convert/guideline","docId":"v5/asset/convert/guideline"},{"type":"link","label":"\u67e5\u8a62\u514c\u63db\u5e63\u7a2e\u5217\u8868","href":"/docs/zh-TW/v5/asset/convert/convert-coin-list","docId":"v5/asset/convert/convert-coin-list"},{"type":"link","label":"\u7533\u8acb\u5831\u50f9","href":"/docs/zh-TW/v5/asset/convert/apply-quote","docId":"v5/asset/convert/apply-quote"},{"type":"link","label":"\u78ba\u8a8d\u5831\u50f9","href":"/docs/zh-TW/v5/asset/convert/confirm-quote","docId":"v5/asset/convert/confirm-quote"},{"type":"link","label":"\u67e5\u8a62\u5831\u50f9\u55ae\u72c0\u614b","href":"/docs/zh-TW/v5/asset/convert/get-convert-result","docId":"v5/asset/convert/get-convert-result"},{"type":"link","label":"\u67e5\u8a62\u514c\u63db\u6b77\u53f2","href":"/docs/zh-TW/v5/asset/convert/get-convert-history","docId":"v5/asset/convert/get-convert-history"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u7528\u6236","items":[{"type":"link","label":"\u65b0\u5efa\u5b50\u5e33\u6236","href":"/docs/zh-TW/v5/user/create-subuid","docId":"v5/user/create-subuid"},{"type":"link","label":"\u65b0\u5efa\u5b50\u5e33\u6236\u7684API Key","href":"/docs/zh-TW/v5/user/create-subuid-apikey","docId":"v5/user/create-subuid-apikey"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u9650\u5236)","href":"/docs/zh-TW/v5/user/subuid-list","docId":"v5/user/subuid-list"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u7121\u9650\u5236)","href":"/docs/zh-TW/v5/user/page-subuid","docId":"v5/user/page-subuid"},{"type":"link","label":"\u51cd\u7d50/\u89e3\u51cd\u5b50\u5e33\u6236","href":"/docs/zh-TW/v5/user/froze-subuid","docId":"v5/user/froze-subuid"},{"type":"link","label":"\u67e5\u8a62API Key\u76f8\u95dc\u4fe1\u606f","href":"/docs/zh-TW/v5/user/apikey-info","docId":"v5/user/apikey-info"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u6236\u7684\u6240\u6709API Key\u4fe1\u606f","href":"/docs/zh-TW/v5/user/list-sub-apikeys","docId":"v5/user/list-sub-apikeys"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u652f\u6301\u7684\u9322\u5305\u985e\u578b","href":"/docs/zh-TW/v5/user/wallet-type","docId":"v5/user/wallet-type"},{"type":"link","label":"\u4fee\u6539\u6bcd\u5e33\u6236\u7684API Key\u8a2d\u7f6e","href":"/docs/zh-TW/v5/user/modify-master-apikey","docId":"v5/user/modify-master-apikey"},{"type":"link","label":"\u4fee\u6539\u5b50\u5e33\u6236\u7684API Key\u8a2d\u7f6e","href":"/docs/zh-TW/v5/user/modify-sub-apikey","docId":"v5/user/modify-sub-apikey"},{"type":"link","label":"\u522a\u9664\u5b50\u5e33\u6236","href":"/docs/zh-TW/v5/user/rm-subuid","docId":"v5/user/rm-subuid"},{"type":"link","label":"\u522a\u9664\u6bcd\u5e33\u6236\u7684API Key","href":"/docs/zh-TW/v5/user/rm-master-apikey","docId":"v5/user/rm-master-apikey"},{"type":"link","label":"\u522a\u9664\u5b50\u5e33\u6236\u4e0b\u7684API Key","href":"/docs/zh-TW/v5/user/rm-sub-apikey","docId":"v5/user/rm-sub-apikey"},{"type":"link","label":"\u67e5\u8a62\u4ee3\u7406\u7528\u6236\u4fe1\u606f","href":"/docs/zh-TW/v5/user/affiliate-info","docId":"v5/user/affiliate-info"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u69d3\u687f\u4ee3\u5e63","items":[{"type":"link","label":"LT\u5168\u91cf\u8cc7\u7522\u67e5\u8a62","href":"/docs/zh-TW/v5/lt/leverage-token-info","docId":"v5/lt/leverage-token-info"},{"type":"link","label":"\u67e5\u8a62LT\u884c\u60c5","href":"/docs/zh-TW/v5/lt/leverage-token-reference","docId":"v5/lt/leverage-token-reference"},{"type":"link","label":"\u7533\u8cfc","href":"/docs/zh-TW/v5/lt/purchase","docId":"v5/lt/purchase"},{"type":"link","label":"\u7533\u8d16\u8a18\u9304\u67e5\u8a62","href":"/docs/zh-TW/v5/lt/order-record","docId":"v5/lt/order-record"},{"type":"link","label":"\u8d16\u56de","href":"/docs/zh-TW/v5/lt/redeem","docId":"v5/lt/redeem"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u5168\u5009\u69d3\u687f (\u7d71\u4e00\u5e33\u6236)","items":[{"type":"link","label":"\u67e5\u8a62\u4e0d\u540cVIP\u7684\u69d3\u687f\u6578\u64da","href":"/docs/zh-TW/v5/spot-margin-uta/vip-margin","docId":"v5/spot-margin-uta/vip-margin"},{"type":"link","label":"\u67e5\u8a62\u501f\u8cb8\u6b77\u53f2\u5229\u7387","href":"/docs/zh-TW/v5/spot-margin-uta/historical-interest","docId":"v5/spot-margin-uta/historical-interest"},{"type":"link","label":"\u5168\u5009\u69d3\u687f\u958b\u95dc","href":"/docs/zh-TW/v5/spot-margin-uta/switch-mode","docId":"v5/spot-margin-uta/switch-mode"},{"type":"link","label":"\u5168\u5009\u69d3\u687f\u8a2d\u7f6e","href":"/docs/zh-TW/v5/spot-margin-uta/set-leverage","docId":"v5/spot-margin-uta/set-leverage"},{"type":"link","label":"\u67e5\u8a62\u958b\u95dc\u72c0\u614b\u548c\u500d\u6578","href":"/docs/zh-TW/v5/spot-margin-uta/status","docId":"v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u8cea\u62bc\u501f\u8cb8","items":[{"type":"link","label":"\u67e5\u8a62\u8cea\u62bc\u5e63\u7a2e","href":"/docs/zh-TW/v5/crypto-loan/collateral-coin","docId":"v5/crypto-loan/collateral-coin"},{"type":"link","label":"\u67e5\u8a62\u53ef\u501f\u5e63\u7a2e","href":"/docs/zh-TW/v5/crypto-loan/loan-coin","docId":"v5/crypto-loan/loan-coin"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u53ef\u501f\u8cb8/\u62b5\u62bc\u7684\u9650\u984d","href":"/docs/zh-TW/v5/crypto-loan/acct-borrow-collateral","docId":"v5/crypto-loan/acct-borrow-collateral"},{"type":"link","label":"\u501f\u6b3e","href":"/docs/zh-TW/v5/crypto-loan/borrow","docId":"v5/crypto-loan/borrow"},{"type":"link","label":"\u9084\u6b3e","href":"/docs/zh-TW/v5/crypto-loan/repay","docId":"v5/crypto-loan/repay"},{"type":"link","label":"\u67e5\u8a62\u9032\u884c\u4e2d\u7684\u501f\u8cb8\u8a02\u55ae","href":"/docs/zh-TW/v5/crypto-loan/unpaid-loan-order","docId":"v5/crypto-loan/unpaid-loan-order"},{"type":"link","label":"\u67e5\u8a62\u9084\u6b3e\u7d00\u9304","href":"/docs/zh-TW/v5/crypto-loan/repay-transaction","docId":"v5/crypto-loan/repay-transaction"},{"type":"link","label":"\u67e5\u8a62\u5df2\u7d50\u6e05\u7684\u501f\u8cb8\u6b77\u53f2\u8a02\u55ae","href":"/docs/zh-TW/v5/crypto-loan/comleted-loan-order","docId":"v5/crypto-loan/comleted-loan-order"},{"type":"link","label":"\u67e5\u8a62\u6700\u5927\u53ef\u6e1b\u5c11\u7684\u8cea\u62bc\u91d1\u984d","href":"/docs/zh-TW/v5/crypto-loan/reduce-max-collateral-amt","docId":"v5/crypto-loan/reduce-max-collateral-amt"},{"type":"link","label":"\u8abf\u6574\u8cea\u62bc\u91d1\u984d","href":"/docs/zh-TW/v5/crypto-loan/adjust-collateral","docId":"v5/crypto-loan/adjust-collateral"},{"type":"link","label":"\u67e5\u8a62\u8cea\u62bc\u91d1\u8abf\u6574\u6b77\u53f2","href":"/docs/zh-TW/v5/crypto-loan/ltv-adjust-history","docId":"v5/crypto-loan/ltv-adjust-history"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u6a5f\u69cb\u501f\u8cb8","items":[{"type":"link","label":"\u67e5\u8a62\u7522\u54c1\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/margin-product-info","docId":"v5/otc/margin-product-info"},{"type":"link","label":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/margin-coin-convert-info","docId":"v5/otc/margin-coin-convert-info"},{"type":"link","label":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/loan-info","docId":"v5/otc/loan-info"},{"type":"link","label":"\u67e5\u8a62\u9084\u6b3e\u4fe1\u606f","href":"/docs/zh-TW/v5/otc/repay-info","docId":"v5/otc/repay-info"},{"type":"link","label":"\u67e5\u8a62\u98a8\u96aa\u7387","href":"/docs/zh-TW/v5/otc/ltv-convert","docId":"v5/otc/ltv-convert"},{"type":"link","label":"\u7d81\u5b9a/\u89e3\u7d81UID","href":"/docs/zh-TW/v5/otc/bind-uid","docId":"v5/otc/bind-uid"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u7d93\u7d00\u5546","items":[{"type":"link","label":"\u67e5\u8a62\u8fd4\u4f63\u4fe1\u606f","href":"/docs/zh-TW/v5/broker/exchange-earning","docId":"v5/broker/exchange-earning"},{"type":"link","label":"\u67e5\u8a62\u5e33\u6236\u4fe1\u606f","href":"/docs/zh-TW/v5/broker/account-info","docId":"v5/broker/account-info"},{"type":"link","label":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u7d00\u9304","href":"/docs/zh-TW/v5/broker/sub-deposit-record","docId":"v5/broker/sub-deposit-record"},{"type":"category","label":"\u5361\u5238","items":[{"type":"link","label":"\u67e5\u8a62\u4ee3\u91d1\u5238\u53c3\u6578","href":"/docs/zh-TW/v5/broker/reward/voucher","docId":"v5/broker/reward/voucher"},{"type":"link","label":"\u767c\u653e\u4ee3\u91d1\u5238","href":"/docs/zh-TW/v5/broker/reward/issue-voucher","docId":"v5/broker/reward/issue-voucher"},{"type":"link","label":"\u67e5\u8a62\u5df2\u767c\u653e\u4ee3\u91d1\u5238","href":"/docs/zh-TW/v5/broker/reward/get-issue-voucher","docId":"v5/broker/reward/get-issue-voucher"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"category","label":"WebSocket\u6d41","items":[{"type":"link","label":"\u8a02\u95b1WebSocket","href":"/docs/zh-TW/v5/ws/connect","docId":"v5/websocket/wss-authentication"},{"type":"category","label":"\u516c\u5171\u983b\u9053","items":[{"type":"link","label":"\u6df1\u5ea6","href":"/docs/zh-TW/v5/websocket/public/orderbook","docId":"v5/websocket/public/orderbook"},{"type":"link","label":"\u5e73\u53f0\u6210\u4ea4","href":"/docs/zh-TW/v5/websocket/public/trade","docId":"v5/websocket/public/trade"},{"type":"link","label":"\u884c\u60c5","href":"/docs/zh-TW/v5/websocket/public/ticker","docId":"v5/websocket/public/ticker"},{"type":"link","label":"K\u7dda","href":"/docs/zh-TW/v5/websocket/public/kline","docId":"v5/websocket/public/kline"},{"type":"link","label":"\u5f37\u5e73\u63a8\u9001","href":"/docs/zh-TW/v5/websocket/public/liquidation","docId":"v5/websocket/public/liquidation"},{"type":"link","label":"ETP\u6de8\u503cK\u7dda","href":"/docs/zh-TW/v5/websocket/public/etp-kline","docId":"v5/websocket/public/etp-kline"},{"type":"link","label":"ETP\u6de8\u503c\u884c\u60c5\u63a8\u9001","href":"/docs/zh-TW/v5/websocket/public/etp-ticker","docId":"v5/websocket/public/etp-ticker"},{"type":"link","label":"ETP\u6700\u65b0\u6de8\u503c\u63a8\u9001","href":"/docs/zh-TW/v5/websocket/public/etp-nav","docId":"v5/websocket/public/etp-nav"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u79c1\u6709\u983b\u9053","items":[{"type":"link","label":"\u6301\u5009","href":"/docs/zh-TW/v5/websocket/private/position","docId":"v5/websocket/private/position"},{"type":"link","label":"\u500b\u4eba\u6210\u4ea4","href":"/docs/zh-TW/v5/websocket/private/execution","docId":"v5/websocket/private/execution"},{"type":"link","label":"\u500b\u4eba\u6210\u4ea4 (Fast)","href":"/docs/zh-TW/v5/websocket/private/fast-execution","docId":"v5/websocket/private/fast-execution"},{"type":"link","label":"\u8a02\u55ae","href":"/docs/zh-TW/v5/websocket/private/order","docId":"v5/websocket/private/order"},{"type":"link","label":"\u9322\u5305","href":"/docs/zh-TW/v5/websocket/private/wallet","docId":"v5/websocket/private/wallet"},{"type":"link","label":"\u7528\u6236\u5e0c\u81d8\u5b57\u6bcd\u4fe1\u606f (\u671f\u6b0a)","href":"/docs/zh-TW/v5/websocket/private/greek","docId":"v5/websocket/private/greek"},{"type":"link","label":"\u65b7\u7dda\u4fdd\u8b77 (\u671f\u6b0a)","href":"/docs/zh-TW/v5/websocket/private/dcp","docId":"v5/websocket/private/dcp"}],"collapsed":true,"collapsible":true},{"type":"category","label":"\u4ea4\u6613","items":[{"type":"link","label":"Websocket\u4e0b\u55ae\u6307\u5357","href":"/docs/zh-TW/v5/websocket/trade/guideline","docId":"v5/websocket/trade/guideline"}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true},{"type":"link","label":"\u983b\u7387\u9650\u5236","href":"/docs/zh-TW/v5/rate-limit","docId":"v5/rate-limit"},{"type":"link","label":"\u679a\u8209\u5b9a\u7fa9","href":"/docs/zh-TW/v5/enum","docId":"v5/enum"},{"type":"link","label":"\u932f\u8aa4\u78bc","href":"/docs/zh-TW/v5/error","docId":"v5/error"},{"type":"category","label":"\u5ee2\u68c4\u63a5\u53e3","items":[{"type":"link","label":"\u67e5\u8a62\u53ef\u5b58\u5165\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/abandon/coin-info","docId":"v5/abandon/coin-info"},{"type":"link","label":"\u67e5\u8a62\u98a8\u96aa\u7387","href":"/docs/zh-TW/v5/abandon/ltv","docId":"v5/abandon/ltv"},{"type":"link","label":"\u5b58\u5165\u8cc7\u91d1","href":"/docs/zh-TW/v5/abandon/deposit","docId":"v5/abandon/deposit"},{"type":"link","label":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","href":"/docs/zh-TW/v5/abandon/margin-coin-info","docId":"v5/abandon/margin-coin-info"},{"type":"link","label":"\u914d\u7f6e\u4e92\u76f8\u5283\u8f49\u7684\u5b50\u5e33\u865f","href":"/docs/zh-TW/v5/abandon/enable-unitransfer-subuid","docId":"v5/abandon/enable-unitransfer-subuid"},{"type":"link","label":"\u8d16\u56de\u8cc7\u91d1","href":"/docs/zh-TW/v5/abandon/redeem","docId":"v5/abandon/redeem"},{"type":"link","label":"\u64a4\u92b7\u8d16\u56de","href":"/docs/zh-TW/v5/abandon/cancel-redeem","docId":"v5/abandon/cancel-redeem"},{"type":"link","label":"\u67e5\u8a62\u7d93\u7d00\u5546\u8fd4\u4f63","href":"/docs/zh-TW/v5/abandon/earning","docId":"v5/abandon/earning"},{"type":"link","label":"\u67e5\u8a62\u8a02\u55ae\u6b77\u53f2","href":"/docs/zh-TW/v5/abandon/order-record","docId":"v5/abandon/order-record"},{"type":"link","label":"\u67e5\u8a62\u4f59\u5e63\u5bf6\u5e33\u6236\u4fe1\u606f","href":"/docs/zh-TW/v5/abandon/account-info","docId":"v5/abandon/account-info"}],"collapsed":true,"collapsible":true}],"apiExplorerSideBar":[{"type":"category","label":"V5","items":[{"type":"category","label":"Market","items":[{"type":"link","label":"Get Bybit Server Time","href":"/docs/zh-TW/api-explorer/v5/market/time","className":"api-method get","docId":"api-explorer/v5/market/time"},{"type":"link","label":"Get Kline","href":"/docs/zh-TW/api-explorer/v5/market/kline","className":"api-method get","docId":"api-explorer/v5/market/kline"},{"type":"link","label":"Get Mark Price Kline","href":"/docs/zh-TW/api-explorer/v5/market/mark-kline","className":"api-method get","docId":"api-explorer/v5/market/mark-kline"},{"type":"link","label":"Get Index Price Kline","href":"/docs/zh-TW/api-explorer/v5/market/index-kline","className":"api-method get","docId":"api-explorer/v5/market/index-kline"},{"type":"link","label":"Get Premium Index Price Kline","href":"/docs/zh-TW/api-explorer/v5/market/premium-index-kline","className":"api-method get","docId":"api-explorer/v5/market/premium-index-kline"},{"type":"link","label":"Get Instrument Info","href":"/docs/zh-TW/api-explorer/v5/market/instrument","className":"api-method get","docId":"api-explorer/v5/market/instrument"},{"type":"link","label":"Get Orderbook","href":"/docs/zh-TW/api-explorer/v5/market/orderbook","className":"api-method get","docId":"api-explorer/v5/market/orderbook"},{"type":"link","label":"Get Tickers","href":"/docs/zh-TW/api-explorer/v5/market/tickers","className":"api-method get","docId":"api-explorer/v5/market/tickers"},{"type":"link","label":"Get Funding Rate History","href":"/docs/zh-TW/api-explorer/v5/market/history-fund-rate","className":"api-method get","docId":"api-explorer/v5/market/history-fund-rate"},{"type":"link","label":"Get Public Recent Trading History","href":"/docs/zh-TW/api-explorer/v5/market/recent-trade","className":"api-method get","docId":"api-explorer/v5/market/recent-trade"},{"type":"link","label":"Get Open Interest","href":"/docs/zh-TW/api-explorer/v5/market/open-interest","className":"api-method get","docId":"api-explorer/v5/market/open-interest"},{"type":"link","label":"Get Historical Volatility","href":"/docs/zh-TW/api-explorer/v5/market/iv","className":"api-method get","docId":"api-explorer/v5/market/iv"},{"type":"link","label":"Get Insurance","href":"/docs/zh-TW/api-explorer/v5/market/insurance","className":"api-method get","docId":"api-explorer/v5/market/insurance"},{"type":"link","label":"Get Risk Limit","href":"/docs/zh-TW/api-explorer/v5/market/risk-limit","className":"api-method get","docId":"api-explorer/v5/market/risk-limit"},{"type":"link","label":"Get Delivery Price","href":"/docs/zh-TW/api-explorer/v5/market/delivery-price","className":"api-method get","docId":"api-explorer/v5/market/delivery-price"},{"type":"link","label":"Get Long Short Ratio","href":"/docs/zh-TW/api-explorer/v5/market/long-short-ratio","className":"api-method get","docId":"api-explorer/v5/market/long-short-ratio"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/market/market"},{"type":"category","label":"Trade","items":[{"type":"link","label":"Place Order","href":"/docs/zh-TW/api-explorer/v5/trade/create-order","className":"api-method post","docId":"api-explorer/v5/trade/create-order"},{"type":"link","label":"Amend Order","href":"/docs/zh-TW/api-explorer/v5/trade/amend-order","className":"api-method post","docId":"api-explorer/v5/trade/amend-order"},{"type":"link","label":"Cancel Order","href":"/docs/zh-TW/api-explorer/v5/trade/cancel-order","className":"api-method post","docId":"api-explorer/v5/trade/cancel-order"},{"type":"link","label":"Get Open Orders (real-time)","href":"/docs/zh-TW/api-explorer/v5/trade/open-order","className":"api-method get","docId":"api-explorer/v5/trade/open-order"},{"type":"link","label":"Cancel All Orders","href":"/docs/zh-TW/api-explorer/v5/trade/cancel-all","className":"api-method post","docId":"api-explorer/v5/trade/cancel-all"},{"type":"link","label":"Get Order History (2 years)","href":"/docs/zh-TW/api-explorer/v5/trade/order-list","className":"api-method get","docId":"api-explorer/v5/trade/order-list"},{"type":"link","label":"Batch Place Order","href":"/docs/zh-TW/api-explorer/v5/trade/batch-place","className":"api-method post","docId":"api-explorer/v5/trade/batch-place"},{"type":"link","label":"Batch Amend Order","href":"/docs/zh-TW/api-explorer/v5/trade/batch-amend","className":"api-method post","docId":"api-explorer/v5/trade/batch-amend"},{"type":"link","label":"Batch Cancel Order","href":"/docs/zh-TW/api-explorer/v5/trade/batch-cancel","className":"api-method post","docId":"api-explorer/v5/trade/batch-cancel"},{"type":"link","label":"Get Borrow Quota (Spot)","href":"/docs/zh-TW/api-explorer/v5/trade/query-spot-quota","className":"api-method get","docId":"api-explorer/v5/trade/query-spot-quota"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/trade/trade"},{"type":"category","label":"Position","items":[{"type":"link","label":"Get Position Info","href":"/docs/zh-TW/api-explorer/v5/position/position-info","className":"api-method get","docId":"api-explorer/v5/position/position-info"},{"type":"link","label":"Set Leverage","href":"/docs/zh-TW/api-explorer/v5/position/leverage","className":"api-method post","docId":"api-explorer/v5/position/leverage"},{"type":"link","label":"Switch Cross/Isolated Margin","href":"/docs/zh-TW/api-explorer/v5/position/cross-isolate","className":"api-method post","docId":"api-explorer/v5/position/cross-isolate"},{"type":"link","label":"Set TP/SL Mode","href":"/docs/zh-TW/api-explorer/v5/position/tpsl-mode","className":"api-method post","docId":"api-explorer/v5/position/tpsl-mode"},{"type":"link","label":"Switch Position Mode","href":"/docs/zh-TW/api-explorer/v5/position/position-mode","className":"api-method post","docId":"api-explorer/v5/position/position-mode"},{"type":"link","label":"Set Risk Limit","href":"/docs/zh-TW/api-explorer/v5/position/set-risk-limit","className":"api-method post","docId":"api-explorer/v5/position/set-risk-limit"},{"type":"link","label":"Set Trading Stop","href":"/docs/zh-TW/api-explorer/v5/position/trading-stop","className":"api-method post","docId":"api-explorer/v5/position/trading-stop"},{"type":"link","label":"Set Auto Add Margin","href":"/docs/zh-TW/api-explorer/v5/position/auto-add-margin","className":"api-method post","docId":"api-explorer/v5/position/auto-add-margin"},{"type":"link","label":"Add Or Reduce Margin","href":"/docs/zh-TW/api-explorer/v5/position/manual-add-margin","className":"api-method post","docId":"api-explorer/v5/position/manual-add-margin"},{"type":"link","label":"Get Execution (2 years)","href":"/docs/zh-TW/api-explorer/v5/position/execution","className":"api-method get","docId":"api-explorer/v5/position/execution"},{"type":"link","label":"Get Closed PnL","href":"/docs/zh-TW/api-explorer/v5/position/close-pnl","className":"api-method get","docId":"api-explorer/v5/position/close-pnl"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/position/position"},{"type":"category","label":"Account","items":[{"type":"link","label":"Get Wallet Balance","href":"/docs/zh-TW/api-explorer/v5/account/wallet","className":"api-method get","docId":"api-explorer/v5/account/wallet"},{"type":"link","label":"Upgrade to Unified Account","href":"/docs/zh-TW/api-explorer/v5/account/upgrade-unified-account","className":"api-method post","docId":"api-explorer/v5/account/upgrade-unified-account"},{"type":"link","label":"Set Collateral Coin","href":"/docs/zh-TW/api-explorer/v5/account/set-collateral","className":"api-method post","docId":"api-explorer/v5/account/set-collateral"},{"type":"link","label":"Get Borrow History","href":"/docs/zh-TW/api-explorer/v5/account/borrow-history","className":"api-method get","docId":"api-explorer/v5/account/borrow-history"},{"type":"link","label":"Get Collateral Info","href":"/docs/zh-TW/api-explorer/v5/account/collateral-info","className":"api-method get","docId":"api-explorer/v5/account/collateral-info"},{"type":"link","label":"Get Coin Greeks","href":"/docs/zh-TW/api-explorer/v5/account/coin-greeks","className":"api-method get","docId":"api-explorer/v5/account/coin-greeks"},{"type":"link","label":"Get Fee Rate","href":"/docs/zh-TW/api-explorer/v5/account/fee-rate","className":"api-method get","docId":"api-explorer/v5/account/fee-rate"},{"type":"link","label":"Get Account Info","href":"/docs/zh-TW/api-explorer/v5/account/account-info","className":"api-method get","docId":"api-explorer/v5/account/account-info"},{"type":"link","label":"Get Transaction Log","href":"/docs/zh-TW/api-explorer/v5/account/transaction-log","className":"api-method get","docId":"api-explorer/v5/account/transaction-log"},{"type":"link","label":"Set Margin Mode","href":"/docs/zh-TW/api-explorer/v5/account/set-margin-mode","className":"api-method post","docId":"api-explorer/v5/account/set-margin-mode"},{"type":"link","label":"Set Spot Hedging","href":"/docs/zh-TW/api-explorer/v5/account/set-spot-hedge","className":"api-method post","docId":"api-explorer/v5/account/set-spot-hedge"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/account/account"},{"type":"category","label":"Asset","items":[{"type":"link","label":"Get Coin Exchange Records","href":"/docs/zh-TW/api-explorer/v5/asset/exchange","className":"api-method get","docId":"api-explorer/v5/asset/exchange"},{"type":"link","label":"Get Delivery Record","href":"/docs/zh-TW/api-explorer/v5/asset/delivery","className":"api-method get","docId":"api-explorer/v5/asset/delivery"},{"type":"link","label":"Get USDC Session Settlement","href":"/docs/zh-TW/api-explorer/v5/asset/settlement","className":"api-method get","docId":"api-explorer/v5/asset/settlement"},{"type":"link","label":"Get Asset Info (Spot)","href":"/docs/zh-TW/api-explorer/v5/asset/asset-info","className":"api-method get","docId":"api-explorer/v5/asset/asset-info"},{"type":"link","label":"Get All Coins Balance","href":"/docs/zh-TW/api-explorer/v5/asset/all-balance","className":"api-method get","docId":"api-explorer/v5/asset/all-balance"},{"type":"link","label":"Get Single Coin Balance","href":"/docs/zh-TW/api-explorer/v5/asset/account-coin-balance","className":"api-method get","docId":"api-explorer/v5/asset/account-coin-balance"},{"type":"link","label":"Get Transferable Coin","href":"/docs/zh-TW/api-explorer/v5/asset/transferable-coin","className":"api-method get","docId":"api-explorer/v5/asset/transferable-coin"},{"type":"link","label":"Create Internal Transfer","href":"/docs/zh-TW/api-explorer/v5/asset/create-inter-transfer","className":"api-method post","docId":"api-explorer/v5/asset/create-inter-transfer"},{"type":"link","label":"Get Internal Transfer Records","href":"/docs/zh-TW/api-explorer/v5/asset/inter-transfer-list","className":"api-method get","docId":"api-explorer/v5/asset/inter-transfer-list"},{"type":"link","label":"Get Sub UID","href":"/docs/zh-TW/api-explorer/v5/asset/sub-uid-list","className":"api-method get","docId":"api-explorer/v5/asset/sub-uid-list"},{"type":"link","label":"Create Universal Transfer","href":"/docs/zh-TW/api-explorer/v5/asset/unitransfer","className":"api-method post","docId":"api-explorer/v5/asset/unitransfer"},{"type":"link","label":"Get Universal Transfer Records","href":"/docs/zh-TW/api-explorer/v5/asset/unitransfer-list","className":"api-method get","docId":"api-explorer/v5/asset/unitransfer-list"},{"type":"link","label":"Get Allowed Deposit Coin Info","href":"/docs/zh-TW/api-explorer/v5/asset/deposit-coin-spec","className":"api-method get","docId":"api-explorer/v5/asset/deposit-coin-spec"},{"type":"link","label":"Set Deposit Account","href":"/docs/zh-TW/api-explorer/v5/asset/set-deposit-acct","className":"api-method post","docId":"api-explorer/v5/asset/set-deposit-acct"},{"type":"link","label":"Get Deposit Record (on-chain)","href":"/docs/zh-TW/api-explorer/v5/asset/deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/deposit-record"},{"type":"link","label":"Get Sub Account Deposit Records (on-chain)","href":"/docs/zh-TW/api-explorer/v5/asset/sub-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-record"},{"type":"link","label":"Get Internal Deposit Records (off-chain)","href":"/docs/zh-TW/api-explorer/v5/asset/internal-deposit-record","className":"api-method get","docId":"api-explorer/v5/asset/internal-deposit-record"},{"type":"link","label":"Get Master Deposit Address","href":"/docs/zh-TW/api-explorer/v5/asset/master-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/master-deposit-addr"},{"type":"link","label":"Get Sub Deposit Address","href":"/docs/zh-TW/api-explorer/v5/asset/sub-deposit-addr","className":"api-method get","docId":"api-explorer/v5/asset/sub-deposit-addr"},{"type":"link","label":"Get Coin Info","href":"/docs/zh-TW/api-explorer/v5/asset/coin-info","className":"api-method get","docId":"api-explorer/v5/asset/coin-info"},{"type":"link","label":"Get Withdraw Records","href":"/docs/zh-TW/api-explorer/v5/asset/withdraw-record","className":"api-method get","docId":"api-explorer/v5/asset/withdraw-record"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/asset/asset"},{"type":"category","label":"User","items":[{"type":"link","label":"Get API Key Information","href":"/docs/zh-TW/api-explorer/v5/user/apikey-info","className":"api-method get","docId":"api-explorer/v5/user/apikey-info"},{"type":"link","label":"Get Sub Account All API Keys","href":"/docs/zh-TW/api-explorer/v5/user/list-sub-apikeys","className":"api-method get","docId":"api-explorer/v5/user/list-sub-apikeys"},{"type":"link","label":"Get UID Wallet Type","href":"/docs/zh-TW/api-explorer/v5/user/wallet-type","className":"api-method get","docId":"api-explorer/v5/user/wallet-type"},{"type":"link","label":"Get Affiliate User Info","href":"/docs/zh-TW/api-explorer/v5/user/affiliate-info","className":"api-method get","docId":"api-explorer/v5/user/affiliate-info"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/user/user"},{"type":"category","label":"Spot Leverage Token","items":[{"type":"link","label":"Get Leverage Token Info","href":"/docs/zh-TW/api-explorer/v5/lt/leverage-token-info","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-info"},{"type":"link","label":"Get Leverage Token Market","href":"/docs/zh-TW/api-explorer/v5/lt/leverage-token-reference","className":"api-method get","docId":"api-explorer/v5/lt/leverage-token-reference"},{"type":"link","label":"Purchase","href":"/docs/zh-TW/api-explorer/v5/lt/purchase","className":"api-method post","docId":"api-explorer/v5/lt/purchase"},{"type":"link","label":"Redeem","href":"/docs/zh-TW/api-explorer/v5/lt/redeem","className":"api-method post","docId":"api-explorer/v5/lt/redeem"},{"type":"link","label":"Get Purchase or Redeem Records","href":"/docs/zh-TW/api-explorer/v5/lt/order-record","className":"api-method get","docId":"api-explorer/v5/lt/order-record"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/lt/etp"},{"type":"category","label":"Spot Margin Trade (UTA)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/vip-margin"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/switch-mode"},{"type":"link","label":"Set Leverage","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/set-leverage","className":"api-method post","docId":"api-explorer/v5/spot-margin-uta/set-leverage"},{"type":"link","label":"Get Status And Leverage","href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/status","className":"api-method get","docId":"api-explorer/v5/spot-margin-uta/status"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/spot-margin-uta/uta-margin-trade"},{"type":"category","label":"Spot Margin Trade (Classic)","items":[{"type":"link","label":"Get VIP Margin Data","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/vip-margin","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/vip-margin"},{"type":"link","label":"Get Margin Coin Info","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/margin-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/margin-data"},{"type":"link","label":"Get Borrowable Coin Info","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/borrowable-data","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrowable-data"},{"type":"link","label":"Get Interest & Quota","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/interest-quota","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/interest-quota"},{"type":"link","label":"Get Loan Account Info","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/account-info","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/account-info"},{"type":"link","label":"Borrow","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/borrow","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/borrow"},{"type":"link","label":"Repay","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/repay","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/repay"},{"type":"link","label":"Get Borrow Order Detail","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/borrow-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/borrow-order"},{"type":"link","label":"Get Repayment Order Detail","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/repay-order","className":"api-method get","docId":"api-explorer/v5/spot-margin-normal/repay-order"},{"type":"link","label":"Toggle Margin Trade","href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/switch-mode","className":"api-method post","docId":"api-explorer/v5/spot-margin-normal/switch-mode"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/spot-margin-normal/normal-margin-trade"}],"collapsed":true,"collapsible":true,"href":"/docs/zh-TW/api-explorer/v5/category/"}],"changelogSidebar":[{"type":"link","label":"V5","href":"/docs/zh-TW/changelog/v5","docId":"changelog/v5"}]},"docs":{"api-explorer/v5/account/account":{"id":"api-explorer/v5/account/account","title":"Account","description":"Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/account-info":{"id":"api-explorer/v5/account/account-info","title":"Get Account Info","description":"Get account info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/borrow-history":{"id":"api-explorer/v5/account/borrow-history","title":"Get Borrow History","description":"Get borrow history","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/coin-greeks":{"id":"api-explorer/v5/account/coin-greeks","title":"Get Coin Greeks","description":"Get coin greek info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/collateral-info":{"id":"api-explorer/v5/account/collateral-info","title":"Get Collateral Info","description":"Get collateral info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/fee-rate":{"id":"api-explorer/v5/account/fee-rate","title":"Get Fee Rate","description":"Get fee rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-collateral":{"id":"api-explorer/v5/account/set-collateral","title":"Set Collateral Coin","description":"Set collateral coin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-margin-mode":{"id":"api-explorer/v5/account/set-margin-mode","title":"Set Margin Mode","description":"Set margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/set-spot-hedge":{"id":"api-explorer/v5/account/set-spot-hedge","title":"Set Spot Hedging","description":"Set spot hedging for Portfolio margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/transaction-log":{"id":"api-explorer/v5/account/transaction-log","title":"Get Transaction Log","description":"Get transaction log","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/upgrade-unified-account":{"id":"api-explorer/v5/account/upgrade-unified-account","title":"Upgrade to Unified Account","description":"Upgrade to UTA","sidebar":"apiExplorerSideBar"},"api-explorer/v5/account/wallet":{"id":"api-explorer/v5/account/wallet","title":"Get Wallet Balance","description":"Get wallet balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/account-coin-balance":{"id":"api-explorer/v5/asset/account-coin-balance","title":"Get Single Coin Balance","description":"Get Single Coin Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/all-balance":{"id":"api-explorer/v5/asset/all-balance","title":"Get All Coins Balance","description":"Get All Coins Balance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset":{"id":"api-explorer/v5/asset/asset","title":"Asset","description":"Asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/asset-info":{"id":"api-explorer/v5/asset/asset-info","title":"Get Asset Info (Spot)","description":"Get spot asset","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/coin-info":{"id":"api-explorer/v5/asset/coin-info","title":"Get Coin Info","description":"Get coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/create-inter-transfer":{"id":"api-explorer/v5/asset/create-inter-transfer","title":"Create Internal Transfer","description":"Create internal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/delivery":{"id":"api-explorer/v5/asset/delivery","title":"Get Delivery Record","description":"Get delivery record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-coin-spec":{"id":"api-explorer/v5/asset/deposit-coin-spec","title":"Get Allowed Deposit Coin Info","description":"Get allowed deposit coin info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/deposit-record":{"id":"api-explorer/v5/asset/deposit-record","title":"Get Deposit Record (on-chain)","description":"Get deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/exchange":{"id":"api-explorer/v5/asset/exchange","title":"Get Coin Exchange Records","description":"Get exchange records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/inter-transfer-list":{"id":"api-explorer/v5/asset/inter-transfer-list","title":"Get Internal Transfer Records","description":"Get internal transfer records","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/internal-deposit-record":{"id":"api-explorer/v5/asset/internal-deposit-record","title":"Get Internal Deposit Records (off-chain)","description":"Get deposit records through Bybit platform","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/master-deposit-addr":{"id":"api-explorer/v5/asset/master-deposit-addr","title":"Get Master Deposit Address","description":"Get master deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/set-deposit-acct":{"id":"api-explorer/v5/asset/set-deposit-acct","title":"Set Deposit Account","description":"Set Deposit Account","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/settlement":{"id":"api-explorer/v5/asset/settlement","title":"Get USDC Session Settlement","description":"Get usdc session settlement record.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-addr":{"id":"api-explorer/v5/asset/sub-deposit-addr","title":"Get Sub Deposit Address","description":"Get sub deposit address","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-deposit-record":{"id":"api-explorer/v5/asset/sub-deposit-record","title":"Get Sub Account Deposit Records (on-chain)","description":"Get sub account deposit record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/sub-uid-list":{"id":"api-explorer/v5/asset/sub-uid-list","title":"Get Sub UID","description":"Get sub uid","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/transferable-coin":{"id":"api-explorer/v5/asset/transferable-coin","title":"Get Transferable Coin","description":"Get transferable coins","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer":{"id":"api-explorer/v5/asset/unitransfer","title":"Create Universal Transfer","description":"Create universal transfer","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/unitransfer-list":{"id":"api-explorer/v5/asset/unitransfer-list","title":"Get Universal Transfer Records","description":"Get universal transfer record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/asset/withdraw-record":{"id":"api-explorer/v5/asset/withdraw-record","title":"Get Withdraw Records","description":"Get withdraw record","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/etp":{"id":"api-explorer/v5/lt/etp","title":"Spot Leverage Token","description":"Spot Leverage Token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-info":{"id":"api-explorer/v5/lt/leverage-token-info","title":"Get Leverage Token Info","description":"Get lt information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/leverage-token-reference":{"id":"api-explorer/v5/lt/leverage-token-reference","title":"Get Leverage Token Market","description":"Get lt market information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/order-record":{"id":"api-explorer/v5/lt/order-record","title":"Get Purchase or Redeem Records","description":"Get the order history of purchase or redeem","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/purchase":{"id":"api-explorer/v5/lt/purchase","title":"Purchase","description":"Purchase leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/lt/redeem":{"id":"api-explorer/v5/lt/redeem","title":"Redeem","description":"Redeem leverage token","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/delivery-price":{"id":"api-explorer/v5/market/delivery-price","title":"Get Delivery Price","description":"Get delivery price","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/history-fund-rate":{"id":"api-explorer/v5/market/history-fund-rate","title":"Get Funding Rate History","description":"Get historical funding rate","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/index-kline":{"id":"api-explorer/v5/market/index-kline","title":"Get Index Price Kline","description":"Get Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/instrument":{"id":"api-explorer/v5/market/instrument","title":"Get Instrument Info","description":"Get launched instruments information.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/insurance":{"id":"api-explorer/v5/market/insurance","title":"Get Insurance","description":"Get Insurance","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/iv":{"id":"api-explorer/v5/market/iv","title":"Get Historical Volatility","description":"Get historical volatility","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/kline":{"id":"api-explorer/v5/market/kline","title":"Get Kline","description":"Get kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/long-short-ratio":{"id":"api-explorer/v5/market/long-short-ratio","title":"Get Long Short Ratio","description":"Get long short ratio","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/mark-kline":{"id":"api-explorer/v5/market/mark-kline","title":"Get Mark Price Kline","description":"Get Mark Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/market":{"id":"api-explorer/v5/market/market","title":"Market","description":"Market","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/open-interest":{"id":"api-explorer/v5/market/open-interest","title":"Get Open Interest","description":"Get open interest","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/orderbook":{"id":"api-explorer/v5/market/orderbook","title":"Get Orderbook","description":"Get order book data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/premium-index-kline":{"id":"api-explorer/v5/market/premium-index-kline","title":"Get Premium Index Price Kline","description":"Get Premium Index Price Kline data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/recent-trade":{"id":"api-explorer/v5/market/recent-trade","title":"Get Public Recent Trading History","description":"Get public trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/risk-limit":{"id":"api-explorer/v5/market/risk-limit","title":"Get Risk Limit","description":"Get risk limit","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/tickers":{"id":"api-explorer/v5/market/tickers","title":"Get Tickers","description":"Get all latest information of symbols. All parameters are needed for OPTION","sidebar":"apiExplorerSideBar"},"api-explorer/v5/market/time":{"id":"api-explorer/v5/market/time","title":"Get Bybit Server Time","description":"Get server time","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/auto-add-margin":{"id":"api-explorer/v5/position/auto-add-margin","title":"Set Auto Add Margin","description":"Set Auto Add Margin","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/close-pnl":{"id":"api-explorer/v5/position/close-pnl","title":"Get Closed PnL","description":"Get closed pnl","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/cross-isolate":{"id":"api-explorer/v5/position/cross-isolate","title":"Switch Cross/Isolated Margin","description":"Select cross margin mode or isolated margin mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/execution":{"id":"api-explorer/v5/position/execution","title":"Get Execution (2 years)","description":"Get execution list","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/leverage":{"id":"api-explorer/v5/position/leverage","title":"Set Leverage","description":"Set levearage.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/manual-add-margin":{"id":"api-explorer/v5/position/manual-add-margin","title":"Add Or Reduce Margin","description":"Manually add or reduce margin for isolated margin position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position":{"id":"api-explorer/v5/position/position","title":"Position","description":"Position","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-info":{"id":"api-explorer/v5/position/position-info","title":"Get Position Info","description":"Get Position Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/position-mode":{"id":"api-explorer/v5/position/position-mode","title":"Switch Position Mode","description":"Switch Position Mode","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/set-risk-limit":{"id":"api-explorer/v5/position/set-risk-limit","title":"Set Risk Limit","description":"Set risk limit.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/tpsl-mode":{"id":"api-explorer/v5/position/tpsl-mode","title":"Set TP/SL Mode","description":"Set tp/sl mode.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/position/trading-stop":{"id":"api-explorer/v5/position/trading-stop","title":"Set Trading Stop","description":"Set trade stop.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/account-info":{"id":"api-explorer/v5/spot-margin-normal/account-info","title":"Get Loan Account Info","description":"Get Loan Account Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow":{"id":"api-explorer/v5/spot-margin-normal/borrow","title":"Borrow","description":"Borrow","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrow-order":{"id":"api-explorer/v5/spot-margin-normal/borrow-order","title":"Get Borrow Order Detail","description":"Get Borrow Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/borrowable-data":{"id":"api-explorer/v5/spot-margin-normal/borrowable-data","title":"Get Borrowable Coin Info","description":"Get Borrowable Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/interest-quota":{"id":"api-explorer/v5/spot-margin-normal/interest-quota","title":"Get Interest & Quota","description":"Get Interest & Quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/margin-data":{"id":"api-explorer/v5/spot-margin-normal/margin-data","title":"Get Margin Coin Info","description":"Get Margin Coin Info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/normal-margin-trade":{"id":"api-explorer/v5/spot-margin-normal/normal-margin-trade","title":"Spot Margin Trade (Classic)","description":"Spot Margin Trade (Classic)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay":{"id":"api-explorer/v5/spot-margin-normal/repay","title":"Repay","description":"Repay","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/repay-order":{"id":"api-explorer/v5/spot-margin-normal/repay-order","title":"Get Repayment Order Detail","description":"Get Repayment Order Detail","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/switch-mode":{"id":"api-explorer/v5/spot-margin-normal/switch-mode","title":"Toggle Margin Trade","description":"Toggle Margin Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-normal/vip-margin":{"id":"api-explorer/v5/spot-margin-normal/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/set-leverage":{"id":"api-explorer/v5/spot-margin-uta/set-leverage","title":"Set Leverage","description":"Set leverage for margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/status":{"id":"api-explorer/v5/spot-margin-uta/status","title":"Get Status And Leverage","description":"Get status and leverage","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/switch-mode":{"id":"api-explorer/v5/spot-margin-uta/switch-mode","title":"Toggle Margin Trade","description":"Toggle margin trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/uta-margin-trade":{"id":"api-explorer/v5/spot-margin-uta/uta-margin-trade","title":"Spot Margin Trade (UTA)","description":"Spot Margin Trade (UTA)","sidebar":"apiExplorerSideBar"},"api-explorer/v5/spot-margin-uta/vip-margin":{"id":"api-explorer/v5/spot-margin-uta/vip-margin","title":"Get VIP Margin Data","description":"Get vip margin data","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/amend-order":{"id":"api-explorer/v5/trade/amend-order","title":"Amend Order","description":"Amend an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-amend":{"id":"api-explorer/v5/trade/batch-amend","title":"Batch Amend Order","description":"Batch amend orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-cancel":{"id":"api-explorer/v5/trade/batch-cancel","title":"Batch Cancel Order","description":"Batch cancel orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/batch-place":{"id":"api-explorer/v5/trade/batch-place","title":"Batch Place Order","description":"Batch place orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-all":{"id":"api-explorer/v5/trade/cancel-all","title":"Cancel All Orders","description":"Cancel all orders.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/cancel-order":{"id":"api-explorer/v5/trade/cancel-order","title":"Cancel Order","description":"Cancel a single order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/create-order":{"id":"api-explorer/v5/trade/create-order","title":"Place Order","description":"Place an order.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/open-order":{"id":"api-explorer/v5/trade/open-order","title":"Get Open Orders (real-time)","description":"Get unfilled orders or partially filled orders","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/order-list":{"id":"api-explorer/v5/trade/order-list","title":"Get Order History (2 years)","description":"Get order history.","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/query-spot-quota":{"id":"api-explorer/v5/trade/query-spot-quota","title":"Get Borrow Quota (Spot)","description":"Query user\'s spot available quota","sidebar":"apiExplorerSideBar"},"api-explorer/v5/trade/trade":{"id":"api-explorer/v5/trade/trade","title":"Trade","description":"Trade","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/affiliate-info":{"id":"api-explorer/v5/user/affiliate-info","title":"Get Affiliate User Info","description":"Get affiliate user info","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/apikey-info":{"id":"api-explorer/v5/user/apikey-info","title":"Get API Key Information","description":"Get API Key Information","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/list-sub-apikeys":{"id":"api-explorer/v5/user/list-sub-apikeys","title":"Get Sub Account All API Keys","description":"Get Sub Account All API Keys","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/user":{"id":"api-explorer/v5/user/user","title":"User","description":"User","sidebar":"apiExplorerSideBar"},"api-explorer/v5/user/wallet-type":{"id":"api-explorer/v5/user/wallet-type","title":"Get UID Wallet Type","description":"Get uid wallet type","sidebar":"apiExplorerSideBar"},"changelog/v5":{"id":"changelog/v5","title":"V5","description":"2024-10-15","sidebar":"changelogSidebar"},"faq":{"id":"faq","title":"\u5e38\u898b\u554f\u984c","description":"Bybit\u7684\u670d\u52d9\u5668\u5728\u54ea\u88e1?"},"pilot-feature/pilot":{"id":"pilot-feature/pilot","title":"\u8a66\u9ede\u529f\u80fd","description":"\u5347\u7d1a\u53cd\u5411\u5408\u7d04\u5e33\u6236"},"v3/intro":{"id":"v3/intro","title":"\u6982\u89bd","description":"\u9452\u6b0a/\u8a8d\u8b49","sidebar":"v3SideBar"},"v3/tax/data-explain":{"id":"v3/tax/data-explain","title":"\u6578\u64da\u8aaa\u660e","description":"\u4ea4\u6613\u6b77\u53f2","sidebar":"v3SideBar"},"v3/tax/data-export":{"id":"v3/tax/data-export","title":"\u6578\u64da\u5c0e\u51fa","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v3/tax/enum":{"id":"v3/tax/enum","title":"\u679a\u8209\u5b9a\u7fa9","description":"ReportType","sidebar":"v3SideBar"},"v3/tax/register-time":{"id":"v3/tax/register-time","title":"\u67e5\u8a62\u7279\u5b9a\u7528\u6236\u5728\u5e73\u53f0\u8a3b\u518a\u65e5\u671f","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v3/tax/report-status":{"id":"v3/tax/report-status","title":"\u67e5\u8a62\u5831\u544a\u5c0e\u51fa\u72c0\u614b","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v3/tax/request-report":{"id":"v3/tax/request-report","title":"\u5275\u5efa\u5c0e\u51fa\u5831\u544a\u8acb\u6c42","description":"HTTP \u8acb\u6c42","sidebar":"v3SideBar"},"v5/abandon/account-info":{"id":"v5/abandon/account-info","title":"\u67e5\u8a62\u4f59\u5e63\u5bf6\u5e33\u6236\u4fe1\u606f","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/abandon/cancel-redeem":{"id":"v5/abandon/cancel-redeem","title":"\u64a4\u92b7\u8d16\u56de","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/abandon/coin-info":{"id":"v5/abandon/coin-info","title":"\u67e5\u8a62\u53ef\u5b58\u5165\u5e63\u7a2e\u4fe1\u606f","description":"\u67e5\u8a62\u53ef\u5b58\u5165\u5e63\u7a2e\u7684\u57fa\u672c\u4fe1\u606f","sidebar":"v5SideBar"},"v5/abandon/deposit":{"id":"v5/abandon/deposit","title":"\u5b58\u5165\u8cc7\u91d1","description":"- \u7d93\u5178\u5e33\u6236&UMA\u5e33\u6236: \u8cc7\u91d1\u662f\u5f9e\u73fe\u8ca8\u9322\u5305\u6263\u9664","sidebar":"v5SideBar"},"v5/abandon/earning":{"id":"v5/abandon/earning","title":"\u67e5\u8a62\u7d93\u7d00\u5546\u8fd4\u4f63","description":"\u8a72\u63a5\u53e3\u5df2\u7d93\u5ee2\u68c4, \u8acb\u4f7f\u7528\u67e5\u8a62\u7d93\u7d00\u5546\u8fd4\u4f63\u4fe1\u606f","sidebar":"v5SideBar"},"v5/abandon/enable-unitransfer-subuid":{"id":"v5/abandon/enable-unitransfer-subuid","title":"\u914d\u7f6e\u4e92\u76f8\u5283\u8f49\u7684\u5b50\u5e33\u865f","description":"\u7121\u9700\u518d\u914d\u7f6e\u53ef\u5283\u8f49\u7684\u5b50\u5e33\u865f, \u8a72\u9650\u5236\u5df2\u79fb\u9664, \u9ed8\u8a8d\u4efb\u610f\u5b50\u5e33\u865f\u4e4b\u9593\u53ef\u4ee5\u5283\u8f49","sidebar":"v5SideBar"},"v5/abandon/ltv":{"id":"v5/abandon/ltv","title":"\u67e5\u8a62\u98a8\u96aa\u7387","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/abandon/margin-coin-info":{"id":"v5/abandon/margin-coin-info","title":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","description":"\u9019\u662f\u516c\u5171\u63a5\u53e3\uff0c\u7121\u9700\u9452\u6b0a\u3002","sidebar":"v5SideBar"},"v5/abandon/order-record":{"id":"v5/abandon/order-record","title":"\u67e5\u8a62\u8a02\u55ae\u6b77\u53f2","description":"\u67e5\u8a62\u5b58\u5165/\u8d16\u56de/\u6536\u76ca\u767c\u653e\u7684\u8a02\u55ae\u6b77\u53f2","sidebar":"v5SideBar"},"v5/abandon/redeem":{"id":"v5/abandon/redeem","title":"\u8d16\u56de\u8cc7\u91d1","description":"\u5728\u8d16\u56de\u672c\u91d1\u6642\uff0c\u7cfb\u7d71\u9084\u6703\u81ea\u52d5\u8d16\u56de\u7576\u524d\u7684\u6536\u76ca\u3002","sidebar":"v5SideBar"},"v5/account/account-info":{"id":"v5/account/account-info","title":"\u67e5\u8a62\u8cec\u6236\u914d\u7f6e","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u67e5\u8a62\u8cec\u6236\u7684\u4fdd\u8b49\u91d1\u6a21\u5f0f(\u7d71\u4e00\u5e33\u6236), \u7576\u524d\u5e33\u6236\u6a21\u5f0f\u7b49\u914d\u7f6e","sidebar":"v5SideBar"},"v5/account/batch-set-collateral":{"id":"v5/account/batch-set-collateral","title":"\u6279\u91cf\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","description":"\u7528\u6236\u53ef\u4ee5\u6279\u91cf\u958b\u555f\u6216\u95dc\u9589\u7d71\u4e00\u5e33\u6236\u4e2d\u5e63\u7a2e\u62b5\u62bc\u5c6c\u6027\uff0c\u9ed8\u8a8d\u90fd\u662f\u95dc\u9589\u7684","sidebar":"v5SideBar"},"v5/account/borrow-history":{"id":"v5/account/borrow-history","title":"\u67e5\u8a62\u5229\u606f\u8a18\u9304","description":"\u7372\u53d6\u5229\u606f\u8a18\u9304\uff0c\u6309\u7167\u5275\u5efa\u6642\u9593\u5012\u6558\u6392\u5217","sidebar":"v5SideBar"},"v5/account/coin-greeks":{"id":"v5/account/coin-greeks","title":"\u67e5\u8a62Greeks\u4fe1\u606f","description":"\u7372\u53d6\u7576\u524d\u8cec\u6236Greeks\u4fe1\u606f","sidebar":"v5SideBar"},"v5/account/collateral-info":{"id":"v5/account/collateral-info","title":"\u67e5\u8a62\u62b5\u62bc\u54c1\u4fe1\u606f","description":"\u7372\u53d6\u7576\u524d\u7d71\u4e00\u4fdd\u8b49\u91d1\u8cec\u6236\u7684\u62b5\u62bc\u54c1\u4fe1\u606f\uff0c\u5305\u62ec\u501f\u8cb8\u5229\u7387\uff0c\u53ef\u85c9\u8cb8\u91d1\u984d\u4ee5\u53ca\u62b5\u62bc\u54c1\u6298\u7b97\u7387\uff0c\u662f\u5426\u53ef\u62b5\u62bc\u4f5c\u70ba\u4fdd\u8b49\u91d1\u7b49\u4fe1\u606f","sidebar":"v5SideBar"},"v5/account/contract-transaction-log":{"id":"v5/account/contract-transaction-log","title":"\u4ea4\u6613\u65e5\u8a8c","description":"\u652f\u6301\u67e5\u8a62\u7d93\u5178\u5e33\u6236\u4e0b\u5408\u7d04\u9322\u5305, \u4ee5\u53ca\u7d71\u4e00\u5e33\u6236\u4e0b\u53cd\u5411\u5408\u7d04\u9322\u5305\u88e1\u7684\u4ea4\u6613\u65e5\u8a8c","sidebar":"v5SideBar"},"v5/account/dcp-info":{"id":"v5/account/dcp-info","title":"\u67e5\u8a62DCP\u914d\u7f6e","description":"\u67e5\u8a62\u5e33\u6236\u7684\u671f\u8ca8 / \u73fe\u8ca8 / \u671f\u6b0a\u7684dcp\u914d\u7f6e. \u5728\u8abf\u7528\u63a5\u53e3\u524d, \u8acb\u78ba\u4fdd\u5df2\u7d93\u548c\u5ba2\u6236\u7d93\u7406\u7533\u8acb\u4e86\u5e33\u6236DCP\u958b\u901a","sidebar":"v5SideBar"},"v5/account/fee-rate":{"id":"v5/account/fee-rate","title":"\u67e5\u8a62\u624b\u7e8c\u8cbb\u7387","description":"\u67e5\u8a62\u4ea4\u6613\u624b\u7e8c\u8cbb\u7387","sidebar":"v5SideBar"},"v5/account/get-mmp-state":{"id":"v5/account/get-mmp-state","title":"\u67e5\u8a62\u5e02\u5546\u4fdd\u8b77\u914d\u7f6e\u4fe1\u606f","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/account/repay-liability":{"id":"v5/account/repay-liability","title":"\u4e00\u9375\u9084\u6b3e","description":"\u60a8\u53ef\u4ee5\u901a\u904e\u8a72\u63a5\u53e3\u624b\u52d5\u9084\u6e05\u7d71\u4e00\u5e33\u6236\u4e2d\u7684\u501f\u6b3e","sidebar":"v5SideBar"},"v5/account/reset-mmp":{"id":"v5/account/reset-mmp","title":"\u91cd\u7f6e\u5e02\u5546\u4fdd\u8b77\u51cd\u7d50","description":"* \u4e00\u65e6mmp\u88ab\u89f8\u767c, \u60a8\u7684\u5e33\u6236\u53ef\u4ee5\u8abf\u7528\u8a72\u63a5\u53e3\u9032\u884c\u4e3b\u52d5\u89e3\u51cd, \u89e3\u51cd\u5f8c, qtyLimit\u548cdeltaLimit\u5c31\u91cd\u7f6e\u70ba0.","sidebar":"v5SideBar"},"v5/account/set-collateral":{"id":"v5/account/set-collateral","title":"\u8a2d\u7f6e\u62b5\u62bc\u54c1\u5e63\u7a2e","description":"\u7528\u6236\u53ef\u4ee5\u81ea\u884c\u6c7a\u5b9a\u662f\u5426\u958b\u555f\u7d71\u4e00\u5e33\u6236\u4e2d\u5e63\u7a2e\u662f\u5426\u9032\u884c\u62b5\u62bc\uff0c\u9ed8\u8a8d\u90fd\u662f\u95dc\u9589\u7684","sidebar":"v5SideBar"},"v5/account/set-margin-mode":{"id":"v5/account/set-margin-mode","title":"\u8a2d\u7f6e\u4fdd\u8b49\u91d1\u6a21\u5f0f(\u5e33\u6236)","description":"\u7528\u6236\u5982\u679c\u4e0d\u8a2d\u7f6e\uff0c\u9ed8\u8a8d\u6309\u5168\u5009\u4fdd\u8b49\u91d1","sidebar":"v5SideBar"},"v5/account/set-mmp":{"id":"v5/account/set-mmp","title":"\u8bbe\u7f6e\u5e02\u5546\u4fdd\u8b77","description":"\u4ec0\u9ebc\u662fMMP?","sidebar":"v5SideBar"},"v5/account/set-spot-hedge":{"id":"v5/account/set-spot-hedge","title":"\u8a2d\u7f6e\u73fe\u8ca8\u5c0d\u885d","description":"\u60a8\u53ef\u4ee5\u958b\u95dc\u73fe\u8ca8\u5c0d\u5f9e\u529f\u80fd, \u50c5\u9650\u7d71\u4e00\u5e33\u6236\u7d44\u5408\u4fdd\u8b49\u91d1\u6a21\u5f0f\u4e0b","sidebar":"v5SideBar"},"v5/account/smp-group":{"id":"v5/account/smp-group","title":"\u67e5\u8a62SMP\u7d44ID","description":"\u67e5\u8a62\u81ea\u6210\u4ea4\u6514\u622a\u7684SMP\u4ea4\u6613\u7fa4\u7d44ID","sidebar":"v5SideBar"},"v5/account/transaction-log":{"id":"v5/account/transaction-log","title":"\u4ea4\u6613\u65e5\u8a8c","description":"\u6574\u500b\u8cec\u6236\u7d71\u4e00\u9322\u5305\u88e1\u7684\u4ea4\u6613\u65e5\u8a8c, \u652f\u6301\u6700\u591a\u67e5\u8a62\u904e\u53bb2\u5e74\u7684\u6578\u64da","sidebar":"v5SideBar"},"v5/account/upgrade-unified-account":{"id":"v5/account/upgrade-unified-account","title":"\u5347\u7d1a\u7d71\u4e00\u4fdd\u8b49\u91d1\u8cec\u6236","description":"\u901a\u904e\u8abf\u7528\u67e5\u8a62\u8cec\u6236\u914d\u7f6e\u63a5\u53e3\u4f86\u78ba\u8a8d\u7576\u524d\u7684\u5e33\u6236\u578b\u614b","sidebar":"v5SideBar"},"v5/account/wallet-balance":{"id":"v5/account/wallet-balance","title":"\u67e5\u8a62\u9322\u5305\u9918\u984d","description":"\u7372\u53d6\u7d71\u4e00\u5e33\u6236\u548c\u7d93\u5178\u5e33\u6236\u9322\u5305\u9918\u984d, \u67e5\u8a62\u5404\u500b\u5e63\u7a2e\u7684\u8cc7\u7522\u4fe1\u606f. \u9ed8\u8a8d\u4e0d\u8fd4\u56de\u8cc7\u7522\u6216\u8ca0\u50b5\u70ba0\u7684\u5e63\u7a2e\u4fe1\u606f\u3002","sidebar":"v5SideBar"},"v5/acct-mode":{"id":"v5/acct-mode","title":"\u5e33\u6236\u6a21\u5f0f\u4ecb\u7d39","description":"\u73fe\u5728Bybit\u5e73\u53f0\u4e0a\u5171\u6709\u4e09\u7a2e\u5e33\u6236\u6a21\u5f0f\u4e26\u5b58, \u5206\u5225\u662f\u7d93\u5178\u5e33\u6236, \u7d71\u4e00\u5e33\u62361.0, \u7d71\u4e00\u5e33\u62362.0","sidebar":"v5SideBar"},"v5/announcement":{"id":"v5/announcement","title":"\u67e5\u8a62\u516c\u544a","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/balance/account-coin-balance":{"id":"v5/asset/balance/account-coin-balance","title":"\u67e5\u8a62\u5e33\u6236\u55ae\u500b\u5e63\u7a2e\u9918\u984d","description":"\u7372\u53d6\u67d0\u5e33\u6236\u985e\u578b\u4e0b\u67d0\u6307\u5b9a\u5e63\u7a2e\u7684\u9918\u984d\u3002\u652f\u6301\u901a\u904e\u8f38\u5165\u5b50\u5e33\u6236id\u4f86\u67e5\u8a62\u5b50\u5e33\u6236\u7684\u67d0\u500b\u5e33\u6236\u985e\u578b\u4e0b\u7684\u67d0\u500b\u5e63\u7a2e\u9918\u984d","sidebar":"v5SideBar"},"v5/asset/balance/all-balance":{"id":"v5/asset/balance/all-balance","title":"\u67e5\u8a62\u8cec\u6236\u6240\u6709\u5e63\u7a2e\u4f59\u984d","description":"\u652f\u6301\u67e5\u8a62\u6bcd\u5e33\u6236\u7684\u5404\u500b\u5e33\u6236\u985e\u578b\u7684\u5e63\u7a2e\u9918\u984d\uff0c\u4ee5\u53ca\u6bcd\u5e33\u6236\u4e0b\u5404\u5b50\u5e33\u6236\u7684\u5404\u500b\u5e33\u6236\u985e\u578b\u7684\u5e63\u7a2e\u9918\u984d\u3002","sidebar":"v5SideBar"},"v5/asset/balance/asset-info":{"id":"v5/asset/balance/asset-info","title":"\u67e5\u8a62\u8cc7\u7522\u4fe1\u606f","description":"\u53ea\u80fd\u67e5\u8a62\u7d93\u5178\u5e33\u6236\u7684\u73fe\u8ca8\u5e33\u6236\u8cc7\u7522","sidebar":"v5SideBar"},"v5/asset/balance/delay-amount":{"id":"v5/asset/balance/delay-amount","title":"\u67e5\u8a62\u5ef6\u9072\u63d0\u5e63\u51cd\u7d50\u91d1\u984d","description":"\u5982\u4f55\u6703\u5c0e\u81f4\u90e8\u5206\u8cc7\u91d1\u88ab\u8981\u6c42\u5ef6\u9072\u63d0\u5e63\uff1f","sidebar":"v5SideBar"},"v5/asset/coin-info":{"id":"v5/asset/coin-info","title":"\u67e5\u8a62\u5e63\u7a2e\u4fe1\u606f","description":"\u7372\u53d6\u5e63\u7a2e\u4fe1\u606f\uff0c\u5305\u62ec\u93c8\u4fe1\u606f\uff0c\u662f\u5426\u53ef\u5145\u53ef\u63d0","sidebar":"v5SideBar"},"v5/asset/convert/apply-quote":{"id":"v5/asset/convert/apply-quote","title":"\u7533\u8acb\u5831\u50f9","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/convert/confirm-quote":{"id":"v5/asset/convert/confirm-quote","title":"\u78ba\u8a8d\u5831\u50f9","description":"1. \u8a72\u63a5\u53e3\u662f\u7570\u6b65\u7684, \u8acb\u901a\u904e\u67e5\u8a62\u8acb\u6c42\u78ba\u8a8d\u6700\u7d42\u514c\u63db\u7d50\u679c","sidebar":"v5SideBar"},"v5/asset/convert/convert-coin-list":{"id":"v5/asset/convert/convert-coin-list","title":"\u67e5\u8a62\u514c\u63db\u5e63\u7a2e\u5217\u8868","description":"\u60a8\u53ef\u4ee5\u901a\u904e\u8a72\u63a5\u53e3\u7372\u53d6\u5230\u5404\u500b\u5e33\u6236\u5167\u7684\u514c\u5165\u514c\u51fa\u5e63\u7a2e\u5217\u8868","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-history":{"id":"v5/asset/convert/get-convert-history","title":"\u67e5\u8a62\u514c\u63db\u6b77\u53f2","description":"\u90a3\u4e9b\u88ab\u78ba\u8a8d\u7684\u5831\u50f9\u55ae, \u4e0d\u7ba1\u6700\u7d42\u72c0\u614b\u5982\u4f55, \u8a72\u63a5\u53e3\u90fd\u6703\u8fd4\u56de","sidebar":"v5SideBar"},"v5/asset/convert/get-convert-result":{"id":"v5/asset/convert/get-convert-result","title":"\u67e5\u8a62\u5831\u50f9\u55ae\u72c0\u614b","description":"* \u60a8\u53ef\u4ee5\u901a\u904equoteTxId\u6307\u5b9a\u67e5\u8a62\u67d0\u7b46\u88ab\u78ba\u8a8d\u7684\u5831\u50f9\u55ae","sidebar":"v5SideBar"},"v5/asset/convert/guideline":{"id":"v5/asset/convert/guideline","title":"\u9583\u514c\u63a5\u5165\u6307\u5357","description":"* \u6240\u6709\u63a5\u53e3\u90fd\u9700\u8981\u9032\u884c\u9452\u6b0a","sidebar":"v5SideBar"},"v5/asset/delivery":{"id":"v5/asset/delivery","title":"\u67e5\u8a62\u4ea4\u5272\u7d00\u9304","description":"\u67e5\u8a62\u53cd\u5411\u4ea4\u5272 / USDC\u4ea4\u5272 / \u671f\u6b0a\u7684\u4ea4\u5272\u7d00\u9304, \u8fd4\u56de\u7d50\u679c\u6309\u7167deliveryTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-coin-spec":{"id":"v5/asset/deposit/deposit-coin-spec","title":"\u67e5\u8a62\u652f\u6301\u7684\u5145\u503c\u5e63\u7a2e\u4fe1\u606f","description":"\u901a\u904e\u5e63\u7a2e\u4fe1\u606f\u63a5\u53e3\uff0c\u7372\u53d6\u5e63\u93c8\u7d44\u5408","sidebar":"v5SideBar"},"v5/asset/deposit/deposit-record":{"id":"v5/asset/deposit/deposit-record","title":"\u67e5\u8a62\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","description":"* endTime - startTime\u9700\u8981\u5c0f\u65bc\u7b49\u65bc30\u5929\uff0c\u9ed8\u8a8d\u67e5\u8a62\u6700\u8fd130\u5929\u7684\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/deposit/internal-deposit-record":{"id":"v5/asset/deposit/internal-deposit-record","title":"\u67e5\u8a62\u5145\u503c\u8a18\u9304 (\u5e73\u53f0\u8f6c\u8d26)","description":"\u67e5\u8a62Bybit\u5e73\u53f0\u5167\u90e8\u5145\u503c\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/deposit/master-deposit-addr":{"id":"v5/asset/deposit/master-deposit-addr","title":"\u67e5\u8a62\u4e3b\u5e33\u865f\u5145\u503c\u5730\u5740","description":"\u50c5\u652f\u6301\u6bcd\u5e33\u865fAPI key","sidebar":"v5SideBar"},"v5/asset/deposit/set-deposit-acct":{"id":"v5/asset/deposit/set-deposit-acct","title":"\u8a2d\u7f6e\u5145\u503c\u5e33\u6236","description":"\u8a2d\u7f6e\u5145\u503c\u5f8c\u7684\u81ea\u52d5\u8f49\u5165\u5e33\u6236\u985e\u578b\u3002\u8a72\u529f\u80fd\u8207\u7db2\u9801\u7aef-\u8a2d\u7f6e-\u5145\u503c\u4fdd\u6301\u4e00\u81f4\u3002","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-addr":{"id":"v5/asset/deposit/sub-deposit-addr","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u5730\u5740","description":"\u50c5\u80fd\u4f7f\u7528\u8a72\u6bcd\u5e33\u865f*\u7684API key","sidebar":"v5SideBar"},"v5/asset/deposit/sub-deposit-record":{"id":"v5/asset/deposit/sub-deposit-record","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304 (\u93c8\u4e0a)","description":"\u50c5\u80fd\u901a\u904e\u4e3b\u5e33\u865f\u7684API key\u4f86\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/exchange":{"id":"v5/asset/exchange","title":"\u67e5\u8a62\u514c\u63db\u8a02\u55ae\u7d00\u9304","description":"\u60a8\u53ef\u80fd\u6703\u906d\u9047\u8f03\u9577\u7684\u6578\u64da\u8fd4\u56de\u5ef6\u9072","sidebar":"v5SideBar"},"v5/asset/settlement":{"id":"v5/asset/settlement","title":"\u67e5\u8a62USDC\u7d50\u7b97\u7d00\u9304","description":"\u67e5\u8a62USDC\u6c38\u7e8c\u7684\u7d50\u7b97\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/sub-uid-list":{"id":"v5/asset/sub-uid-list","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u5217\u8868","description":"\u67e5\u8a62\u67d0\u500b\u6bcd\u5e33\u6236\u7684\u5b50\u5e33\u865f\u5217\u8868, \u8fd4\u56de\u81f3\u591a2000\u500b\u5b50\u5e33\u6236, \u5982\u679c\u60a8\u6709\u66f4\u591a, \u53ef\u4ee5\u8abf\u7528\u9019\u500b\u63a5\u53e3.","sidebar":"v5SideBar"},"v5/asset/transfer/create-inter-transfer":{"id":"v5/asset/transfer/create-inter-transfer","title":"\u5283\u8f49 (\u55ae\u5e33\u865f\u5167)","description":"\u5275\u5efa\u55ae\u5e33\u865f\u4e0b\u5e33\u6236\u985e\u578b\u9593\u7684\u5283\u8f49\u64cd\u4f5c","sidebar":"v5SideBar"},"v5/asset/transfer/inter-transfer-list":{"id":"v5/asset/transfer/inter-transfer-list","title":"\u67e5\u8a62\u5283\u8f49\u7d00\u9304 (\u55ae\u5e33\u865f\u5167)","description":"\u7372\u53d6\u55ae\u5e33\u865f\u5167\u7684\u5283\u8f49\u7d00\u9304","sidebar":"v5SideBar"},"v5/asset/transfer/transferable-coin":{"id":"v5/asset/transfer/transferable-coin","title":"\u5e33\u6236\u985e\u578b\u9593\u53ef\u5283\u8f49\u7684\u5e63\u7a2e","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer":{"id":"v5/asset/transfer/unitransfer","title":"\u5275\u5efa\u842c\u80fd\u5283\u8f49","description":"\u652f\u6301\u5b50\u5b50\u5e33\u6236\u9593\u5283\u8f49\u6216\u6bcd\u5b50\u5e33\u865f\u9593\u5283\u8f49\u3002","sidebar":"v5SideBar"},"v5/asset/transfer/unitransfer-list":{"id":"v5/asset/transfer/unitransfer-list","title":"\u67e5\u8a62\u842c\u80fd\u5283\u8f49\u7d00\u9304","description":"* \u6bcd\u5b50\u5e33\u865f\u7684api key\u90fd\u652f\u6301\u8abf\u7528","sidebar":"v5SideBar"},"v5/asset/withdraw/cancel-withdraw":{"id":"v5/asset/withdraw/cancel-withdraw","title":"\u64a4\u92b7\u63d0\u5e63","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/asset/withdraw/vasp-list":{"id":"v5/asset/withdraw/vasp-list","title":"\u67e5\u8a62\u4ea4\u6613\u6240\u5217\u8868","description":"\u8a72\u63a5\u53e3\u4e3b\u8981\u7528\u65bckyc=KOR\u7684\u97d3\u570b\u500b\u4eba\u7528\u6236, \u5728\u63d0\u73fe\u6642\u9700\u8981\u586b\u5beb\u63a5\u6536\u65b9\u4ea4\u6613\u6240\u4fe1\u606f","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw":{"id":"v5/asset/withdraw/withdraw","title":"\u63d0\u73fe","description":"\u82e5\u76ee\u6a19\u5730\u5740\u662fBybit\u5e73\u53f0\u5167\u90e8\u5730\u5740, \u60a8\u53ef\u4ee5\u5be6\u73fe\u5167\u90e8\u5e73\u53f0\u8f49\u5e33","sidebar":"v5SideBar"},"v5/asset/withdraw/withdraw-record":{"id":"v5/asset/withdraw/withdraw-record","title":"\u67e5\u8a62\u63d0\u73fe\u7d00\u9304","description":"* endTime - startTime\u9700\u8981\u5c0f\u65bc\u7b49\u65bc30\u5929. \u9ed8\u8a8d\u67e5\u8a62\u6700\u8fd130\u5929\u7684\u7d00\u9304\u3002","sidebar":"v5SideBar"},"v5/backup/set-pledge-token":{"id":"v5/backup/set-pledge-token","title":"Set Pledge Token","description":"Set Pledge Token in cross margin"},"v5/broker/account-info":{"id":"v5/broker/account-info","title":"\u67e5\u8a62\u5e33\u6236\u4fe1\u606f","description":"* \u4f7f\u7528\u7d93\u7d00\u5546\u7684\u6bcd\u5e33\u6236\u9032\u884c\u67e5\u8a62","sidebar":"v5SideBar"},"v5/broker/exchange-earning":{"id":"v5/broker/exchange-earning","title":"\u67e5\u8a62\u8fd4\u4f63\u4fe1\u606f","description":"* \u4f7f\u7528\u7d93\u7d00\u5546\u7684\u6bcd\u5e33\u6236\u9032\u884c\u67e5\u8a62","sidebar":"v5SideBar"},"v5/broker/reward/get-issue-voucher":{"id":"v5/broker/reward/get-issue-voucher","title":"\u67e5\u8a62\u5df2\u767c\u653e\u4ee3\u91d1\u5238","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/broker/reward/issue-voucher":{"id":"v5/broker/reward/issue-voucher","title":"\u767c\u653e\u4ee3\u91d1\u5238","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/broker/reward/voucher":{"id":"v5/broker/reward/voucher","title":"\u67e5\u8a62\u4ee3\u91d1\u5238\u53c3\u6578","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/broker/sub-deposit-record":{"id":"v5/broker/sub-deposit-record","title":"\u67e5\u8a62\u5b50\u5e33\u865f\u5145\u503c\u7d00\u9304","description":"\u7d93\u7d00\u5546\u50c5\u80fd\u901a\u904e\u4e3b\u5e33\u865f\u7684API key\u4f86\u67e5\u8a62\u5b50\u5e33\u865f\u7684\u5145\u503c\u7d00\u9304","sidebar":"v5SideBar"},"v5/copytrade":{"id":"v5/copytrade","title":"\u5982\u4f55\u4f7f\u7528API\u5e36\u55ae","description":"\u6210\u70ba\u4ea4\u6613\u9054\u4eba","sidebar":"v5SideBar"},"v5/crypto-loan/acct-borrow-collateral":{"id":"v5/crypto-loan/acct-borrow-collateral","title":"\u67e5\u8a62\u5e33\u6236\u53ef\u501f\u8cb8/\u62b5\u62bc\u7684\u9650\u984d","description":"\u67e5\u8a62\u672c\u5e33\u6236\u652f\u6301\u7684\u6700\u5c0f/\u6700\u5927\u7684\u501f\u8cb8\u548c\u8cea\u62bc\u984d","sidebar":"v5SideBar"},"v5/crypto-loan/adjust-collateral":{"id":"v5/crypto-loan/adjust-collateral","title":"\u8abf\u6574\u8cea\u62bc\u91d1\u984d","description":"\u60a8\u53ef\u4ee5\u589e\u52a0\u6216\u6e1b\u5c11\u8cea\u62bc\u91d1\u984d. \u9078\u64c7\u6e1b\u5c11\u6642, \u8acb\u5148\u78ba\u8a8d\u5141\u8a31\u6e1b\u5c11\u7684\u6700\u5927\u8cea\u62bc\u6578\u91cf","sidebar":"v5SideBar"},"v5/crypto-loan/borrow":{"id":"v5/crypto-loan/borrow","title":"\u501f\u6b3e","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/crypto-loan/collateral-coin":{"id":"v5/crypto-loan/collateral-coin","title":"\u67e5\u8a62\u8cea\u62bc\u5e63\u7a2e","description":"\u4e0d\u9700\u8981\u9452\u6b0a","sidebar":"v5SideBar"},"v5/crypto-loan/comleted-loan-order":{"id":"v5/crypto-loan/comleted-loan-order","title":"\u67e5\u8a62\u5df2\u7d50\u6e05\u7684\u501f\u8cb8\u6b77\u53f2\u8a02\u55ae","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/crypto-loan/loan-coin":{"id":"v5/crypto-loan/loan-coin","title":"\u67e5\u8a62\u53ef\u501f\u5e63\u7a2e","description":"\u4e0d\u9700\u8981\u9452\u6b0a","sidebar":"v5SideBar"},"v5/crypto-loan/ltv-adjust-history":{"id":"v5/crypto-loan/ltv-adjust-history","title":"\u67e5\u8a62\u8cea\u62bc\u91d1\u8abf\u6574\u6b77\u53f2","description":"\u67e5\u8a62\u589e\u6e1b\u8cea\u62bc\u91d1\u7684\u64cd\u4f5c\u6b77\u53f2","sidebar":"v5SideBar"},"v5/crypto-loan/reduce-max-collateral-amt":{"id":"v5/crypto-loan/reduce-max-collateral-amt","title":"\u67e5\u8a62\u6700\u5927\u53ef\u6e1b\u5c11\u7684\u8cea\u62bc\u91d1\u984d","description":"\u67e5\u8a62\u67d0\u500b\u501f\u8cb8\u8a02\u55ae\u5141\u8a31\u7684\u6700\u5927\u53ef\u6e1b\u5c11\u8cea\u62bc\u91d1\u984d","sidebar":"v5SideBar"},"v5/crypto-loan/repay":{"id":"v5/crypto-loan/repay","title":"\u9084\u6b3e","description":"\u60a8\u53ef\u4ee5\u9078\u64c7\u63d0\u524d\u9084\u6b3e, \u4e26\u4e14\u652f\u6301\u90e8\u5206\u9084\u6b3e, \u5982\u679c\u5b58\u5728\u5229\u606f, \u5c07\u512a\u5148\u9084\u5229\u606f","sidebar":"v5SideBar"},"v5/crypto-loan/repay-transaction":{"id":"v5/crypto-loan/repay-transaction","title":"\u67e5\u8a62\u9084\u6b3e\u7d00\u9304","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/crypto-loan/unpaid-loan-order":{"id":"v5/crypto-loan/unpaid-loan-order","title":"\u67e5\u8a62\u9032\u884c\u4e2d\u7684\u501f\u8cb8\u8a02\u55ae","description":"\u6b0a\u9650: \\"\u73fe\u8ca8\u4ea4\u6613\\"","sidebar":"v5SideBar"},"v5/demo":{"id":"v5/demo","title":"\u6a21\u64ec\u4ea4\u6613","description":"\u6982\u89bd","sidebar":"v5SideBar"},"v5/enum":{"id":"v5/enum","title":"\u679a\u8209\u5b9a\u7fa9","description":"locale","sidebar":"v5SideBar"},"v5/error":{"id":"v5/error","title":"\u932f\u8aa4\u78bc","description":"HTTP \u97ff\u61c9\u78bc","sidebar":"v5SideBar"},"v5/guide":{"id":"v5/guide","title":"\u63a5\u5165\u6307\u5357","description":"\u6b32\u8a73\u7d30\u4e86\u89e3 V5 API \u5185\u5bb9\uff0c\u9084\u8acb\u4ed4\u7d30\u95b1\u8b80\u6982\u89bd","sidebar":"v5SideBar"},"v5/intro":{"id":"v5/intro","title":"\u6982\u89bd","description":"\u7c21\u4ecb","sidebar":"v5SideBar"},"v5/lt/leverage-token-info":{"id":"v5/lt/leverage-token-info","title":"LT\u5168\u91cf\u8cc7\u7522\u67e5\u8a62","description":"\u67e5\u8a62\u69d3\u687f\u4ee3\u5e63\u4fe1\u606f","sidebar":"v5SideBar"},"v5/lt/leverage-token-reference":{"id":"v5/lt/leverage-token-reference","title":"\u67e5\u8a62LT\u884c\u60c5","description":"\u67e5\u8a62LT\u884c\u60c5","sidebar":"v5SideBar"},"v5/lt/order-record":{"id":"v5/lt/order-record","title":"\u7533\u8d16\u8a18\u9304\u67e5\u8a62","description":"\u7533\u8d16\u8a18\u9304\u67e5\u8a62","sidebar":"v5SideBar"},"v5/lt/purchase":{"id":"v5/lt/purchase","title":"\u7533\u8cfc","description":"\u7533\u8cfc","sidebar":"v5SideBar"},"v5/lt/redeem":{"id":"v5/lt/redeem","title":"\u8d16\u56de","description":"\u8d16\u56de","sidebar":"v5SideBar"},"v5/market/delivery-price":{"id":"v5/market/delivery-price","title":"\u67e5\u8a62\u4ea4\u5272\u50f9\u683c","description":"\u67e5\u8a62\u5e73\u53f0\u4ea4\u5272\u7522\u54c1\u7684\u4ea4\u5272\u50f9\u683c\uff0c\u652f\u6301\u53cd\u5411\u4ea4\u5272, USDC\u4ea4\u5272\u548c\u671f\u6b0a","sidebar":"v5SideBar"},"v5/market/history-fund-rate":{"id":"v5/market/history-fund-rate","title":"\u67e5\u8a62\u6b77\u53f2\u8cc7\u91d1\u8cbb\u7387","description":"\u67e5\u8a62\u8cc7\u91d1\u8cbb\u7387\uff0c\u6bcf\u500bsymbol\u7684\u8cc7\u91d1\u8cbb\u7387\u7522\u751f\u9031\u671f\u4e0d\u540c\u3002\u5047\u8a2d\u8cc7\u91d1\u8cbb\u7387\u70ba8\u5c0f\u6642\uff0c\u7576\u524d\u6642\u9593\u662fUTC12\u9ede\uff0c\u5247\u8fd4\u56de\u7684\u662f\u4e0a\u4e00\u500b\u7d50\u7b97\u5373UTC8\u9ede\u7522\u751f\u7684\u8cc7\u91d1\u8cbb\u7387\u3002\u5982\u8981\u67e5\u8a62symbol\u7684\u8cc7\u91d1\u8cbb\u7387\u6642\u9593\u9593\u9694\uff0c\u8acb\u67e5\u8a62\u53ef\u4ea4\u6613\u7522\u54c1\u898f\u683c\u63a5\u53e3","sidebar":"v5SideBar"},"v5/market/index-kline":{"id":"v5/market/index-kline","title":"\u67e5\u8a62\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u6307\u6578\u50f9\u683cK\u7dda","sidebar":"v5SideBar"},"v5/market/instrument":{"id":"v5/market/instrument","title":"\u67e5\u8a62\u53ef\u4ea4\u6613\u7522\u54c1\u7684\u898f\u683c\u4fe1\u606f","description":"\u67e5\u8a62\u5168\u7ad9\u53ef\u4ea4\u6613\u7522\u54c1\u7684\u57fa\u790e\u914d\u7f6e\u898f\u5247\u4fe1\u606f","sidebar":"v5SideBar"},"v5/market/insurance":{"id":"v5/market/insurance","title":"\u67e5\u8a62\u4fdd\u96aa\u57fa\u91d1","description":"\u67e5\u8a62Bybit\u5e73\u53f0\u7684\u4fdd\u96aa\u57fa\u91d1\u7684\u6578\u64da\uff0c\u5305\u542b\u6240\u6709\u4fdd\u96aa\u6c60\u7684\u6578\u64da\uff0c\u6578\u64da\u6bcf24\u5c0f\u6642\u66f4\u65b0\u4e00\u6b21\u3002","sidebar":"v5SideBar"},"v5/market/iv":{"id":"v5/market/iv","title":"\u67e5\u8a62\u671f\u6b0a\u6ce2\u52d5\u7387","description":"\u7372\u53d6\u671f\u6b0a\u7684\u6b77\u53f2\u6ce2\u52d5\u7387\u6578\u64da","sidebar":"v5SideBar"},"v5/market/kline":{"id":"v5/market/kline","title":"\u67e5\u8a62\u5e02\u5834\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u5e02\u5834\u50f9\u683cK\u7dda\u6578\u64da","sidebar":"v5SideBar"},"v5/market/long-short-ratio":{"id":"v5/market/long-short-ratio","title":"\u67e5\u8a62\u591a\u7a7a\u6bd4","description":"HTTP\u8acb\u6c42","sidebar":"v5SideBar"},"v5/market/mark-kline":{"id":"v5/market/mark-kline","title":"\u67e5\u8a62\u6a19\u8a18\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u6a19\u8a18\u50f9\u683cK\u7dda","sidebar":"v5SideBar"},"v5/market/open-interest":{"id":"v5/market/open-interest","title":"\u67e5\u8a62\u672a\u5e73\u5009\u5408\u7d04\u6301\u5009\u6578\u91cf","description":"\u67e5\u8a62\u5404\u500b\u5408\u7d04\u5e02\u5834\u5167\u6240\u6709\u672a\u5e73\u5009\u7684\u6578\u91cf","sidebar":"v5SideBar"},"v5/market/orderbook":{"id":"v5/market/orderbook","title":"Order Book (\u6df1\u5ea6)","description":"\u7372\u53d6\u6df1\u5ea6\u6578\u64da","sidebar":"v5SideBar"},"v5/market/preimum-index-kline":{"id":"v5/market/preimum-index-kline","title":"\u67e5\u8a62\u6ea2\u50f9\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","description":"\u67e5\u8a62\u6ea2\u50f9\u6307\u6578\u50f9\u683cK\u7dda\u6578\u64da","sidebar":"v5SideBar"},"v5/market/recent-trade":{"id":"v5/market/recent-trade","title":"\u67e5\u8a62\u5e73\u53f0\u6700\u8fd1\u6210\u4ea4\u6b77\u53f2","description":"\u7372\u53d6\u5e73\u53f0\u6700\u8fd1\u6210\u4ea4\u6578\u64da","sidebar":"v5SideBar"},"v5/market/risk-limit":{"id":"v5/market/risk-limit","title":"\u67e5\u8a62\u5408\u7d04\u98a8\u96aa\u9650\u984d","description":"\u67e5\u8a62\u671f\u8ca8\u5408\u7d04\u7684\u98a8\u96aa\u9650\u984d\u8868","sidebar":"v5SideBar"},"v5/market/tickers":{"id":"v5/market/tickers","title":"\u67e5\u8a62\u6700\u65b0\u884c\u60c5\u4fe1\u606f","description":"\u53ef\u7372\u53d6\u5230\u5feb\u7167\u7684\u6700\u65b0\u5e02\u5834\u50f9\u683c\uff0c\u6700\u4f73\u8cb7\u8ce3\u50f9\u683c\uff0c\u4ee5\u53ca\u904e\u53bb\u6642\u9593\u5167\u7684\u4ea4\u6613\u91cf\u7b49.","sidebar":"v5SideBar"},"v5/market/time":{"id":"v5/market/time","title":"Bybit\u670d\u52d9\u5668\u6642\u9593","description":"\u7372\u53d6Bybit\u670d\u52d9\u5668\u6642\u9593","sidebar":"v5SideBar"},"v5/order/amend-order":{"id":"v5/order/amend-order","title":"\u4fee\u6539\u59d4\u8a17\u55ae","description":"\u60a8\u53ea\u80fd\u4fee\u6539\u90a3\u4e9b\u672a\u6210\u4ea4\u6216\u8005\u90e8\u5206\u6210\u4ea4\u7684\u8a02\u55ae\u3002","sidebar":"v5SideBar"},"v5/order/batch-amend":{"id":"v5/order/batch-amend","title":"\u6279\u91cf\u4fee\u6539\u59d4\u8a17\u55ae","description":"\u8a72\u63a5\u53e3\u652f\u6301\u6279\u91cf\u4fee\u6539\u59d4\u8a17\u55ae","sidebar":"v5SideBar"},"v5/order/batch-cancel":{"id":"v5/order/batch-cancel","title":"\u6279\u91cf\u64a4\u92b7\u59d4\u8a17\u55ae","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u6279\u91cf\u64a4\u92b7\u591a\u7b46\u8a02\u55ae","sidebar":"v5SideBar"},"v5/order/batch-place":{"id":"v5/order/batch-place","title":"\u6279\u91cf\u5275\u5efa\u59d4\u8a17\u55ae","description":"\u8a72\u63a5\u53e3\u652f\u6301\u6279\u91cf\u5275\u5efa\u59d4\u8a17\u55ae","sidebar":"v5SideBar"},"v5/order/cancel-all":{"id":"v5/order/cancel-all","title":"\u64a4\u92b7\u6240\u6709\u8a02\u55ae","description":"- \u652f\u6301\u6309\u7167symbol/baseCoin/settleCoin\u64a4\u92b7\u8a02\u55ae\uff0c\u82e5\u60a8\u50b3\u5165\u4e86\u591a\u500b\u53c3\u6578\u7d44\u5408, \u7cfb\u7d71\u50c5\u6703\u8655\u7406\u5176\u4e2d\u4e00\u500b\u53c3\u6578\uff0c\u5176\u4e2d\u512a\u5148\u7d1a\u70basymbol > baseCoin > settleCoin.","sidebar":"v5SideBar"},"v5/order/cancel-order":{"id":"v5/order/cancel-order","title":"\u64a4\u92b7\u59d4\u8a17\u55ae","description":"- \u60a8\u5fc5\u9808\u6307\u5b9aorderId\u6216\u8005orderLinkId.","sidebar":"v5SideBar"},"v5/order/create-order":{"id":"v5/order/create-order","title":"\u5275\u5efa\u59d4\u8a17\u55ae","description":"\u672c\u63a5\u53e3\u63d0\u4f9b\u5e63\u5e63\u4ea4\u6613\uff0c\u73fe\u8ca8\u69d3\u687f\u4ea4\u6613\uff0c\u5408\u7d04\u4ee5\u53ca\u671f\u6b0a\u7684\u8a02\u55ae\u5275\u5efa","sidebar":"v5SideBar"},"v5/order/dcp":{"id":"v5/order/dcp","title":"\u8a2d\u7f6e\u65b7\u7dda\u4fdd\u8b77\u6642\u9593","description":"\u4ec0\u9ebc\u662f\u65b7\u7dda\u4fdd\u8b77 (Disconnection Protect)?","sidebar":"v5SideBar"},"v5/order/execution":{"id":"v5/order/execution","title":"\u67e5\u8a62\u6210\u4ea4\u7d00\u9304","description":"\u7372\u53d6\u7528\u6236\u6210\u4ea4\u7d00\u9304\uff0c\u8fd4\u56de\u7d50\u679c\u6309execTime\u964d\u5e8f\u6392\u5217\u3002\u4f46\u662f\uff0c\u5c0d\u65bc\u7d93\u5178\u5e33\u6236\u73fe\u8ca8\u4ea4\u6613\uff0c\u8fd4\u56de\u7d50\u679c\u6309execId\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/order/open-order":{"id":"v5/order/open-order","title":"\u67e5\u8a62\u5be6\u6642\u548c\u7d42\u614b\u59d4\u8a17\u55ae","description":"\u4e3b\u8981\u7528\u65bc\u5be6\u6642\u67e5\u8a62\u672a\u6210\u4ea4\u6216\u90e8\u5206\u6210\u4ea4\u7684\u8a02\u55ae\u4fe1\u606f, \u4f46\u7d50\u5408\u5165\u53c2openOnly\u80fd\u5920\u67e5\u8a62\u5230\u6700\u8fd1500\u689d\u5230\u9054\u7d42\u614b\u7684\u8a02\u55ae. \u82e5\u9700\u8981\u67e5\u8a62\u66f4\u4e45\u7684\u8a02\u55ae\u7d00\u9304\uff0c\u8acb\u4f7f\u7528\u67e5\u8a62\u6b77\u53f2\u8a02\u55ae\u63a5\u53e3.","sidebar":"v5SideBar"},"v5/order/order-list":{"id":"v5/order/order-list","title":"\u67e5\u8a62\u6b77\u53f2\u8a02\u55ae","description":"\u7372\u53d6\u6b77\u53f2\u8a02\u55ae\u7d00\u9304. \u7531\u65bc\u8a02\u55ae\u5275\u5efa/\u64a4\u92b7\u662f\u7570\u6b65\u7684, \u8a72\u63a5\u53e3\u8fd4\u56de\u6578\u64da\u53ef\u80fd\u6703\u6709\u5ef6\u9072. \u82e5\u60a8\u60f3\u5be6\u6642\u7372\u53d6\u8a02\u55ae\u4fe1\u606f, \u60a8\u53ef\u4ee5\u67e5\u8a62\u8a72\u63a5\u53e3\u6216\u8005\u901a\u904ewebsocket\u63a8\u9001(\u63a8\u85a6)","sidebar":"v5SideBar"},"v5/order/spot-borrow-quota":{"id":"v5/order/spot-borrow-quota","title":"\u67e5\u8a62\u7528\u6236\u53ef\u7528\u984d\u5ea6 (\u73fe\u8ca8)","description":"\u53ef\u4ee5\u67e5\u8a62\u73fe\u8ca8\u5e63\u5e63\u4ea4\u6613\u4ee5\u53ca\u69d3\u687f\u4ea4\u6613\u6642, \u53ef\u7528\u5c0d\u61c9\u5e63\u7a2e\u7684\u5be6\u6642\u9918\u984d","sidebar":"v5SideBar"},"v5/otc/bind-uid":{"id":"v5/otc/bind-uid","title":"\u7d81\u5b9a/\u89e3\u7d81UID","description":"\u5c0d\u65bc\u5834\u5916\u501f\u8cb8\u7522\u54c1, \u60a8\u53ef\u4ee5\u81ea\u884c\u7d81\u5b9a\u65b0\u7684UID\u5230\u98a8\u96aa\u55ae\u5143\u5167\u6216\u8005\u89e3\u7d81\u67d0\u500bUID","sidebar":"v5SideBar"},"v5/otc/loan-info":{"id":"v5/otc/loan-info","title":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae\u4fe1\u606f","description":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae\u7684\u8a73\u60c5","sidebar":"v5SideBar"},"v5/otc/ltv-convert":{"id":"v5/otc/ltv-convert","title":"\u67e5\u8a62\u98a8\u96aa\u7387","description":"HTTP \u8acb\u6c42","sidebar":"v5SideBar"},"v5/otc/margin-coin-convert-info":{"id":"v5/otc/margin-coin-convert-info","title":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","description":"* \u8a72\u63a5\u53e3\u5728\u4e0d\u50b3\u5165api key\u548csecret\u9032\u884c\u9452\u6b0a\u6642, \u5247\u8fd4\u56de\u516c\u5171\u6578\u64da","sidebar":"v5SideBar"},"v5/otc/margin-product-info":{"id":"v5/otc/margin-product-info","title":"\u67e5\u8a62\u7522\u54c1\u4fe1\u606f","description":"* \u8a72\u63a5\u53e3\u5728\u4e0d\u50b3\u5165api key\u548csecret\u9032\u884c\u9452\u6b0a\u6642, \u5247\u8fd4\u56de\u516c\u5171\u7522\u54c1\u6578\u64da","sidebar":"v5SideBar"},"v5/otc/repay-info":{"id":"v5/otc/repay-info","title":"\u67e5\u8a62\u9084\u6b3e\u4fe1\u606f","description":"* \u9ed8\u8a8d\u67e5\u8a62\u904e\u53bb2\u5e74\u7684\u6578\u64da","sidebar":"v5SideBar"},"v5/position/auto-add-margin":{"id":"v5/position/auto-add-margin","title":"\u8a2d\u7f6e\u81ea\u52d5\u8ffd\u52a0\u4fdd\u8b49\u91d1","description":"\u958b\u95dc\u81ea\u52d5\u8ffd\u52a0\u4fdd\u8b49\u91d1\uff0c\u50c5\u9069\u7528\u65bc\u9010\u5009\u4fdd\u8b49\u91d1\u6a21\u5f0f","sidebar":"v5SideBar"},"v5/position/close-pnl":{"id":"v5/position/close-pnl","title":"\u67e5\u8a62\u5e73\u5009\u76c8\u8667","description":"\u7372\u53d6\u7576\u524d\u7528\u6236\u7684\u6240\u6709\u5e73\u5009\u76c8\u8667\u6578\u64da\uff0c\u8fd4\u56de\u7d50\u679c\u6309\u7167createdTime\u964d\u5e8f\u6392\u5217.","sidebar":"v5SideBar"},"v5/position/confirm-mmr":{"id":"v5/position/confirm-mmr","title":"\u78ba\u8a8d\u65b0\u7684\u98a8\u96aa\u9650\u984d","description":"\u50c5\u9069\u7528\u65bc\u7576\u7528\u6236\u88ab\u6a19\u8a18\u70ba\u50c5\u6e1b\u5009 (\u8acb\u770b\u6301\u5009\u63a5\u53e3\u4e2d\u7684isReduceOnly\u5b57\u6bb5) \u6642, \u5728\u7528\u6236\u4e3b\u52d5\u8abf\u6574\u98a8\u96aa\u6c34\u4f4d\u5f8c, \u8abf\u7528\u8a72\u63a5\u53e3\u4f86\u8a66\u7b97\u8abf\u6574\u5f8c\u7684\u98a8","sidebar":"v5SideBar"},"v5/position/cross-isolate":{"id":"v5/position/cross-isolate","title":"\u5207\u63db\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1(\u4ea4\u6613\u5c0d)","description":"\u9078\u64c7\u5168\u5009\u4fdd\u8b49\u91d1\u6216\u8005\u662f\u9010\u5009\u4fdd\u8b49\u91d1\uff0c\u8acb\u53c3\u95b1\u9019\u88e1\u4e86\u89e3\u95dc\u65bc\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1\u6a21\u5f0f\u3002","sidebar":"v5SideBar"},"v5/position/leverage":{"id":"v5/position/leverage","title":"\u8a2d\u7f6e\u69d3\u687f","description":"\u6839\u64da\u98a8\u96aa\u9650\u984d, \u69d3\u687f\u5f71\u97ff\u6700\u5927\u53ef\u958b\u6578\u91cf, \u5373\u69d3\u687f\u8d8a\u5927, \u6700\u5927\u53ef\u958b\u5009\u6578\u91cf\u8d8a\u5c0f, \u53cd\u4e4b\u4ea6\u7136\u3002\u4e86\u89e3\u66f4\u591a","sidebar":"v5SideBar"},"v5/position/manual-add-margin":{"id":"v5/position/manual-add-margin","title":"\u624b\u52d5\u589e\u52a0\u6216\u6e1b\u5c11\u4fdd\u8b49\u91d1","description":"\u624b\u52d5\u589e\u52a0\u6216\u6e1b\u5c11\u4fdd\u8b49\u91d1\uff0c\u50c5\u9069\u7528\u65bc\u9010\u5009\u4fdd\u8b49\u91d1\u6a21\u5f0f","sidebar":"v5SideBar"},"v5/position/move-position":{"id":"v5/position/move-position","title":"\u79fb\u5009","description":"\u60a8\u53ef\u4ee5\u5728\u540c\u4e00\u500b\u6bcd\u5b50\u5e33\u6236\u9ad4\u7cfb\u4e0b\u79fb\u52d5\u671f\u8ca8\u3001\u671f\u6b0a\u7684\u5009\u4f4d, \u4ee5\u53ca\u73fe\u8ca8\u7684\u5e63\u5e63\u4ea4\u6613","sidebar":"v5SideBar"},"v5/position/move-position-history":{"id":"v5/position/move-position-history","title":"\u67e5\u8a62\u79fb\u5009\u6b77\u53f2","description":"\u60a8\u53ef\u4ee5\u901a\u904e\u4f7f\u7528\u6bcd\u5e33\u6236\u7684api key\u67e5\u8a62\u904e\u53bb\u7684\u79fb\u5009\u6b77\u53f2\u7d00\u9304","sidebar":"v5SideBar"},"v5/position/position":{"id":"v5/position/position","title":"\u67e5\u8a62\u6301\u5009 (\u5be6\u6642)","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u7372\u53d6\u7528\u6236\u7684\u6301\u5009\u4fe1\u606f\uff0c\u6bd4\u5982\u6301\u5009\u6578\u91cf\uff0c\u7d2f\u8a08\u76c8\u8667\u7b49","sidebar":"v5SideBar"},"v5/position/position-mode":{"id":"v5/position/position-mode","title":"\u5207\u63db\u6301\u5009\u6a21\u5f0f","description":"\u8a72\u63a5\u53e3\u652f\u6301\u5207\u63dbUSDT\u6c38\u7e8c\u548c\u53cd\u5411\u4ea4\u5272\u7684\u6301\u5009\u6a21\u5f0f\u3002\u5982\u679c\u8655\u65bc\u55ae\u5411\u6301\u5009\u6a21\u5f0f\u4e0b\uff0c\u60a8\u53ea\u80fd\u8981\u9ebc\u6301\u6709\u591a\u982d\u8981\u9ebc\u7a7a\u982d\u5009\u4f4d\uff1b\u5982\u679c\u8655\u65bc\u96d9\u5411\u6301\u5009\u6a21\u5f0f\u4e0b\uff0c\u60a8\u53ef\u4ee5\u540c\u6642\u6301\u5009\u591a\u982d\u548c\u7a7a\u982d\u7684\u5009\u4f4d\u3002","sidebar":"v5SideBar"},"v5/position/set-risk-limit":{"id":"v5/position/set-risk-limit","title":"\u8a2d\u7f6e\u98a8\u96aa\u9650\u984d","description":"\u7531\u65bcBybit\u57282024\u5e743\u670812\u65e5\u4e0a\u7dda\u4e86\u81ea\u52d5\u8abf\u6574risk limit\u529f\u80fd, \u8a73\u60c5\u8acb\u898b\u9019\u88e1, \u56e0\u6b64\u5118\u7ba1\u63a5\u53e3\u80fd\u8abf\u901a, \u4f46\u662f\u6c92\u6709\u4efb\u4f55\u610f\u7fa9","sidebar":"v5SideBar"},"v5/position/tpsl-mode":{"id":"v5/position/tpsl-mode","title":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d\u6a21\u5f0f","description":"\u67d0\u7a2e\u7a0b\u5ea6\u4e0a\u4f86\u8aaa\uff0c\u8a72\u63a5\u53e3\u5df2\u7d93**\u5ee2\u68c4**, \u539f\u56e0\u5728\u65bc\u65b0\u7248\u7684\u6b62\u76c8\u6b62\u640d\u6a5f\u5236\u662f\u57fa\u65bc\u8a02\u55ae\u7dad\u5ea6. \u9019\u500b\u63a5\u53e3\u7576\u521d\u4e3b\u8981\u662f\u7528\u65bc\u5009\u4f4d\u7dad\u5ea6\u7684\u6b62\u76c8\u6b62\u640d","sidebar":"v5SideBar"},"v5/position/trading-stop":{"id":"v5/position/trading-stop","title":"\u8a2d\u7f6e\u6b62\u76c8\u6b62\u640d","description":"\u8a72\u63a5\u53e3\u53ef\u4ee5\u8a2d\u7f6e\u6b62\u76c8\u3001\u6b62\u640d\u548c\u8ffd\u8e64\u6b62\u640d","sidebar":"v5SideBar"},"v5/pre-upgrade/close-pnl":{"id":"v5/pre-upgrade/close-pnl","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u5e73\u5009\u76c8\u8667","description":"\u652f\u6301\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDT\u6c38\u7e8c / \u53cd\u5411\u5408\u7d04, \u8fd4\u56de\u7d50\u679c\u6309\u7167updatedTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/pre-upgrade/delivery":{"id":"v5/pre-upgrade/delivery","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u671f\u6b0a\u4ea4\u5272\u7d00\u9304","description":"\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684\u671f\u6b0a\u7684\u4ea4\u5272\u7d00\u9304, \u8fd4\u56de\u7d50\u679c\u6309\u7167deliveryTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/pre-upgrade/execution":{"id":"v5/pre-upgrade/execution","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u6210\u4ea4\u7d00\u9304","description":"\u652f\u6301\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDT\u6c38\u7e8c, USDC\u6c38\u7e8c, \u53cd\u5411\u5408\u7d04, \u73fe\u8ca8\u548c\u671f\u6b0a, \u8fd4\u56de\u7d50\u679c\u6309execTime\u964d\u5e8f\u6392\u5217","sidebar":"v5SideBar"},"v5/pre-upgrade/order-list":{"id":"v5/pre-upgrade/order-list","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u8a02\u55ae\u7d00\u9304","description":"\u652f\u6301\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDT\u6c38\u7e8c, USDC\u6c38\u7e8c, \u53cd\u5411\u5408\u7d04, \u73fe\u8ca8\u548c\u671f\u6b0a","sidebar":"v5SideBar"},"v5/pre-upgrade/settlement":{"id":"v5/pre-upgrade/settlement","title":"\u67e5\u8a62\u5347\u7d1a\u524dUSDC\u7d50\u7b97\u7d00\u9304","description":"\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524d\u767c\u751f\u7684USDC\u6c38\u7e8c\u7684\u7d50\u7b97\u7d00\u9304","sidebar":"v5SideBar"},"v5/pre-upgrade/transaction-log":{"id":"v5/pre-upgrade/transaction-log","title":"\u67e5\u8a62\u5347\u7d1a\u524d\u4ea4\u6613\u65e5\u8a8c","description":"\u67e5\u8a62\u5347\u7d1a\u5230\u7d71\u4e00\u5e33\u6236\u4e4b\u524dUSDC\u5408\u7d04\u5e33\u6236\u88e1\u7684\u4ea4\u6613\u65e5\u8a8c","sidebar":"v5SideBar"},"v5/rate-limit":{"id":"v5/rate-limit","title":"\u983b\u7387\u9650\u5236","description":"IP\u9650\u983b","sidebar":"v5SideBar"},"v5/smp":{"id":"v5/smp","title":"\u81ea\u6210\u4ea4\u6514\u622a","description":"\u4ec0\u9ebc\u662f\u81ea\u6210\u4ea4\uff1f","sidebar":"v5SideBar"},"v5/spot-margin-normal/account-info":{"id":"v5/spot-margin-normal/account-info","title":"\u67e5\u8a62\u501f\u8cb8\u5e33\u6236\u4fe1\u606f","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/borrow":{"id":"v5/spot-margin-normal/borrow","title":"\u501f\u6b3e","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/borrow-order":{"id":"v5/spot-margin-normal/borrow-order","title":"\u67e5\u8a62\u501f\u8cb8\u8a02\u55ae","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/borrowable-data":{"id":"v5/spot-margin-normal/borrowable-data","title":"\u67e5\u8a62\u53ef\u501f\u5e63\u7a2e\u7cbe\u5ea6","description":"\u4e0d\u9700\u8981\u9452\u6b0a"},"v5/spot-margin-normal/interest-quota":{"id":"v5/spot-margin-normal/interest-quota","title":"\u67e5\u8a62\u5229\u7387\u53ca\u984d\u5ea6","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/margin-data":{"id":"v5/spot-margin-normal/margin-data","title":"\u67e5\u8a62\u4fdd\u8b49\u91d1\u5e63\u7a2e\u4fe1\u606f","description":"\u4e0d\u9700\u8981\u9452\u6b0a"},"v5/spot-margin-normal/repay":{"id":"v5/spot-margin-normal/repay","title":"\u9084\u6b3e","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/repay-order":{"id":"v5/spot-margin-normal/repay-order","title":"\u67e5\u8a62\u9084\u6b3e\u8a02\u55ae\u4fe1\u606f","description":"\u8986\u84cb\u7bc4\u570d: \u5168\u5009\u69d3\u687f (\u7d93\u5178\u5e33\u6236)"},"v5/spot-margin-normal/switch-mode":{"id":"v5/spot-margin-normal/switch-mode","title":"\u5168\u5009\u69d3\u687f\u958b\u95dc","description":"\u958b\u555f\u6216\u95dc\u9589\u5168\u5009\u69d3\u687f\u4ea4\u6613"},"v5/spot-margin-normal/vip-margin":{"id":"v5/spot-margin-normal/vip-margin","title":"\u67e5\u8a62\u4e0d\u540cVIP\u7684\u69d3\u687f\u6578\u64da","description":"\u67e5\u8a62\u7d93\u5178\u5e33\u6236\u4e0b\u4e0d\u540cVIP\u7b49\u7d1a\u7684\u69d3\u687f\u6578\u64da"},"v5/spot-margin-uta/historical-interest":{"id":"v5/spot-margin-uta/historical-interest","title":"\u67e5\u8a62\u501f\u8cb8\u6b77\u53f2\u5229\u7387","description":"\u60a8\u53ef\u4ee5\u67e5\u8a62\u6700\u591a\u904e\u53bb6\u500b\u6708\u7684\u501f\u8cb8\u5229\u7387\u6578\u64da","sidebar":"v5SideBar"},"v5/spot-margin-uta/set-leverage":{"id":"v5/spot-margin-uta/set-leverage","title":"\u5168\u5009\u69d3\u687f\u8a2d\u7f6e","description":"\u5168\u5009\u69d3\u687f\u8a2d\u7f6e\u7528\u6236\u6700\u5927\u69d3\u687f\u500d\u6578","sidebar":"v5SideBar"},"v5/spot-margin-uta/status":{"id":"v5/spot-margin-uta/status","title":"\u67e5\u8a62\u958b\u95dc\u72c0\u614b\u548c\u500d\u6578","description":"\u67e5\u8a62\u7d71\u4e00\u5e33\u6236\u4e0b\u69d3\u687f\u4ea4\u6613\u7684\u958b\u95dc\u72c0\u614b\u548c\u69d3\u687f\u500d\u6578","sidebar":"v5SideBar"},"v5/spot-margin-uta/switch-mode":{"id":"v5/spot-margin-uta/switch-mode","title":"\u5168\u5009\u69d3\u687f\u958b\u95dc","description":"\u5168\u5009\u69d3\u687f\u958b\u95dc","sidebar":"v5SideBar"},"v5/spot-margin-uta/vip-margin":{"id":"v5/spot-margin-uta/vip-margin","title":"\u67e5\u8a62\u4e0d\u540cVIP\u7684\u69d3\u687f\u6578\u64da","description":"\u67e5\u8a62\u7d71\u4e00\u5e33\u6236\u4e0b\u4e0d\u540cVIP\u7b49\u7d1a\u7684\u69d3\u687f\u6578\u64da","sidebar":"v5SideBar"},"v5/user/affiliate-info":{"id":"v5/user/affiliate-info","title":"\u67e5\u8a62\u4ee3\u7406\u7528\u6236\u4fe1\u606f","description":"\u8981\u4f7f\u7528\u6b64\u63a5\u53e3\uff0c\u60a8\u5e94\u8be5\u6709\u4e00\u4e2a\u4ee3\u7406\u5546\u8d26\u6237\uff0c\u5e76\u4e14\u5728\u521b\u5efa API \u5bc6\u94a5\u65f6\u4ec5\u52fe\u9009\u201c\u4ee3\u7406\u5546\u201d\u6743\u9650\u3002","sidebar":"v5SideBar"},"v5/user/apikey-info":{"id":"v5/user/apikey-info","title":"\u67e5\u8a62API Key\u76f8\u95dc\u4fe1\u606f","description":"\u7372\u53d6API key\u7684\u76f8\u95dc\u4fe1\u606f\u3002\u4f7f\u7528\u5f85\u67e5\u8a62\u7684api key\u8abf\u7528\u63a5\u53e3\u3002\u9069\u7528\u65bc\u6bcd\u3001\u5b50\u5e33\u6236\u7684api key\u3002","sidebar":"v5SideBar"},"v5/user/create-subuid":{"id":"v5/user/create-subuid","title":"\u65b0\u5efa\u5b50\u5e33\u6236","description":"\u5275\u5efa\u65b0\u7684\u5b50\u5e33\u6236\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/create-subuid-apikey":{"id":"v5/user/create-subuid-apikey","title":"\u65b0\u5efa\u5b50\u5e33\u6236\u7684API Key","description":"\u7d66\u65b0\u5efa\u597d\u7684\u5b50\u5e33\u6236\u5275\u5efa\u65b0\u7684API key\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/froze-subuid":{"id":"v5/user/froze-subuid","title":"\u51cd\u7d50/\u89e3\u51cd\u5b50\u5e33\u6236","description":"\u51cd\u7d50\u6216\u89e3\u51cd\u5b50\u5e33\u6236\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/list-sub-apikeys":{"id":"v5/user/list-sub-apikeys","title":"\u67e5\u8a62\u5b50\u5e33\u6236\u7684\u6240\u6709API Key\u4fe1\u606f","description":"\u67e5\u8a62\u67d0\u500b\u5b50\u5e33\u6236\u4e0b\u6240\u6709\u7684api key","sidebar":"v5SideBar"},"v5/user/modify-master-apikey":{"id":"v5/user/modify-master-apikey","title":"\u4fee\u6539\u6bcd\u5e33\u6236\u7684API Key\u8a2d\u7f6e","description":"\u4fee\u6539\u6bcd\u5e33\u6236API key\u7684\u8a2d\u7f6e\u3002\u4f7f\u7528\u5f85\u4fee\u6539\u7684api key\u8abf\u7528\u63a5\u53e3\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/modify-sub-apikey":{"id":"v5/user/modify-sub-apikey","title":"\u4fee\u6539\u5b50\u5e33\u6236\u7684API Key\u8a2d\u7f6e","description":"\u4fee\u6539\u5b50\u5e33\u6236API key\u7684\u8a2d\u7f6e, \u652f\u6301\u6bcd\u5e33\u6236\u7ba1\u7406\u5b50\u5e33\u6236key\u7684\u8a2d\u7f6e, \u6216\u8005\u5b50\u5e33\u6236key\u76f4\u63a5\u4fee\u6539\u672c\u8eab\u3002","sidebar":"v5SideBar"},"v5/user/page-subuid":{"id":"v5/user/page-subuid","title":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u7121\u9650\u5236)","description":"\u901a\u904e\u7ffb\u9801\u7372\u53d6\u7576\u524d\u6bcd\u5e33\u6236\u4e0b\u6240\u6709\u7684\u5b50\u5e33\u6236\u5217\u8868\uff0c\u9069\u5408\u8d85\u904e\u64c1\u67091\u842c\u500b\u5b50\u5e33\u6236\u7684\u6bcd\u5e33\u6236\u9032\u884c\u8abf\u7528\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/rm-master-apikey":{"id":"v5/user/rm-master-apikey","title":"\u522a\u9664\u6bcd\u5e33\u6236\u7684API Key","description":"\u522a\u9664\u6bcd\u5e33\u6236\u4e0b\u7684api key\u3002\u4f7f\u7528\u5f85\u522a\u9664\u7684api key\u8abf\u7528\u63a5\u53e3\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/rm-sub-apikey":{"id":"v5/user/rm-sub-apikey","title":"\u522a\u9664\u5b50\u5e33\u6236\u4e0b\u7684API Key","description":"\u522a\u9664\u5b50\u5e33\u6236\u4e0b\u7684api key\u3002\u4f7f\u7528\u5f85\u522a\u9664\u7684\u5b50\u5e33\u6236api key\u8abf\u7528\u63a5\u53e3\u6216\u8005\u4f7f\u7528\u6bcd\u5e33\u6236\u8abf\u7528\u522a\u9664\u6307\u5b9aapi key","sidebar":"v5SideBar"},"v5/user/rm-subuid":{"id":"v5/user/rm-subuid","title":"\u522a\u9664\u5b50\u5e33\u6236","description":"\u522a\u9664\u5b50\u5e33\u6236. \u5728\u522a\u9664\u524d, \u78ba\u4fdd\u8a72\u5e33\u6236\u5df2\u7d93\u6c92\u6709\u8cc7\u7522\u4e86","sidebar":"v5SideBar"},"v5/user/subuid-list":{"id":"v5/user/subuid-list","title":"\u67e5\u8a62\u5b50\u5e33\u6236UID\u5217\u8868 (\u9650\u5236)","description":"\u6700\u591a\u8fd4\u56de10000\u500b\u5b50\u5e33\u6236, \u9069\u5408\u5c11\u65bc1\u842c\u500b\u5b50\u5e33\u6236\u7684\u6bcd\u5e33\u6236\u8abf\u7528\u3002\u9700\u4f7f\u7528\u6bcd\u5e33\u6236\u7684API key\u3002","sidebar":"v5SideBar"},"v5/user/wallet-type":{"id":"v5/user/wallet-type","title":"\u67e5\u8a62\u5e33\u6236\u652f\u6301\u7684\u9322\u5305\u985e\u578b","description":"\u67e5\u8a62\u6bcd\u5e33\u6236\u6216\u8005\u5b50\u5e33\u6236\u4e0b\u652f\u6301\u7684\u9322\u5305\u985e\u578b","sidebar":"v5SideBar"},"v5/websocket/private/dcp":{"id":"v5/websocket/private/dcp","title":"\u65b7\u7dda\u4fdd\u8b77 (\u671f\u6b0a)","description":"\u901a\u904e\u8a02\u95b1DCP\u6d41\u4f86\u89f8\u767c\u529f\u80fd","sidebar":"v5SideBar"},"v5/websocket/private/execution":{"id":"v5/websocket/private/execution","title":"\u500b\u4eba\u6210\u4ea4","description":"\u8a02\u95b1\u500b\u4eba\u6210\u4ea4\u7684\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/fast-execution":{"id":"v5/websocket/private/fast-execution","title":"\u500b\u4eba\u6210\u4ea4 (Fast)","description":"\u7cbe\u7c21\u7248\u672c\u7684\u500b\u4eba\u6210\u4ea4\u63a8\u9001, \u76f8\u6bd4\u539f\u59cb\u7684\u5feb\u901f\u6210\u4ea4\u6d41, \u5ef6\u9072\u66f4\u52a0\u4f4e","sidebar":"v5SideBar"},"v5/websocket/private/greek":{"id":"v5/websocket/private/greek","title":"\u7528\u6236\u5e0c\u81d8\u5b57\u6bcd\u4fe1\u606f (\u671f\u6b0a)","description":"\u8a02\u95b1\u7528\u6236\u5e0c\u81d8\u5b57\u6bcd\u6578\u64da\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/order":{"id":"v5/websocket/private/order","title":"\u8a02\u55ae","description":"\u8a02\u95b1\u8a02\u55ae\u6578\u64da\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/position":{"id":"v5/websocket/private/position","title":"\u6301\u5009","description":"\u8a02\u95b1\u6301\u5009\u6578\u64da\u7684\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/private/wallet":{"id":"v5/websocket/private/wallet","title":"\u9322\u5305","description":"\u8a02\u95b1\u9322\u5305\u6578\u64da\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/public/etp-kline":{"id":"v5/websocket/public/etp-kline","title":"ETP\u6de8\u503cK\u7dda","description":"\u8a02\u95b1\u69d3\u687f\u4ee3\u5e63\u7684\u6de8\u503cK\u7dda\u884c\u60c5\u63a8\u9001\u670d\u52d9","sidebar":"v5SideBar"},"v5/websocket/public/etp-nav":{"id":"v5/websocket/public/etp-nav","title":"ETP\u6700\u65b0\u6de8\u503c\u63a8\u9001","description":"\u8a02\u95b1\u69d3\u687f\u4ee3\u5e63\u7684\u6700\u65b0\u6de8\u503c\u884c\u60c5\u6578\u64da","sidebar":"v5SideBar"},"v5/websocket/public/etp-ticker":{"id":"v5/websocket/public/etp-ticker","title":"ETP\u6de8\u503c\u884c\u60c5\u63a8\u9001","description":"\u8a02\u95b1\u69d3\u687f\u4ee3\u5e63\u6de8\u503c\u884c\u60c5\u6578\u64da","sidebar":"v5SideBar"},"v5/websocket/public/kline":{"id":"v5/websocket/public/kline","title":"K\u7dda","description":"\u8a02\u95b1K\u7dda\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/public/liquidation":{"id":"v5/websocket/public/liquidation","title":"\u5f37\u5e73\u63a8\u9001","description":"\u8a02\u95b1Bybit\u5e73\u53f0\u4e0a\u7684\u5f37\u5e73\u63a8\u9001, symbol\u7ef4\u5ea6\u6700\u591a1\u79d2\u63a8\u4e00\u6761\u7206\u4ed3\u6570\u636e","sidebar":"v5SideBar"},"v5/websocket/public/orderbook":{"id":"v5/websocket/public/orderbook","title":"\u6df1\u5ea6","description":"\u8a02\u95b1\u4e0d\u540c\u6df1\u5ea6\u7684\u63a8\u9001","sidebar":"v5SideBar"},"v5/websocket/public/ticker":{"id":"v5/websocket/public/ticker","title":"\u884c\u60c5","description":"\u8a02\u95b1\u884c\u60c5\u6578\u64da\u63a8\u9001.","sidebar":"v5SideBar"},"v5/websocket/public/trade":{"id":"v5/websocket/public/trade","title":"\u5e73\u53f0\u6210\u4ea4","description":"\u8a02\u95b1Bybit\u5e73\u53f0\u4e0a\u6700\u8fd1\u6210\u4ea4\u7684\u63a8\u9001.","sidebar":"v5SideBar"},"v5/websocket/trade/guideline":{"id":"v5/websocket/trade/guideline","title":"Websocket\u4e0b\u55ae\u6307\u5357","description":"\u8def\u5f91","sidebar":"v5SideBar"},"v5/websocket/wss-authentication":{"id":"v5/websocket/wss-authentication","title":"\u8a02\u95b1WebSocket","description":"WebSocket\u516c\u5171\u983b\u9053:","sidebar":"v5SideBar"}}}')}}]); \ No newline at end of file diff --git a/zh-TW/assets/js/955e06fd.87246275.js b/zh-TW/assets/js/955e06fd.87246275.js new file mode 100644 index 0000000000..4c9093fcff --- /dev/null +++ b/zh-TW/assets/js/955e06fd.87246275.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[3088],{3905:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>u});var r=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},c=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),c=s(n),u=a,g=c["".concat(p,".").concat(u)]||c[u]||m[u]||l;return n?r.createElement(g,i(i({ref:t},d),{},{components:n})):r.createElement(g,i({ref:t},d))}));function u(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,i=new Array(l);i[0]=c;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o.mdxType="string"==typeof e?e:a,i[1]=o;for(var s=2;s{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>k,frontMatter:()=>l,metadata:()=>o,toc:()=>s});var r=n(87462),a=(n(67294),n(3905));const l={title:"\u8a2d\u7f6e\u69d3\u687f",sidebar_label:"\u8a2d\u7f6e\u69d3\u687f",sidebar_position:2},i=void 0,o={unversionedId:"v5/position/leverage",id:"v5/position/leverage",title:"\u8a2d\u7f6e\u69d3\u687f",description:"\u6839\u64da\u98a8\u96aa\u9650\u984d, \u69d3\u687f\u5f71\u97ff\u6700\u5927\u53ef\u958b\u6578\u91cf, \u5373\u69d3\u687f\u8d8a\u5927, \u6700\u5927\u53ef\u958b\u5009\u6578\u91cf\u8d8a\u5c0f, \u53cd\u4e4b\u4ea6\u7136\u3002\u4e86\u89e3\u66f4\u591a",source:"@site/i18n/zh-TW/docusaurus-plugin-content-docs/current/v5/position/leverage.mdx",sourceDirName:"v5/position",slug:"/v5/position/leverage",permalink:"/docs/zh-TW/v5/position/leverage",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"\u8a2d\u7f6e\u69d3\u687f",sidebar_label:"\u8a2d\u7f6e\u69d3\u687f",sidebar_position:2},sidebar:"v5SideBar",previous:{title:"\u67e5\u8a62\u6301\u5009 (\u5be6\u6642)",permalink:"/docs/zh-TW/v5/position/"},next:{title:"\u5207\u63db\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1(\u4ea4\u6613\u5c0d)",permalink:"/docs/zh-TW/v5/position/cross-isolate"}},p={},s=[{value:"HTTP \u8acb\u6c42",id:"http-\u8acb\u6c42",level:3},{value:"\u8acb\u6c42\u53c3\u6578",id:"\u8acb\u6c42\u53c3\u6578",level:3},{value:"\u97ff\u61c9\u53c3\u6578",id:"\u97ff\u61c9\u53c3\u6578",level:3},{value:"\u8acb\u6c42\u793a\u4f8b",id:"\u8acb\u6c42\u793a\u4f8b",level:3},{value:"\u97ff\u61c9\u793a\u4f8b",id:"\u97ff\u61c9\u793a\u4f8b",level:3}],d=e=>function(t){return console.warn("Component "+e+" was not imported, exported, or provided by MDXProvider as global scope"),(0,a.kt)("div",t)},m=d("Button"),c=d("Tabs"),u=d("TabItem"),g={toc:s};function k(e){let{components:t,...n}=e;return(0,a.kt)("wrapper",(0,r.Z)({},g,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("admonition",{type:"info"},(0,a.kt)("p",{parentName:"admonition"},"\u6839\u64da\u98a8\u96aa\u9650\u984d, \u69d3\u687f\u5f71\u97ff\u6700\u5927\u53ef\u958b\u6578\u91cf, \u5373\u69d3\u687f\u8d8a\u5927, \u6700\u5927\u53ef\u958b\u5009\u6578\u91cf\u8d8a\u5c0f, \u53cd\u4e4b\u4ea6\u7136\u3002",(0,a.kt)("a",{parentName:"p",href:"https://www.bybit.com/zh-MY/help-center/article/Risk-Limit-Perpetual-and-FuturesBybit_Perpetual_Contract_mechanism"},"\u4e86\u89e3\u66f4\u591a"))),(0,a.kt)("h3",{id:"http-\u8acb\u6c42"},"HTTP \u8acb\u6c42"),(0,a.kt)("p",null,"POST ",(0,a.kt)("inlineCode",{parentName:"p"},"/v5/position/set-leverage")),(0,a.kt)("h3",{id:"\u8acb\u6c42\u53c3\u6578"},"\u8acb\u6c42\u53c3\u6578"),(0,a.kt)("table",null,(0,a.kt)("thead",{parentName:"table"},(0,a.kt)("tr",{parentName:"thead"},(0,a.kt)("th",{parentName:"tr",align:"left"},"\u53c3\u6578"),(0,a.kt)("th",{parentName:"tr",align:"left"},"\u662f\u5426\u5fc5\u9700"),(0,a.kt)("th",{parentName:"tr",align:"left"},"\u985e\u578b"),(0,a.kt)("th",{parentName:"tr",align:null},"\u8aaa\u660e"))),(0,a.kt)("tbody",{parentName:"table"},(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("a",{parentName:"td",href:"../enum#category"},"category")),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"\u7522\u54c1\u985e\u578b ",(0,a.kt)("ul",null,(0,a.kt)("li",null,(0,a.kt)("a",{parentName:"td",href:"/v5/acct-mode#%E7%B5%B1%E4%B8%80%E5%B8%B3%E6%88%B620"},"\u7d71\u4e00\u5e33\u62362.0"),", ",(0,a.kt)("a",{parentName:"td",href:"../acct-mode#%E7%B5%B1%E4%B8%80%E5%B8%B3%E6%88%B610"},"\u7d71\u4e00\u5e33\u62361.0"),": ",(0,a.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,a.kt)("inlineCode",{parentName:"td"},"inverse")),(0,a.kt)("li",null,"\u7d93\u5178\u5e33\u6236: ",(0,a.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,a.kt)("inlineCode",{parentName:"td"},"inverse"))))),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"symbol"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"\u5408\u7d04\u540d\u7a31")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"buyLeverage"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"[",(0,a.kt)("inlineCode",{parentName:"td"},"1"),", \u6700\u5927\u69d3\u687f\u6578]"," ",(0,a.kt)("ul",null,(0,a.kt)("li",null,"\u55ae\u5009\u6a21\u5f0f: \u7d93\u5178\u5e33\u6236\u548c\u7d71\u4e00\u5e33\u6236\u7684",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage")," \u5fc5\u9808\u7b49\u65bc",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage")),(0,a.kt)("li",null,"\u96d9\u5009\u6a21\u5f0f: ",(0,a.kt)("br",null),"\u7d93\u5178\u5e33\u6236\u548c\u7d71\u4e00\u5e33\u6236(\u9010\u5009\u6a21\u5f0f)",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage"),"\u53ef\u4ee5\u8207",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage"),"\u4e0d\u60f3\u7b49; ",(0,a.kt)("br",null),"\u7d71\u4e00\u5e33\u6236(\u5168\u5009\u6a21\u5f0f)\u7684",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage")," \u5fc5\u9808\u7b49\u65bc",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage"))))),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"sellLeverage"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"[",(0,a.kt)("inlineCode",{parentName:"td"},"1"),", \u6700\u5927\u69d3\u687f\u6578]")))),(0,a.kt)("a",{href:"/api-explorer/v5/position/leverage"},(0,a.kt)(m,{mdxType:"Button"},"\u904b\u884c\u5be6\u4f8b >>")),(0,a.kt)("hr",null),(0,a.kt)("h3",{id:"\u97ff\u61c9\u53c3\u6578"},"\u97ff\u61c9\u53c3\u6578"),(0,a.kt)("p",null,"\u7121"),(0,a.kt)("h3",{id:"\u8acb\u6c42\u793a\u4f8b"},"\u8acb\u6c42\u793a\u4f8b"),(0,a.kt)(c,{groupId:"programming-languages",mdxType:"Tabs"},(0,a.kt)(u,{value:"http",label:"HTTP",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-http"},'POST /v5/position/set-leverage HTTP/1.1\nHost: api-testnet.bybit.com\nX-BAPI-SIGN: XXXXX\nX-BAPI-API-KEY: XXXXX\nX-BAPI-TIMESTAMP: 1672281605082\nX-BAPI-RECV-WINDOW: 5000\nContent-Type: application/json\n\n{\n "category": "linear",\n "symbol": "BTCUSDT",\n "buyLeverage": "6",\n "sellLeverage": "6"\n\n}\n'))),(0,a.kt)(u,{value:"python",label:"Python",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-python"},'from pybit.unified_trading import HTTP\nsession = HTTP(\n testnet=True,\n api_key="XXXXX",\n api_secret="XXXXX",\n)\nprint(session.set_leverage(\n category="linear",\n symbol="BTCUSDT",\n buyLeverage="6",\n sellLeverage="6",\n))\n'))),(0,a.kt)(u,{value:"java",label:"Java",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-java"},'import com.bybit.api.client.domain.*;\nimport com.bybit.api.client.domain.position.*;\nimport com.bybit.api.client.domain.position.request.*;\nimport com.bybit.api.client.service.BybitApiClientFactory;\nvar client = BybitApiClientFactory.newInstance().newAsyncPositionRestClient();\nvar setLeverageRequest = PositionDataRequest.builder().category(CategoryType.LINEAR).symbol("BTCUSDT").buyLeverage("5").sellLeverage("5").build();\nclient.setPositionLeverage(setLeverageRequest, System.out::println);\n'))),(0,a.kt)(u,{value:"Node",label:"Node.js",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-n4js"},"const { RestClientV5 } = require('bybit-api');\n\nconst client = new RestClientV5({\n testnet: true,\n key: 'apikey',\n secret: 'apisecret',\n});\n\nclient\n .setLeverage({\n category: 'linear',\n symbol: 'BTCUSDT',\n buyLeverage: '6',\n sellLeverage: '6',\n })\n .then((response) => {\n console.log(response);\n })\n .catch((error) => {\n console.error(error);\n });\n")))),(0,a.kt)("h3",{id:"\u97ff\u61c9\u793a\u4f8b"},"\u97ff\u61c9\u793a\u4f8b"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-json"},'{\n "retCode": 0,\n "retMsg": "OK",\n "result": {},\n "retExtInfo": {},\n "time": 1672281607343\n}\n')))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/zh-TW/assets/js/955e06fd.efcf7fbc.js b/zh-TW/assets/js/955e06fd.efcf7fbc.js deleted file mode 100644 index 5a07dbdb25..0000000000 --- a/zh-TW/assets/js/955e06fd.efcf7fbc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocusaurus_docs=self.webpackChunkdocusaurus_docs||[]).push([[3088],{3905:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>c});var r=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),u=s(n),c=a,g=u["".concat(p,".").concat(c)]||u[c]||m[c]||l;return n?r.createElement(g,i(i({ref:t},d),{},{components:n})):r.createElement(g,i({ref:t},d))}));function c(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,i=new Array(l);i[0]=u;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o.mdxType="string"==typeof e?e:a,i[1]=o;for(var s=2;s{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>k,frontMatter:()=>l,metadata:()=>o,toc:()=>s});var r=n(87462),a=(n(67294),n(3905));const l={title:"\u8a2d\u7f6e\u69d3\u687f",sidebar_label:"\u8a2d\u7f6e\u69d3\u687f",sidebar_position:2},i=void 0,o={unversionedId:"v5/position/leverage",id:"v5/position/leverage",title:"\u8a2d\u7f6e\u69d3\u687f",description:"HTTP \u8acb\u6c42",source:"@site/i18n/zh-TW/docusaurus-plugin-content-docs/current/v5/position/leverage.mdx",sourceDirName:"v5/position",slug:"/v5/position/leverage",permalink:"/docs/zh-TW/v5/position/leverage",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"\u8a2d\u7f6e\u69d3\u687f",sidebar_label:"\u8a2d\u7f6e\u69d3\u687f",sidebar_position:2},sidebar:"v5SideBar",previous:{title:"\u67e5\u8a62\u6301\u5009 (\u5be6\u6642)",permalink:"/docs/zh-TW/v5/position/"},next:{title:"\u5207\u63db\u5168\u5009/\u9010\u5009\u4fdd\u8b49\u91d1(\u4ea4\u6613\u5c0d)",permalink:"/docs/zh-TW/v5/position/cross-isolate"}},p={},s=[{value:"HTTP \u8acb\u6c42",id:"http-\u8acb\u6c42",level:3},{value:"\u8acb\u6c42\u53c3\u6578",id:"\u8acb\u6c42\u53c3\u6578",level:3},{value:"\u97ff\u61c9\u53c3\u6578",id:"\u97ff\u61c9\u53c3\u6578",level:3},{value:"\u8acb\u6c42\u793a\u4f8b",id:"\u8acb\u6c42\u793a\u4f8b",level:3},{value:"\u97ff\u61c9\u793a\u4f8b",id:"\u97ff\u61c9\u793a\u4f8b",level:3}],d=e=>function(t){return console.warn("Component "+e+" was not imported, exported, or provided by MDXProvider as global scope"),(0,a.kt)("div",t)},m=d("Button"),u=d("Tabs"),c=d("TabItem"),g={toc:s};function k(e){let{components:t,...n}=e;return(0,a.kt)("wrapper",(0,r.Z)({},g,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h3",{id:"http-\u8acb\u6c42"},"HTTP \u8acb\u6c42"),(0,a.kt)("p",null,"POST ",(0,a.kt)("inlineCode",{parentName:"p"},"/v5/position/set-leverage")),(0,a.kt)("h3",{id:"\u8acb\u6c42\u53c3\u6578"},"\u8acb\u6c42\u53c3\u6578"),(0,a.kt)("table",null,(0,a.kt)("thead",{parentName:"table"},(0,a.kt)("tr",{parentName:"thead"},(0,a.kt)("th",{parentName:"tr",align:"left"},"\u53c3\u6578"),(0,a.kt)("th",{parentName:"tr",align:"left"},"\u662f\u5426\u5fc5\u9700"),(0,a.kt)("th",{parentName:"tr",align:"left"},"\u985e\u578b"),(0,a.kt)("th",{parentName:"tr",align:null},"\u8aaa\u660e"))),(0,a.kt)("tbody",{parentName:"table"},(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("a",{parentName:"td",href:"../enum#category"},"category")),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"\u7522\u54c1\u985e\u578b ",(0,a.kt)("ul",null,(0,a.kt)("li",null,(0,a.kt)("a",{parentName:"td",href:"/v5/acct-mode#%E7%B5%B1%E4%B8%80%E5%B8%B3%E6%88%B620"},"\u7d71\u4e00\u5e33\u62362.0"),", ",(0,a.kt)("a",{parentName:"td",href:"../acct-mode#%E7%B5%B1%E4%B8%80%E5%B8%B3%E6%88%B610"},"\u7d71\u4e00\u5e33\u62361.0"),": ",(0,a.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,a.kt)("inlineCode",{parentName:"td"},"inverse")),(0,a.kt)("li",null,"\u7d93\u5178\u5e33\u6236: ",(0,a.kt)("inlineCode",{parentName:"td"},"linear"),", ",(0,a.kt)("inlineCode",{parentName:"td"},"inverse"))))),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"symbol"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"\u5408\u7d04\u540d\u7a31")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"buyLeverage"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"[",(0,a.kt)("inlineCode",{parentName:"td"},"1"),", ",(0,a.kt)("a",{parentName:"td",href:"../market/risk-limit#"},"\u98a8\u96aa\u9650\u984d"),"\u5141\u8a31\u7684\u6700\u5927\u69d3\u687f\u6578] ",(0,a.kt)("ul",null,(0,a.kt)("li",null,"\u55ae\u5009\u6a21\u5f0f: \u7d93\u5178\u5e33\u6236\u548c\u7d71\u4e00\u5e33\u6236\u7684",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage")," \u5fc5\u9808\u7b49\u65bc",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage")),(0,a.kt)("li",null,"\u96d9\u5009\u6a21\u5f0f: ",(0,a.kt)("br",null),"\u7d93\u5178\u5e33\u6236\u548c\u7d71\u4e00\u5e33\u6236(\u9010\u5009\u6a21\u5f0f)",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage"),"\u53ef\u4ee5\u8207",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage"),"\u4e0d\u60f3\u7b49; ",(0,a.kt)("br",null),"\u7d71\u4e00\u5e33\u6236(\u5168\u5009\u6a21\u5f0f)\u7684",(0,a.kt)("inlineCode",{parentName:"td"},"buyLeverage")," \u5fc5\u9808\u7b49\u65bc",(0,a.kt)("inlineCode",{parentName:"td"},"sellLeverage"))))),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"left"},"sellLeverage"),(0,a.kt)("td",{parentName:"tr",align:"left"},(0,a.kt)("strong",{parentName:"td"},"true")),(0,a.kt)("td",{parentName:"tr",align:"left"},"string"),(0,a.kt)("td",{parentName:"tr",align:null},"[",(0,a.kt)("inlineCode",{parentName:"td"},"1"),", ",(0,a.kt)("a",{parentName:"td",href:"../market/risk-limit#"},"\u98a8\u96aa\u9650\u984d"),"\u5141\u8a31\u7684\u6700\u5927\u69d3\u687f\u6578]")))),(0,a.kt)("a",{href:"/api-explorer/v5/position/leverage"},(0,a.kt)(m,{mdxType:"Button"},"\u904b\u884c\u5be6\u4f8b >>")),(0,a.kt)("hr",null),(0,a.kt)("h3",{id:"\u97ff\u61c9\u53c3\u6578"},"\u97ff\u61c9\u53c3\u6578"),(0,a.kt)("p",null,"\u7121"),(0,a.kt)("h3",{id:"\u8acb\u6c42\u793a\u4f8b"},"\u8acb\u6c42\u793a\u4f8b"),(0,a.kt)(u,{groupId:"programming-languages",mdxType:"Tabs"},(0,a.kt)(c,{value:"http",label:"HTTP",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-http"},'POST /v5/position/set-leverage HTTP/1.1\nHost: api-testnet.bybit.com\nX-BAPI-SIGN: XXXXX\nX-BAPI-API-KEY: XXXXX\nX-BAPI-TIMESTAMP: 1672281605082\nX-BAPI-RECV-WINDOW: 5000\nContent-Type: application/json\n\n{\n "category": "linear",\n "symbol": "BTCUSDT",\n "buyLeverage": "6",\n "sellLeverage": "6"\n\n}\n'))),(0,a.kt)(c,{value:"python",label:"Python",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-python"},'from pybit.unified_trading import HTTP\nsession = HTTP(\n testnet=True,\n api_key="XXXXX",\n api_secret="XXXXX",\n)\nprint(session.set_leverage(\n category="linear",\n symbol="BTCUSDT",\n buyLeverage="6",\n sellLeverage="6",\n))\n'))),(0,a.kt)(c,{value:"java",label:"Java",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-java"},'import com.bybit.api.client.domain.*;\nimport com.bybit.api.client.domain.position.*;\nimport com.bybit.api.client.domain.position.request.*;\nimport com.bybit.api.client.service.BybitApiClientFactory;\nvar client = BybitApiClientFactory.newInstance().newAsyncPositionRestClient();\nvar setLeverageRequest = PositionDataRequest.builder().category(CategoryType.LINEAR).symbol("BTCUSDT").buyLeverage("5").sellLeverage("5").build();\nclient.setPositionLeverage(setLeverageRequest, System.out::println);\n'))),(0,a.kt)(c,{value:"Node",label:"Node.js",mdxType:"TabItem"},(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-n4js"},"const { RestClientV5 } = require('bybit-api');\n\nconst client = new RestClientV5({\n testnet: true,\n key: 'apikey',\n secret: 'apisecret',\n});\n\nclient\n .setLeverage({\n category: 'linear',\n symbol: 'BTCUSDT',\n buyLeverage: '6',\n sellLeverage: '6',\n })\n .then((response) => {\n console.log(response);\n })\n .catch((error) => {\n console.error(error);\n });\n")))),(0,a.kt)("h3",{id:"\u97ff\u61c9\u793a\u4f8b"},"\u97ff\u61c9\u793a\u4f8b"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-json"},'{\n "retCode": 0,\n "retMsg": "OK",\n "result": {},\n "retExtInfo": {},\n "time": 1672281607343\n}\n')))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/zh-TW/assets/js/runtime~main.77adad0a.js b/zh-TW/assets/js/runtime~main.a7cc1ae4.js similarity index 99% rename from zh-TW/assets/js/runtime~main.77adad0a.js rename to zh-TW/assets/js/runtime~main.a7cc1ae4.js index 1d3028bf94..d9b281ec4d 100644 --- a/zh-TW/assets/js/runtime~main.77adad0a.js +++ b/zh-TW/assets/js/runtime~main.a7cc1ae4.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,c,b,d,f={},r={};function t(e){var a=r[e];if(void 0!==a)return a.exports;var c=r[e]={id:e,loaded:!1,exports:{}};return f[e].call(c.exports,c,c.exports,t),c.loaded=!0,c.exports}t.m=f,e=[],t.O=(a,c,b,d)=>{if(!c){var f=1/0;for(i=0;i=d)&&Object.keys(t.O).every((e=>t.O[e](c[o])))?c.splice(o--,1):(r=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[c,b,d]},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,b){if(1&b&&(e=this(e)),8&b)return e;if("object"==typeof e&&e){if(4&b&&e.__esModule)return e;if(16&b&&"function"==typeof e.then)return e}var d=Object.create(null);t.r(d);var f={};a=a||[null,c({}),c([]),c(c)];for(var r=2&b&&e;"object"==typeof r&&!~a.indexOf(r);r=c(r))Object.getOwnPropertyNames(r).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,t.d(d,f),d},t.d=(e,a)=>{for(var c in a)t.o(a,c)&&!t.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,c)=>(t.f[c](e,a),a)),[])),t.u=e=>"assets/js/"+({17:"5df371ad",53:"935f2afb",206:"4a9b1fdb",235:"a7d19085",293:"fa570740",321:"751792b8",367:"05a3c259",435:"a21e0433",520:"fb1a77b4",536:"17c91901",541:"816b2b7d",547:"3365bb5d",558:"93f8b8b5",561:"bc670d5c",601:"e5d84bc0",611:"fa114b0c",633:"b50c9021",693:"cfc8b1e5",701:"1ce0a301",838:"22bdf908",916:"e4459066",974:"11314fda",1003:"d0d62bb5",1013:"e8acd80e",1053:"7205acf7",1120:"7c3d9323",1147:"1a99b1ee",1218:"29cd8cc9",1250:"8758e270",1253:"970a27d6",1288:"ecc882d7",1304:"8d5fe6f9",1369:"2be8d75a",1386:"b1892b20",1404:"3e301362",1413:"6dfd8a52",1435:"fe2b089e",1493:"79022373",1525:"3b7cd1e1",1589:"169be1f8",1613:"27b935de",1626:"3394f7b8",1657:"8fbaa47b",1670:"6d8024b7",1723:"0328b0c9",1764:"8f25d185",1804:"dc8865c1",1832:"a8e44541",1854:"b45ff73d",1893:"4c5e977b",1916:"2a38ab5e",1928:"15113e52",1981:"c8450cf2",2008:"9e43e7b6",2050:"f54e89d1",2062:"988ba51e",2070:"7cb4903f",2074:"13063a10",2124:"19357a65",2190:"89f7284f",2201:"8ba34e88",2269:"a596dc7e",2355:"2f504c6e",2371:"47c64002",2446:"6870c8c4",2464:"8b8c4320",2465:"1955e4c9",2486:"de127d6b",2546:"cc24cbe6",2556:"5614add0",2573:"ce346131",2599:"8e648991",2631:"c46f1db0",2726:"748490a7",2745:"68843839",2751:"faa6790b",2781:"703f575d",2821:"dac58f9a",2885:"acdbee8e",2903:"84ee34f2",2944:"a4a7c88e",2946:"3b83c135",2954:"90305fb4",2982:"f041af6f",3e3:"cc7f3e03",3034:"41ed4202",3068:"c3d815ae",3085:"1f391b9e",3088:"955e06fd",3105:"6ac88df6",3198:"15df18f8",3263:"005fee41",3300:"655c39d2",3315:"7e111207",3337:"bef6aaf2",3387:"007a6c32",3389:"9041aea1",3404:"afdda5b6",3408:"fdf22a50",3443:"f47c1d11",3453:"37da3438",3469:"02a22b2b",3509:"786f71e5",3514:"cb382994",3519:"6f951ae3",3555:"3627f230",3587:"73567145",3634:"e0bec19d",3771:"8c02dfd8",3777:"b9aefb1a",3819:"fc1db29b",3861:"3e96b4b5",3882:"3a4337ef",3887:"10ca1dd8",3903:"5610cdb3",3912:"1bc94aef",3959:"2d0f081e",4010:"37cea19d",4030:"c5d3bb95",4089:"d9ffe17e",4188:"035fc0a7",4190:"84cf2087",4194:"4b3e38af",4195:"c4f5d8e4",4204:"269acb60",4209:"278665dc",4220:"3d5f5786",4243:"0744e06b",4298:"48db5030",4318:"b8d9b1bd",4319:"d0816b53",4337:"67eaa1b1",4346:"1db637b2",4400:"aacc2fee",4453:"fc15d889",4484:"3cd952ae",4533:"3abccbcc",4549:"788d9fe0",4603:"a67bdd24",4683:"25b7eef7",4685:"f5c87087",4697:"c54eca7f",4708:"23cc9db4",4736:"a5463d8a",4756:"9c643b6e",4758:"0a13a0e4",4807:"8a495097",4835:"64be7568",4841:"b49164a1",4900:"5787f6d3",4904:"c0ad5dc6",4907:"29f28a73",4947:"e9b84ed8",4962:"1c5f7d2b",4980:"ea7cec67",5034:"30a22249",5044:"17abfa8d",5062:"add4d791",5063:"cf69f832",5064:"4840c3eb",5114:"ee7f03d8",5185:"e1b9cf16",5188:"b42420f8",5212:"19b0499c",5253:"1bcb7f60",5260:"9e4d6f26",5365:"b82d00b2",5368:"cc468388",5369:"c15b67f7",5370:"af4a2ad4",5382:"632d2515",5461:"308641fb",5480:"006095b2",5647:"2b3e7a7f",5690:"f4bc196f",5694:"db0d392c",5708:"41eb0037",5760:"31e78686",5772:"b568538e",5787:"c4ae09d4",5841:"0c0bbaea",5858:"1290c878",5882:"6aa5826c",5897:"6b3775fc",5943:"bc53881b",5945:"79aa13fb",5953:"b700f6c8",5954:"b9776525",5957:"e4627c87",5968:"156751cf",5975:"1bab1317",6021:"a42811bf",6025:"c3aed80f",6052:"8aab06bf",6072:"26183636",6078:"7596b09e",6158:"d2de2978",6175:"567ff302",6206:"90c3ec62",6276:"8aadacf1",6294:"db229a81",6364:"281b126c",6370:"36f93d19",6374:"6135d371",6401:"fed0304a",6419:"80e8986a",6455:"e8c8f122",6467:"302d24dc",6542:"af2c52ce",6559:"93b78259",6586:"8c3021dd",6615:"b4f4317d",6649:"a19cf377",6729:"e2cf295d",6764:"d8958d75",6917:"aff0b5cb",6963:"1b80e345",6979:"d005934a",7e3:"3326e4c4",7074:"6268d0ca",7079:"49a0e813",7133:"92e99bf6",7183:"a94c7dba",7184:"11b4dd89",7188:"5036ec9d",7234:"ae346411",7277:"72ceeaac",7287:"bde9fb45",7306:"aebe3827",7328:"6daf901a",7365:"18f77871",7396:"a9dd1cc8",7400:"b71c3bdc",7414:"393be207",7415:"5ea9e4ca",7422:"1cf37028",7446:"eaca4732",7482:"4a3e680b",7486:"dcc6b54d",7487:"a9bf2227",7573:"e3e4fe7d",7593:"50219e10",7607:"bbcd7673",7615:"84ebbbbf",7655:"40230f21",7744:"6ca8826f",7813:"8894256f",7882:"e88bed7b",7920:"1a4e3797",7929:"d56e3bd7",8016:"ffb2e417",8023:"2b20c80a",8026:"e63b451d",8035:"7fc2793f",8115:"d0e9a494",8122:"db9559d3",8135:"89179ad6",8145:"28e7e1e3",8179:"136658e4",8214:"9755f20c",8270:"5393ce94",8271:"f7eb3a66",8349:"3d3a07f6",8382:"1a77ceda",8387:"2be7eaec",8392:"8d4600d0",8424:"03edb22c",8436:"68408d35",8461:"917300a3",8471:"2bfafb22",8494:"e49348be",8499:"a88f137d",8509:"92ac5c16",8527:"4f9fd89c",8618:"88e3fe7e",8630:"68e9a632",8643:"9c28e0ab",8692:"67044a7a",8890:"d5603669",8897:"8a942fcc",8954:"b0bdb7f3",9010:"8c2621f5",9043:"9ad8637e",9066:"a4a7a840",9101:"e2c0c813",9131:"3b0223df",9140:"1d8ede30",9156:"ff6e33f8",9157:"9de65041",9213:"f6bb9d12",9220:"7114ac56",9229:"429a6f3e",9235:"fe793f9f",9346:"b8919bdb",9376:"6249c7de",9423:"1912069b",9438:"b5511831",9486:"e72cf26a",9514:"1be78505",9538:"4c950052",9549:"48e0b5d4",9626:"fd867f7c",9642:"0002f649",9681:"4d96b439",9728:"aa5bd2a7",9817:"14eb3368",9856:"e5c88a3e",9862:"d5ac6535",9865:"e8ee0390",9871:"b2f83e6d",9889:"f56b8973",9904:"f62a7bc0",9905:"e23eefc0",9987:"9ccbc3bf",9998:"b7cfb3da"}[e]||e)+"."+{17:"6a44c067",53:"31c47aad",206:"2b3ab739",235:"6de2442e",293:"102aa303",321:"7181899c",367:"e9491e15",435:"4e51295a",520:"c21570a5",536:"cdfdfc15",541:"07d874e0",547:"5d952f2b",558:"a350a2da",561:"aa8a2ae1",601:"6445dfa3",611:"d27fa819",633:"4d82752b",693:"af763711",701:"a871c5ee",838:"ab3c0c9b",916:"dc981a77",974:"238c34e9",1003:"6c54265f",1013:"c2967717",1053:"f40c1da5",1120:"87002862",1147:"f40b4430",1218:"6c9ea238",1250:"bbd055cc",1253:"ab316cae",1288:"cec758fd",1304:"03727876",1369:"2e3141cb",1386:"4ec65e31",1404:"b835b60b",1413:"8c1ee701",1435:"6134d820",1493:"477a0793",1525:"18df82d5",1589:"52a0d38a",1613:"0d279825",1626:"644fe3ae",1657:"bdf7d9df",1670:"5651db27",1723:"35d57399",1764:"1a6031d3",1804:"612d04c9",1814:"827f84be",1832:"7c3cb201",1854:"179edfb8",1893:"4a98b5fe",1916:"095bfc55",1928:"1e318c6e",1981:"0235bbea",2008:"35a6cff5",2050:"7b453b74",2062:"f362d196",2070:"d768de05",2074:"33b82fb9",2124:"7256acf1",2190:"fbdb2268",2201:"ad3df26d",2269:"d9bc34d9",2355:"ea0749a1",2371:"c301738e",2446:"3352fbb2",2464:"d8c16b3c",2465:"47e495c3",2486:"122e9ebd",2546:"b81c37ac",2556:"35a67841",2573:"fdb0f972",2599:"e8294b88",2631:"a6559ab0",2726:"809fb405",2745:"2ef9b5af",2751:"4b562ced",2761:"8e83ef1a",2781:"101def92",2821:"f2852f2c",2885:"85c473aa",2903:"200098ec",2944:"52a3f142",2946:"08f5993d",2954:"4c2f0b20",2982:"fc2f6a7b",3e3:"88109d73",3034:"af714bde",3068:"9fc747a4",3085:"6a026f2c",3088:"efcf7fbc",3105:"601b7df6",3198:"820839e3",3263:"6138e7d1",3300:"1f36e88e",3315:"27d25f8b",3337:"ccaaa6e1",3387:"6399e304",3389:"e8bf4d66",3404:"de1395fc",3408:"a94cfb69",3443:"8f0a6a45",3453:"dafbab47",3469:"a3460a71",3509:"447072e4",3514:"49bf9918",3519:"68962068",3555:"bc0bc70b",3587:"678c7a91",3634:"c9535bbc",3771:"e4323869",3777:"f4ca10ee",3819:"ed739f23",3861:"ca0ba830",3882:"a87c34ca",3887:"ae3b6c07",3903:"2737fbe7",3912:"e7bdfba7",3959:"e480a224",4010:"8730817b",4030:"741708a2",4089:"9649d6a1",4188:"a5a29e00",4190:"68e424c4",4194:"de01fc0f",4195:"80802ec2",4204:"8d1728bc",4209:"83b67bec",4220:"05c49722",4243:"e807a255",4298:"8468a43d",4318:"f61c6dc4",4319:"37a122dd",4337:"de37cd8b",4346:"b657f283",4400:"9c810d00",4453:"aa88cdd9",4484:"54b126d7",4533:"da649674",4549:"1476adf1",4603:"e86b02a4",4683:"680d73e5",4685:"2ec2495f",4697:"e29ff6ab",4708:"60d8072e",4736:"78588df0",4756:"80604e58",4758:"d843c3d4",4807:"9895e62d",4835:"ca276f11",4841:"f96743a8",4900:"0acebeba",4904:"e71859c8",4907:"27ca7bb8",4947:"f89dea5c",4962:"259d7bab",4972:"c1e0c51c",4980:"67e6230a",5034:"1156ace1",5044:"d5191e2c",5062:"0d8750a8",5063:"5e9bab1d",5064:"5915b6ba",5114:"de13de71",5185:"f7de6383",5188:"b718937b",5212:"e5fee610",5253:"b32727b5",5260:"5a148534",5365:"8ffe503b",5368:"4190c77b",5369:"aff1870e",5370:"8ced3b64",5382:"ee8e0d37",5461:"ae253497",5480:"f3c63b50",5647:"d57683fd",5690:"2e318253",5694:"2df06acc",5708:"4d909a37",5760:"9e965292",5772:"222e76a5",5787:"4117990d",5841:"4a671e32",5858:"d3289d07",5882:"98f0347e",5897:"9edbba21",5943:"156790f2",5945:"8c139b17",5953:"5577f2ae",5954:"9d838288",5957:"183c9ab4",5968:"649705d2",5975:"1aef5c92",6021:"82a2fc88",6025:"5fc61d42",6052:"cfa1adaa",6072:"a0fcc9c8",6078:"e0688d2c",6158:"1ac7cc9a",6175:"98d57bc6",6206:"9eeee933",6276:"92f485b3",6294:"44769b3c",6338:"a4b54b32",6364:"8b33223f",6370:"b5c4fcb1",6374:"4065cd5e",6401:"a10a5896",6419:"bac08e69",6455:"6028dea2",6467:"dc56f5f3",6542:"86d01d83",6559:"ae539dba",6586:"6be02598",6615:"cc6c4c07",6649:"b454df05",6729:"3f021c80",6764:"d731e7ff",6780:"72080071",6917:"754c9733",6945:"669d5d2e",6963:"2523902f",6979:"1319a932",7e3:"1232fbf5",7074:"ab0288ba",7079:"3d163610",7133:"ba38f454",7183:"717edb40",7184:"a41a7d3d",7188:"0d0ae66e",7234:"53a3c7be",7277:"c932b841",7287:"33744587",7306:"e2693958",7328:"58bd61ea",7365:"5a65897b",7396:"8198d5b0",7400:"31d47701",7414:"e3bdb183",7415:"a4a917a1",7422:"cef8b6f5",7446:"7ce1e505",7482:"865ec385",7486:"2f44cb45",7487:"d13c7182",7573:"97381c9b",7593:"ef61270d",7607:"f8ca21e0",7615:"961b05e0",7655:"11ab878c",7744:"c0155781",7813:"035889b6",7882:"37f0034b",7920:"a0fe2f07",7929:"0acd5e3a",8016:"032fbbea",8023:"7f3a787d",8026:"e976adbb",8035:"2813beaf",8115:"a11b8cd4",8122:"9fc7a378",8135:"8c794bb3",8145:"021e902c",8179:"350c6a2c",8214:"0d425578",8270:"bbaaedc8",8271:"847d3f19",8349:"33bf1dfc",8382:"b5c226a7",8387:"3ed66c39",8392:"95aff25c",8424:"72e015bc",8436:"b457f8de",8461:"592c936e",8471:"e5e85c42",8494:"8ffeb213",8499:"08c7ee33",8509:"fe065970",8527:"dcad5002",8618:"21d1771d",8630:"5b329cf0",8643:"3278ce08",8692:"dddabe25",8724:"b1c38f59",8890:"33b51708",8894:"9d414334",8897:"55229a33",8954:"5e832233",9010:"2dbd8f2d",9043:"358224ed",9066:"ddde5af7",9101:"cd8a1580",9131:"24b1b5bd",9140:"3fa78bb1",9156:"4c389b58",9157:"f39f5067",9213:"45233c01",9220:"c23b0646",9229:"ea2c2d96",9235:"0a35b0ed",9346:"224df495",9376:"fd8421e4",9423:"f9d63331",9438:"3efbe53a",9486:"1067a5f9",9514:"bc66cda9",9538:"b9ebb2e1",9549:"bf99b7d6",9626:"a1a9ca0b",9642:"6869b485",9681:"720e8990",9728:"22455ccf",9799:"51815cbe",9817:"f9d79ca6",9856:"50f19163",9862:"33c1d656",9865:"4658b695",9871:"1b4917d6",9889:"42a7c6b3",9904:"011332c4",9905:"c2a27c42",9987:"aaf17753",9998:"8e5799bf"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),b={},d="docusaurus-docs:",t.l=(e,a,c,f)=>{if(b[e])b[e].push(a);else{var r,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{r.onerror=r.onload=null,clearTimeout(l);var d=b[e];if(delete b[e],r.parentNode&&r.parentNode.removeChild(r),d&&d.forEach((e=>e(c))),a)return a(c)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),o&&document.head.appendChild(r)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.p="/docs/zh-TW/",t.gca=function(e){return e={26183636:"6072",68843839:"2745",73567145:"3587",79022373:"1493","5df371ad":"17","935f2afb":"53","4a9b1fdb":"206",a7d19085:"235",fa570740:"293","751792b8":"321","05a3c259":"367",a21e0433:"435",fb1a77b4:"520","17c91901":"536","816b2b7d":"541","3365bb5d":"547","93f8b8b5":"558",bc670d5c:"561",e5d84bc0:"601",fa114b0c:"611",b50c9021:"633",cfc8b1e5:"693","1ce0a301":"701","22bdf908":"838",e4459066:"916","11314fda":"974",d0d62bb5:"1003",e8acd80e:"1013","7205acf7":"1053","7c3d9323":"1120","1a99b1ee":"1147","29cd8cc9":"1218","8758e270":"1250","970a27d6":"1253",ecc882d7:"1288","8d5fe6f9":"1304","2be8d75a":"1369",b1892b20:"1386","3e301362":"1404","6dfd8a52":"1413",fe2b089e:"1435","3b7cd1e1":"1525","169be1f8":"1589","27b935de":"1613","3394f7b8":"1626","8fbaa47b":"1657","6d8024b7":"1670","0328b0c9":"1723","8f25d185":"1764",dc8865c1:"1804",a8e44541:"1832",b45ff73d:"1854","4c5e977b":"1893","2a38ab5e":"1916","15113e52":"1928",c8450cf2:"1981","9e43e7b6":"2008",f54e89d1:"2050","988ba51e":"2062","7cb4903f":"2070","13063a10":"2074","19357a65":"2124","89f7284f":"2190","8ba34e88":"2201",a596dc7e:"2269","2f504c6e":"2355","47c64002":"2371","6870c8c4":"2446","8b8c4320":"2464","1955e4c9":"2465",de127d6b:"2486",cc24cbe6:"2546","5614add0":"2556",ce346131:"2573","8e648991":"2599",c46f1db0:"2631","748490a7":"2726",faa6790b:"2751","703f575d":"2781",dac58f9a:"2821",acdbee8e:"2885","84ee34f2":"2903",a4a7c88e:"2944","3b83c135":"2946","90305fb4":"2954",f041af6f:"2982",cc7f3e03:"3000","41ed4202":"3034",c3d815ae:"3068","1f391b9e":"3085","955e06fd":"3088","6ac88df6":"3105","15df18f8":"3198","005fee41":"3263","655c39d2":"3300","7e111207":"3315",bef6aaf2:"3337","007a6c32":"3387","9041aea1":"3389",afdda5b6:"3404",fdf22a50:"3408",f47c1d11:"3443","37da3438":"3453","02a22b2b":"3469","786f71e5":"3509",cb382994:"3514","6f951ae3":"3519","3627f230":"3555",e0bec19d:"3634","8c02dfd8":"3771",b9aefb1a:"3777",fc1db29b:"3819","3e96b4b5":"3861","3a4337ef":"3882","10ca1dd8":"3887","5610cdb3":"3903","1bc94aef":"3912","2d0f081e":"3959","37cea19d":"4010",c5d3bb95:"4030",d9ffe17e:"4089","035fc0a7":"4188","84cf2087":"4190","4b3e38af":"4194",c4f5d8e4:"4195","269acb60":"4204","278665dc":"4209","3d5f5786":"4220","0744e06b":"4243","48db5030":"4298",b8d9b1bd:"4318",d0816b53:"4319","67eaa1b1":"4337","1db637b2":"4346",aacc2fee:"4400",fc15d889:"4453","3cd952ae":"4484","3abccbcc":"4533","788d9fe0":"4549",a67bdd24:"4603","25b7eef7":"4683",f5c87087:"4685",c54eca7f:"4697","23cc9db4":"4708",a5463d8a:"4736","9c643b6e":"4756","0a13a0e4":"4758","8a495097":"4807","64be7568":"4835",b49164a1:"4841","5787f6d3":"4900",c0ad5dc6:"4904","29f28a73":"4907",e9b84ed8:"4947","1c5f7d2b":"4962",ea7cec67:"4980","30a22249":"5034","17abfa8d":"5044",add4d791:"5062",cf69f832:"5063","4840c3eb":"5064",ee7f03d8:"5114",e1b9cf16:"5185",b42420f8:"5188","19b0499c":"5212","1bcb7f60":"5253","9e4d6f26":"5260",b82d00b2:"5365",cc468388:"5368",c15b67f7:"5369",af4a2ad4:"5370","632d2515":"5382","308641fb":"5461","006095b2":"5480","2b3e7a7f":"5647",f4bc196f:"5690",db0d392c:"5694","41eb0037":"5708","31e78686":"5760",b568538e:"5772",c4ae09d4:"5787","0c0bbaea":"5841","1290c878":"5858","6aa5826c":"5882","6b3775fc":"5897",bc53881b:"5943","79aa13fb":"5945",b700f6c8:"5953",b9776525:"5954",e4627c87:"5957","156751cf":"5968","1bab1317":"5975",a42811bf:"6021",c3aed80f:"6025","8aab06bf":"6052","7596b09e":"6078",d2de2978:"6158","567ff302":"6175","90c3ec62":"6206","8aadacf1":"6276",db229a81:"6294","281b126c":"6364","36f93d19":"6370","6135d371":"6374",fed0304a:"6401","80e8986a":"6419",e8c8f122:"6455","302d24dc":"6467",af2c52ce:"6542","93b78259":"6559","8c3021dd":"6586",b4f4317d:"6615",a19cf377:"6649",e2cf295d:"6729",d8958d75:"6764",aff0b5cb:"6917","1b80e345":"6963",d005934a:"6979","3326e4c4":"7000","6268d0ca":"7074","49a0e813":"7079","92e99bf6":"7133",a94c7dba:"7183","11b4dd89":"7184","5036ec9d":"7188",ae346411:"7234","72ceeaac":"7277",bde9fb45:"7287",aebe3827:"7306","6daf901a":"7328","18f77871":"7365",a9dd1cc8:"7396",b71c3bdc:"7400","393be207":"7414","5ea9e4ca":"7415","1cf37028":"7422",eaca4732:"7446","4a3e680b":"7482",dcc6b54d:"7486",a9bf2227:"7487",e3e4fe7d:"7573","50219e10":"7593",bbcd7673:"7607","84ebbbbf":"7615","40230f21":"7655","6ca8826f":"7744","8894256f":"7813",e88bed7b:"7882","1a4e3797":"7920",d56e3bd7:"7929",ffb2e417:"8016","2b20c80a":"8023",e63b451d:"8026","7fc2793f":"8035",d0e9a494:"8115",db9559d3:"8122","89179ad6":"8135","28e7e1e3":"8145","136658e4":"8179","9755f20c":"8214","5393ce94":"8270",f7eb3a66:"8271","3d3a07f6":"8349","1a77ceda":"8382","2be7eaec":"8387","8d4600d0":"8392","03edb22c":"8424","68408d35":"8436","917300a3":"8461","2bfafb22":"8471",e49348be:"8494",a88f137d:"8499","92ac5c16":"8509","4f9fd89c":"8527","88e3fe7e":"8618","68e9a632":"8630","9c28e0ab":"8643","67044a7a":"8692",d5603669:"8890","8a942fcc":"8897",b0bdb7f3:"8954","8c2621f5":"9010","9ad8637e":"9043",a4a7a840:"9066",e2c0c813:"9101","3b0223df":"9131","1d8ede30":"9140",ff6e33f8:"9156","9de65041":"9157",f6bb9d12:"9213","7114ac56":"9220","429a6f3e":"9229",fe793f9f:"9235",b8919bdb:"9346","6249c7de":"9376","1912069b":"9423",b5511831:"9438",e72cf26a:"9486","1be78505":"9514","4c950052":"9538","48e0b5d4":"9549",fd867f7c:"9626","0002f649":"9642","4d96b439":"9681",aa5bd2a7:"9728","14eb3368":"9817",e5c88a3e:"9856",d5ac6535:"9862",e8ee0390:"9865",b2f83e6d:"9871",f56b8973:"9889",f62a7bc0:"9904",e23eefc0:"9905","9ccbc3bf":"9987",b7cfb3da:"9998"}[e]||e,t.p+t.u(e)},(()=>{var e={1303:0,532:0};t.f.j=(a,c)=>{var b=t.o(e,a)?e[a]:void 0;if(0!==b)if(b)c.push(b[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var d=new Promise(((c,d)=>b=e[a]=[c,d]));c.push(b[2]=d);var f=t.p+t.u(a),r=new Error;t.l(f,(c=>{if(t.o(e,a)&&(0!==(b=e[a])&&(e[a]=void 0),b)){var d=c&&("load"===c.type?"missing":c.type),f=c&&c.target&&c.target.src;r.message="Loading chunk "+a+" failed.\n("+d+": "+f+")",r.name="ChunkLoadError",r.type=d,r.request=f,b[1](r)}}),"chunk-"+a,a)}},t.O.j=a=>0===e[a];var a=(a,c)=>{var b,d,f=c[0],r=c[1],o=c[2],n=0;if(f.some((a=>0!==e[a]))){for(b in r)t.o(r,b)&&(t.m[b]=r[b]);if(o)var i=o(t)}for(a&&a(c);n{"use strict";var e,a,c,b,d,f={},r={};function t(e){var a=r[e];if(void 0!==a)return a.exports;var c=r[e]={id:e,loaded:!1,exports:{}};return f[e].call(c.exports,c,c.exports,t),c.loaded=!0,c.exports}t.m=f,e=[],t.O=(a,c,b,d)=>{if(!c){var f=1/0;for(i=0;i=d)&&Object.keys(t.O).every((e=>t.O[e](c[o])))?c.splice(o--,1):(r=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[c,b,d]},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,b){if(1&b&&(e=this(e)),8&b)return e;if("object"==typeof e&&e){if(4&b&&e.__esModule)return e;if(16&b&&"function"==typeof e.then)return e}var d=Object.create(null);t.r(d);var f={};a=a||[null,c({}),c([]),c(c)];for(var r=2&b&&e;"object"==typeof r&&!~a.indexOf(r);r=c(r))Object.getOwnPropertyNames(r).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,t.d(d,f),d},t.d=(e,a)=>{for(var c in a)t.o(a,c)&&!t.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,c)=>(t.f[c](e,a),a)),[])),t.u=e=>"assets/js/"+({17:"5df371ad",53:"935f2afb",206:"4a9b1fdb",235:"a7d19085",293:"fa570740",321:"751792b8",367:"05a3c259",435:"a21e0433",520:"fb1a77b4",536:"17c91901",541:"816b2b7d",547:"3365bb5d",558:"93f8b8b5",561:"bc670d5c",601:"e5d84bc0",611:"fa114b0c",633:"b50c9021",693:"cfc8b1e5",701:"1ce0a301",838:"22bdf908",916:"e4459066",974:"11314fda",1003:"d0d62bb5",1013:"e8acd80e",1053:"7205acf7",1120:"7c3d9323",1147:"1a99b1ee",1218:"29cd8cc9",1250:"8758e270",1253:"970a27d6",1288:"ecc882d7",1304:"8d5fe6f9",1369:"2be8d75a",1386:"b1892b20",1404:"3e301362",1413:"6dfd8a52",1435:"fe2b089e",1493:"79022373",1525:"3b7cd1e1",1589:"169be1f8",1613:"27b935de",1626:"3394f7b8",1657:"8fbaa47b",1670:"6d8024b7",1723:"0328b0c9",1764:"8f25d185",1804:"dc8865c1",1832:"a8e44541",1854:"b45ff73d",1893:"4c5e977b",1916:"2a38ab5e",1928:"15113e52",1981:"c8450cf2",2008:"9e43e7b6",2050:"f54e89d1",2062:"988ba51e",2070:"7cb4903f",2074:"13063a10",2124:"19357a65",2190:"89f7284f",2201:"8ba34e88",2269:"a596dc7e",2355:"2f504c6e",2371:"47c64002",2446:"6870c8c4",2464:"8b8c4320",2465:"1955e4c9",2486:"de127d6b",2546:"cc24cbe6",2556:"5614add0",2573:"ce346131",2599:"8e648991",2631:"c46f1db0",2726:"748490a7",2745:"68843839",2751:"faa6790b",2781:"703f575d",2821:"dac58f9a",2885:"acdbee8e",2903:"84ee34f2",2944:"a4a7c88e",2946:"3b83c135",2954:"90305fb4",2982:"f041af6f",3e3:"cc7f3e03",3034:"41ed4202",3068:"c3d815ae",3085:"1f391b9e",3088:"955e06fd",3105:"6ac88df6",3198:"15df18f8",3263:"005fee41",3300:"655c39d2",3315:"7e111207",3337:"bef6aaf2",3387:"007a6c32",3389:"9041aea1",3404:"afdda5b6",3408:"fdf22a50",3443:"f47c1d11",3453:"37da3438",3469:"02a22b2b",3509:"786f71e5",3514:"cb382994",3519:"6f951ae3",3555:"3627f230",3587:"73567145",3634:"e0bec19d",3771:"8c02dfd8",3777:"b9aefb1a",3819:"fc1db29b",3861:"3e96b4b5",3882:"3a4337ef",3887:"10ca1dd8",3903:"5610cdb3",3912:"1bc94aef",3959:"2d0f081e",4010:"37cea19d",4030:"c5d3bb95",4089:"d9ffe17e",4188:"035fc0a7",4190:"84cf2087",4194:"4b3e38af",4195:"c4f5d8e4",4204:"269acb60",4209:"278665dc",4220:"3d5f5786",4243:"0744e06b",4298:"48db5030",4318:"b8d9b1bd",4319:"d0816b53",4337:"67eaa1b1",4346:"1db637b2",4400:"aacc2fee",4453:"fc15d889",4484:"3cd952ae",4533:"3abccbcc",4549:"788d9fe0",4603:"a67bdd24",4683:"25b7eef7",4685:"f5c87087",4697:"c54eca7f",4708:"23cc9db4",4736:"a5463d8a",4756:"9c643b6e",4758:"0a13a0e4",4807:"8a495097",4835:"64be7568",4841:"b49164a1",4900:"5787f6d3",4904:"c0ad5dc6",4907:"29f28a73",4947:"e9b84ed8",4962:"1c5f7d2b",4980:"ea7cec67",5034:"30a22249",5044:"17abfa8d",5062:"add4d791",5063:"cf69f832",5064:"4840c3eb",5114:"ee7f03d8",5185:"e1b9cf16",5188:"b42420f8",5212:"19b0499c",5253:"1bcb7f60",5260:"9e4d6f26",5365:"b82d00b2",5368:"cc468388",5369:"c15b67f7",5370:"af4a2ad4",5382:"632d2515",5461:"308641fb",5480:"006095b2",5647:"2b3e7a7f",5690:"f4bc196f",5694:"db0d392c",5708:"41eb0037",5760:"31e78686",5772:"b568538e",5787:"c4ae09d4",5841:"0c0bbaea",5858:"1290c878",5882:"6aa5826c",5897:"6b3775fc",5943:"bc53881b",5945:"79aa13fb",5953:"b700f6c8",5954:"b9776525",5957:"e4627c87",5968:"156751cf",5975:"1bab1317",6021:"a42811bf",6025:"c3aed80f",6052:"8aab06bf",6072:"26183636",6078:"7596b09e",6158:"d2de2978",6175:"567ff302",6206:"90c3ec62",6276:"8aadacf1",6294:"db229a81",6364:"281b126c",6370:"36f93d19",6374:"6135d371",6401:"fed0304a",6419:"80e8986a",6455:"e8c8f122",6467:"302d24dc",6542:"af2c52ce",6559:"93b78259",6586:"8c3021dd",6615:"b4f4317d",6649:"a19cf377",6729:"e2cf295d",6764:"d8958d75",6917:"aff0b5cb",6963:"1b80e345",6979:"d005934a",7e3:"3326e4c4",7074:"6268d0ca",7079:"49a0e813",7133:"92e99bf6",7183:"a94c7dba",7184:"11b4dd89",7188:"5036ec9d",7234:"ae346411",7277:"72ceeaac",7287:"bde9fb45",7306:"aebe3827",7328:"6daf901a",7365:"18f77871",7396:"a9dd1cc8",7400:"b71c3bdc",7414:"393be207",7415:"5ea9e4ca",7422:"1cf37028",7446:"eaca4732",7482:"4a3e680b",7486:"dcc6b54d",7487:"a9bf2227",7573:"e3e4fe7d",7593:"50219e10",7607:"bbcd7673",7615:"84ebbbbf",7655:"40230f21",7744:"6ca8826f",7813:"8894256f",7882:"e88bed7b",7920:"1a4e3797",7929:"d56e3bd7",8016:"ffb2e417",8023:"2b20c80a",8026:"e63b451d",8035:"7fc2793f",8115:"d0e9a494",8122:"db9559d3",8135:"89179ad6",8145:"28e7e1e3",8179:"136658e4",8214:"9755f20c",8270:"5393ce94",8271:"f7eb3a66",8349:"3d3a07f6",8382:"1a77ceda",8387:"2be7eaec",8392:"8d4600d0",8424:"03edb22c",8436:"68408d35",8461:"917300a3",8471:"2bfafb22",8494:"e49348be",8499:"a88f137d",8509:"92ac5c16",8527:"4f9fd89c",8618:"88e3fe7e",8630:"68e9a632",8643:"9c28e0ab",8692:"67044a7a",8890:"d5603669",8897:"8a942fcc",8954:"b0bdb7f3",9010:"8c2621f5",9043:"9ad8637e",9066:"a4a7a840",9101:"e2c0c813",9131:"3b0223df",9140:"1d8ede30",9156:"ff6e33f8",9157:"9de65041",9213:"f6bb9d12",9220:"7114ac56",9229:"429a6f3e",9235:"fe793f9f",9346:"b8919bdb",9376:"6249c7de",9423:"1912069b",9438:"b5511831",9486:"e72cf26a",9514:"1be78505",9538:"4c950052",9549:"48e0b5d4",9626:"fd867f7c",9642:"0002f649",9681:"4d96b439",9728:"aa5bd2a7",9817:"14eb3368",9856:"e5c88a3e",9862:"d5ac6535",9865:"e8ee0390",9871:"b2f83e6d",9889:"f56b8973",9904:"f62a7bc0",9905:"e23eefc0",9987:"9ccbc3bf",9998:"b7cfb3da"}[e]||e)+"."+{17:"6a44c067",53:"9f1c6e04",206:"2b3ab739",235:"6de2442e",293:"102aa303",321:"7181899c",367:"e9491e15",435:"4e51295a",520:"c21570a5",536:"cdfdfc15",541:"07d874e0",547:"5d952f2b",558:"a350a2da",561:"aa8a2ae1",601:"6445dfa3",611:"d27fa819",633:"4d82752b",693:"af763711",701:"a871c5ee",838:"ab3c0c9b",916:"dc981a77",974:"238c34e9",1003:"6c54265f",1013:"c2967717",1053:"f40c1da5",1120:"87002862",1147:"f40b4430",1218:"6c9ea238",1250:"bbd055cc",1253:"ab316cae",1288:"cec758fd",1304:"03727876",1369:"2e3141cb",1386:"4ec65e31",1404:"b835b60b",1413:"8c1ee701",1435:"6134d820",1493:"477a0793",1525:"18df82d5",1589:"52a0d38a",1613:"0d279825",1626:"644fe3ae",1657:"bdf7d9df",1670:"5651db27",1723:"35d57399",1764:"1a6031d3",1804:"612d04c9",1814:"827f84be",1832:"7c3cb201",1854:"179edfb8",1893:"4a98b5fe",1916:"095bfc55",1928:"1e318c6e",1981:"0235bbea",2008:"35a6cff5",2050:"7b453b74",2062:"f362d196",2070:"d768de05",2074:"33b82fb9",2124:"7256acf1",2190:"fbdb2268",2201:"ad3df26d",2269:"d9bc34d9",2355:"ea0749a1",2371:"c301738e",2446:"3352fbb2",2464:"d8c16b3c",2465:"47e495c3",2486:"122e9ebd",2546:"b81c37ac",2556:"35a67841",2573:"fdb0f972",2599:"e8294b88",2631:"a6559ab0",2726:"809fb405",2745:"2ef9b5af",2751:"4b562ced",2761:"8e83ef1a",2781:"101def92",2821:"f2852f2c",2885:"85c473aa",2903:"200098ec",2944:"52a3f142",2946:"08f5993d",2954:"4c2f0b20",2982:"fc2f6a7b",3e3:"88109d73",3034:"af714bde",3068:"9fc747a4",3085:"6a026f2c",3088:"87246275",3105:"601b7df6",3198:"820839e3",3263:"6138e7d1",3300:"1f36e88e",3315:"27d25f8b",3337:"ccaaa6e1",3387:"6399e304",3389:"e8bf4d66",3404:"de1395fc",3408:"a94cfb69",3443:"8f0a6a45",3453:"dafbab47",3469:"a3460a71",3509:"447072e4",3514:"49bf9918",3519:"68962068",3555:"bc0bc70b",3587:"678c7a91",3634:"c9535bbc",3771:"e4323869",3777:"f4ca10ee",3819:"ed739f23",3861:"ca0ba830",3882:"a87c34ca",3887:"ae3b6c07",3903:"2737fbe7",3912:"e7bdfba7",3959:"e480a224",4010:"8730817b",4030:"741708a2",4089:"9649d6a1",4188:"a5a29e00",4190:"68e424c4",4194:"de01fc0f",4195:"80802ec2",4204:"8d1728bc",4209:"83b67bec",4220:"05c49722",4243:"e807a255",4298:"8468a43d",4318:"f61c6dc4",4319:"37a122dd",4337:"de37cd8b",4346:"b657f283",4400:"9c810d00",4453:"aa88cdd9",4484:"54b126d7",4533:"da649674",4549:"1476adf1",4603:"e86b02a4",4683:"680d73e5",4685:"2ec2495f",4697:"e29ff6ab",4708:"60d8072e",4736:"78588df0",4756:"80604e58",4758:"d843c3d4",4807:"9895e62d",4835:"ca276f11",4841:"f96743a8",4900:"0acebeba",4904:"e71859c8",4907:"27ca7bb8",4947:"f89dea5c",4962:"259d7bab",4972:"c1e0c51c",4980:"67e6230a",5034:"1156ace1",5044:"d5191e2c",5062:"0d8750a8",5063:"5e9bab1d",5064:"5915b6ba",5114:"de13de71",5185:"f7de6383",5188:"b718937b",5212:"e5fee610",5253:"b32727b5",5260:"5a148534",5365:"8ffe503b",5368:"4190c77b",5369:"aff1870e",5370:"8ced3b64",5382:"ee8e0d37",5461:"ae253497",5480:"f3c63b50",5647:"d57683fd",5690:"2e318253",5694:"2df06acc",5708:"4d909a37",5760:"9e965292",5772:"222e76a5",5787:"4117990d",5841:"4a671e32",5858:"d3289d07",5882:"98f0347e",5897:"9edbba21",5943:"156790f2",5945:"8c139b17",5953:"5577f2ae",5954:"9d838288",5957:"183c9ab4",5968:"649705d2",5975:"1aef5c92",6021:"82a2fc88",6025:"5fc61d42",6052:"cfa1adaa",6072:"a0fcc9c8",6078:"e0688d2c",6158:"1ac7cc9a",6175:"98d57bc6",6206:"9eeee933",6276:"92f485b3",6294:"44769b3c",6338:"a4b54b32",6364:"8b33223f",6370:"b5c4fcb1",6374:"4065cd5e",6401:"a10a5896",6419:"bac08e69",6455:"6028dea2",6467:"dc56f5f3",6542:"86d01d83",6559:"ae539dba",6586:"6be02598",6615:"cc6c4c07",6649:"b454df05",6729:"3f021c80",6764:"d731e7ff",6780:"72080071",6917:"754c9733",6945:"669d5d2e",6963:"2523902f",6979:"1319a932",7e3:"1232fbf5",7074:"ab0288ba",7079:"3d163610",7133:"ba38f454",7183:"717edb40",7184:"a41a7d3d",7188:"0d0ae66e",7234:"53a3c7be",7277:"c932b841",7287:"33744587",7306:"e2693958",7328:"58bd61ea",7365:"5a65897b",7396:"8198d5b0",7400:"31d47701",7414:"e3bdb183",7415:"a4a917a1",7422:"cef8b6f5",7446:"7ce1e505",7482:"865ec385",7486:"2f44cb45",7487:"d13c7182",7573:"97381c9b",7593:"ef61270d",7607:"f8ca21e0",7615:"961b05e0",7655:"11ab878c",7744:"c0155781",7813:"035889b6",7882:"37f0034b",7920:"a0fe2f07",7929:"0acd5e3a",8016:"032fbbea",8023:"7f3a787d",8026:"e976adbb",8035:"2813beaf",8115:"a11b8cd4",8122:"9fc7a378",8135:"8c794bb3",8145:"021e902c",8179:"350c6a2c",8214:"0d425578",8270:"bbaaedc8",8271:"847d3f19",8349:"33bf1dfc",8382:"b5c226a7",8387:"3ed66c39",8392:"95aff25c",8424:"72e015bc",8436:"b457f8de",8461:"592c936e",8471:"e5e85c42",8494:"8ffeb213",8499:"08c7ee33",8509:"fe065970",8527:"dcad5002",8618:"21d1771d",8630:"5b329cf0",8643:"3278ce08",8692:"dddabe25",8724:"b1c38f59",8890:"33b51708",8894:"9d414334",8897:"55229a33",8954:"5e832233",9010:"2dbd8f2d",9043:"358224ed",9066:"ddde5af7",9101:"cd8a1580",9131:"24b1b5bd",9140:"3fa78bb1",9156:"4c389b58",9157:"f39f5067",9213:"45233c01",9220:"c23b0646",9229:"ea2c2d96",9235:"0a35b0ed",9346:"224df495",9376:"fd8421e4",9423:"f9d63331",9438:"3efbe53a",9486:"1067a5f9",9514:"bc66cda9",9538:"b9ebb2e1",9549:"bf99b7d6",9626:"a1a9ca0b",9642:"6869b485",9681:"720e8990",9728:"22455ccf",9799:"51815cbe",9817:"f9d79ca6",9856:"50f19163",9862:"33c1d656",9865:"4658b695",9871:"1b4917d6",9889:"42a7c6b3",9904:"011332c4",9905:"c2a27c42",9987:"aaf17753",9998:"8e5799bf"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),b={},d="docusaurus-docs:",t.l=(e,a,c,f)=>{if(b[e])b[e].push(a);else{var r,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{r.onerror=r.onload=null,clearTimeout(l);var d=b[e];if(delete b[e],r.parentNode&&r.parentNode.removeChild(r),d&&d.forEach((e=>e(c))),a)return a(c)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),o&&document.head.appendChild(r)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.p="/docs/zh-TW/",t.gca=function(e){return e={26183636:"6072",68843839:"2745",73567145:"3587",79022373:"1493","5df371ad":"17","935f2afb":"53","4a9b1fdb":"206",a7d19085:"235",fa570740:"293","751792b8":"321","05a3c259":"367",a21e0433:"435",fb1a77b4:"520","17c91901":"536","816b2b7d":"541","3365bb5d":"547","93f8b8b5":"558",bc670d5c:"561",e5d84bc0:"601",fa114b0c:"611",b50c9021:"633",cfc8b1e5:"693","1ce0a301":"701","22bdf908":"838",e4459066:"916","11314fda":"974",d0d62bb5:"1003",e8acd80e:"1013","7205acf7":"1053","7c3d9323":"1120","1a99b1ee":"1147","29cd8cc9":"1218","8758e270":"1250","970a27d6":"1253",ecc882d7:"1288","8d5fe6f9":"1304","2be8d75a":"1369",b1892b20:"1386","3e301362":"1404","6dfd8a52":"1413",fe2b089e:"1435","3b7cd1e1":"1525","169be1f8":"1589","27b935de":"1613","3394f7b8":"1626","8fbaa47b":"1657","6d8024b7":"1670","0328b0c9":"1723","8f25d185":"1764",dc8865c1:"1804",a8e44541:"1832",b45ff73d:"1854","4c5e977b":"1893","2a38ab5e":"1916","15113e52":"1928",c8450cf2:"1981","9e43e7b6":"2008",f54e89d1:"2050","988ba51e":"2062","7cb4903f":"2070","13063a10":"2074","19357a65":"2124","89f7284f":"2190","8ba34e88":"2201",a596dc7e:"2269","2f504c6e":"2355","47c64002":"2371","6870c8c4":"2446","8b8c4320":"2464","1955e4c9":"2465",de127d6b:"2486",cc24cbe6:"2546","5614add0":"2556",ce346131:"2573","8e648991":"2599",c46f1db0:"2631","748490a7":"2726",faa6790b:"2751","703f575d":"2781",dac58f9a:"2821",acdbee8e:"2885","84ee34f2":"2903",a4a7c88e:"2944","3b83c135":"2946","90305fb4":"2954",f041af6f:"2982",cc7f3e03:"3000","41ed4202":"3034",c3d815ae:"3068","1f391b9e":"3085","955e06fd":"3088","6ac88df6":"3105","15df18f8":"3198","005fee41":"3263","655c39d2":"3300","7e111207":"3315",bef6aaf2:"3337","007a6c32":"3387","9041aea1":"3389",afdda5b6:"3404",fdf22a50:"3408",f47c1d11:"3443","37da3438":"3453","02a22b2b":"3469","786f71e5":"3509",cb382994:"3514","6f951ae3":"3519","3627f230":"3555",e0bec19d:"3634","8c02dfd8":"3771",b9aefb1a:"3777",fc1db29b:"3819","3e96b4b5":"3861","3a4337ef":"3882","10ca1dd8":"3887","5610cdb3":"3903","1bc94aef":"3912","2d0f081e":"3959","37cea19d":"4010",c5d3bb95:"4030",d9ffe17e:"4089","035fc0a7":"4188","84cf2087":"4190","4b3e38af":"4194",c4f5d8e4:"4195","269acb60":"4204","278665dc":"4209","3d5f5786":"4220","0744e06b":"4243","48db5030":"4298",b8d9b1bd:"4318",d0816b53:"4319","67eaa1b1":"4337","1db637b2":"4346",aacc2fee:"4400",fc15d889:"4453","3cd952ae":"4484","3abccbcc":"4533","788d9fe0":"4549",a67bdd24:"4603","25b7eef7":"4683",f5c87087:"4685",c54eca7f:"4697","23cc9db4":"4708",a5463d8a:"4736","9c643b6e":"4756","0a13a0e4":"4758","8a495097":"4807","64be7568":"4835",b49164a1:"4841","5787f6d3":"4900",c0ad5dc6:"4904","29f28a73":"4907",e9b84ed8:"4947","1c5f7d2b":"4962",ea7cec67:"4980","30a22249":"5034","17abfa8d":"5044",add4d791:"5062",cf69f832:"5063","4840c3eb":"5064",ee7f03d8:"5114",e1b9cf16:"5185",b42420f8:"5188","19b0499c":"5212","1bcb7f60":"5253","9e4d6f26":"5260",b82d00b2:"5365",cc468388:"5368",c15b67f7:"5369",af4a2ad4:"5370","632d2515":"5382","308641fb":"5461","006095b2":"5480","2b3e7a7f":"5647",f4bc196f:"5690",db0d392c:"5694","41eb0037":"5708","31e78686":"5760",b568538e:"5772",c4ae09d4:"5787","0c0bbaea":"5841","1290c878":"5858","6aa5826c":"5882","6b3775fc":"5897",bc53881b:"5943","79aa13fb":"5945",b700f6c8:"5953",b9776525:"5954",e4627c87:"5957","156751cf":"5968","1bab1317":"5975",a42811bf:"6021",c3aed80f:"6025","8aab06bf":"6052","7596b09e":"6078",d2de2978:"6158","567ff302":"6175","90c3ec62":"6206","8aadacf1":"6276",db229a81:"6294","281b126c":"6364","36f93d19":"6370","6135d371":"6374",fed0304a:"6401","80e8986a":"6419",e8c8f122:"6455","302d24dc":"6467",af2c52ce:"6542","93b78259":"6559","8c3021dd":"6586",b4f4317d:"6615",a19cf377:"6649",e2cf295d:"6729",d8958d75:"6764",aff0b5cb:"6917","1b80e345":"6963",d005934a:"6979","3326e4c4":"7000","6268d0ca":"7074","49a0e813":"7079","92e99bf6":"7133",a94c7dba:"7183","11b4dd89":"7184","5036ec9d":"7188",ae346411:"7234","72ceeaac":"7277",bde9fb45:"7287",aebe3827:"7306","6daf901a":"7328","18f77871":"7365",a9dd1cc8:"7396",b71c3bdc:"7400","393be207":"7414","5ea9e4ca":"7415","1cf37028":"7422",eaca4732:"7446","4a3e680b":"7482",dcc6b54d:"7486",a9bf2227:"7487",e3e4fe7d:"7573","50219e10":"7593",bbcd7673:"7607","84ebbbbf":"7615","40230f21":"7655","6ca8826f":"7744","8894256f":"7813",e88bed7b:"7882","1a4e3797":"7920",d56e3bd7:"7929",ffb2e417:"8016","2b20c80a":"8023",e63b451d:"8026","7fc2793f":"8035",d0e9a494:"8115",db9559d3:"8122","89179ad6":"8135","28e7e1e3":"8145","136658e4":"8179","9755f20c":"8214","5393ce94":"8270",f7eb3a66:"8271","3d3a07f6":"8349","1a77ceda":"8382","2be7eaec":"8387","8d4600d0":"8392","03edb22c":"8424","68408d35":"8436","917300a3":"8461","2bfafb22":"8471",e49348be:"8494",a88f137d:"8499","92ac5c16":"8509","4f9fd89c":"8527","88e3fe7e":"8618","68e9a632":"8630","9c28e0ab":"8643","67044a7a":"8692",d5603669:"8890","8a942fcc":"8897",b0bdb7f3:"8954","8c2621f5":"9010","9ad8637e":"9043",a4a7a840:"9066",e2c0c813:"9101","3b0223df":"9131","1d8ede30":"9140",ff6e33f8:"9156","9de65041":"9157",f6bb9d12:"9213","7114ac56":"9220","429a6f3e":"9229",fe793f9f:"9235",b8919bdb:"9346","6249c7de":"9376","1912069b":"9423",b5511831:"9438",e72cf26a:"9486","1be78505":"9514","4c950052":"9538","48e0b5d4":"9549",fd867f7c:"9626","0002f649":"9642","4d96b439":"9681",aa5bd2a7:"9728","14eb3368":"9817",e5c88a3e:"9856",d5ac6535:"9862",e8ee0390:"9865",b2f83e6d:"9871",f56b8973:"9889",f62a7bc0:"9904",e23eefc0:"9905","9ccbc3bf":"9987",b7cfb3da:"9998"}[e]||e,t.p+t.u(e)},(()=>{var e={1303:0,532:0};t.f.j=(a,c)=>{var b=t.o(e,a)?e[a]:void 0;if(0!==b)if(b)c.push(b[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var d=new Promise(((c,d)=>b=e[a]=[c,d]));c.push(b[2]=d);var f=t.p+t.u(a),r=new Error;t.l(f,(c=>{if(t.o(e,a)&&(0!==(b=e[a])&&(e[a]=void 0),b)){var d=c&&("load"===c.type?"missing":c.type),f=c&&c.target&&c.target.src;r.message="Loading chunk "+a+" failed.\n("+d+": "+f+")",r.name="ChunkLoadError",r.type=d,r.request=f,b[1](r)}}),"chunk-"+a,a)}},t.O.j=a=>0===e[a];var a=(a,c)=>{var b,d,f=c[0],r=c[1],o=c[2],n=0;if(f.some((a=>0!==e[a]))){for(b in r)t.o(r,b)&&(t.m[b]=r[b]);if(o)var i=o(t)}for(a&&a(c);n V5 | Bybit API Documentation - + @@ -15,7 +15,7 @@ USDTPerpetualLeverage, symbol, leverage, USDCContractLeverage
  • 查詢借貸訂單信息
    • 新增響應字段USDTPerpetualOpenLine, USDCContractOpenLine, USDCOptionsOpenLine, USDTPerpetualCloseLine, USDCContractCloseLine, USDCOptionsCloseLine, USDCContractSymbols, USDCOptionsSymbols, marginLeverage, USDTPerpetualLeverage, symbol, leverage, USDCContractLeverage
  • 查詢賬戶單個幣種余額
    • 新增請求參數: toAccountType, toMemberId, withLtvTransferSafeAmount
    • 新增響應字段: ltvTransferSafeAmount
  • 新增錯誤碼適配UTA帳戶支持場外借貸的交易限制場景
  • 新增錯誤碼描述
    30133USDT永續: 當交易對不在白名單內
    30134USDT合約: 當交易對不在白名單內
    30135USDT永續: 當設置的槓桿大於機構借貸規定的
    30136USDC合約: 當設置的槓桿大於機構借貸規定的
    3200316期權: 限制交易
    3200317期權: 限制買入
    170709現貨: 當交易對不在白名單內
    170215現貨: 限制買入
    170216現貨: 全倉槓桿倍數超過機構借貸規定的
    170220現貨: 限制交易

    2023-07-13

    REST API

    2023-07-04

    REST API

    2023-06-29

    WebSocket API

    2023-06-26

    WebSocket API

    • 深度 [現貨]
      • 將50檔位的頻率從100ms提升到20ms

    2023-06-24

    REST API

    2023-06-15

    REST API

    2023-06-14

    REST API

    2023-06-08

    REST API

    2023-06-07

    REST API

    • 提現 [更新]
      • 新增請求參數 feeType, 支持選擇手續費內扣還是外扣

    2023-06-02

    REST API

    2023-06-01

    REST API

    WebSocket API

    • 持倉 [更新]
      • 新增響應參數字段 positionBalance

    2023-05-30

    REST API

    2023-05-23

    REST API

    • 創建委託單 [更新]
      • 針對新版止盈止損, 新增請求參數 tpslMode, tpLimitPrice, slLimitPrice, tpOrderType, slOrderType
    • 修改委託單 [更新]
      • 針對新版止盈止損, 新增請求參數 tpLimitPrice, slLimitPrice
    • 查詢實時委託單 [更新]
      • 針對新版止盈止損, 新增響應參數 tpslMode, tpLimitPrice, slLimitPrice
    • 查詢歷史訂單 [更新]
      • 針對新版止盈止損, 新增響應參數 tpslMode, tpLimitPrice, slLimitPrice
    • 查詢持倉 (實時) [更新]
      • tpslMode 字段從倉位數據中廢棄
    • 設置止盈止損 [更新]
      • 針對新版止盈止損, 新增請求參數 tpslMode, tpLimitPrice, slLimitPrice, tpOrderType, slOrderType

    WebSocket API

    • 持倉 [更新]
      • tpslMode 字段從倉位數據中廢棄
    • 訂單 [更新]
      • 針對新版止盈止損, 新增響應參數 tpslMode, tpLimitPrice, slLimitPrice

    2023-05-10

    REST API

    老錯誤碼新錯誤碼消息
    10001110075RiskId is not modified

    2023-05-05

    REST API

    2023-05-04

    REST API

    • 查詢成交紀錄 [更新]
      • 對於普通帳戶查詢期貨時,symbol 不再是必傳字段
    • 查詢平倉盈虧 [更新]
      • 對於普通帳戶查詢期貨時,symbol 不再是必傳字段

    2023-04-20

    REST API

    • 創建委託單 [更新]
      • 新增請求參數 smpType 來選擇自成交執行類型
    • 查詢實時委託單 [更新]
      • 新增響應參數 smpType, smpOrderId, smpGroup
      • 新增cancelType枚舉cancelBySmp
    • 查詢歷史訂單 [更新]
      • 新增響應參數 smpType, smpOrderId, smpGroup
      • 新增cancelType枚舉cancelBySmp
    • 查詢賬戶配置 [更新]
      • 新增響應參數 dcpStatus, timeWindow, smpGroup

    WebSocket API

    • 訂單 [更新]
      • 新增響應參數 smpType, smpOrderId, smpGroup
      • 新增cancelType枚舉cancelBySmp

    2023-04-06

    REST API

    2023-04-04

    REST API

    WebSocket API

    • 持倉 [更新]
      • 新增響應字段adlRankIndicator
      • UTA帳戶的推送新增字段category
    • 訂單 [更新]
      • 新增響應字段 placeType, 供期權訂單使用
    • 個人成交 [更新]
      • 新增響應字段 closedSize

    2023-03-24

    REST API

    2023-03-23

    REST API

    WebSocket API

    • 錢包 [更新]
      • 新增返回字段 accountLTV

    2023-03-22

    REST API

    2023-03-15

    REST API

    2023-03-10

    REST API

    • 查詢可交易產品的規格信息 [更新]
      • 統一現貨、期貨和期權的交易對狀態枚舉值。統一使用Trading, Closed, Settling, PreLaunch, Deliverying
      • 移除期權響應體中多餘的字段category
    • 查詢手續費率 [更新]
      • 支持查詢期權的手續費率

    2023-03-09

    REST API

    • 全倉槓桿設置 [更新]
      • UTA用戶支持10倍全倉槓桿交易
    • 查詢錢包餘額 [更新]
      • 更新前: 普通帳戶調用接口, accountType=UNIFIED時, 返回錯誤碼和錯誤信息.
        更新後: 普通帳戶調用接口, accountType=UNIFIED時, 返回http code 400

    2023-02-28

    REST API

    WebSocket API

    • 錢包 [更新]
      • 新增推送字段 bonus

    2023-02-20

    REST API

    2023-02-15

    REST API

    • 用戶 [新增]
      • 增加一組用戶API Key管理的接口

    2023-02-14

    REST API

    入参是否必需類型說明
    accountTypefalsestring設置出金帳戶.
    • SPOT:走現貨錢包出金 (默認)
    • FUND:走資金錢包出金

    2023-02-09

    REST API

    2023-01-19

    REST API

    WebSocket API

    • 持倉
      • 組合保證金模式下, positionIM, positionMM, leverage, riskLimitValue 返回 "", riskId 返回 0
    • 錢包
      • 組合保證金模式下, totalOrderIM, totalPositionIM, totoalPositionMM 返回 ""

    2023-01-16

    REST API

    • 查詢最新行情信息 [現貨]
      • usdIndexPrice 已經添加到響應體中. 該字段表示為USD指數價格, 可以為空。

    WebSocket API

    • 行情 [現貨]
      • usdIndexPrice 已經添加到推送中. 該字段表示為USD指數價格, 可以為空。
    • 深度 [正向合約以及反向合約]
      • 增加500檔的推送,頻率為100ms

    2023-01-09

    WebSocket API

    • 行情 [正向合約以及反向合約]
      - `nextFundingTime` 從日期 `2023-01-05T08:00:00Z` 變動為UTC時間戳(毫秒) `1672905600000`
      - `predicatedFundingRate` 從消息中移除
      ��
    - + \ No newline at end of file diff --git a/zh-TW/faq.html b/zh-TW/faq.html index 4693f882f8..a9ab6948fa 100644 --- a/zh-TW/faq.html +++ b/zh-TW/faq.html @@ -4,7 +4,7 @@ 常見問題 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    常見問題

    Bybit的服務器在哪裡?

    AWS 新加坡, 可用區域 ID apse1-az3.

    reduceOnlycloseOnTrigger - 區別是什麼?

    • 要平倉,請提交訂單並將 reduceOnly 指定為 true。 closeOnTrigger 在這裡並不嚴格適用,但如果需要,您也可以將其設置為 true。
    • reduceOnly 是平倉時真正重要的一個,我們會在未來改進接口。
    • closeOnTrigger 指定為 true 時要小心,因為當 reduceOnly 為 false 時可能會導致衝突。

    為什麼網站上沒有顯示我的所有訂單?

    • 擁有下大量階梯訂單的機器人的用戶將受到前端界面的限制,該界面僅在屏幕上顯示最多 50 個訂單。
    • 不用擔心,您的訂單還在系統中,可以通過API查詢,但是前端顯示不會超過50個。

    根據可用錢包餘額計算訂單大小

    • price * availableBalance * leverage * perc * (1 - (0.0006 * 2))
    • 不幸的是,這不是一個完全準確的公式。實際計算很複雜,可能會在以後發佈在文檔中。
      • price - 最新價格 (或您的入場價) - 可以從最新行情信息接口中獲取。
      • availableBalance - 可以從查詢持倉(實時)接口中獲取。
      • leverage - 最高為市場各自的最大槓桿和您的風險限額(例如 2、10、50)。
      • perc - 0.1 表示 10%,0.25 表示 25%,等等。
      • 1 - (0.0006 * 2) - 用於計算最大訂單成本(始終假設進入和退出訂單使用吃單費用,而不考慮實際費用)。

    我可以用 API 兌換資產嗎?

    • 沒有接口可以交換資產。這只能在網站上完成。
    • 但是,可以使用 API 訪問您的資產交換記錄

    我如何獲得測試網的資金?

    要獲得測試網資金,只需到主賬戶資產頁面申請即可。

    為什麼我的平倉盈虧價格不准確?

    • Closed PNL接口返回的entryPriceexitPrice不是訂單的實際執行價格。
    • 它基於訂單的總成本 (頭寸是否僅由以一個價格執行的一個訂單開倉/平倉 - 如果多個訂單開倉/平倉則更加複雜。)
    • 例如,此接口報告的 entry_price 和 exit_price 受訂單支付/收到的費用的影響。

    如何確保我使用的是最新數據?

    • REST API 或(甚至不太可能)websocket 有可能(儘管不太可能)返回/推送舊數據。
    • 為了獲得最大程度的數據彈性,我們建議客戶:
      • 首先,依賴於websocket,它不僅能保證你以最快的速度得到最新的數據,還能保證你得到完整的數據
      • 其次,查詢 REST API 以填充數據中的任何差異 - 或者 websocket 斷開連接時之間的差異。
    • 最佳做法是將所有這些數據本地保存在您自己的數據庫或緩存中。
    • 這釋放了您對其他請求的速率限制,並且還確保了在數據延遲的情況下針對交易所的冗餘級別。

    交易額和成交量有什麼區別?

    • Turnover:與數量的貨幣相反的貨幣
    • Volume:與數量的貨幣使用相同的貨幣

    為什麼下市價單響應中返回的價格是錯誤的?

    市場訂單(在後端)只是以更差的價格提交的限價訂單。這是為了減少閃電崩盤或類似事件發生的可能性,在這種情況下,交易者可能會提交以比他們預期的價格低得多 的價格執行的市價單。這裡返回的價格是內部限價單價格。返回此“不准確”的價格是因為下單接口是異步的,這意味著在實際執行訂單之前將響應返回給您。

    如果你想要真正的執行價格 (execPrice),你應該訂閱 execution websocket

    - + \ No newline at end of file diff --git a/zh-TW/index.html b/zh-TW/index.html index 481d76db39..1e3c4277de 100644 --- a/zh-TW/index.html +++ b/zh-TW/index.html @@ -4,13 +4,13 @@ Hello from Bybit API Documentation | Bybit API Documentation - +

    Unified APIs

    Bybit's latest v5 suite of APIs allow for a smooth and easy integration.

    Learn Exchange Mechanisms

    Learn the intricate details of Bybit's market rules to fully maximise your API usage.

    Historical Market Data

    Get comprehensive public market data in CSV format to speedily backtest and build strategies.

    - + \ No newline at end of file diff --git a/zh-TW/markdown-page.html b/zh-TW/markdown-page.html index 2a4fd6070e..3c92249049 100644 --- a/zh-TW/markdown-page.html +++ b/zh-TW/markdown-page.html @@ -4,13 +4,13 @@ Markdown page example | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/pilot-feature.html b/zh-TW/pilot-feature.html index e4da51dd0b..1a5c59c160 100644 --- a/zh-TW/pilot-feature.html +++ b/zh-TW/pilot-feature.html @@ -4,7 +4,7 @@ 試點功能 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    試點功能

    升級反向合約帳戶

    • 可用日期: 測試網 - 已上線, 主網 - 2024年9月13日 (批次開放)
    • 覆蓋範圍: 統一帳戶
    • 詳細內容: 1. 選擇升級反向合約帳戶到統一帳戶; 2. 參考帳戶模式介紹

    Open API支持模擬交易

    • 可用日期: 測試網 - 已上線, 主網 - 2024年4月3日
    • 覆蓋範圍: 模擬交易賬戶
    • 詳細內容: 您可以參閱該頁面進行體驗

    websocket下改撤單功能

    • 可用日期: 測試網 - 已上線, 主網 - 待定
    • 覆蓋範圍: 統一帳戶現貨/正向合約/期權交易
    • 詳細內容: 您可以使用websocket來下改撤單

    批量接口支持現貨交易

    • 可用日期: 測試網 - 已上線, 主網 - 2024年3月5日
    • 覆蓋範圍: 統一帳戶現貨交易
    • 詳細內容: 您可以使用批量下改撤接口進行現貨交易

    現貨支持雙向止盈止損

    • 可用日期: 測試網 - 已上線, 主網 - 2024年1月15日
    • 覆蓋範圍: 統一帳戶現貨交易
    • 詳細內容: 您可以在創建現貨訂單時通過takeProfit, stopLoss設置市價止盈止損

    現貨支持組合保證金對衝

    • 可用日期: 測試網 - 已上線, 主網 - 2023年11月16日
    • 覆蓋範圍: 統一帳戶的組合保證金模式
    • 詳細內容: 您可以通過這個設置現貨對衝接口啟用或關閉現貨對衝功能

    現貨支持改單

    • 可用日期: 測試網 - 已上線, 主網 - 2023年11月1日
    • 覆蓋範圍: 經典帳戶和統一帳戶現貨
    • 詳細內容: 您可以通過這個改單接口對現貨訂單進行改單

    統一帳戶現貨止盈止損單、條件單邏輯修改

    • 可用日期: 測試網 - 已上線, 主網 - 2023年10月26日 (按照uid尾號灰度期間, 全量預計11月2日)
    • 覆蓋範圍: 統一帳戶的現貨交易
    • 詳細內容: 當止盈止損單或者條件單觸發後, 訂單ID保持不變

    UTA Pro支持批量下單

    • 可用日期: 測試網 - 已上線, 主網 - 2023年8月31日
    • 覆蓋範圍: UTA Pro帳戶: USDT永續, USDC永續 & USDC交割 (正向合約linear)
    • 詳細內容: UTA Pro帳戶能夠進行正向合約的批量下改撤
    示例
    POST https://api-testnet.bybit.com/v5/order/create-batch

    > 請求體
    {
    "category": "linear",
    "request": [
    {

    "symbol": "BTCUSDT",
    "orderType": "Limit",
    "side": "Buy",
    "qty": "0.1",
    "price": "25500",
    "timeInForce": "GTC",
    "orderLinkId": "test-03",
    "reduceOnly": false,
    "tpslMode": "Full",
    "takeProfit": "26300",
    "stopLoss": "24800",
    "triggerDirection": null,
    "triggerPrice": null,
    "triggerBy": null,
    "positioIdx": 0,
    "smpType": null,
    "tpLimitPrice": null,
    "slLimitPrice": null,
    "slOrderType": null,
    "tpOrderType": null

    },
    {

    "symbol": "ETHUSDT",
    "orderType": "Limit",
    "side": "Buy",
    "qty": "0.1",
    "price": "1550",
    "timeInForce": "GTC",
    "orderLinkId": "test-04",
    "reduceOnly": false,
    "tpslMode": "Full",
    "takeProfit": "1680",
    "stopLoss": "1490",
    "triggerDirection": null,
    "triggerPrice": null,
    "triggerBy": null,
    "positioIdx": 0,
    "smpType": null,
    "tpLimitPrice": null,
    "slLimitPrice": null,
    "slOrderType": null,
    "tpOrderType": null
    }
    ]
    }
    > 響應
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "orderId": "6afd7e83-7176-4f73-93e0-44a8f2babd14",
    "orderLinkId": "test-03",
    "createAt": "1693212677410"
    },
    {
    "category": "linear",
    "symbol": "ETHUSDT",
    "orderId": "9eeef30c-c682-42b2-a4a7-7e403db8506c",
    "orderLinkId": "test-04",
    "createAt": "1693212677410"
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 0,
    "msg": "OK"
    }
    ]
    },
    "time": 1693212677411
    }

    增加WS私有連接可配置斷線時間

    • 可用日期: 測試網 - 已上線, 主網 - 2023年8月16日
    • 覆蓋範圍: 構建v5私有連接時可用該配置參數
    • 詳細內容: 構建連接時, 設置/v5/private?max_active_time=, 值可以是從30s600s之間。當服務端與客戶端之間無上下行數據時, 當達到這個配置的時間間隔時, 服務端則會斷開連接 (並不完全準確, 因為當前ticker的輪訓時間是30秒)

    調整錯誤碼

    舊錯誤碼新錯誤碼消息
    34001283200320Operations Restriction: The current LTV ratio of your Institutional Loan has hit the liquidation threshold. Assets in your account are being liquidated.
    1760363200320Operations Restriction: The current LTV ratio of your Institutional Loan has hit the liquidation threshold. Assets in your account are being liquidated.

    UTA母子帳戶間共享借貸額度

    • 可用日期: 測試網 - 已上線, 主網 - 2023年8月11日
    • 覆蓋範圍: 統一帳戶
    • 詳細內容: 過去, 每個uta帳戶擁有獨自的借貸額度, 上線後, 該額度由母子之間共享

    UTA用戶可以選擇保證金幣種是否進行抵押

    • 可用日期: 測試網 - 已上線, 主網 - 2023年8月10日
    • 覆蓋範圍: 統一帳戶
    • 詳細內容: UTA用戶可以選擇保證金幣種是否進行抵押通過該接口

    用戶可以自主升級到UTA Pro

    • 可用日期: 測試網 - 已上線, 主網 - 2023年8月8日
    • 覆蓋範圍: 普通帳戶, 統一帳戶
    • 詳細內容: 用戶可以通過該接口升級至UTA Pro

    OpenAPI支持現貨條件單

    • 可用日期: 測試網 - 已上線, 主網 - 2023年8月7日
    • 覆蓋範圍: 普通帳戶, 統一帳戶
    • 詳細內容: 用戶可以通過openAPI創建現貨條件單

    UTA支持機構借貸

    • 可用日期: 測試網 - 已上線, 主網 - 2023年7月24日
    • 覆蓋範圍: 統一帳戶
    • 詳細內容: 統一帳戶支持機構借貸

    USDC永續支持獲得資金費的數據

    • 可用日期: 測試網 - 已上線, 主網 - 2023年7月3日
    • 覆蓋範圍: 統一帳戶 USDC永續合約
    • 詳細內容: 查詢成交紀錄接口之前是沒有execType=Funding的且websocket個人成交不推送該數據. 現在您將會查詢到和獲得推送.

    新版帶單交易

    • 可用日期: 測試網 - 已上線, 主網 - 2023年6月24日
    • 覆蓋範圍: 舊版帶單交易
    • 詳細內容: Bybit將會從6月24日開始陸續開放uid升級功能, 如果您選擇升級到新的帶單交易, 請注意老版本的Copy Trading V3接口將不可再用, 請直接使用V5接口

    統一帳戶支持逐倉保證金模式和雙倉模式

    • 可用日期: 測試網 - 已上線, 主網 - 2023年6月1日
    • 覆蓋範圍: 僅統一帳戶生效
    • 詳細內容: 統一帳戶的逐倉保證金是帳戶維度. 雙向持倉僅支持USDT永續

    新版止盈止損

    • 可用日期: 測試網 - 已上線, 主網 - 2023年5月23日
    • 覆蓋範圍: V5 API
    • 詳細內容: 統一帳戶(UTA): USDT 永續, USDC 永續 和 交割, 反向合約
      普通帳戶: USDT 永續, 反向合約

    查詢升級前紀錄

    • 可用日期: 測試網 - 已上線, 主網 - 2023年4月27日
    • 覆蓋範圍: 統一交易帳戶
    • 詳細內容: 升級後,可以通過該接口查詢到升級之前的一些交易紀錄.

    余幣寶 (廢棄)

    • 可用日期: 測試網 - 已上線, 主網 - 2023年4月22日
    • 覆蓋範圍: 所有用戶 (目前灰度階段)
    • 詳細內容: 您可以將閒置資金存入余幣寶來賺取收益

    自成交攔截

    • 可用日期: 測試網 - 已上線, 主網 - 2023年4月20日
    • 覆蓋範圍: 請查看這裡
    • 詳細內容: 支持現貨、期貨和期權

    支持持倉升級至UTA帳戶

    • 可用日期: 測試網 - 已上線, 主網 - 2023年4月4日
    • 覆蓋範圍: 普通帳戶升級至統一帳戶
    • 詳細內容: 升級時無需平倉. 更多細節,請查閱升級接口

    統一交易帳戶支持USDC交割產品交易

    • 可用日期: 測試網 - 已上線, 主網 - 2023年3月20日
    • 覆蓋範圍: 僅限升級到UTA的帳戶
    • 詳細內容: V5接口將適用於UTA帳戶交易USDC交割

    機構借貸V5接口

    • 可用日期: 測試網 - 已上線, 主網 - 2023年3月13日
    • 覆蓋範圍: 申請了場外借貸的機構用戶
    • 詳細內容: 可以查詢到帳戶的LTV, 借款及還款等信息

    普通帳戶支持使用V5接口進行現貨交易

    • 可用日期: 測試網 - 已上線, 主網 - 2023年3月10日
    • 覆蓋範圍: 普通帳戶
    • 詳細內容: 使用V5交易現貨

    統一交易對狀態枚舉

    • 可用日期: 測試網 - 已上線, 主網 - 2023年3月10日
    • 覆蓋範圍: /v5/market/instruments-info status字段
    • 詳細內容: 統一使用Trading, Closed, Settling, PreLaunch, Deliverying

    上線全倉槓桿(普通帳戶)V5版本

    • 可用日期: 測試網 - 已上線, 主網 - 2023年3月3日
    • 覆蓋範圍: 普通帳戶能夠使用V5接口操作全倉槓桿
    • 詳細內容: 借貸、還款、查詢操作

    UTA用戶支持交易反向合約

    • 可用日期: 測試網 - 已上線, 主網 - 2023年2月21日
    • 覆蓋範圍: UTA用戶能夠通過V5接口交易反向合約
    • 詳細內容: 請注意該反向合約交易是通過反向合約錢包(CONTRACT)完成

    將現貨帳戶併入統一帳戶(重要)

    • 可用日期: 預計3月3日当天執行
    • 覆蓋範圍: 僅UTA用戶
    • 詳細內容: 您需要修改提現邏輯,先將資金轉入資金帳戶,然後調用提現接口

    使用RSA密鑰方式鑒權

    • 可用日期: 測試網 - 已上線, 主網 - 2023年2月21日
    • 覆蓋範圍: 所有V3、V5需要鑒權的接口
    • 詳細內容: 請參閱該引導完成快速上手

    execType增加新的枚舉值

    • 可用日期: 測試網 - 已上線, 主網 - 2023年2月20日
    • 覆蓋範圍: 合約 V3 - Websocket私有頻道 - 個人成交
    • 詳細內容: 新增資金費用結算的推送,其中execType=Funding

    V5接口支持普通帳戶

    • 可用日期: 測試網 - 已上線, 主網 - 2023年2月9日
    • 覆蓋範圍: 普通帳戶支持交易 USDT永續 and 反向合約
    • 詳細內容: 此次發佈之後,如果您有以下行為,您可能會遭遇一些401錯誤或者404錯誤:

    401: 您仍然在使用v1/v2的鑒權方式訪問V5接口:

    GET https://api.bybit.com/v5/position/list?api_key=xxx&category=linear&recv_window=5000&symbol=ETHUSDT&timestamp=1675929695887&sign=xxx

    您應該將鑒權參數放在請求頭當中:

    Host: api-testnet.bybit.com
    -H 'X-BAPI-SIGN: XXXXXXXXXX' \
    -H 'X-BAPI-API-KEY: XXXXXXXXXX' \
    -H 'X-BAPI-TIMESTAMP: 1658384431891' \
    -H 'X-BAPI-RECV-WINDOW: 5000'

    404: 對於以下接口,如果您傳入不恰當的category值, 比如, 您是普通帳戶,但category傳入了option/spot


    調整錯誤碼

    舊錯誤碼新錯誤碼消息
    3400045110073Set margin mode failed
    34009910016Server error

    增加500檔的推送

    • 可用日期: 測試網 - 2023年1月13日, 主網 - 2023年1月16日
    • 覆蓋範圍: V5 深度
    • 詳細內容: 期貨的正反向合約將支持500檔深度的推送, 其中推送頻率為100ms.
    - + \ No newline at end of file diff --git a/zh-TW/search.html b/zh-TW/search.html index 8d29ec4d77..15ab16185d 100644 --- a/zh-TW/search.html +++ b/zh-TW/search.html @@ -4,13 +4,13 @@ 在文件中搜尋 | Bybit API Documentation - + - + \ No newline at end of file diff --git a/zh-TW/tax/data-export.html b/zh-TW/tax/data-export.html index 98eabcbce8..a264f2502b 100644 --- a/zh-TW/tax/data-export.html +++ b/zh-TW/tax/data-export.html @@ -4,13 +4,13 @@ 數據導出 | Bybit API Documentation - +

    數據導出

    HTTP 請求

    POST /fht/compliance/tax/v3/private/url

    請求參數

    參數是否必需類型說明
    queryIdtruestring報告請求 ID

    響應參數

    參數類型說明
    urlstring文件的URL網址 (Basepath+Files)。為了縮短生成報告所需的時間,它可以生成多個文件。請注意這一點,並在請求數據導出時使用相同的基本路徑組合多個文件
    信息

    使用python將S3文件轉換為 CSV的示例

    Python腳本


    import pandas as pd
    import os

    class Bases(object):
    @staticmethod
    def path_list(path):
    """
    :param path:
    :return: list of file paths
    """
    file_list = []
    if os.path.isdir(path):
    print("it's a directory")
    for root, dirs, files in os.walk(path):
    for f in files:
    file = os.path.join(root, f)
    file_list.append(file)
    return file_list
    elif os.path.isfile(path):
    print("it's a normal file")
    return [path]

    class pd_service(Bases):
    def get_data(self, file_path):
    """
    Read s3 files, merge forms
    :param file_path:
    :return:
    """
    df_all = pd.DataFrame()
    for paths in self.path_list(path=file_path):
    df_all = pd.concat([df_all, pd.read_orc(paths)], axis=0)
    print('Row number of tables:', df_all[df_all.columns[1]].count())
    print(df_all.columns.values)
    df_all.sort_values("TradeTime", inplace=True)
    df_all.to_csv("test_data_s3.csv", header=True, index=False)
    print(df_all)
    return df_all

    if __name__ == '__main__':
    # file path
    path = 'XXXX'
    test = pd_service()
    test.get_data(file_path=path)

    請求示例

    POST /fht/compliance/tax/v3/private/url HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671184057480
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {"queryId":"12312312415325325"}

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "url": "{\"Files\":[\"20221216/adfsf34234-8e87-4c72-bc70-dsa234234daf/_SUCCESS\",\"20221216/dafasdf34243-8e87-4c72-bc70-dafsd34234/part-00000-adfsd34-00bd-4fe9-9591-adfasr343-c000\"],\"Basepath\":\"https://prod-bybit-tax-api-1705-rz.s3.ap-southeast-1.amazonaws.com/\"}"
    },
    "retExtInfo": {},
    "time": 1671184057646
    }
    - + \ No newline at end of file diff --git a/zh-TW/tax/enum.html b/zh-TW/tax/enum.html index 09d4c8339a..e1069ee79c 100644 --- a/zh-TW/tax/enum.html +++ b/zh-TW/tax/enum.html @@ -4,13 +4,13 @@ 枚舉定義 | Bybit API Documentation - +

    枚舉定義

    ReportType

    • TRADE - 交易歷史
    • P&L - 盈虧歷史
    • EARN - 賺取歷史
    • DEPOSIT&WITHDRAWAL - 充提歷史
    • BONUS - 體驗金歷史
    • AIRDROP - 空投歷史

    ReportNumber

    ReportType = "TRADE"

    • 1 - 獲取現貨交易歷史
    • 2 - 獲取合約交易歷史
    • 3 - 獲取USDC交易歷史
    • 4 - 獲取NFT交易歷史

    ReportType = "P&L"

    • 1 - 獲取合約平倉盈虧歷史

    ReportType = "EARN"

    • 1 - 獲取Bybit儲蓄收益歷史
    • 2 - 獲取流動性挖礦流動性歷史
    • 3 - 獲取流動性挖礦收益歷史
    • 4 - 獲取流動性挖礦兌換歷史
    • 5 - 獲取雙幣資產兌換歷史
    • 6 - 獲取Defi挖礦收益歷史
    • 7 - 獲取Launchpool收益歷史
    • 8 - 獲取Sharkfin收益歷史

    ReportType = "DEPOSIT&WITHDRAWAL"

    • 1 - 獲取加密貨幣入金歷史
    • 2 - 獲取P2P充值歷史
    • 3 - 獲取法幣出入金歷史
    • 4 - 獲取快捷買幣交易歷史
    • 5 - 獲取第三方入金歷史
    • 6 - 獲取加密貨幣提幣歷史
    • 7 - 獲取NFT充提歷史

    ReportType = "BONUS"

    • 1 - 獲取優惠券歷史
    • 2 - 獲取贈金歷史

    ReportType = "AIRDROP"

    • 1 - 獲取空投歷史
    - + \ No newline at end of file diff --git a/zh-TW/tax/explain.html b/zh-TW/tax/explain.html index 15dae0d093..35821e5a2e 100644 --- a/zh-TW/tax/explain.html +++ b/zh-TW/tax/explain.html @@ -4,13 +4,13 @@ 數據說明 | Bybit API Documentation - +

    數據說明

    交易歷史

    1. 現貨交易歷史

    響應參數

    參數類型說明
    OrderIDstring關閉訂單的訂單ID
    TradeIDstring平倉訂單的交易ID
    Symbolstring交易對名稱
    Sidestring買賣方向
    QuoteCoinstring報價幣種
    BaseCoinstring交易幣種
    ExecPricestring成交價格
    ExecValuestring成交價值
    TradingFeestring單次成交的手續費
    FeeTokenstring手續費幣種
    TradeTimestring成交時間戳 (毫秒)

    2. 合約交易歷史

    響應參數

    參數類型說明
    OrderIDstring關閉訂單的訂單ID
    TradeIDstring平倉訂單的交易ID
    ContractTypestring合約類型. 反向合約, 正向合約, 期貨
    Symbolstring交易對名稱
    Sidestring買賣方向
    QuoteCoinstring報價幣種
    BaseCoinstring交易幣種
    ExecPricestring成交價格
    ExecQtystring成交數量
    ExecTypestring成交類型. Trade, ADL, BustTrade
    ExecValuestring成交價值
    FeeRatestringMaker或Taker的手續費率
    FeeTokenstring手續費幣種
    TradingFeestring單次成交的手續費
    TradeTimestring成交時間戳 (毫秒)
    ClosedSizestring平倉數量
    OrderTypestring訂單類型

    3. 期權交易歷史

    響應參數

    參數類型說明
    OrderIDstring關閉訂單的訂單ID
    TradeIDstring平倉訂單的交易ID
    ContractTypestring合約類型
    Symbolstring交易對名稱
    Sidestring買賣方向
    QuoteCoinstring報價幣種
    BaseCoinstring交易幣種
    ExecPricestring成交價格
    ExecQtystring成交數量
    ExecTypestring成交類型
    ExecValuestring成交價值
    FeeRatestringMaker或Taker的手續費率
    FeeTokenstring手續費幣種
    TradingFeestring單次成交的手續費
    TradeTimestring成交時間戳 (毫秒)

    4. NFT交易歷史

    響應參數

    參數類型說明
    OrderIDstring關閉訂單的訂單ID
    Networkstring網絡名稱
    Sidestring買賣方向
    NftIdstringNFT集合ID
    ExecValuestring成交價值
    BaseCoinstring交易幣種
    PlatformFeestring平台費用,費用按照交易幣種計算
    ShareFeestring共享費用,費用按照交易幣種計算
    TradeTimestring成交時間戳 (毫秒)

    損益歷史

    響應參數

    參數類型說明
    OrderIDstring關閉訂單的訂單ID
    ContractTypestring合約類型. 反向合約, 正向合約, 期貨
    Symbolstring交易對名稱
    Sidestring買賣方向
    ClosedSizestring平倉大小
    CumEntryValuestring累計入場價值
    AvgEntryPricestring平均入場價格
    CumExitValuestring累計出場價值
    AvgExitPricestring平均出場價格
    SettleCoinstring結算幣種
    ClosedPNLstring平倉盈虧
    FillCountstring單筆訂單的成交次數
    TradeTimestring交易時間戳 (毫秒)

    賺取歷史

    1. Bybit儲蓄收益歷史

    響應參數

    參數類型說明
    AssetStakedCoinstring用於抵押在Bybit儲蓄產品中的幣種
    StakingTypestring質押類型。靈活和固定期限
    AssetEarnedCoinstring發放利息的代幣
    EffectiveStakingAmountstring使用 Asset Staked 幣質押的總金額
    Yieldstring利息收入
    TradeTimestring交易時間戳 (毫秒)

    2. 流動性挖礦歷史

    響應參數

    參數類型說明
    OrderIDstring訂單ID
    Symbolstring交易對名稱
    OrderTypestring包括不同類型的流動性挖掘。添加、刪除、降低杠桿、再投資
    EntryPricestring入場價格
    Leveragestring槓桿倍數
    Slippagestring訂單價格與訂單實際執行時的價格差值
    Liquiditystring流動性=本金變化乘以槓桿
    TradeTimestring交易時間戳 (毫秒)

    3. 流動性挖礦收益歷史

    響應參數

    參數類型說明
    AssetEarnedCoinstring發放利息的代幣
    Yieldstring利息收入
    TradeTimestring交易時間戳 (毫秒)

    4. 流動性挖礦兌換歷史

    響應參數

    參數類型說明
    OrderIdstring訂單ID
    InitialCoinstring兌出幣種
    DepositAmountstring兌出金額
    SwapCoinstring兌入幣種
    SwapAmountstring兌入金額
    SwapFeeTokenstring兌換手續費幣種
    SwapFeestring兌換手續費
    Slippagestring訂單價格與訂單實際執行時的價格差值
    TradeTimestring交易時間戳 (毫秒)

    5. 雙幣投資兌換歷史

    響應參數

    參數類型說明
    OrderIdstring訂單ID
    InitialCoinstring兌出幣種
    DepositAmountstring兌出金額
    SwapCoinstring兌入幣種
    SwapAmountstring兌入金額
    OrderTimenumber訂單創建時間戳 (毫秒)
    TradeTimenumber交易時間戳 (毫秒)

    6. DeFi Mining收益歷史

    響應參數

    參數類型說明
    OrderIdstring訂單ID
    AssetStakedCoinstring用於抵押在Bybit儲蓄產品中的幣種
    Yieldstring利息收入
    OrderTimenumber訂單創建時間戳 (毫秒)
    TradeTimenumber交易時間戳 (毫秒)

    7. Launchpool收益歷史

    響應參數

    參數類型說明
    AssetEarnedCoinstring發放利息的代幣
    EffectiveStakingAmountstring使用 Asset Staked 幣質押的總金額
    Yieldstring利息收入
    TradeTimenumber交易時間戳 (毫秒)

    8. Sharkfin收益歷史

    響應參數

    參數類型說明
    AssetEarnedCoinstring發放利息的代幣
    Yieldstring利息收入
    TradeTimenumber交易時間戳 (毫秒)

    入金提幣歷史

    1. 加密貨幣入金歷史

    響應參數

    參數類型說明
    Txidstring交易ID
    DepositTypestring入金類型. 鏈上入金
    ChainTypestring鏈名
    Symbolstring交易對名稱
    FinalAmountstring入金數量
    OrderTimenumber創建時間戳 (毫秒)
    CompletedTimenumber交易完成時間戳 (毫秒)

    2. P2P充值歷史

    響應參數

    參數類型說明
    OrderIDstringOrder ID
    OrderTypestring包括不同類型的流動性挖掘。添加、刪除、降低杠桿、再投資
    P2pSidestring對於 P2P 買家,這代表買家購買了相應的硬幣並使用法定貨幣。對於 P2P 賣家,這代表買家出售相應的硬幣並獲得法定貨幣作為回報
    Fiatstring法幣
    FiatAmountstring法幣金額
    Coinstring幣種
    CoinPricestring幣種價格
    CoinAmountstring幣種數量
    OrderTimenumber創建時間戳 (毫秒)
    CompletedTimenumber交易完成時間戳 (毫秒)

    3. 法幣出入金歷史

    響應參數

    參數類型說明
    OrderIDstring訂單ID
    Typestring類型. DEPOSIT, WITHDRAW
    Fiatstring法幣
    DepositAmountstring入金數量
    FinalAmountstring加密貨幣數量
    Feestring手續費
    PaymentMethodsstring支付方式
    OrderTimenumber創建時間戳 (毫秒)
    CompletedTimenumber交易完成時間戳 (毫秒)

    4. 快捷買幣交易歷史

    響應參數

    參數類型說明
    OrderIDstring訂單ID
    Sidestring交易方向
    Fiatstring法幣
    DepositAmountstring法幣入金數量
    DestinationCoinstring目標幣種
    CoinPricestring目標幣種價格
    FinalAmountstring獲得目標幣種數量
    Feestring手續費
    OrderTimenumber創建時間戳 (毫秒)
    CompletedTimenumber交易完成時間戳 (毫秒)

    5. 第三方入金歷史

    響應參數

    參數類型說明
    OrderIDstring訂單ID
    Txidstring交易ID
    Platformstring支付方式
    Fiatstring法幣
    DepositAmountstring法幣入金數量
    DestinationCoinstring目標幣種
    CoinPricestring目標幣種價格
    FinalAmountstring獲得目標幣種數量
    OrderTimenumber創建時間戳 (毫秒)
    CompletedTimenumber交易完成時間戳 (毫秒)

    6. 加密貨幣提幣歷史

    響應參數

    參數類型說明
    Txidstring交易ID
    ChainTypestring鏈名
    Coinstring幣種
    FinalAmountstring出金數量
    Feestring提幣手續費
    OrderTimenumber創建時間戳 (毫秒)
    CompletedTimenumber交易完成時間戳 (毫秒)

    7. NFT充提歷史

    響應參數

    參數類型說明
    OrderIdstring訂單ID
    TxHashstringNFT交易的哈希ID
    TokenIdstringNFT的tokenID
    TransferTypestring類型. 轉入或轉出
    Networkstring網絡
    FeeTokenstring手續費幣種
    Feestring手續費
    OrderTimenumber創建時間戳 (毫秒)
    CompletedTimenumber交易完成時間戳 (毫秒)

    贈金歷史

    提示
  • 贈金 - 體驗贈金直接支付到用戶資產賬戶,可用於開倉抵扣手續費和資金費率費用。顯示的所有獎金都已被用戶應用。
  • 優惠券 - 優惠券可抵扣的款項將僅用於抵消手續費。不會添加到用戶的資產賬戶中。扣除後將返還至用戶資產賬戶。 顯示的所有優惠券都已被用戶應用。
  • 1. 優惠券歷史

    響應參數

    參數類型說明
    Coinstring優惠券的幣種
    FinalAmountstring代幣數量
    CompletedTimenumber交易完成時間戳 (毫秒)

    2. 贈金歷史

    響應參數

    參數類型說明
    Coinstring體驗金的幣種
    FinalAmountstring代幣數量
    CompletedTimenumber交易完成時間戳 (毫秒)

    空投歷史

    響應參數

    參數類型說明
    Coinstring空投幣種
    FinalAmountstring代幣數量
    TransferTypestring空投的類型. 空投充值、空投提現
    TransferDescriptionstring轉帳說明
    CompletedTimenumber交易完成時間戳 (毫秒)
    - + \ No newline at end of file diff --git a/zh-TW/tax/report.html b/zh-TW/tax/report.html index f22d201195..79ed01b4e8 100644 --- a/zh-TW/tax/report.html +++ b/zh-TW/tax/report.html @@ -4,13 +4,13 @@ 創建導出報告請求 | Bybit API Documentation - +

    創建導出報告請求

    HTTP 請求

    POST /fht/compliance/tax/v3/private/create

    請求參數

    參數是否必需類型說明
    typetruestring報告類型
    numbertruestring不同類型下的類別號
    startTimetruestringUNIX 時間。這是以秒為單位。報告開始時間的時間戳。 StartTime 包含在數據導出的時間範圍內。
    endTimetruestringUNIX 時間。這是以秒為單位。報告結束時間的時間戳。 EndTime 不包含在數據導出的時間範圍內。請注意,對於每個請求,我們最多只允許從 StartTime 開始搜索 2 個月的時間範圍。

    響應參數

    參數類型說明
    queryIdstring報告請求 ID

    請求示例

    POST /fht/compliance/tax/v3/private/create HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671183681683
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {"startTime":"1667264621","endTime":"1669261057","type":"TRADE","number":"2"}

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "queryId": "12312312415325325"
    },
    "retExtInfo": {},
    "time": 1671183681990
    }
    - + \ No newline at end of file diff --git a/zh-TW/tax/status.html b/zh-TW/tax/status.html index 284ff2645a..b0395e0f6f 100644 --- a/zh-TW/tax/status.html +++ b/zh-TW/tax/status.html @@ -4,13 +4,13 @@ 查詢報告導出狀態 | Bybit API Documentation - +

    查詢報告導出狀態

    HTTP 請求

    POST /fht/compliance/tax/v3/private/status

    請求參數

    參數是否必需類型說明
    queryIdtruestring報告請求 ID

    響應參數

    參數類型說明
    statusstring
    • -1: 失敗
    • 0: 隊列中
    • 1: 處理中
    • 2: 處理完成
    • 3: 已過期

    請求示例

    POST /fht/compliance/tax/v3/private/status HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671183923110
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {"queryId":"12312312415325325"}

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "status": "2"
    },
    "retExtInfo": {},
    "time": 1671183923244
    }
    - + \ No newline at end of file diff --git a/zh-TW/tax/time.html b/zh-TW/tax/time.html index e0ccf3cd14..2933d90d70 100644 --- a/zh-TW/tax/time.html +++ b/zh-TW/tax/time.html @@ -4,13 +4,13 @@ 查詢特定用戶在平台註冊日期 | Bybit API Documentation - +

    查詢特定用戶在平台註冊日期

    HTTP 請求

    POST /fht/compliance/tax/v3/private/registertime

    請求參數

    響應參數

    參數類型說明
    registerTimestring特定用戶在平台上註冊的日期 (秒級unix時間戳)

    請求示例

    POST /fht/compliance/tax/v3/private/registertime HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: xxxxxxxxxxxxxx
    X-BAPI-API-KEY: xxxxxxxxxxxxxx
    X-BAPI-TIMESTAMP: 1671183584043
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    {}

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "registerTime": "1634515200"
    },
    "retExtInfo": {},
    "time": 1671183584270
    }
    - + \ No newline at end of file diff --git a/zh-TW/v3/intro.html b/zh-TW/v3/intro.html index f17686b56e..32cc59fb80 100644 --- a/zh-TW/v3/intro.html +++ b/zh-TW/v3/intro.html @@ -4,7 +4,7 @@ 概覽 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    概覽

    鑒權/認證

    信息

    請先生成測試網主網API KEY。

    REST接口根URL:

    選擇用於鑒權的API密鑰類型

    • 系統生產的API密鑰: Bybit 系統生成的 API 密鑰基於 HMAC 對稱加密算法運作。您將獲得一對公鑰和私鑰。請將這對密鑰視為密碼一樣妥善保管。

      跟隨HMAC簽名示例來完成加密過程。

    • 自動生成的API密鑰: 自動生成的 API 密鑰基於 RSA 非對稱加密算法運作。您必須通過軟件自行創建公鑰和私鑰,然後僅向 Bybit 提供公鑰。Bybit 不會替您保管私鑰。

      1.使用開源的RSA密鑰對創建器來創建出一組RSA密鑰對
      2.跟隨RSA簽名示例來完成加密過程。

    公共參數

    需要簽名的接口必須包含以下http頭參數:

    • X-BAPI-API-KEY - api密鑰
    • X-BAPI-TIMESTAMP - UTC毫秒時間戳
    • X-BAPI-SIGN - 請求參數簽名
    • X-Referer or Referer - 經紀商用戶專用的頭參數

    另外我們提供可選的X-BAPI-RECV-WINDOW參數(單位是毫秒,默認值為5000),來指定請求在多長時間內有效,同時用來防止重放攻擊。

    信息

    註意,timestamp參數必須符合如下規則:
    server_time - recv_window <= timestamp < server_time + 1000

    構建請求

    基本步驟:

    1. 時間戳 + api-key + [recv_window]+ [queryString(無需排序) | jsonBodyString]
    2. 使用HMAC_SHA256或者RSA_SHA256算法對第1步中拼接的string簽名,並轉換為16進製字符串(HMAC_SHA256) / Base64編碼 (RSA_SHA256),得出sign參數。
    3. 添加生成的簽名到HTTP頭當中 注意: GETPOST請求的加密明文是不相同,請參考以下示例.

    對明文加密的示例

    # 拼接規則:
    timestamp+api_key+recv_window+queryString

    # 明文
    "1658384314791XXXXXXXXXX5000category=option&symbol=BTC-29JUL22-25000-C"

    # 解析
    timestamp = "1658384314791"
    api_key = "XXXXXXXXXX"
    recv_window = "5000"
    queryString = "category=option&symbol=BTC-29JUL22-25000-C"

    http請求示例

    GET /unified/v3/private/order/list?category=option&symbol=BTC-29JUL22-25000-C HTTP/1.1
    Host: api-testnet.bybit.com
    -H 'X-BAPI-SIGN: XXXXXXXXXX' \
    -H 'X-BAPI-API-KEY: XXXXXXXXXX' \
    -H 'X-BAPI-TIMESTAMP: 1658384431891' \
    -H 'X-BAPI-RECV-WINDOW: 5000'

    外層通用數據結構

    衍生品

    參數類型說明
    retCodenumber成功/錯誤碼
    retMsgstring成功/錯誤消息. 成功消息可以是OK,success,SUCCESS
    resultObject業務數據體
    retExtInfoObject額外信息. 大部分場景下都是{}
    timenumber當前時間戳 (毫秒)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017473888
    }

    {
    "retCode": 0,
    "retMsg": "Success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017572923
    }

    現貨

    參數類型說明
    retCodenumber成功/錯誤碼
    retMsgstring成功/錯誤消息. 成功消息可以是OK,success,SUCCESS
    resultObject業務數據體
    retExtInfoObject額外信息. 大部分場景下都是{}
    timenumber當前時間戳 (毫秒)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017473888
    }

    {
    "retCode": 0,
    "retMsg": "Success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017572923
    }

    帳戶資產

    參數類型說明
    retCodenumber成功/錯誤碼
    retMsgstring成功/錯誤消息. 成功消息可以是OK,success,SUCCESS
    resultObject業務數據體
    retExtInfoObject額外信息. 大部分場景下都是{}
    timenumber當前時間戳 (毫秒)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017473888
    }

    {
    "retCode": 0,
    "retMsg": "Success",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017572923
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/account-info.html b/zh-TW/v5/abandon/account-info.html index 32baaf834f..8f72d7693d 100644 --- a/zh-TW/v5/abandon/account-info.html +++ b/zh-TW/v5/abandon/account-info.html @@ -4,13 +4,13 @@ 查詢余幣寶帳戶信息 | Bybit API Documentation - +

    查詢余幣寶帳戶信息

    HTTP 請求

    GET /v5/lending/account

    請求參數

    參數是否必需類型說明
    cointruestring幣種名稱

    響應參數

    參數類型說明
    coinstring幣種名稱
    principalIntereststring可贖回收益
    principalQtystring可贖回本金金額, 計算公式: min(用戶剩餘本金, 用戶當日可贖回額度)
    principalTotalstring可贖回總計
    quantitystring當前存入本金

    請求示例

    GET /v5/lending/account?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682049556563
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "coin": "BTC",
    "principalInterest": "0",
    "principalQty": "1",
    "principalTotal": "1",
    "quantity": "1"
    },
    "retExtInfo": {},
    "time": 1682049706988
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/cancel-redeem.html b/zh-TW/v5/abandon/cancel-redeem.html index 3c5ea3bce2..18829fc832 100644 --- a/zh-TW/v5/abandon/cancel-redeem.html +++ b/zh-TW/v5/abandon/cancel-redeem.html @@ -4,13 +4,13 @@ 撤銷贖回 | Bybit API Documentation - +

    撤銷贖回

    HTTP 請求

    POST /v5/lending/redeem-cancel

    請求參數

    參數是否必需類型說明
    coinfalsestringCoin name
    orderIdfalsestringThe order ID of redemption
    serialNofalsestringSerial no. The customised ID of redemption

    響應參數

    參數類型說明
    orderIdstringOrder ID
    serialNostringSerial No
    updatedTimestringUpdated timestamp (ms)

    請求示例

    POST /v5/lending/redeem-cancel HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682048277724
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "coin": "BTC",
    "orderId": "1403517113428086272",
    "serialNo": null
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "1403517113428086272",
    "serialNo": "linear004",
    "updatedTime": "1682048277963"
    },
    "retExtInfo": {},
    "time": 1682048278001
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/coin-info.html b/zh-TW/v5/abandon/coin-info.html index 2f1d35e9c2..f320f2d2ca 100644 --- a/zh-TW/v5/abandon/coin-info.html +++ b/zh-TW/v5/abandon/coin-info.html @@ -4,13 +4,13 @@ 查詢可存入幣種信息 | Bybit API Documentation - +

    查詢可存入幣種信息

    查詢可存入幣種的基本信息

    信息

    所有v5/lending的接口都需要現貨權限

    HTTP 請求

    GET /v5/lending/info

    請求參數

    參數是否必需類型說明
    coinfalsestring幣種名稱

    響應參數

    參數類型說明
    listarrayObject
    > coinstring幣種名稱
    > maxRedeemQtystring單用戶每天最大可贖回數量 (0 - 24 UTC)
    > minPurchaseQtystring單筆最小存入數量
    > precisionstring精度
    > ratestring年化利率. 比如: 返回0.0002 表示 0.02%
    > loanToPoolRatiostring資金使用率. e.g. 0.0004 means 0.04%
    > actualApystring實際年化利率

    請求示例

    GET /v5/lending/info?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682045949295
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "actualApy": "0.003688421873941958",
    "coin": "ETH",
    "loanToPoolRatio": "0.16855491872747133044",
    "maxRedeemQty": "161",
    "minPurchaseQty": "0.03",
    "precision": "8",
    "rate": "0.003411300771389848"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1682045942972
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/deposit.html b/zh-TW/v5/abandon/deposit.html index dd097d2d60..ad6518a9a0 100644 --- a/zh-TW/v5/abandon/deposit.html +++ b/zh-TW/v5/abandon/deposit.html @@ -4,13 +4,13 @@ 存入資金 | Bybit API Documentation - +

    存入資金

    信息
    • 經典帳戶&UMA帳戶: 資金是從現貨錢包扣除
    • UTA帳戶: 資金是從統一交易錢包扣除

    HTTP 請求

    POST /v5/lending/purchase

    請求參數

    參數是否必需類型說明
    cointruestring幣種名稱
    quantitytruestring存入數量
    serialNofalsestring序列號,即自定義ID. 若不傳入,則系統自建

    響應參數

    參數類型說明
    coinstring幣種名稱
    createdTimestring創建時間戳 (毫秒)
    orderIdstring訂單ID
    quantitystring存入數量
    serialNostring序列號
    statusstring訂單狀態. 0: 初始, 1: 處理中, 2: 成功, 10: 失敗
    updatedTimestring更新時間戳 (毫秒)

    請求示例

    POST /v5/lending/purchase HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682046368938
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "coin": "USDC",
    "quantity": "20.00005",
    "serialNo": "test-00007"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "coin": "USDC",
    "createdTime": "1682046369112",
    "orderId": "1403501100816928256",
    "quantity": "20.00005",
    "serialNo": "test-00007",
    "status": "0",
    "updatedTime": "1682046369112"
    },
    "retExtInfo": {},
    "time": 1682046369120
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/earning.html b/zh-TW/v5/abandon/earning.html index 2e147e2639..222faf496e 100644 --- a/zh-TW/v5/abandon/earning.html +++ b/zh-TW/v5/abandon/earning.html @@ -4,13 +4,13 @@ 查詢經紀商返佣 | Bybit API Documentation - +

    查詢經紀商返佣

    危險

    該接口已經廢棄, 請使用查詢經紀商返佣信息

    信息
    • 使用經紀商的母帳戶進行查詢
    • 支持查詢過去6個月的數據
    • startTime & endTime兩個入参, 要麼同時輸入, 要麼都不輸入

    HTTP 請求

    GET /v5/broker/earning-record

    請求參數

    參數是否必需類型說明
    bizTypefalsestring業務類型. SPOT, DERIVATIVES, OPTIONS
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 1000]. 默認: 1000
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    listarrayObject
    > userIdstringuid
    > bizTypestring業務類型
    > symbolstring合約名稱
    > coinstring幣種名稱. 即earning的單位
    > earningstring佣金
    > orderIdstring訂單ID
    > execTimestring成交時間戳 (毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/broker/earning-record?bizType=SPOT&startTime=1686240000000&endTime=1686326400000&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686708862669
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "userId": "xxxx",
    "bizType": "SPOT",
    "symbol": "BTCUSDT",
    "coin": "BTC",
    "earning": "0.000015",
    "orderId": "1531607271849858304",
    "execTime": "1686306035957"
    }
    ],
    "nextPageCursor": "0%2C1"
    },
    "retExtInfo": {},
    "time": 1686708863283
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/enable-unitransfer-subuid.html b/zh-TW/v5/abandon/enable-unitransfer-subuid.html index 2520efa60e..0403fccfdf 100644 --- a/zh-TW/v5/abandon/enable-unitransfer-subuid.html +++ b/zh-TW/v5/abandon/enable-unitransfer-subuid.html @@ -4,13 +4,13 @@ 配置互相劃轉的子帳號 | Bybit API Documentation - +

    配置互相劃轉的子帳號

    信息

    無需再配置可劃轉的子帳號, 該限制已移除, 默認任意子帳號之間可以劃轉

    該接口用於配置開啟萬能劃轉的子帳號列表。沒有進行配置的子帳號是無法進行萬能劃轉的。

    提示

    萬能劃轉是允許您將資金直接從一個子帳號劃轉到另一個子帳號,同樣允許母子帳號間的劃轉。

    警告

    僅支持母帳號API key

    HTTP 請求

    POST /v5/asset/transfer/save-transfer-sub-member

    請求參數

    參數是否必需類型說明
    subMemberIdstruearray<string>子帳號. 支持輸入多個子帳號,用逗號隔開, 比如, "uid1,uid2,uid3"

    響應參數

    請求示例

    POST /v5/asset/transfer/save-transfer-sub-member HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672147595971
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "subMemberIds": ["554117,592324,592334"]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {},
    "retExtInfo": {},
    "time": 1672147593188
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/ltv.html b/zh-TW/v5/abandon/ltv.html index 5dc4e01888..87b2d20577 100644 --- a/zh-TW/v5/abandon/ltv.html +++ b/zh-TW/v5/abandon/ltv.html @@ -4,13 +4,13 @@ 查詢風險率 | Bybit API Documentation - +

    查詢風險率

    HTTP 請求

    GET /v5/ins-loan/ltv

    請求參數

    返回參數

    參數類型說明
    ltvInfoarrayObject
    > ltvstring風險率
    > parentUidstring用戶ID
    > subAccountUidsarray綁定的子UID
    > unpaidAmountstring總負債 (USDT)
    > unpaidInfoarray負債明細
    >> tokenstring幣種
    >> unpaidQtystring未還本金
    >> unpaidIntereststring未還利息
    > balancestring總資產(保證金幣種資產折算為USDT資產). 可以參考這裡了解詳細計算
    > spotBalanceInfoarray現貨資產明細
    >> tokenstring現貨保證金幣種
    >> pricestring現貨保證金幣種價格
    >> qtystring現貨保證金數量
    > contractInfoarray合約資產明細
    >> tokenstring合約保證金幣種
    >> pricestring合約保證金幣種指數價格
    >> qtystring合約保證金幣種數量 (合約可用餘額,不參與LTV計算)

    請求示例

    curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/private/margin-ltv' \
    --header 'X-BAPI-SIGN-TYPE: 2' \
    --header 'X-BAPI-API-KEY: XXXXXXXXXXX' \
    --header 'X-BAPI-TIMESTAMP: 1669367335035' \
    --header 'X-BAPI-RECV-WINDOW: 5000' \
    --header 'X-BAPI-SIGN: XXXXXXXX'

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "ltvInfo": [
    {
    "ltv": "0.1147",
    "parentUid": "999805",
    "subAccountUids": [
    "999805"
    ],
    "unpaidAmount": "",
    "unpaidInfo": [
    {
    "token": "USDT",
    "unpaidQty": "6351.49614274",
    "unpaidInterest": "264.0137162"
    }
    ],
    "balance": "57626.875915433333333332400000000",
    "spotBalanceInfo": [
    {
    "token": "BTC",
    "price": "16375.621333333333333332",
    "qty": "0.2"
    },
    ....
    {
    "token": "XRP",
    "price": "0.409517",
    "qty": "10000"
    }
    ],
    "contractInfo": [
    {
    "token": "USDT",
    "price": "1",
    "qty": "0"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1669367335608
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/margin-coin-info.html b/zh-TW/v5/abandon/margin-coin-info.html index 4b75b33a76..2a65f22837 100644 --- a/zh-TW/v5/abandon/margin-coin-info.html +++ b/zh-TW/v5/abandon/margin-coin-info.html @@ -4,13 +4,13 @@ 查詢保證金幣種信息 | Bybit API Documentation - +

    查詢保證金幣種信息

    提示

    這是公共接口,無需鑒權。

    HTTP 請求

    GET /v5/ins-loan/ensure-tokens

    請求參數

    參數是否必須類型說明
    productIdfalsestring產品ID. 若不傳,則返回所有產品的保證金幣種信息. 現貨返回折算率大於0的幣種.

    返回參數

    參數類型說明
    marginTokenarrayObject
    > productIdstring產品ID
    > spotTokenarray現貨保證金幣種信息
    >> tokenstring保證金幣種
    >> convertRatiostring保證金幣種折算率
    > contractTokenarray合約保證金幣種信息
    >> tokenstring保證金幣種
    >> convertRatiostring保證金幣種折算率

    請求示例

    GET /v5/ins-loan/ensure-tokens?productId=70 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "marginToken": [
    {
    "productId": "70",
    "spotToken": [
    {
    "token": "BTC",
    "convertRatio": "1.00000000"
    },
    {
    "token": "ETH",
    "convertRatio": "1.00000000"
    },
    {
    "token": "USDT",
    "convertRatio": "1"
    }
    ],
    "contractToken": [
    {
    "token": "USDT",
    "convertRatio": "1"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1669363954802
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/order-record.html b/zh-TW/v5/abandon/order-record.html index 3007452a99..090613351a 100644 --- a/zh-TW/v5/abandon/order-record.html +++ b/zh-TW/v5/abandon/order-record.html @@ -4,13 +4,13 @@ 查詢訂單歷史 | Bybit API Documentation - +

    查詢訂單歷史

    查詢存入/贖回/收益發放的訂單歷史

    HTTP 請求

    GET /v5/lending/history-order

    請求參數

    參數是否必需類型說明
    coinfalsestring幣種名稱
    orderIdfalsestring訂單ID
    startTimefalselong開始時間戳 (毫秒)
    endTimefalselong結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 500]. 默認: 50
    orderTypefalsestring訂單類型. 1: 存入, 2: 贖回, 3: 收益發放

    響應參數

    參數類型說明
    listarrayObject
    > coinstring幣種名稱
    > createdTimestring創建時間戳 (毫秒)
    > orderIdstring訂單ID
    > quantitystring數量
    > serialNostring序列號
    > statusstring訂單狀態. 0: 初始, 1: 處理中, 2: 成功, 10: 失敗, 11: 已撤銷
    updatedTimestring更新時間戳 (毫秒)

    請求示例

    GET /v5/lending/history-order?orderNo=1403517113428086272 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: 9pXyrhxTlXXXXXaVQGSaP3n
    X-BAPI-TIMESTAMP: 1682049395799
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "coin": "BTC",
    "createdTime": "1682048277963",
    "orderId": "1403517113428086272",
    "orderType": "2",
    "quantity": "0.1",
    "serialNo": "14035171132183710722373",
    "status": "2",
    "updatedTime": "1682048278245"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1682049395967
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/abandon/redeem.html b/zh-TW/v5/abandon/redeem.html index a27826c905..a2b44d1749 100644 --- a/zh-TW/v5/abandon/redeem.html +++ b/zh-TW/v5/abandon/redeem.html @@ -4,13 +4,13 @@ 贖回資金 | Bybit API Documentation - +

    贖回資金

    提示

    在贖回本金時,系統還會自動贖回當前的收益。

    HTTP 請求

    POST /v5/lending/redeem

    請求參數

    參數是否必需類型說明
    cointruestring幣種名稱
    quantityturestring贖回數量
    serialNofalsestring序列號,即自定義ID. 若不傳入,則系統自建

    響應參數

    參數類型說明
    coinstring幣種名稱
    createdTimestring創建時間戳 (毫秒)
    orderIdstring訂單ID
    principalQtystring贖回數量
    serialNostring序列號
    statusstring訂單狀態. 0: 初始, 1: 處理中, 2: 成功, 10: 失敗
    updatedTimestring更新時間戳 (毫秒)

    請求示例

    POST /v5/lending/redeem HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682048277724
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "coin": "BTC",
    "quantity": "0.1",
    "serialNo": null
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "coin": "BTC",
    "createdTime": "1682048277963",
    "orderId": "1403517113428086272",
    "principalQty": "0.1",
    "serialNo": "14035171132183710722373",
    "status": "0",
    "updatedTime": "1682048277963"
    },
    "retExtInfo": {},
    "time": 1682048278001
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/account-info.html b/zh-TW/v5/account/account-info.html index e716bd1ed9..6eacd34c5a 100644 --- a/zh-TW/v5/account/account-info.html +++ b/zh-TW/v5/account/account-info.html @@ -4,13 +4,13 @@ 查詢賬戶配置 | Bybit API Documentation - +

    查詢賬戶配置

    該接口可以查詢賬戶的保證金模式(統一帳戶), 當前帳戶模式等配置

    HTTP 請求

    GET /v5/account/info

    請求參數

    響應參數

    參數類型說明
    unifiedMarginStatusinteger帳戶狀態類型
    marginModestringISOLATED_MARGIN(逐倉保證金)
    REGULAR_MARGIN(全倉保證金)
    PORTFOLIO_MARGIN(組合保證金)
    isMasterTraderboolean是否為帶單帳戶. true, false
    spotHedgingStatusstring是否開啟現貨對衝. ON, OFF
    updatedTimestring賬戶數據更新的時間,毫秒時間戳
    dcpStatusstring廢棄字段, 總是OFF. 請使用查詢DCP配置
    timeWindowinteger廢棄字段, 總是0. 請使用查詢DCP配置
    smpGroupinteger廢棄字段, 總是0. 請調用查詢SMP組ID

    請求示例

    GET /v5/account/info HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672129307221
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "marginMode": "REGULAR_MARGIN",
    "updatedTime": "1697078946000",
    "unifiedMarginStatus": 4,
    "dcpStatus": "OFF",
    "timeWindow": 10,
    "smpGroup": 0,
    "isMasterTrader": false,
    "spotHedgingStatus": "OFF"
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/batch-set-collateral.html b/zh-TW/v5/account/batch-set-collateral.html index a04e025383..43e77ae1a5 100644 --- a/zh-TW/v5/account/batch-set-collateral.html +++ b/zh-TW/v5/account/batch-set-collateral.html @@ -4,13 +4,13 @@ 批量設置抵押品幣種 | Bybit API Documentation - +

    批量設置抵押品幣種

    用戶可以批量開啟或關閉統一帳戶中幣種抵押屬性,默認都是關閉

    HTTP 請求

    POST /v5/account/set-collateral-switch-batch

    請求參數

    參數是否必需類型說明
    requesttruearrayObject
    > cointruestring幣種名稱
    • 您可以從這裡獲取抵押品幣種
    • USDT, USDC不支持設置
    > collateralSwitchtruestringON: 開啟抵押, OFF: 關閉抵押

    響應參數

    參數類型說明
    resultObject
    > listarrayObject
    >> coinstring幣種名稱
    >> collateralSwitchstringON: 開啟抵押, OFF: 關閉抵押

    請求示例

    POST /v5/account/set-collateral-switch-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1704782042755
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 371

    {
    "request": [
    {
    "coin": "MATIC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "BTC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "ETH",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "SOL",
    "collateralSwitch": "OFF"
    }
    ]
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "result": {
    "list": [
    {
    "coin": "MATIC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "BTC",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "ETH",
    "collateralSwitch": "OFF"
    },
    {
    "coin": "SOL",
    "collateralSwitch": "OFF"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1704782042913
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/borrow-history.html b/zh-TW/v5/account/borrow-history.html index 9df2208ecd..7f0c4a114a 100644 --- a/zh-TW/v5/account/borrow-history.html +++ b/zh-TW/v5/account/borrow-history.html @@ -4,13 +4,13 @@ 查詢利息記錄 | Bybit API Documentation - +

    查詢利息記錄

    獲取利息記錄,按照創建時間倒敘排列

    HTTP 請求

    GET /v5/account/borrow-history

    請求參數

    參數是否必需類型說明
    currencyfalsestringUSDC、USDT、BTC、ETH
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近30天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 30天
    • 若只傳startTime,則查詢startTime和startTime+30天的數據
    • 若只傳endTime,則查詢endTime-30天和endTime的數據
    endTimefalseinteger結束時間 (毫秒)
    limitfalseinteger每頁數量, 最大50. 默認每頁20條
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    listarrayObject
    > currencystringUSDC、USDT、BTC、ETH
    > createdTimeinteger時間戳(毫秒)
    > borrowCoststring利息
    > hourlyBorrowRatestring利率
    > InterestBearingBorrowSizestring豁免利息額度
    > costExemptionstring豁免計息成本
    > borrowAmountstring當前總借貸
    > unrealisedLossstring浮動虧損
    > freeBorrowedAmountstring借款中免息的數額
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/account/borrow-history?currency=BTC&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672277745427
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "2671153%3A1%2C2671153%3A1",
    "list": [
    {
    "borrowAmount": "1.06333265702840778",
    "costExemption": "0",
    "freeBorrowedAmount": "0",
    "createdTime": 1697439900204,
    "InterestBearingBorrowSize": "1.06333265702840778",
    "currency": "BTC",
    "unrealisedLoss": "0",
    "hourlyBorrowRate": "0.000001216904",
    "borrowCost": "0.00000129"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1697442206478
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/coin-greeks.html b/zh-TW/v5/account/coin-greeks.html index e347072ea4..110209b42a 100644 --- a/zh-TW/v5/account/coin-greeks.html +++ b/zh-TW/v5/account/coin-greeks.html @@ -4,13 +4,13 @@ 查詢Greeks信息 | Bybit API Documentation - +

    查詢Greeks信息

    獲取當前賬戶Greeks信息

    HTTP 請求

    GET /v5/asset/coin-greeks

    請求參數

    參數是否必需類型類型
    baseCoinfalsestringbaseCoin- 不傳入, 默認返回全部baseCoin的greeks

    響應參數

    參數類型類型
    listarrayObject
    > baseCoinstringbaseCoin 例如: BTC、ETH、SOL etc
    > totalDeltastringDelta值
    > totalGammastringGamma值
    > totalVegastringVega值
    > totalThetastringTheta值

    請求示例

    GET /v5/asset/coin-greeks?baseCoin=BTC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672287887610
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "baseCoin": "BTC",
    "totalDelta": "0.00004001",
    "totalGamma": "-0.00000009",
    "totalVega": "-0.00039689",
    "totalTheta": "0.01243824"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672287887942
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/collateral-info.html b/zh-TW/v5/account/collateral-info.html index 523e89b271..dcf85d44bf 100644 --- a/zh-TW/v5/account/collateral-info.html +++ b/zh-TW/v5/account/collateral-info.html @@ -4,13 +4,13 @@ 查詢抵押品信息 | Bybit API Documentation - +

    查詢抵押品信息

    獲取當前統一保證金賬戶的抵押品信息,包括借貸利率,可藉貸金額以及抵押品折算率,是否可抵押作為保證金等信息

    HTTP 請求

    GET /v5/account/collateral-info

    請求參數

    參數是否必需類型說明
    currencyfalsestring目前所有抵押品的資產幣種

    響應參數

    參數類型說明
    listarrayObject
    > currencystring目前所有抵押品的資產幣種
    > hourlyBorrowRatestring每小時藉款利率
    > maxBorrowingAmountstring最大可藉貸額度. 該值由母子帳號共享
    > freeBorrowingLimitstring免息借款額上限
    • 僅合約浮虧時產生的借款擁有免息額度
    • 槓桿交易的借貸總是產生利息
    > freeBorrowAmountstring借款總額中免息部分的借款金額
    > borrowAmountstring已用借貸額度
    > availableToBorrowstring用戶剩餘可藉額度. 該值由母子帳號共享
    > borrowableboolean是否是可藉貸的幣種, true: 是. false: 否
    > freeBorrowingAmountstring廢棄字段, 總是返回空字符串, 請參考freeBorrowingLimit
    > borrowUsageRatestring借貸資金使用率: 母子帳戶加起來的borrowAmount/maxBorrowingAmount. 這是一個真實值, 0.5则表示50%
    > marginCollateralboolean是否可作為保證金抵押幣種(平台維度), true: 是. false: 否
  • 當marginCollateral=false時, 則collateralSwitch無意義
  • > collateralSwitchboolean用戶是否開啟保證金幣種抵押(用戶維度), true: 是. false: 否
  • 僅當marginCollateral=true時, 才能主動選擇開關抵押
  • > collateralRatiostring抵押品幣種折算為保證金的折算率

    請求示例

    GET /v5/account/collateral-info?currency=BTC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672127952719
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "availableToBorrow": "3",
    "freeBorrowingAmount": "",
    "freeBorrowAmount": "0",
    "maxBorrowingAmount": "3",
    "hourlyBorrowRate": "0.00000147",
    "borrowUsageRate": "0",
    "collateralSwitch": true,
    "borrowAmount": "0",
    "borrowable": true,
    "currency": "BTC",
    "marginCollateral": true,
    "freeBorrowingLimit": "0",
    "collateralRatio": "0.95"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1691565901952
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/contract-transaction-log.html b/zh-TW/v5/account/contract-transaction-log.html index 4523998012..a1e64d922b 100644 --- a/zh-TW/v5/account/contract-transaction-log.html +++ b/zh-TW/v5/account/contract-transaction-log.html @@ -4,14 +4,14 @@ 交易日誌 | Bybit API Documentation - +

    交易日誌

    支持查詢經典帳戶下合約錢包, 以及統一帳戶下反向合約錢包裡的交易日誌

    API key權限: "合約 - 倉位"
    適用於: 經典帳戶, 統一帳戶1.0(反向合約)

    HTTP 請求

    GET /v5/account/contract-transaction-log

    請求參數

    參數是否必需類型說明
    currencyfalsestring貨幣
    baseCoinfalsestring交易幣種. 例如: BTCUSDT 的 baseCoin 是 BTC
    typefalsestring交易日誌的類型
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime 7天
    • 若只傳startTime,則查詢startTime和startTime+7天的數據
    • 若只傳endTime,則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量, 最大50. 默認每頁20條
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    listarrayObject
    > idstring唯一id
    > symbolstring合約名稱
    > categorystring產品類型
    > sidestring方向. Buy,Sell,None
    > transactionTimestring交易時間戳(毫秒)
    > typestring類型
    > qtystring數量.
  • 期貨: 對於成交的流水來說, 這裡的qty表示每筆成交的數量, 不帶方向
  • > sizestring倉位. 特別地, 對於成交的流水來說, 這裡的size表示成交後的倉位大小, 帶有方向, 比如空倉, 則有"-"
    > currencystring幣種
    > tradePricestring交易價格
    > fundingstring資金費用. 正數表示用戶支出xx資金費,負數表示用戶收取xx資金費
    > feestring手續費,正數表示用戶付出xx手續費,負數表示返佣
    > cashFlowstring現金流, 比如平倉時的未平盈虧結算, 以及劃入劃出等. 該值不包含任何手續費或者資金費
    > changestring變更 = cashFlow + funding - fee
    > cashBalancestring餘額(當前幣種), 資金流發生後的該幣種的錢包餘額
    > feeRatestring
    • 對於type=TRADE, 則表示交易手續費率
    • 對於type=SETTLEMENT, 則表示資金費率. 當side=Buy, feeRate=市場結算費率; 當side=Sell, feeRate=-市場結算費率
    > bonusChangestring體驗金的變化
    > tradeIdstring交易id
    > orderIdstring訂單id
    > orderLinkIdstring用戶自定義訂單id
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/account/contract-transaction-log?limit=1&symbol=BTCUSD HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1714035117255
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "id": "467153",
    "symbol": "BTCUSD",
    "category": "inverse",
    "side": "Sell",
    "transactionTime": "1714032000000",
    "type": "SETTLEMENT",
    "qty": "1000",
    "size": "-1000",
    "currency": "BTC",
    "tradePrice": "63974.88",
    "funding": "-0.00000156",
    "fee": "",
    "cashFlow": "0.00000000",
    "change": "0.00000156",
    "cashBalance": "1.1311",
    "feeRate": "-0.00010000",
    "bonusChange": "",
    "tradeId": "423a565c-f1b6-4c81-bc62-760cd7dd89e7",
    "orderId": "",
    "orderLinkId": ""
    }
    ],
    "nextPageCursor": "cursor_id%3D467153%26"
    },
    "retExtInfo": {},
    "time": 1714035117258
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/dcp-info.html b/zh-TW/v5/account/dcp-info.html index b700387a6c..aec11eb9f0 100644 --- a/zh-TW/v5/account/dcp-info.html +++ b/zh-TW/v5/account/dcp-info.html @@ -4,13 +4,13 @@ 查詢DCP配置 | Bybit API Documentation - +

    查詢DCP配置

    查詢帳戶的期貨 / 現貨 / 期權的dcp配置. 在調用接口前, 請確保已經和客戶經理申請了帳戶DCP開通

    • 只有配置了的母子帳戶能夠從該接口查詢到信息, 沒有配置的母帳戶或者子帳戶調用該接口總是返回空

    • 在配置時, 若只申請部分業務線, 比如只申請開通期貨, 則現貨和期權是不會返回數據的

    信息
    • 支持統一帳戶2.0:
      反向合約, USDT永續, USDC合約[DERIVATIVES]
      現貨[SPOT]
      期權[OPTIONS]
    • 支持統一帳戶1.0:
      USDT永續, USDC合約[DERIVATIVES]
      現貨[SPOT]
      期權[OPTIONS]

    HTTP 請求

    GET /v5/account/query-dcp-info

    請求參數

    響應參數

    參數類型說明
    dcpInfosarray<object>
    > productstringSPOT, DERIVATIVES, OPTIONS
    > dcpStatusstring設置斷線保護時間 開關狀態: ON
    > timeWindowstring設置的DCP觸發時間窗口. 範圍為[3, 300] 秒, 默認: 10 秒

    請求示例

    GET /v5/account/query-dcp-info HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1717065530867
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    // 下面這個實例意味著帳戶只配置了現貨和期貨的dcp功能
    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "dcpInfos": [
    {
    "product": "SPOT",
    "dcpStatus": "ON",
    "timeWindow": "10"
    },
    {
    "product": "DERIVATIVES",
    "dcpStatus": "ON",
    "timeWindow": "10"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1717065531697
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/fee-rate.html b/zh-TW/v5/account/fee-rate.html index 3c2b29b75e..9f90e2ad90 100644 --- a/zh-TW/v5/account/fee-rate.html +++ b/zh-TW/v5/account/fee-rate.html @@ -4,13 +4,13 @@ 查詢手續費率 | Bybit API Documentation - +

    查詢手續費率

    查詢交易手續費率

    HTTP 請求

    GET /v5/account/fee-rate

    參數是否必需類型說明
    categorytruestring產品類型. spot, linear, inverse, option
    symbolfalsestring合約名稱. 僅spot, linear, inverse有效
    baseCoinfalsestring交易幣種. SOL, BTC, ETH.僅option有效

    響應參數

    參數類型說明
    categorystring產品類型. spot, option. 期貨不返回該字段
    listarrayObject
    > symbolstring合約名稱. 期權總是為""
    > baseCoinstring交易幣種. SOL, BTC, ETH
    • 期貨不返回該字段
    • 現貨總是返回""
    > takerFeeRatestring吃單手續費率
    > makerFeeRatestring掛單手續費率

    請求示例

    GET /v5/account/fee-rate?symbol=ETHUSDT HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1676360412362
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "ETHUSDT",
    "takerFeeRate": "0.0006",
    "makerFeeRate": "0.0001"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1676360412576
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/get-mmp-state.html b/zh-TW/v5/account/get-mmp-state.html index f05cda5013..8da12a6404 100644 --- a/zh-TW/v5/account/get-mmp-state.html +++ b/zh-TW/v5/account/get-mmp-state.html @@ -4,13 +4,13 @@ 查詢市商保護配置信息 | Bybit API Documentation - +

    查詢市商保護配置信息

    HTTP 請求

    GET /v5/account/mmp-state

    請求參數

    參數是否必需類型說明
    baseCointruestringBase coin

    響應參數

    參數類型說明
    resultarrayObject
    > baseCoinstring交易幣種
    > mmpEnabledboolean帳戶是否開啟了mmp
    > windowstring時間窗口 (毫秒)
    > frozenPeriodstring凍結時間長度 (毫秒)
    > qtyLimitstring成交數量上限
    > deltaLimitstringDelta值上限
    > mmpFrozenUntilstring解凍時間戳 (毫秒)
    > mmpFrozenboolean當前是否觸發了mmp凍結.
    • true: mmpFrozenUntil的值有意義
    • false: 請忽略mmpFrozenUntil字段的值

    請求示例

    POST /v5/account/mmp-reset HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675842997277
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "baseCoin": "ETH"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "result": [
    {
    "baseCoin": "BTC",
    "mmpEnabled": true,
    "window": "5000",
    "frozenPeriod": "100000",
    "qtyLimit": "0.01",
    "deltaLimit": "0.01",
    "mmpFrozenUntil": "1675760625519",
    "mmpFrozen": false
    }
    ]
    },
    "retExtInfo": {},
    "time": 1675843188984
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/repay-liability.html b/zh-TW/v5/account/repay-liability.html index 116d27979c..96cb7efc17 100644 --- a/zh-TW/v5/account/repay-liability.html +++ b/zh-TW/v5/account/repay-liability.html @@ -4,13 +4,13 @@ 一鍵還款 | Bybit API Documentation - +

    一鍵還款

    您可以通過該接口手動還清統一帳戶中的借款

    權限: USDC合約

    HTTP 請求

    POST /v5/account/quick-repayment

    請求參數

    參數是否必需類型說明
    coinfalsestring有負債的幣種
    • 指定幣種: 則僅還清指定幣種的負債
    • 不指定: 還清所有有負債的幣種

    響應參數

    參數類型說明
    listarrayObject
    > coinstring用於償還借款的兌出幣種
    • 用於還款的幣種是基於這個接口中的liquidationOrder字段
    > repaymentQtystring兌出幣種數量

    請求示例

    POST /v5/account/quick-repayment HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1701848610019
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 22

    {
    "coin": "USDT"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "result": {
    "list": [
    {
    "coin": "BTC",
    "repaymentQty": "0.10549670"
    },
    {
    "coin": "ETH",
    "repaymentQty": "2.27768114"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1701848610941
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/reset-mmp.html b/zh-TW/v5/account/reset-mmp.html index 1bc18bfc9f..71902735a8 100644 --- a/zh-TW/v5/account/reset-mmp.html +++ b/zh-TW/v5/account/reset-mmp.html @@ -4,13 +4,13 @@ 重置市商保護凍結 | Bybit API Documentation - +

    重置市商保護凍結

    信息
    • 一旦mmp被觸發, 您的帳戶可以調用該接口進行主動解凍, 解凍後, qtyLimitdeltaLimit就重置為0.
    • 若帳戶沒有被凍結, 該重置接口能夠清除之前的交易, 即不計算重置前發生的總數量和淨交易delta, qtyLimitdeltaLimit就重置為0.

    HTTP 請求

    POST /v5/account/mmp-reset

    請求參數

    參數是否必需類型說明
    baseCointruestring交易幣種

    響應參數

    請求示例

    POST /v5/account/mmp-reset HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675842997277
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "baseCoin": "ETH"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success"
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/set-collateral.html b/zh-TW/v5/account/set-collateral.html index 8e9ca75070..e1109fddbd 100644 --- a/zh-TW/v5/account/set-collateral.html +++ b/zh-TW/v5/account/set-collateral.html @@ -4,13 +4,13 @@ 設置抵押品幣種 | Bybit API Documentation - +

    設置抵押品幣種

    用戶可以自行決定是否開啟統一帳戶中幣種是否進行抵押,默認都是關閉

    HTTP 請求

    POST /v5/account/set-collateral-switch

    請求參數

    參數是否必需類型說明
    cointruestring幣種名稱
    • 您可以從這裡獲取抵押品幣種
    • USDT, USDC不支持設置
    collateralSwitchtruestringON: 開啟抵押, OFF: 關閉抵押

    響應參數


    請求示例

    POST /v5/account/set-collateral-switch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1690513916181
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 55

    {
    "coin": "BTC",
    "collateralSwitch": "ON"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "result": {},
    "retExtInfo": {},
    "time": 1690515818656
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/set-margin-mode.html b/zh-TW/v5/account/set-margin-mode.html index 1c814281ce..ec6b5f2ac7 100644 --- a/zh-TW/v5/account/set-margin-mode.html +++ b/zh-TW/v5/account/set-margin-mode.html @@ -4,13 +4,13 @@ 設置保證金模式(帳戶) | Bybit API Documentation - +

    設置保證金模式(帳戶)

    用戶如果不設置,默認按全倉保證金

    信息
    • 該接口不作用於統一帳戶1.0的反向合約, 它的保證金模式是按照symbol維度設定的. 可以使用切換全倉/逐倉保證金

    HTTP 請求

    POST /v5/account/set-margin-mode

    請求參數

    參數是否必需類型說明
    setMarginModetruestringISOLATED_MARGIN(逐倉保證金模式)
    REGULAR_MARGIN(全倉保證金模式)
    PORTFOLIO_MARGIN(組合保證金模式)

    響應參數

    參數類型說明
    reasonsarrayObject. 若請求提交成功, 則返回空數組
    > reasonCodestring失敗錯誤碼
    > reasonMsgstring失敗錯誤消息

    請求示例

    POST /v5/account/set-margin-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672134396332
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "setMarginMode": "PORTFOLIO_MARGIN"
    }

    響應示例

    {
    "retCode": 3400045,
    "retMsg": "Set margin mode failed",
    "result": {
    "reasons": [
    {
    "reasonCode": "3400000",
    "reasonMsg": "Equity needs to be equal to or greater than 1000 USDC"
    }
    ]
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/set-mmp.html b/zh-TW/v5/account/set-mmp.html index 21796a1b53..6f60926dfd 100644 --- a/zh-TW/v5/account/set-mmp.html +++ b/zh-TW/v5/account/set-mmp.html @@ -4,7 +4,7 @@ 设置市商保護 | Bybit API Documentation - + @@ -13,7 +13,7 @@ 在短時間內的總交易額超過了配置的限額,該賬戶的做市商保護將被觸發。當做市商保護被觸發時,賬戶現有的做市商保護訂單(被標記為做市商保護的訂單)將被 交易引擎自動取消,而該賬戶新的做市商保護訂單將在未來一段時間(稱為凍結期)被拒絕(常規非MMP訂單不受影響)。用戶可以利用這段時間重新評估行情並修改報價。

    如何開通MMP

    您可通過郵件Bybit【financial.inst@bybit.com】或聯繫對應的客戶經理申請開通。 開通後,MMP的默認配置為:

    參數類型說明默認值
    baseCoinstring交易幣種BTC
    windowstring時間窗口 (毫秒)5000
    frozenPeriodstring凍結時間段 (毫秒)100
    qtyLimitstring成交數量上限100
    deltaLimitstringDelta值上限100

    適用對象

    僅適用於期權交易. 當創建期權訂單時, 設置參數mmp=true, 則表示將此訂單納入市商保護。

    一些注意事項

    1. 只有掛單成交qty和delta會被計入qtyLimitdeltaLimit
    2. qty_limit 是每筆交易執行數量的絕對值總和。 delta_limit 是 qty*delta 總和的絕對值。 如果其中任何一項達到或超過限額,該帳戶的做市商保護將會被觸發。

    HTTP 請求

    POST /v5/account/mmp-modify

    請求參數

    參數是否必需類型說明
    baseCointruestring交易幣種
    windowtruestring時間窗口 (毫秒)
    frozenPeriodtruestring凍結時間長度 (毫秒). 設置為"0"則表示帳戶會保持凍結狀態,除非手動重置
    qtyLimittruestring成交數量上限 (正數,至多2位小數)
    deltaLimittruestringDelta上限 (正數,至多2位小數)

    響應參數

    請求示例

    POST /v5/account/mmp-modify HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675833524616
    X-BAPI-RECV-WINDOW: 50000
    Content-Type: application/json

    {
    "baseCoin": "ETH",
    "window": "5000",
    "frozenPeriod": "100000",
    "qtyLimit": "50",
    "deltaLimit": "20"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success"
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/set-spot-hedge.html b/zh-TW/v5/account/set-spot-hedge.html index 2f37094681..d550e90ebb 100644 --- a/zh-TW/v5/account/set-spot-hedge.html +++ b/zh-TW/v5/account/set-spot-hedge.html @@ -4,13 +4,13 @@ 設置現貨對衝 | Bybit API Documentation - +

    設置現貨對衝

    您可以開關現貨對從功能, 僅限統一帳戶組合保證金模式下

    HTTP 請求

    POST /v5/account/set-hedging-mode

    請求參數

    參數是否必需類型說明
    setHedgingModetruestringON, OFF

    響應參數

    參數類型說明
    retCodeintegerResult code
    retMsgstringResult message

    請求示例

    POST /v5/account/set-hedging-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1700117968580
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 31

    {
    "setHedgingMode": "OFF"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "SUCCESS"
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/smp-group.html b/zh-TW/v5/account/smp-group.html index a23ebad945..d84d5cf5fd 100644 --- a/zh-TW/v5/account/smp-group.html +++ b/zh-TW/v5/account/smp-group.html @@ -4,13 +4,13 @@ 查詢SMP組ID | Bybit API Documentation - +

    查詢SMP組ID

    查詢自成交攔截的SMP交易群組ID

    HTTP 請求

    GET /v5/account/smp-group

    請求參數

    響應參數

    參數類型說明
    smpGroupinteger所屬Smp組ID. 如果uid不屬於任何組, 則默認為0

    請求示例

    GET /v5/account/smp-group HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1702363848192
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "smpGroup": 0
    },
    "retExtInfo": {},
    "time": 1702363848539
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/transaction-log.html b/zh-TW/v5/account/transaction-log.html index 246a4c27a4..f61764e289 100644 --- a/zh-TW/v5/account/transaction-log.html +++ b/zh-TW/v5/account/transaction-log.html @@ -4,13 +4,13 @@ 交易日誌 | Bybit API Documentation - +

    交易日誌

    整個賬戶統一錢包裡的交易日誌, 支持最多查詢過去2年的數據

    HTTP 請求

    GET /v5/account/transaction-log

    請求參數

    參數是否必需類型說明
    accountTypefalsestring錢包類型. 僅支持UNIFIED
    categoryfalsestring交易產品類型
  • 統一帳戶2.0: spot,linear,option,inverse
  • 統一帳戶1.0: spot,linear,option
  • currencyfalsestring貨幣
    baseCoinfalsestring交易幣種. 例如: BTCUSDT 的 baseCoin 是 BTC
    typefalsestring交易日誌的類型
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime 7天
    • 若只傳startTime,則查詢startTime和startTime+7天的數據
    • 若只傳endTime,則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量, 最大50. 默認每頁20條
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    listarrayObject
    > idstring唯一id
    > symbolstring合約名稱
    > categorystring產品類型
    > sidestring方向. Buy,Sell,None
    > transactionTimestring交易時間戳(毫秒)
    > typestring類型
    > qtystring數量.
  • 現貨: 正的qty表示該幣數量增加, 負的qty表示該幣數量減少
  • 期貨: 對於成交的流水來說, 這裡的qty表示每筆成交的數量, 不帶方向
  • > sizestring倉位. 特別地, 對於成交的流水來說, 這裡的size表示成交後的倉位大小, 帶有方向, 比如空倉, 則有"-"
    > currencystringUSDC、USDT、BTC、ETH
    > tradePricestring交易價格
    > fundingstring資金費用. 正數表示用戶收取xx資金費, 負數表示用戶支出xx資金費
  • 對於USDC永續合約, 由於資金費結算週期和8小時結算的週期一致, 所以您會看到資金費和8小時結算的數據存在於同一條流水中(type=SETTLEMENT), 您可以通過funding來確定資金費用, 以及cashFlow來確定8小時平倉盈虧
  • > feestring手續費, 正數表示用戶付出xx手續費, 負數表示返佣
    > cashFlowstring現金流, 比如平倉時的未平盈虧結算, USDC永續和交割合約的8小時結算, 以及劃入劃出等. 該值不包含任何手續費或者資金費
    > changestring變更 = cashFlow + funding - fee
    > cashBalancestring餘額(當前幣種), 資金流發生後的該幣種的錢包餘額
    > feeRatestring
    • 對於type=TRADE, 則表示交易手續費率
    • 對於type=SETTLEMENT, 則表示資金費率. 當side=Buy, feeRate=市場結算費率; 當side=Sell, feeRate=-市場結算費率
    > bonusChangestring體驗金的變化
    > tradeIdstring交易id
    > orderIdstring訂單id
    > orderLinkIdstring用戶自定義訂單id
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/account/transaction-log?accountType=UNIFIED&category=linear&currency=USDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672132480085
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "21963%3A1%2C14954%3A1",
    "list": [
    {
    "id": "592324_XRPUSDT_161440249321",
    "symbol": "XRPUSDT",
    "side": "Buy",
    "funding": "-0.003676",
    "orderLinkId": "",
    "orderId": "1672128000-8-592324-1-2",
    "fee": "0.00000000",
    "change": "-0.003676",
    "cashFlow": "0",
    "transactionTime": "1672128000000",
    "type": "SETTLEMENT",
    "feeRate": "0.0001",
    "bonusChange": "",
    "size": "100",
    "qty": "100",
    "cashBalance": "5086.55825002",
    "currency": "USDT",
    "category": "linear",
    "tradePrice": "0.3676",
    "tradeId": "534c0003-4bf7-486f-aa02-78cee36825e4"
    },
    {
    "id": "592324_XRPUSDT_161440249321",
    "symbol": "XRPUSDT",
    "side": "Buy",
    "funding": "",
    "orderLinkId": "linear-order",
    "orderId": "592b7e41-78fd-42e2-9aa3-91e1835ef3e1",
    "fee": "0.01908720",
    "change": "-0.0190872",
    "cashFlow": "0",
    "transactionTime": "1672121182224",
    "type": "TRADE",
    "feeRate": "0.0006",
    "bonusChange": "-0.1430544",
    "size": "100",
    "qty": "88",
    "cashBalance": "5086.56192602",
    "currency": "USDT",
    "category": "linear",
    "tradePrice": "0.3615",
    "tradeId": "5184f079-88ec-54c7-8774-5173cafd2b4e"
    },
    {
    "id": "592324_XRPUSDT_161407743011",
    "symbol": "XRPUSDT",
    "side": "Buy",
    "funding": "",
    "orderLinkId": "linear-order",
    "orderId": "592b7e41-78fd-42e2-9aa3-91e1835ef3e1",
    "fee": "0.00260280",
    "change": "-0.0026028",
    "cashFlow": "0",
    "transactionTime": "1672121182224",
    "type": "TRADE",
    "feeRate": "0.0006",
    "bonusChange": "",
    "size": "12",
    "qty": "12",
    "cashBalance": "5086.58101322",
    "currency": "USDT",
    "category": "linear",
    "tradePrice": "0.3615",
    "tradeId": "8569c10f-5061-5891-81c4-a54929847eb3"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672132481405
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/upgrade-unified-account.html b/zh-TW/v5/account/upgrade-unified-account.html index fcb2717047..c531b1d570 100644 --- a/zh-TW/v5/account/upgrade-unified-account.html +++ b/zh-TW/v5/account/upgrade-unified-account.html @@ -4,7 +4,7 @@ 升級統一保證金賬戶 | Bybit API Documentation - + @@ -16,7 +16,7 @@ 關於升級統一帳戶1.0 Pro到統一帳戶2.0 Pro的條件, 請確保:
    • 對於任意一種訂單類型, 都沒有活動單
    • 所有的反向合約倉位的保證金模式必須和您統一帳戶的保證金模式保持一致. 如果統一帳戶保證金模式是組合保證金, 則要麽將反向倉為全部平掉, 要麽切換統一帳戶保證金模式到逐倉或者全倉
    • 不能有雙向的反向交割倉位, 因為統一帳戶2.0中不支持雙向反向交割
    • 注意,倉位附帶的止盈止損單也屬於掛單
    1. 帳戶升級過程中,可能會由於帳戶相關資產數據處於處理狀態中導致查詢/推送的數據不準確,建議在完成升級後,再查詢和使用。

    HTTP 請求

    POST /v5/account/upgrade-to-uta

    請求參數

    響應參數

    ParameterTypeComments
    unifiedUpdateStatusstring用戶賬戶的升級狀態. PROCESS: 處理中, FAIL: 失敗, SUCCESS: 成功
    unifiedUpdateMsgObject若是PROCESS,SUCCESS,則返回null
    msgarray錯誤原因列表. 只有FAIL時,才會有msg這個字段

    請求示例

    POST /v5/account/upgrade-to-uta HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672125123533
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {}

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "unifiedUpdateStatus": "FAIL",
    "unifiedUpdateMsg": {
    "msg": [
    "Update account failed. You have outstanding liabilities in your Spot account.",
    "Update account failed. Please close the usdc perpetual positions in USDC Account.",
    "unable to upgrade, please cancel the usdt perpetual open orders in USDT account.",
    "unable to upgrade, please close the usdt perpetual positions in USDT account."
    ]
    }
    },
    "retExtInfo": {},
    "time": 1672125124195
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/account/wallet-balance.html b/zh-TW/v5/account/wallet-balance.html index a2aabd495c..6e22d54db9 100644 --- a/zh-TW/v5/account/wallet-balance.html +++ b/zh-TW/v5/account/wallet-balance.html @@ -4,13 +4,13 @@ 查詢錢包餘額 | Bybit API Documentation - +

    查詢錢包餘額

    獲取統一帳戶和經典帳戶錢包餘額, 查詢各個幣種的資產信息. 默認不返回資產或負債為0的幣種信息。

    HTTP 請求

    GET /v5/account/wallet-balance

    請求參數

    參數是否必需類型說明
    accountTypetruestring帳戶類型 要查詢資金帳戶餘額, 可以使用這個接口
    coinfalsestring幣種名稱
    • 不傳則返回非零資產信息
    • 可以傳多個幣進行查詢,以逗號分隔, USDT,USDC

    響應參數

    參數類型說明
    listarrayObject
    > accountTypestring帳戶類型
    > accountLTVstring字段廢棄
    > accountIMRatestring帳戶初始保證金率
  • 您可以參考該鏈結了解統一帳戶下字段含義和計算方式
  • 下面所有帳戶維度的字段都不適用於
    統一帳戶2.0(逐倉模式),
    統一帳戶1.0(逐倉模式), 統一帳戶1.0(CONTRACT),
    經典帳戶(SPOT, CONTRACT)
  • > accountMMRatestring帳戶維持保證金率
    > totalEquitystring總凈值為賬戶中每個幣種資產凈值的法幣估值之和 (USD)
    > totalWalletBalancestring賬戶維度換算成usd的錢包餘額: ∑Asset Wallet Balance By USD value of each asset
    > totalMarginBalancestring賬戶維度換算成usd的保證金餘額: totalWalletBalance + totalPerpUPL
    > totalAvailableBalancestring賬戶維度換算成usd的可用餘額: 全倉保證金: totalMarginBalance - totalInitialMargin
    > totalPerpUPLstring賬戶維度換算成usd的永續和USDC交割合約的浮動盈虧: ∑Each perp and USDC Futures upl by base coin
    > totalInitialMarginstring賬戶維度換算成usd的總初始保證金: ∑Asset Total Initial Margin Base Coin
    > totalMaintenanceMarginstring賬戶維度換算成usd的總維持保證金: ∑Asset Total Maintenance Margin Base Coin
    > coinarrays幣種列表
    >> coinstring幣種名稱,例如 BTC, ETH, USDT, USDC
    >> equitystring當前幣種的資產淨值
    >> usdValuestring當前幣種折算成 usd 的價值
    >> walletBalancestring當前幣種的錢包餘額
    >> freestring經典帳戶現貨錢包的可用餘額. 經典帳戶現貨錢包的獨有字段
    >> lockedstring現貨掛單凍結金額
    >> spotHedgingQtystring用於組合保證金(PM)現貨對衝的數量, 截斷至8為小數, 默認為0 統一帳戶的獨有字段
    >> borrowAmountstring當前幣種的已用借貸額度
    >> availableToWithdrawstring當前幣種的可劃轉提現金額
    >> accruedIntereststring當前幣種的預計要在下一個利息週期收取的利息金額
    >> totalOrderIMstring以當前幣種結算的訂單委託預佔用保證金. 組合保證金模式下,該字段返回空字符串
    >> totalPositionIMstring以當前幣種結算的所有倉位起始保證金求和 + 所有倉位的預佔用平倉手續費. 組合保證金模式下,該字段返回空字符串
    >> totalPositionMMstring以當前幣種結算的所有倉位維持保證金求和. 組合保證金模式下,該字段返回空字符串
    >> unrealisedPnlstring以當前幣種結算的所有倉位的未結盈虧之和
    >> cumRealisedPnlstring以當前幣種結算的所有倉位的累計已結盈虧之和
    >> bonusstring體驗金. UNIFIED帳戶的獨有字段
    >> marginCollateralboolean是否可作為保證金抵押幣種(平台維度), true: 是. false: 否
    • 當marginCollateral=false時, 則collateralSwitch無意義
    • UNIFIED帳戶的獨有字段
    >> collateralSwitchboolean用戶是否開啟保證金幣種抵押(用戶維度), true: 是. false: 否
    • 僅當marginCollateral=true時, 才能主動選擇開關抵押
    • UNIFIED帳戶的獨有字段
    >> availableToBorrowstring由於母子共享借貸限額, 該字段已廢棄, 總是返回"". 請通過查詢抵押品信息接口查詢availableToBorrow

    請求示例

    GET /v5/account/wallet-balance?accountType=UNIFIED&coin=BTC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672125440406
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "totalEquity": "18070.32797922",
    "accountIMRate": "0.0101",
    "totalMarginBalance": "18070.32797922",
    "totalInitialMargin": "182.60183684",
    "accountType": "UNIFIED",
    "totalAvailableBalance": "17887.72614237",
    "accountMMRate": "0",
    "totalPerpUPL": "-0.11001349",
    "totalWalletBalance": "18070.43799271",
    "accountLTV": "0.017",
    "totalMaintenanceMargin": "0.38106773",
    "coin": [
    {
    "availableToBorrow": "3",
    "bonus": "0",
    "accruedInterest": "0",
    "availableToWithdraw": "0",
    "totalOrderIM": "0",
    "equity": "0",
    "totalPositionMM": "0",
    "usdValue": "0",
    "spotHedgingQty": "0.01592413",
    "unrealisedPnl": "0",
    "collateralSwitch": true,
    "borrowAmount": "0.0",
    "totalPositionIM": "0",
    "walletBalance": "0",
    "cumRealisedPnl": "0",
    "locked": "0",
    "marginCollateral": true,
    "coin": "BTC"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672125441042
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/acct-mode.html b/zh-TW/v5/acct-mode.html index 419553e194..3ddcbd041b 100644 --- a/zh-TW/v5/acct-mode.html +++ b/zh-TW/v5/acct-mode.html @@ -4,7 +4,7 @@ 帳戶模式介紹 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    帳戶模式介紹

    現在Bybit平台上共有三種帳戶模式並存, 分別是經典帳戶, 統一帳戶1.0, 統一帳戶2.0

    統一帳戶2.0

    此帳戶模式是統一帳戶的終極版本, 將反向合約、USDT永續、USDC永續、USDC交割、現貨以及期權都納入到了統一交易體系當中, 在全倉保證金和組合保證金模式下, 所有交易都共享保證金。

    uta2.0

    統一帳戶1.0

    此帳戶模式下, 反向合約的交易在獨立的交易賬戶內, 需要將對應的保證金幣種存入到"反向合約帳戶"內, 才能交易, 且保證金幣種之間不共享。對於 USDT永續、USDC永續、USDC交割、現貨以及期權, 則都在"統一帳戶"內交易

    uta1.0

    經典帳戶

    此帳戶模式下, 合約交易和現貨交易是分開的, 其中反向合約和USDT永續都是在"合約帳戶"內完成, 現貨交易是在"現貨帳戶"內完成

    classic

    通過API判斷帳戶模式

    使用對應帳戶的key調用查詢帳戶配置接口, 看字段unifiedMarginStatus

    • 1: 經典帳戶
    • 3: 統一帳戶1.0
    • 4: 統一帳戶1.0 (pro版本)
    • 5: 統一帳戶2.0
    • 6: 統一帳戶2.0 (pro版本)
      P.S. uta 或 uta (pro) 是同一款产品,但 pro 在通过 API 进行交易时具有轻微的性能优势

    統一帳戶2.0的API使用變化

    接口目錄具体接口统一账户2.0统一账户1.0
    category=inverse(反向合约)category=inverse(反向合约)
    公有行情查詢可交易產品的規格信息在統一帳戶2.0發佈後, "unifiedMarginTrade"字段變成true"unifiedMarginTrade"是false
    交易創建委託單反向交割不再支持雙向持倉, 所以"positionIdx"總是0反向交割支持雙向持倉, 所以"positionIdx"可以是0, 1, 2
    查詢實施和終態委託單查詢終態狀態使用openOnly=1, 且僅保留最近500單查詢終態狀態使用openOnly=2
    查詢歷史訂單1. orderStatus不傳, 默認查詢所有終態訂單
    2. 支援參數baseCoinsettleCoin
    3. 不支持活動單查詢, 部分終態訂單有限查詢
    4. 只保存24小時的取消態訂單
    5. 只能查詢升級後產生的訂單
    1. orderStatus不傳, 默認查詢活動態和終態訂單
    2. 不支持參數baseCoinsettleCoin
    3. 總是支持活動單和各種終態單查詢
    4. 沒有此限制
    查詢成交紀錄1. 支持baseCoin的查詢;
    2. 返回的createType有值
    3. 只能查詢升級後產生的成交
    1. 不支持baseCoin的查詢;
    2. 返回的createType總是""
    批量創建委託單支持反向合約不支持反向合約
    批量修改委託單支持反向合約不支持反向合約
    批量撤銷委託單支持反向合約不支持反向合約
    設置斷線保護時間支持反向合約, 當dcp觸發時, 反向的訂單會被自動取消不支持反向合約, 當dcp觸發時, 反向的訂單不會被自動取消
    升級前相關紀錄查詢升級前訂單紀錄支持查詢還是經典帳戶或者統一帳戶1.0時產生的訂單 -
    查詢升級前成交紀錄支持查詢還是經典帳戶或者統一帳戶1.0時產生的交易 -
    查詢升級前平倉盈虧支持查詢還是經典帳戶或者統一帳戶1.0時產生的平倉盈虧 -
    持倉查詢持倉(實時)1. 不支持symbol傳多個
    2. 響應字段中, "tradeMode", "liqPrice", "bustPrice" 使用或含義有變化
    1. 支持symbol傳多個
    查詢平倉盈虧只能查詢升級後產生的平倉盈虧 -
    設置槓桿反向永續和反向交割僅支持單倉模式, buy和sell的leverage必須相等反向交割支持雙向持倉, buy和sell的leverage可以不相等
    切換全倉/逐倉保證金保證金模式變成帳戶維度了, 該接口不再適用反向合約支持使用該接口
    切換持倉模式反向交割不再支持雙向持倉反向交割支持雙向持倉
    帳戶查詢錢包餘額不支持查詢CONTRACT支持查詢CONTRACT
    交易日誌(統一帳戶)反向合約的交易日誌將會納入進來反向合約的交易日誌需要走下方接口
    交易日誌(經典帳戶)升級到2.0後, 該接口就不適用了在1.0或者經典時的數據還能取到
    資產查詢交割紀錄支持查詢反向交割的交割紀錄不支持查詢反向交割的交割紀錄
    該目錄下所有涉及accountType的接口不再支持accountType=CONTRACT支持accountType=CONTRACT (反向合約帳戶)
    WebSocket流/交易Websocket下單指南支持反向合約不支持反向合約
    - + \ No newline at end of file diff --git a/zh-TW/v5/announcement.html b/zh-TW/v5/announcement.html index 9223cffb5b..c3e77080d1 100644 --- a/zh-TW/v5/announcement.html +++ b/zh-TW/v5/announcement.html @@ -4,13 +4,13 @@ 查詢公告 | Bybit API Documentation - +

    查詢公告

    HTTP 請求

    GET /v5/announcements/index

    請求參數

    參數是否必需類型說明
    localetruestring公告語言標識
    typefalsestring公告類型
    tagfalsestring公告標籤
    pagefalseinteger分頁頁碼. 默認: 1
    limitfalseinteger每頁數據限制. 默認: 20

    響應參數

    參數類型說明
    totalinteger可查詢公告總署
    listarrayObject
    > titlestring公告標題
    > descriptionstring公告描述
    > typeObject
    >> titlestring公告類型名稱,多語言
    >> keystring公告類型唯一鍵
    > tagsarray<string>公告標籤
    > urlstring公告鏈結
    > dateTimestampnumber作者填寫的時間戳 (毫秒)
    > startDataTimestampnumber事件開始時間戳 (毫秒), 僅當list.type.key == "latest_activities"時有效
    > endDataTimestampnumber事件結束時間戳 (毫秒), 僅當list.type.key == "latest_activities"時有效
    > publishTimenumber公告發出時間戳 (毫秒)

    請求示例

    GET /v5/announcements/index?locale=en-US&limit=1 HTTP/1.1
    Host: api.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "total": 569,
    "list": [
    {
    "title": "Arbitrum(ARB) 即將上線:儲值 250 ARB 即賺 25 USDT,更可解鎖 150,000 USDT 獎池!",
    "description": "好消息! ARB 即將上線 Bybit 交易平台!",
    "type": {
    "title": "新幣上線",
    "key": "new_crypto"
    },
    "tags": [
    "Spot",
    "Spot Listings"
    ],
    "url": "https://announcements.bybit.com/zh-TW/article/new-listing-arbitrum-arb-deposit-250-arb-to-earn-25-usdt-share-a-150-000-usdt-prize-pool--bltf662314c211a8616/",
    "dateTimestamp": 1679045608000,
    "startDateTimestamp": 1679564008000,
    "endDateTimestamp": 1680255208000
    }
    ]
    },
    "retExtInfo": {},
    "time": 1679416172335
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/balance/account-coin-balance.html b/zh-TW/v5/asset/balance/account-coin-balance.html index 5e6a88ef92..9dee0bb6ab 100644 --- a/zh-TW/v5/asset/balance/account-coin-balance.html +++ b/zh-TW/v5/asset/balance/account-coin-balance.html @@ -4,14 +4,14 @@ 查詢帳戶單個幣種餘額 | Bybit API Documentation - +

    查詢帳戶單個幣種餘額

    獲取某帳戶類型下某指定幣種的餘額。支持通過輸入子帳戶id來查詢子帳戶的某個帳戶類型下的某個幣種餘額 同時, 支持查詢母子帳戶、子子帳戶、子母帳戶之間的可劃轉金額,特別是針對於擁有機構借貸的用戶。

    HTTP 請求

    GET /v5/asset/transfer/query-account-coin-balance

    請求參數

    參數是否必需類型說明
    memberIdfalsestring用戶Id. 當查詢子帳號的餘額時,該字段必傳
    toMemberIdfalsestring劃入帳戶UID. 當查詢不同uid間劃轉時, 該字段必傳
    accountTypetruestring帳戶類型
    toAccountTypefalsestring劃入帳戶類型. 當查詢不同帳戶類型間的劃轉時, 該字段必傳
    cointruestring幣種
    withBonusfalseinteger是否查詢體驗金. 0(默認): 不查詢,1: 查詢.
    withTransferSafeAmountfalseinteger是否查詢延遲提幣安全限額
    withLtvTransferSafeAmountfalseinteger特別用於機構借貸用戶, 可以查詢風險水平內的可劃轉餘額
    • 0(default):false, 1:true
    • 此時toAccountType字段必傳

    響應參數

    參數類型說明
    accountTypestring賬戶類型
    bizTypeinteger帳戶業務子類型
    accountIdstring賬戶ID
    memberIdstring用戶ID
    balanceObject
    > coinstring幣種類型
    > walletBalancestring錢包余額
    > transferBalancestring可划余額
    > bonusstring可用金額中包含的体验金
    > transferSafeAmountstring可劃轉的安全限額. 若不查詢,則返回""
    > ltvTransferSafeAmountstring機構借貸用戶的可劃轉餘額. 若不查詢,則返回""

    請求示例

    GET /v5/asset/transfer/query-account-coin-balance?accountType=UNIFIED&coin=USDT&toAccountType=FUND&withLtvTransferSafeAmount=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: xxxxx
    X-BAPI-API-KEY: xxxxx
    X-BAPI-TIMESTAMP: 1690254520644
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "accountType": "UNIFIED",
    "bizType": 1,
    "accountId": "1631385",
    "memberId": "1631373",
    "balance": {
    "coin": "USDT",
    "walletBalance": "11999",
    "transferBalance": "11999",
    "bonus": "0",
    "transferSafeAmount": "",
    "ltvTransferSafeAmount": "7602.4861"
    }
    },
    "retExtInfo": {},
    "time": 1690254521256
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/balance/all-balance.html b/zh-TW/v5/asset/balance/all-balance.html index f37f38d03a..01bce1bd10 100644 --- a/zh-TW/v5/asset/balance/all-balance.html +++ b/zh-TW/v5/asset/balance/all-balance.html @@ -4,13 +4,13 @@ 查詢賬戶所有幣種余額 | Bybit API Documentation - +

    查詢賬戶所有幣種余額

    支持查詢母帳戶的各個帳戶類型的幣種餘額,以及母帳戶下各子帳戶的各個帳戶類型的幣種餘額。

    HTTP 請求

    GET /v5/asset/transfer/query-account-coins-balance

    請求參數

    參數是否必須類型說明
    memberIdfalsestring用戶ID. 當使用母帳號api key查詢子帳戶的幣種餘額時,該字段必傳
    accountTypetruestring賬戶類型
    coinfalsestring幣種類型
    withBonusfalseinteger是否查詢體驗金. 0(默認):不查詢; 1:查詢

    返回參數

    參數類型說明
    accountTypestring賬戶類型
    memberIdstring用戶ID
    balanceObject
    > coinstring幣種類型
    > walletBalancestring錢包余額
    > transferBalancestring可划余額
    > bonusstring体验金

    請求示例

    GET /v5/asset/transfer/query-account-coins-balance?accountType=FUND&coin=USDC HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675866354698
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "memberId": "533285",
    "accountType": "FUND",
    "balance": [
    {
    "coin": "USDT",
    "transferBalance": "1010",
    "walletBalance": "1010",
    "bonus": ""
    },
    {
    "coin": "USDC",
    "transferBalance": "0",
    "walletBalance": "0",
    "bonus": ""
    }
    ]
    },
    "retExtInfo": {},
    "time": 1675865290069
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/balance/asset-info.html b/zh-TW/v5/asset/balance/asset-info.html index 433fd5bb0c..f146fa6a66 100644 --- a/zh-TW/v5/asset/balance/asset-info.html +++ b/zh-TW/v5/asset/balance/asset-info.html @@ -4,13 +4,13 @@ 查詢資產信息 | Bybit API Documentation - +

    查詢資產信息

    只能查詢經典帳戶的現貨帳戶資產

    HTTP 請求

    GET /v5/asset/transfer/query-asset-info

    請求參數

    參數是否必需類型說明
    accountTypetruestring賬戶類型, SPOT
    coinfalsestring幣種

    響應參數

    參數類型說明
    spotObject
    > statusstring賬戶狀態. ACCOUNT_STATUS_NORMAL: 正常, ACCOUNT_STATUS_UNSPECIFIED: 禁用
    > assetsarrayObject
    >> coinstring幣種
    >> frozenstring掛單凍結金額
    >> freestring可用余額
    >> withdrawstring提現中金額

    請求示例

    GET /v5/asset/transfer/query-asset-info?accountType=SPOT&coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672136538042
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "spot": {
    "status": "ACCOUNT_STATUS_NORMAL",
    "assets": [
    {
    "coin": "ETH",
    "frozen": "0",
    "free": "11.53485",
    "withdraw": ""
    }
    ]
    }
    },
    "retExtInfo": {},
    "time": 1672136539127
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/balance/delay-amount.html b/zh-TW/v5/asset/balance/delay-amount.html index 1f17e5d037..153801f746 100644 --- a/zh-TW/v5/asset/balance/delay-amount.html +++ b/zh-TW/v5/asset/balance/delay-amount.html @@ -4,13 +4,13 @@ 查詢延遲提幣凍結金額 | Bybit API Documentation - +

    查詢延遲提幣凍結金額

    信息

    如何會導致部分資金被要求延遲提幣?

    • 鏈上充值: 鏈上區塊確認數未達到風險可控程度, 部分資金被凍結一段時間, 直到解凍
    • 買幣: 若存在風險, 則一定時間內被凍結, 無法提幣

    HTTP 請求

    GET /v5/asset/withdraw/withdrawable-amount

    請求參數

    參數是否必需類型說明
    cointruestring幣種敏誠

    響應參數

    參數類型說明
    limitAmountUsdstring延遲提幣凍結金額 (USD)
    withdrawableAmountObject
    > SPOTObject現貨錢包, 若該錢包被移除, 則不會返回該對象
    >> coinstring幣種名稱
    >> withdrawableAmountstring可提現金額
    >> availableBalancestring可用餘額
    > FUNDObject資金錢包
    >> coinstring幣種名稱
    >> withdrawableAmountstring可提現金額
    >> availableBalancestring可用餘額

    請求示例

    GET /v5/asset/withdraw/withdrawable-amount?coin=USDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677565621998
    X-BAPI-RECV-WINDOW: 50000
    X-BAPI-SIGN: XXXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "limitAmountUsd": "52853.5551",
    "withdrawableAmount": {
    "FUND": {
    "coin": "USDT",
    "withdrawableAmount": "11135.0596",
    "availableBalance": "11135.0596"
    },
    "SPOT": {
    "coin": "USDT",
    "withdrawableAmount": "0",
    "availableBalance": "0"
    }
    }
    },
    "retExtInfo": {},
    "time": 1677565632151
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/coin-info.html b/zh-TW/v5/asset/coin-info.html index 5a641249ff..7cf86d711e 100644 --- a/zh-TW/v5/asset/coin-info.html +++ b/zh-TW/v5/asset/coin-info.html @@ -4,13 +4,13 @@ 查詢幣種信息 | Bybit API Documentation - +

    查詢幣種信息

    獲取幣種信息,包括鏈信息,是否可充可提

    HTTP 請求

    GET /v5/asset/coin/query-info

    請求參數

    參數是否必需類型說明
    coinfalsestring幣種

    響應參數

    參數類型說明
    rowsarrayObject
    > nameinteger幣種名稱
    > coinstring幣種
    > remainAmountstring單筆提現最大數量
    > chainsarrayObject
    >> chainstring鏈名
    >> chainTypestring鏈類型
    >> confirmationstring充值上賬確認數
    >> withdrawFeestring提現手續費. 如果提現費為空,則表示該幣不支持提現
    >> depositMinstring最小充值數量
    >> withdrawMinstring最小提現數量
    >> minAccuracystring充提幣的最小精度
    >> chainDepositstring幣鏈是否可充值. 0: 暫停. 1: 正常
    >> chainWithdrawstring幣鏈是否可提幣. 0: 暫停. 1: 正常
    >> withdrawPercentageFeestring提現手續費百分比. 該字段的值是實際數字,即0.022表示為2.2%

    請求示例

    GET /v5/asset/coin/query-info?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672194580887
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "rows": [
    {
    "name": "ETH",
    "coin": "ETH",
    "remainAmount": "1020000",
    "chains": [
    {
    "chainType": "ETH",
    "confirmation": "10000",
    "withdrawFee": "0.005",
    "depositMin": "0.01",
    "withdrawMin": "0.02",
    "chain": "ETH",
    "chainDeposit": "1",
    "chainWithdraw": "1",
    "minAccuracy": "8",
    "withdrawPercentageFee": "0.022"
    },
    {
    "chainType": "Arbitrum One",
    "confirmation": "10",
    "withdrawFee": "0.01",
    "depositMin": "0.001",
    "withdrawMin": "0.1",
    "chain": "ARBI",
    "chainDeposit": "1",
    "chainWithdraw": "1",
    "minAccuracy": "8",
    "withdrawPercentageFee": "0"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677478088215
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/convert/apply-quote.html b/zh-TW/v5/asset/convert/apply-quote.html index d932d009bf..73bacd0af1 100644 --- a/zh-TW/v5/asset/convert/apply-quote.html +++ b/zh-TW/v5/asset/convert/apply-quote.html @@ -4,13 +4,13 @@ 申請報價 | Bybit API Documentation - +

    申請報價

    HTTP 請求

    POST /v5/asset/exchange/quote-apply

    請求參數

    參數是否必需類型說明
    fromCointruestring兌出幣種
    toCointruestring兌入幣種
    fromCoinTypefalsestringcrypto
    toCoinTypefalsestringcrypto
    requestCointruestring請求報價幣種, 和兌出幣種保持一致
  • 未來, 可能會支援requestCoin=兌入幣種
  • requestAmounttruestring請求報價幣種數量
    accountTypetruestring帳戶類型
    paramTypefalsestringopFrom, 主要用於API broker
    paramValuefalsestringBroker ID, 主要用於API broker
    requestIdfalsestring自定義的請求ID
  • 最長不超過36位的字符串
  • 一般來說該字段無用, 可用於內部追蹤這次報價請求
  • 響應參數

    參數類型說明
    quoteTxIdstring報價單號. 由系統生成, 用於後面的確認報價和查詢
    exchangeRatestring兌換率
    fromCoinstring兌出幣種
    fromCoinTypestring兌出幣種類型. crypto
    toCoinstring兌入幣種
    toCoinTypestring兌入幣種類型. crypto
    fromAmountstring兌出幣種數量
    toAmountstring兌入幣種數量
    expiredTimestring報價單過期的時間戳(有效期為15秒)
    requestIdstring自定義請求ID

    請求示例

    POST /v5/asset/exchange/quote-apply HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720071077014
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json
    Content-Length: 172

    {
    "requestId": "test-00002",
    "fromCoin": "ETH",
    "toCoin": "BTC",
    "accountType": "eb_convert_funding",
    "requestCoin": "ETH",
    "requestAmount": "0.1",
    "paramType": "opFrom",
    "paramValue": "broker-id-001"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "quoteTxId": "10100108106409340067234418688",
    "exchangeRate": "0.053517914861880000",
    "fromCoin": "ETH",
    "fromCoinType": "crypto",
    "toCoin": "BTC",
    "toCoinType": "crypto",
    "fromAmount": "0.1",
    "toAmount": "0.005351791486188000",
    "expiredTime": "1720071092225",
    "requestId": "test-00002"
    },
    "retExtInfo": {},
    "time": 1720071077265
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/convert/confirm-quote.html b/zh-TW/v5/asset/convert/confirm-quote.html index da9701f60e..5b24c35f41 100644 --- a/zh-TW/v5/asset/convert/confirm-quote.html +++ b/zh-TW/v5/asset/convert/confirm-quote.html @@ -4,13 +4,13 @@ 確認報價 | Bybit API Documentation - +

    確認報價

    信息
    1. 該接口是異步的, 請通過查詢請求確認最終兌換結果
    2. 確保您在報價單過期前確認該報價, 否則失效

    HTTP 請求

    POST /v5/asset/exchange/convert-execute

    請求參數

    參數是否必需類型說明
    quoteTxIdtruestring報價單ID, 來自於提交報價的響應

    響應參數

    參數類型說明
    quoteTxIdstring報價單ID
    exchangeStatusstring兌換狀態
  • init
  • processing
  • success
  • failure
  • 請求示例

    POST /v5/asset/exchange/convert-execute HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720071899789
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 52

    {
    "quoteTxId": "10100108106409343501030232064"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "exchangeStatus": "processing",
    "quoteTxId": "10100108106409343501030232064"
    },
    "retExtInfo": {},
    "time": 1720071900529
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/convert/convert-coin-list.html b/zh-TW/v5/asset/convert/convert-coin-list.html index 0a37bd92e2..fb03f2bf05 100644 --- a/zh-TW/v5/asset/convert/convert-coin-list.html +++ b/zh-TW/v5/asset/convert/convert-coin-list.html @@ -4,13 +4,13 @@ 查詢兌換幣種列表 | Bybit API Documentation - +

    查詢兌換幣種列表

    您可以通過該接口獲取到各個帳戶內的兌入兌出幣種列表

    HTTP 請求

    GET /v5/asset/exchange/query-coin-list

    請求參數

    參數是否必需類型說明
    coinfalsestring兌出幣種
  • 當side=0時, 該字段會被忽略
  • sidefalseinteger0: 查詢兌出幣種列表, 會返回幣種餘額
    1: 有傳coin的話, 會根據兌出幣種查詢支持的兌入幣種列表
    accountTypetruestring錢包類型
  • eb_convert_funding
  • eb_convert_uta
  • eb_convert_spot
  • eb_convert_contract
  • eb_convert_inverse
  • 響應參數

    參數類型說明
    coinsarray<object>幣種信息
    > coinstring幣種
    > fullNamestring完整幣種名
    > iconstring幣種圖標url
    > iconNightstring幣種圖標url (夜間模式)
    > accuracyLengthinteger幣種精度
    > coinTypestring幣種類型. crypto(加密貨幣)
    > balancestring幣種餘額
  • 只有當side=0時, 會返回餘額, 否則, 返回""
  • > uBalancestring幣種折成USDT的價值
    > singleFromMinLimitstring單筆交易最小兌出幣種數量
    > singleFromMaxLimitstring單筆交易最大兌出幣種數量
    > disableFrombooleantrue: 該幣種禁止兌出, false: 該幣種允許兌出
    > disableTobooleantrue: 該幣入禁止兌出, false: 該幣種允許兌入
    > timePeriodinteger保留字段, 當前可忽略
    > singleToMinLimitstring保留字段, 當前可忽略
    > singleToMaxLimitstring保留字段, 當前可忽略
    > dailyFromMinLimitstring保留字段, 當前可忽略
    > dailyFromMaxLimitstring保留字段, 當前可忽略保留字段, 當前可忽略
    > dailyToMinLimitstring保留字段, 當前可忽略
    > dailyToMaxLimitstring保留字段, 當前可忽略

    請求示例

    GET /v5/asset/exchange/query-coin-list?side=0&accountType=eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720064061248
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "coins": [
    {
    "coin": "BTC",
    "fullName": "BTC",
    "icon": "https://t1.bycsi.com/app/assets/token/0717b8c28c2373bf714c964195411d0f.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/9504b4c841194cc38f04041003ffbfdb.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "0",
    "uBalance": "0",
    "timePeriod": 0,
    "singleFromMinLimit": "0.001",
    "singleFromMaxLimit": "1",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    },
    ...
    {
    "coin": "SOL",
    "fullName": "SOL",
    "icon": "https://s1.bycsi.com/app/assets/token/87ca5f1ca7229bdf0d9a16435653007c.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/383a834046655ffe5ef1be1a025791cc.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "18.05988133",
    "uBalance": "2458.46990211775033220586588327",
    "timePeriod": 0,
    "singleFromMinLimit": "0.1",
    "singleFromMaxLimit": "1250",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    },
    ...
    {
    "coin": "ETH",
    "fullName": "ETH",
    "icon": "https://s1.bycsi.com/app/assets/token/d6c17c9e767e1810875c702d86ac9f32.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/9613ac8e7d62081f4ca20488ae5b168d.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "0.80264489",
    "uBalance": "2596.09751650032773106431534138",
    "timePeriod": 0,
    "singleFromMinLimit": "0.01",
    "singleFromMaxLimit": "250",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    }
    ]
    },
    "retExtInfo": {},
    "time": 1720064061736
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/convert/get-convert-history.html b/zh-TW/v5/asset/convert/get-convert-history.html index 5669047bf6..6f4499efe9 100644 --- a/zh-TW/v5/asset/convert/get-convert-history.html +++ b/zh-TW/v5/asset/convert/get-convert-history.html @@ -4,13 +4,13 @@ 查詢兌換歷史 | Bybit API Documentation - +

    查詢兌換歷史

    那些被確認的報價單, 不管最終狀態如何, 該接口都會返回

    信息

    僅返回通過open api進行兌換的歷史紀錄

    HTTP 請求

    GET /v5/asset/exchange/query-convert-history

    請求參數

    參數是否必需類型說明
    accountTypefalsestring錢包類型
  • 支持傳遞多個, 用逗號分開 比如, eb_convert_funding,eb_convert_uta
  • 當不傳時, 默認返回所有錢包
  • indexfalseinteger頁碼
  • 從1開始
  • 不傳時, 默認返回第一頁
  • limitfalseinteger每頁數量
  • 默認20條
  • 最多支持100條, 大於100, 按照100返回
  • 響應參數

    參數類型說明
    listarray<object>報價單列表
    > accountTypestring錢包類型
    > exchangeTxIdstring報價單ID, 和quoteTxId保持一致
    > userIdstring用戶ID
    > fromCoinstring兌出幣種
    > fromCoinTypestring兌出幣種類型. crypto
    > toCoinstring兌入幣種
    > toCoinTypestring兌入幣種類型. crypto
    > fromAmountstring兌出幣種數量
    > toAmountstring兌入幣種數量
    > exchangeStatusstring兌換狀態
  • init
  • processing
  • success
  • failure
  • > extInfoobject
    >> paramTypestring如果您在申請報價接口中中有發送該字段, 則這裡會釋出該字段
    >> paramValuestring如果您在申請報價接口中中有發送該字段, 則這裡會釋出該字段
    > convertRatestring兌換率
    > createdAtstring報價單創建時間

    請求示例

    GET /v5/asset/exchange/query-convert-history?accountType=eb_convert_uta,eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720074159814
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "list": [
    {
    "accountType": "eb_convert_funding",
    "exchangeTxId": "10100108106409343501030232064",
    "userId": "XXXXX",
    "fromCoin": "ETH",
    "fromCoinType": "crypto",
    "fromAmount": "0.1",
    "toCoin": "BTC",
    "toCoinType": "crypto",
    "toAmount": "0.00534882723991",
    "exchangeStatus": "success",
    "extInfo": {
    "paramType": "opFrom",
    "paramValue": "broker-id-001"
    },
    "convertRate": "0.0534882723991",
    "createdAt": "1720071899995"
    },
    {
    "accountType": "eb_convert_uta",
    "exchangeTxId": "23070eb_convert_uta408933875189391360",
    "userId": "XXXXX",
    "fromCoin": "BTC",
    "fromCoinType": "crypto",
    "fromAmount": "0.1",
    "toCoin": "ETH",
    "toCoinType": "crypto",
    "toAmount": "1.773938248611074",
    "exchangeStatus": "success",
    "extInfo": {},
    "convertRate": "17.73938248611074",
    "createdAt": "1719974243256"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1720074457715
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/convert/get-convert-result.html b/zh-TW/v5/asset/convert/get-convert-result.html index ce0a6bbd3e..5adc658b9e 100644 --- a/zh-TW/v5/asset/convert/get-convert-result.html +++ b/zh-TW/v5/asset/convert/get-convert-result.html @@ -4,13 +4,13 @@ 查詢報價單狀態 | Bybit API Documentation - +

    查詢報價單狀態

    信息
    • 您可以通過quoteTxId指定查詢某筆被確認的報價單
    • 確保傳入匹配的錢包類型和報價單號, 否則會查不到

    HTTP 請求

    GET /v5/asset/exchange/convert-result-query

    請求參數

    參數是否必需類型說明
    quoteTxIdtruestring報價單號
    accountTypetruestring錢包類型

    響應參數

    參數類型說明
    resultobject
    > accountTypestring錢包類型
    > exchangeTxIdstring報價單ID, 和quoteTxId保持一致
    > userIdstring用戶ID
    > fromCoinstring兌出幣種
    > fromCoinTypestring兌出幣種類型. crypto
    > toCoinstring兌入幣種
    > toCoinTypestring兌入幣種類型. crypto
    > fromAmountstring兌出幣種數量
    > toAmountstring兌入幣種數量
    > exchangeStatusstring兌換狀態
  • init
  • processing
  • success
  • failure
  • > extInfoobject保留字段, 當前可忽略
    > convertRatestring兌換率
    > createdAtstring報價單創建時間

    請求示例

    GET /v5/asset/exchange/convert-result-query?quoteTxId=10100108106409343501030232064&accountType=eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720073659847
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "result": {
    "accountType": "eb_convert_funding",
    "exchangeTxId": "10100108106409343501030232064",
    "userId": "XXXXX",
    "fromCoin": "ETH",
    "fromCoinType": "crypto",
    "fromAmount": "0.1",
    "toCoin": "BTC",
    "toCoinType": "crypto",
    "toAmount": "0.00534882723991",
    "exchangeStatus": "success",
    "extInfo": {},
    "convertRate": "0.0534882723991",
    "createdAt": "1720071899995"
    }
    },
    "retExtInfo": {},
    "time": 1720073660696
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/convert/guideline.html b/zh-TW/v5/asset/convert/guideline.html index 5d5958f0d0..f3e9431817 100644 --- a/zh-TW/v5/asset/convert/guideline.html +++ b/zh-TW/v5/asset/convert/guideline.html @@ -4,13 +4,13 @@ 閃兌接入指南 | Bybit API Documentation - +

    閃兌接入指南

    信息
    • 所有接口都需要進行鑒權
    • API key的權限要求: "兌換"

    流程

    Step1 查詢兌換幣種列表

    • 查詢不同錢包內的支持的兌入兌出幣種列表
    • 當查詢兌出幣種列表時, 會有幣種餘額返回

    Step2 申請報價

    • 選擇兌出幣種, 兌入幣種, 錢包類型, 設定號兌出幣種的數量來獲取報價
    • 該階段會核驗餘額

    Step3 確認報價

    • 在有效時間內確認報價 (15秒). 一旦確認, 系統會處理交易
    • 該操作環節是異步的, 所以當餘額被劃轉出去後, 最終兌換可能會失敗

    Step4 查詢報價單狀態

    在確認報價後, 通過該接口查詢最終報價單的處理狀態

    錯誤碼

    錯誤碼消息備註
    790000system error, please try again later系統繁忙
    700000parameter error參數錯誤
    700001quote fail: no deler can be used
    700002quote fial: not support quote type在提交報價時, requestCoin=兌入幣種, 會返回該錯誤
    700003order status not allowed
    700004order does not exit1. 檢查quoteTxId是否正確; 2. 檢查quoteTxId和accountType是否匹配
    700005Your available balance is insufficient or wallet does not exist
    700006Low amount limit請求的數量小於minFromCoinLimit
    700007Large amount limit請求的數量大於maxFromCoinLimit
    700008quote fail: price time out1. 報價單已經失效; 2.傳入quoteTxId不正確
    700009quoteTxId has already been used在報價單有效期內, 同一個quoteTxId多次請求確認接口
    700010INS loan user cannot perform conversion
    700011illegal operation當提交報價的是用戶A, 確認報價的是用戶B

    API頻率

    方法路徑頻率是否可提升
    GET/v5/asset/exchange/query-coin-list100 req/sN
    POST/v5/asset/exchange/quote-apply50 req/sN
    POST/v5/asset/exchange/convert-execute50 req/sN
    GET/v5/asset/exchange/convert-result-query100 req/sN
    GET/v5/asset/exchange/query-convert-history100 req/sN
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/delivery.html b/zh-TW/v5/asset/delivery.html index f673871366..29672518bb 100644 --- a/zh-TW/v5/asset/delivery.html +++ b/zh-TW/v5/asset/delivery.html @@ -4,13 +4,13 @@ 查詢交割紀錄 | Bybit API Documentation - +

    查詢交割紀錄

    查詢反向交割 / USDC交割 / 期權的交割紀錄, 返回結果按照deliveryTime降序排列

    HTTP 請求

    GET /v5/asset/delivery-record

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
  • 統一帳戶2.0: inverse(反向交割), linear(USDC交割), option
  • 統一帳戶1.0: linear(USDC交割), option
  • symbolfalsestring合約名稱
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近30天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 30天
    • 若只傳startTime,則查詢startTime和startTime+30天的數據
    • 若只傳endTime,則查詢endTime-30天和endTime的數據
    endTimefalseinteger結束時間 (毫秒)
    expDatefalsestring過期日. 格式示例: 25MAR22. 默認: 返回所有日期數據
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > deliveryTimenumber交割時間戳 (毫秒)
    > symbolstring合約名稱
    > sidestringBuy,Sell
    > positionstring交割數量
    > deliveryPricestring交割價格
    > strikestring行權價
    > feestring手續費,正數表支出,負數表收取
    > deliveryRplstring交割已實現盈虧
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/asset/delivery-record?expDate=29DEC22&category=option HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672362112944
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "132791%3A0%2C132791%3A0",
    "category": "option",
    "list": [
    {
    "symbol": "BTC-29DEC22-16000-P",
    "side": "Buy",
    "deliveryTime": 1672300800860,
    "strike": "16000",
    "fee": "0.00000000",
    "position": "0.01",
    "deliveryPrice": "16541.86369547",
    "deliveryRpl": "3.5"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672362116184
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/deposit/deposit-coin-spec.html b/zh-TW/v5/asset/deposit/deposit-coin-spec.html index b6d1fdc97a..88421bed09 100644 --- a/zh-TW/v5/asset/deposit/deposit-coin-spec.html +++ b/zh-TW/v5/asset/deposit/deposit-coin-spec.html @@ -4,13 +4,13 @@ 查詢支持的充值幣種信息 | Bybit API Documentation - +

    查詢支持的充值幣種信息

    通過幣種信息接口,獲取幣鏈組合

    提示

    該接口不需要做鑒權

    HTTP 請求

    GET /v5/asset/deposit/query-allowed-list

    請求參數

    參數是否必需類型說明
    coinfalsestring充值幣種. coinchain必須配對傳遞,否則是無效查詢
    chainfalsestring充值鏈名. coinchain必須配對傳遞,否則是無效查詢
    limitfalseinteger每頁數量限制. [1, 35]. 默認: 10
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    configListarrayObject
    > coinstring幣種
    > chainstring鏈名
    > coinShowNamestring幣種名稱
    > chainTypestring鏈的類型
    > blockConfirmNumberinteger充值上賬確認數
    > minDepositAmountstring最低充值金額
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/asset/deposit/query-allowed-list?coin=ETH&chain=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672191495968
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "configList": [
    {
    "coin": "ETH",
    "chain": "ETH",
    "coinShowName": "ETH",
    "chainType": "ETH",
    "blockConfirmNumber": 10000,
    "minDepositAmount": "0.01"
    }
    ],
    "nextPageCursor": "eyJwYWdlIjoyLCJsaW1pdCI6MTB9"
    },
    "retExtInfo": {},
    "time": 1672191496219
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/deposit/deposit-record.html b/zh-TW/v5/asset/deposit/deposit-record.html index a9c8dd301d..22f0255340 100644 --- a/zh-TW/v5/asset/deposit/deposit-record.html +++ b/zh-TW/v5/asset/deposit/deposit-record.html @@ -4,13 +4,13 @@ 查詢充值紀錄 (鏈上) | Bybit API Documentation - +

    查詢充值紀錄 (鏈上)

    提示
    • endTime - startTime需要小於等於30天,默認查詢最近30天的紀錄
    • 支持母子帳號的API key查詢各自的充值紀錄

    HTTP 請求

    GET /v5/asset/deposit/query-record

    請求參數

    參數是否必需類型說明
    coinfalsestring幣種
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    rowsarrayObject
    > coinstring幣種
    > chainstring鏈名
    > amountstring充值金額
    > txIDstring交易Id. 充值失敗或取消充值時為空
    > statusinteger充值狀態
    > toAddressstring充值的目標地址
    > tagstring充值目標地址的tag
    > depositFeestring充值手續費
    > successAtstring最後更新時間
    > confirmationsstring确认区块的数量
    > txIndexstring交易序列号
    > blockHashstring鏈上的哈希數
    > batchReleaseLimitstring當前幣鏈每日充值限額. "-1"表示無限制
    > depositTypestring入金類型. 0: 正常充值, 10: 充值觸發每日限額, 20: 異常充值
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/asset/deposit/query-record?coin=USDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672191991544
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [
    {
    "coin": "USDT",
    "chain": "ETH",
    "amount": "10000",
    "txID": "skip-notification-scene-test-amount-202212270944-533285-USDT",
    "status": 3,
    "toAddress": "test-amount-address",
    "tag": "",
    "depositFee": "",
    "successAt": "1672134274000",
    "confirmations": "10000",
    "txIndex": "",
    "blockHash": "",
    "batchReleaseLimit": "-1",
    "depositType": "0"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTA0NjA0MywibWF4SUQiOjEwNDYwNDN9"
    },
    "retExtInfo": {},
    "time": 1672191992512
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/deposit/internal-deposit-record.html b/zh-TW/v5/asset/deposit/internal-deposit-record.html index ee86507a09..5faeb753e4 100644 --- a/zh-TW/v5/asset/deposit/internal-deposit-record.html +++ b/zh-TW/v5/asset/deposit/internal-deposit-record.html @@ -4,13 +4,13 @@ 查詢充值記錄 (平台转账) | Bybit API Documentation - +

    查詢充值記錄 (平台转账)

    查詢Bybit平台內部充值紀錄

    規則
  • 開始時間和截止時間差最大限制為30天
  • 支持使用母、子帳戶的api key查詢各自的入金紀錄
  • HTTP 請求

    GET /v5/asset/deposit/query-internal-record

    請求參數

    參數是否必須類型說明
    txIDfalsestring內部轉帳交易ID
    startTimefalseinteger開始時間 (精確到毫秒)。 默認為當前時間之前30天
    endTimefalseinteger結束時間 (精確到毫秒)。 默認為當前時間
    coinfalsestring幣種名:舉例,BTC。默認全部
    cursorfalsestring游標信息:用來分頁。 默認空
    limitfalseinteger每頁條數, [1, 50] 默認為50

    返回參數

    參數類型說明
    rowsarrayObject
    > idstringID
    > typeinteger1: 內部充值
    > coinstring充值的幣種
    > amountstring充值的數量
    > txIDstring交易ID。充值失敗/取消充值:為空
    > statusinteger
    • 1=處理中
    • 2=已完成
    • 3=充值失敗
    > addressstring郵箱地址或者手機號
    > createdTimestring充值創建時間戳
    txIDstring內部轉帳交易ID
    nextPageCursorstring游標信息:用來分頁

    請求示例

    GET /v5/asset/deposit/query-internal-record HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682099024473
    X-BAPI-RECV-WINDOW: 50000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [
    {
    "id": "1103",
    "amount": "0.1",
    "type": 1,
    "coin": "ETH",
    "address": "xxxx***@gmail.com",
    "status": 2,
    "createdTime": "1705393280",
    "txID": "77c37e5c-d9fa-41e5-bd13-c9b59d95"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTEwMywibWF4SUQiOjExMDN9"
    },
    "retExtInfo": {},
    "time": 1705395632689
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/deposit/master-deposit-addr.html b/zh-TW/v5/asset/deposit/master-deposit-addr.html index f16e074d96..1b9d4f10a9 100644 --- a/zh-TW/v5/asset/deposit/master-deposit-addr.html +++ b/zh-TW/v5/asset/deposit/master-deposit-addr.html @@ -4,13 +4,13 @@ 查詢主帳號充值地址 | Bybit API Documentation - +

    查詢主帳號充值地址

    警告

    僅支持母帳號API key

    HTTP 請求

    GET /v5/asset/deposit/query-address

    請求參數

    參數是否必需類型說明
    cointruestring幣種
    chainTypefalsestring請使用查詢幣種信息響應字段>> chain作為這個字段的輸入

    響應參數

    參數類型說明
    coinstring幣種
    chainsarrayObject
    > chainTypestring鏈類型
    > addressDepositstring充值地址
    > tagDepositstring地址的tag
    > chainstring鏈名
    > batchReleaseLimitstring當前幣鏈每日充值限額. "-1"表示無限制

    請求示例

    GET /v5/asset/deposit/query-address?coin=USDT&chainType=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672192792371
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "coin": "USDT",
    "chains": [
    {
    "chainType": "ERC20",
    "addressDeposit": "0xd9e1cd77afa0e50b452a62fbb68a3340602286c3",
    "tagDeposit": "",
    "chain": "ETH",
    "batchReleaseLimit": "-1"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672192792860
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/deposit/set-deposit-acct.html b/zh-TW/v5/asset/deposit/set-deposit-acct.html index 65118a415a..ce557f5c16 100644 --- a/zh-TW/v5/asset/deposit/set-deposit-acct.html +++ b/zh-TW/v5/asset/deposit/set-deposit-acct.html @@ -4,13 +4,13 @@ 設置充值帳戶 | Bybit API Documentation - +

    設置充值帳戶

    設置充值後的自動轉入帳戶類型。該功能與網頁端-設置-充值保持一致。

    信息
    • 資金會默認充值至資金帳戶, 通過該接口設置自動劃轉帳戶後,系統將會自動劃轉至目標帳戶。
    • 僅支持主帳號調用。
    提示
    • 統一帳戶2.0有FUND(資金錢包), UNIFIED(統一錢包)
    • 統一帳戶1.0有FUND(資金錢包), UNIFIED(統一錢包), CONTRACT(反向合約錢包)
    • 經典帳戶有FUND(資金錢包), SPOT(現貨錢包), CONTRACT(合約錢包)

    HTTP 請求

    POST /v5/asset/deposit/deposit-to-account

    請求參數

    參數是否必須類型說明
    accountTypetruestring帳戶類型
    • UNIFIED
    • SPOT
    • CONTRACT
    • FUND

    返回參數

    參數類型說明
    statusinteger請求狀態:
    • 1: 修改成功
    • 0: 修改失敗

    請求示例

    POST /v5/asset/deposit/deposit-to-account HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676887913670
    X-BAPI-RECV-WINDOW: 50000
    Content-Type: application/json

    {
    "accountType": "CONTRACT"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "status": 1
    },
    "retExtInfo": {},
    "time": 1676887914363
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/deposit/sub-deposit-addr.html b/zh-TW/v5/asset/deposit/sub-deposit-addr.html index d2a272d7ff..db230cbb29 100644 --- a/zh-TW/v5/asset/deposit/sub-deposit-addr.html +++ b/zh-TW/v5/asset/deposit/sub-deposit-addr.html @@ -4,13 +4,13 @@ 查詢子帳號充值地址 | Bybit API Documentation - +

    查詢子帳號充值地址

    信息
    • 僅能使用該母帳號的API key
    • 託管子帳戶不支持獲取入金地址

    HTTP 請求

    GET /v5/asset/deposit/query-sub-member-address

    請求參數

    參數是否必需類型說明
    cointruestring幣種
    chainTypetruestring請使用查詢幣種信息響應字段chain作為這個字段的輸入
    subMemberIdtruestring子帳號Id

    響應參數

    參數類型說明
    coinstring幣種
    chainsarrayObject
    > chainTypestring鏈類型
    > addressDepositstring充值地址
    > tagDepositstring地址的tag
    > chainstring鏈名
    > batchReleaseLimitstring當前幣鏈每日充值限額. "-1"表示無限制

    請求示例

    GET /v5/asset/deposit/query-sub-member-address?coin=USDT&chainType=TRX&subMemberId=592334 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672194349421
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "coin": "USDT",
    "chains": {
    "chainType": "TRC20",
    "addressDeposit": "TCB6NmwGXjn8eJYDuPxLvs4aM8Jn7gvJ1f",
    "tagDeposit": "",
    "chain": "TRX",
    "batchReleaseLimit": "-1"
    }
    },
    "retExtInfo": {},
    "time": 1672194350819
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/deposit/sub-deposit-record.html b/zh-TW/v5/asset/deposit/sub-deposit-record.html index bc99836e77..83fe6e071e 100644 --- a/zh-TW/v5/asset/deposit/sub-deposit-record.html +++ b/zh-TW/v5/asset/deposit/sub-deposit-record.html @@ -4,13 +4,13 @@ 查詢子帳號的充值紀錄 (鏈上) | Bybit API Documentation - +

    查詢子帳號的充值紀錄 (鏈上)

    僅能通過主帳號的API key來查詢子帳號的充值紀錄

    提示
    • endTime - startTime 需要小於等於30天. 默認查詢最近30天的紀錄

    HTTP 請求

    GET /v5/asset/deposit/query-sub-member-record

    請求參數

    參數是否必需類型說明
    subMemberIdtruestring子帳號
    coinfalsestring幣種
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    rowsarrayObject
    > coinstring幣種
    > chainstring鏈名
    > amountstring充值金額
    > txIDstring交易Id. 充值失敗或取消充值時為空
    > statusinteger充值狀態
    > toAddressstring充值的目標地址
    > tagstring充值目標地址的tag
    > depositFeestring充值手續費
    > successAtstring最後更新時間
    > confirmationsstring确认区块的数量
    > txIndexstring交易序列号
    > blockHashstring鏈上的哈希數
    > batchReleaseLimitstring當前幣鏈每日充值限額. "-1"表示無限制
    > depositTypestring入金類型. 0: 正常充值, 10: 充值觸發每日限額, 20: 異常充值
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/asset/deposit/query-sub-member-record?coin=USDT&limit=1&subMemberId=592334 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672192441294
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1672192441742
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/exchange.html b/zh-TW/v5/asset/exchange.html index 0d12b2eb01..da1c709dfe 100644 --- a/zh-TW/v5/asset/exchange.html +++ b/zh-TW/v5/asset/exchange.html @@ -4,13 +4,13 @@ 查詢兌換訂單紀錄 | Bybit API Documentation - +

    查詢兌換訂單紀錄

    警告

    您可能會遭遇較長的數據返回延遲

    HTTP 請求

    GET /v5/asset/exchange/order-record

    請求參數

    參數是否必需類型說明
    fromCoinfalsestring兌出幣種. e.g,BTC
    toCoinfalsestring兌入幣種. e.g,USDT
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 10
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    nextPageCursorstring游標,用於翻頁
    orderBodyarrayObject
    > fromCoinstring兌出幣種
    > fromAmountstring兌出金額
    > toCoinstring兌入幣種
    > toAmountstring兌入金額
    > exchangeRatestring兌換匯率
    > createdTimestring兌換創建時間戳 (秒)
    > exchangeTxIdstring兌換訂單號

    請求示例

    GET /v5/asset/exchange/order-record?limit=10 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672990462492
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderBody": [
    {
    "fromCoin": "BTC",
    "fromAmount": "0.100000000000000000",
    "toCoin": "ETH",
    "toAmount": "1.385866230000000000",
    "exchangeRate": "13.858662380000000000",
    "createdTime": "1672197760",
    "exchangeTxId": "145102533285208544812654440448"
    }
    ],
    "nextPageCursor": "173341:1672197760"
    },
    "retExtInfo": {},
    "time": 1672990464021
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/settlement.html b/zh-TW/v5/asset/settlement.html index 7257da267a..debe49cfc7 100644 --- a/zh-TW/v5/asset/settlement.html +++ b/zh-TW/v5/asset/settlement.html @@ -4,13 +4,13 @@ 查詢USDC結算紀錄 | Bybit API Documentation - +

    查詢USDC結算紀錄

    查詢USDC永續的結算紀錄

    HTTP 請求

    GET /v5/asset/settlement-record

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear
    symbolfalsestring合約名稱
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近30天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 30天
    • 若只傳startTime,則查詢startTime和startTime+30天的數據
    • 若只傳endTime,則查詢endTime-30天和endTime的數據
    endTimefalseinteger結束時間 (毫秒)
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > sidestringBuy,Sell
    > sizestring倉位大小
    > sessionAvgPricestring結算價格
    > markPricestring標記價格
    > realisedPnlstring已實現盈虧
    > createdTimestring結算時間 (毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/asset/settlement-record?category=linear HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672284883483
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "116952%3A1%2C116952%3A1",
    "category": "linear",
    "list": [
    {
    "realisedPnl": "-71.28",
    "symbol": "BTCPERP",
    "side": "Buy",
    "markPrice": "16620",
    "size": "1.5",
    "createdTime": "1672214400000",
    "sessionAvgPrice": "16620"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672284884285
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/sub-uid-list.html b/zh-TW/v5/asset/sub-uid-list.html index c53efd4fae..396da580a6 100644 --- a/zh-TW/v5/asset/sub-uid-list.html +++ b/zh-TW/v5/asset/sub-uid-list.html @@ -4,13 +4,13 @@ 查詢子帳號列表 | Bybit API Documentation - +

    查詢子帳號列表

    查詢某個母帳戶的子帳號列表, 返回至多2000個子帳戶, 如果您有更多, 可以調用這個接口.

    信息

    僅支持母帳號API key

    HTTP 請求

    GET /v5/asset/transfer/query-sub-member-list

    請求參數

    響應參數

    參數類型說明
    subMemberIdsarray<string>所有子帳號
    transferableSubMemberIdsarray<string>已經開啟了萬能劃轉的子帳號

    請求示例

    GET /v5/asset/transfer/query-sub-member-list HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672147239931
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "subMemberIds": [
    "554117",
    "592324",
    "592334",
    "1055262",
    "1072055",
    "1119352"
    ],
    "transferableSubMemberIds": [
    "554117",
    "592324"
    ]
    },
    "retExtInfo": {},
    "time": 1672147241320
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/transfer/create-inter-transfer.html b/zh-TW/v5/asset/transfer/create-inter-transfer.html index 5f81ddde7c..ff79da37fa 100644 --- a/zh-TW/v5/asset/transfer/create-inter-transfer.html +++ b/zh-TW/v5/asset/transfer/create-inter-transfer.html @@ -4,13 +4,13 @@ 劃轉 (單帳號內) | Bybit API Documentation - +

    劃轉 (單帳號內)

    創建單帳號下帳戶類型間的劃轉操作

    提示
    • 每個帳戶類型有其可接受的幣種限制, 詳情請參考可劃轉幣種接口.
    • 資金賬戶轉出目前僅支持加密貨幣,不支持法定貨幣.

    HTTP 請求

    POST /v5/asset/transfer/inter-transfer

    請求參數

    參數是否必需類型說明
    transferIdtruestringUUID. 請自行手動生成UUID
    cointruestring幣種
    amounttruestring劃入數量
    fromAccountTypetruestring轉出賬戶類型
    toAccountTypetruestring轉入賬戶類型

    響應參數

    參數類型說明
    transferIdstringUUID
    statusstring劃轉狀態
  • STATUS_UNKNOWN
  • SUCCESS
  • PENDING
  • FAILED

  • 請求示例

    POST v5/asset/transfer/inter-transfer HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1670986690556
    X-BAPI-RECV-WINDOW: 50000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json
    {
    "transferId": "42c0cfb0-6bca-c242-bc76-4e6df6cbcb16",
    "coin": "BTC",
    "amount": "0.05",
    "fromAccountType": "UNIFIED",
    "toAccountType": "CONTRACT"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "transferId": "42c0cfb0-6bca-c242-bc76-4e6df6cbab16",
    "status": "SUCCESS"
    },
    "retExtInfo": {},
    "time": 1670986962783
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/transfer/inter-transfer-list.html b/zh-TW/v5/asset/transfer/inter-transfer-list.html index db949317d7..040bf7b3d2 100644 --- a/zh-TW/v5/asset/transfer/inter-transfer-list.html +++ b/zh-TW/v5/asset/transfer/inter-transfer-list.html @@ -4,13 +4,13 @@ 查詢劃轉紀錄 (單帳號內) | Bybit API Documentation - +

    查詢劃轉紀錄 (單帳號內)

    獲取單帳號內的劃轉紀錄

    信息

    startTime & endTime都不傳入時, API默認返回30天的數據

    HTTP 請求

    GET /v5/asset/transfer/query-inter-transfer-list

    請求參數

    參數是否必需類型說明
    transferIdfalsestringUUID. 使用創建劃轉時用的UUID
    coinfalsestring幣種
    statusfalsestring劃轉狀態
    startTimefalseinteger開始時間戳 (毫秒) 注意: 實際查詢時是秒級維度生效
    endTimefalseinteger結束時間戳 (毫秒) 注意: 實際查詢時是秒級維度生效
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    listarrayObject
    > transferIdstring劃轉Id
    > coinstring劃轉幣種
    > amountstring劃轉金額
    > fromAccountTypestring劃出賬戶類型
    > toAccountTypestring劃入賬戶類型
    > timestampstring劃轉創建時間戳 (毫秒)
    > statusstring劃轉狀態
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/asset/transfer/inter-transfer-list-query?coin=USDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1670988271299
    X-BAPI-RECV-WINDOW: 50000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "transferId": "selfTransfer_a1091cc7-9364-4b74-8de1-18f02c6f2d5c",
    "coin": "USDT",
    "amount": "5000",
    "fromAccountType": "SPOT",
    "toAccountType": "UNIFIED",
    "timestamp": "1667283263000",
    "status": "SUCCESS"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTM1ODQ2OCwibWF4SUQiOjEzNTg0Njh9"
    },
    "retExtInfo": {},
    "time": 1670988271677
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/transfer/transferable-coin.html b/zh-TW/v5/asset/transfer/transferable-coin.html index fcec0b0d58..fbe5444bd1 100644 --- a/zh-TW/v5/asset/transfer/transferable-coin.html +++ b/zh-TW/v5/asset/transfer/transferable-coin.html @@ -4,13 +4,13 @@ 帳戶類型間可劃轉的幣種 | Bybit API Documentation - +

    帳戶類型間可劃轉的幣種

    HTTP 請求

    GET /v5/asset/transfer/query-transfer-coin-list

    HTTP 請求

    參數是否必需類型說明
    fromAccountTypetruestring劃出帳戶類型
    toAccountTypetruestring劃入帳戶類型

    響應參數

    參數類型說明
    listarray幣種數組

    請求示例

    GET /v5/asset/transfer/query-transfer-coin-list?fromAccountType=UNIFIED&toAccountType=CONTRACT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672144322595
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    "BTC",
    "ETH"
    ]
    },
    "retExtInfo": {},
    "time": 1672144322954
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/transfer/unitransfer-list.html b/zh-TW/v5/asset/transfer/unitransfer-list.html index 9faed4e958..edd152c23b 100644 --- a/zh-TW/v5/asset/transfer/unitransfer-list.html +++ b/zh-TW/v5/asset/transfer/unitransfer-list.html @@ -4,13 +4,13 @@ 查詢萬能劃轉紀錄 | Bybit API Documentation - +

    查詢萬能劃轉紀錄

    提示
    • 母子帳號的api key都支持調用
    • 母帳號的api key需擁有"母子帳戶劃轉"(SubMemberTransfer)權限
    • 子帳號的api key需擁有"母子帳戶劃轉"(SubMemberTransferList)權限
    信息

    startTime & endTime都不傳入時, API默認返回30天的數據

    HTTP 請求

    GET /v5/asset/transfer/query-universal-transfer-list

    請求參數

    參數是否必需類型說明
    transferIdfalsestringUUID. 使用創建萬能劃轉時的UUID
    coinfalsestring幣種
    statusfalsestring劃轉狀態. SUCCESS,FAILED,PENDING
    startTimefalseinteger開始時間戳 (毫秒) 注意: 實際查詢時是秒級維度生效
    endTimefalseinteger結束時間戳 (毫秒) 注意: 實際查詢時是秒級維度生效
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    listarrayObject
    > transferIdstring劃轉Id
    > coinstring劃轉幣種
    > amountstring劃轉金額
    > fromMemberIdstring劃出UID
    > toMemberIdstring劃入UID
    > fromAccountTypestring劃出賬戶類型
    > toAccountTypestring劃入賬戶類型
    > timestampstring劃轉創建時間戳 (毫秒)
    > statusstring劃轉狀態
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/asset/transfer/query-universal-transfer-list?limit=1&cursor=eyJtaW5JRCI6MTc5NjU3OCwibWF4SUQiOjE3OTY1Nzh9 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672190762800
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "transferId": "universalTransfer_4c3cfe2f-85cb-11ed-ac09-9e37823c81cd_533285",
    "coin": "USDC",
    "amount": "1000",
    "timestamp": "1672134373000",
    "status": "SUCCESS",
    "fromAccountType": "UNIFIED",
    "toAccountType": "UNIFIED",
    "fromMemberId": "533285",
    "toMemberId": "592324"
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6MTc4OTYwNSwibWF4SUQiOjE3ODk2MDV9"
    },
    "retExtInfo": {},
    "time": 1672190763079
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/transfer/unitransfer.html b/zh-TW/v5/asset/transfer/unitransfer.html index 895c3750aa..07fc49eeac 100644 --- a/zh-TW/v5/asset/transfer/unitransfer.html +++ b/zh-TW/v5/asset/transfer/unitransfer.html @@ -4,13 +4,13 @@ 創建萬能劃轉 | Bybit API Documentation - +

    創建萬能劃轉

    支持子子帳戶間劃轉或母子帳號間劃轉。

    提示
    • 支持使用母帳戶或者子帳號api key請求
      • 若要使用子帳號api key, 需要有"母子帳戶劃轉"(SubMemberTransferList)權限
      • 當使用子帳號api key劃轉時, 僅能劃轉到母帳號下
    • 如果您遇到錯誤碼是131228並且錯誤信息是your balance is not enough, 請前往查詢賬戶單個幣種余額接口確認安全限額.
    • 不支持同一個uid之間的劃轉.
    • 資金賬戶轉出目前僅支持加密貨幣轉賬,不支持法定貨幣劃轉.

    HTTP 請求

    POST /v5/asset/transfer/universal-transfer

    請求參數

    參數是否必需類型說明
    transferIdtruestringUUID. 請求手動生成UUID
    cointruestring幣種
    amounttruestring劃轉金額
    fromMemberIdtrueinteger轉出UID
    toMemberIdtrueinteger轉入UID
    fromAccountTypetruestring轉出帳戶類型
    toAccountTypetruestring轉入帳戶類型

    響應參數

    參數類型說明
    transferIdstringUUID
    statusstring劃轉狀態
  • STATUS_UNKNOWN
  • SUCCESS
  • PENDING
  • FAILED

  • 請求示例

    POST /v5/asset/transfer/universal-transfer HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672189449697
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json

    {
    "transferId": "be7a2462-1138-4e27-80b1-62653f24925e",
    "coin": "ETH",
    "amount": "0.5",
    "fromMemberId": 592334,
    "toMemberId": 691355,
    "fromAccountType": "CONTRACT",
    "toAccountType": "UNIFIED"

    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "transferId": "be7a2462-1138-4e27-80b1-62653f24925e",
    "status": "SUCCESS"
    },
    "retExtInfo": {},
    "time": 1672189450195
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/withdraw.html b/zh-TW/v5/asset/withdraw.html index c99abe4d36..42037bcead 100644 --- a/zh-TW/v5/asset/withdraw.html +++ b/zh-TW/v5/asset/withdraw.html @@ -4,13 +4,13 @@ 提現 | Bybit API Documentation - +

    提現

    若目標地址是Bybit平台內部地址, 您可以實現內部平台轉帳

    提示
    • 確保您已經將提現地址加入到這裡
    • 僅支持母帳號的API key
    公式

    feeType=0:

    • 若百分比手續費 != 0: 手續費 = 輸入金額 / (1 - 百分比手續費) * 百分比手續費 + 固定手續費
    • 若百分比手續費 = 0: 手續費 = 固定手續費

    feeType=1:

    • 若百分比手續費 != 0: 手續費 = 固定手續費 + (輸入金額 - 固定手續費) * 百分比手續費
    • 若百分比手續費 = 0: 手續費 = 固定手續費

    HTTP 請求

    POST /v5/asset/withdraw/create

    請求參數

    參數是否必需類型說明
    cointruestring幣種
    chainfalsestring
    • 鏈名, 當forceChain=0 或者 1: 該字段必填
    • forceChain=2: 該字段可忽略
    addresstruestring錢包地址或者Bybit UID
    • forceChain=0 或者 1: 請填寫錢包地址, 確保將地址添加到了網頁地址簿中, 注意大小寫,請使用和提幣地址簿中完全一樣的地址
    • forceChain=2: 填寫目標Bybit母帳戶UID, 確保將目標UID添加到了網頁地址簿
    tagfalsestring標籤
    • 若添加地址時有填寫tag,則該字段必傳.
    • 注意: 如果鏈不支持tag/memo,請移除地址簿中的tag/memo,然後調用接口時,也不要傳tag字段
    amounttruestring提現金額
    timestamptrueinteger當前時間戳 (毫秒). 用於防止請求重放
    forceChainfalseinteger是否強制走鏈
    • 0(默認): 若提現地址解析後發現是平台內部地址,則自動轉為走內部平台轉帳
    • 1: 強制走鏈
    • 2: 使用Bybit UID轉帳
    accountTypefalsestring設置出金帳戶.
    • SPOT:走現貨錢包出金 (默認)
    • FUND:走資金錢包出金
    feeTypefalseinteger手續費選項
    • 0(默認): 輸入金額即實際收到的金額, 所以您需要額外考慮手續費
    • 1: 輸入金額不是實際收到的金額, 系統將會自動計算所需的手續費
    requestIdfalsestring自定義ID, 全局唯一, 用於冪等校驗
  • 字母(區分大小寫)數字組合, 可以是純字母或者純數字, 長度在1-32字符之間
  • beneficiaryfalseObject提現目標方基本信息, 僅kyc=KOR(韓國個人用戶)必須傳遞此字段
    > vaspEntityIdtruestring接收方交易所id. 請調用該接口來查詢對應的id
    > beneficiaryNamefalsestring接收方交易所用戶kyc姓名, 比如John Wilson 或者 Wilson John
  • 請依據目標交易所kyc姓名
  • 僅當vaspEntityId="others"時, 該字段可不傳
  • 響應參數

    參數類型說明
    idstring提現Id

    請求示例

    POST /v5/asset/withdraw/create HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672196570254
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json

    {
    "coin": "USDT",
    "chain": "ETH",
    "address": "0x99ced129603abc771c0dabe935c326ff6c86645d",
    "amount": "24",
    "timestamp": 1672196561407,
    "forceChain": 0,
    "accountType": "FUND"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "id": "10195"
    },
    "retExtInfo": {},
    "time": 1672196571239
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/withdraw/cancel-withdraw.html b/zh-TW/v5/asset/withdraw/cancel-withdraw.html index 9456bc45cd..f10df39ca7 100644 --- a/zh-TW/v5/asset/withdraw/cancel-withdraw.html +++ b/zh-TW/v5/asset/withdraw/cancel-withdraw.html @@ -4,13 +4,13 @@ 撤銷提幣 | Bybit API Documentation - +

    撤銷提幣

    HTTP 請求

    POST /v5/asset/withdraw/cancel

    請求參數

    參數是否必需類型說明
    idtruestring提現Id

    響應參數

    參數類型說明
    statusinteger0: 失敗. 1: 成功

    請求示例

    POST /v5/asset/withdraw/cancel HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672197227732
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json

    {
    "id": "10197"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "status": 1
    },
    "retExtInfo": {},
    "time": 1672197228408
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/withdraw/vasp-list.html b/zh-TW/v5/asset/withdraw/vasp-list.html index d6e9793b44..dfa2822568 100644 --- a/zh-TW/v5/asset/withdraw/vasp-list.html +++ b/zh-TW/v5/asset/withdraw/vasp-list.html @@ -4,13 +4,13 @@ 查詢交易所列表 | Bybit API Documentation - +

    查詢交易所列表

    該接口主要用於kyc=KOR的韓國個人用戶, 在提現時需要填寫接收方交易所信息

    HTTP 請求

    GET /v5/asset/withdraw/vasp/list

    請求參數

    響應參數

    參數類型說明
    vasparray交易所實體信息
    > vaspEntityIdstring接收方平台id. 當提現至Upbit或者不在該列表內的平台時, 請使用vaspEntityId="others"
    > vaspNamestring接收方平台名稱

    請求示例

    GET /v5/asset/withdraw/vasp/list HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1715067106163
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "vasp": [
    {
    "vaspEntityId": "basic-finance",
    "vaspName": "Basic-finance"
    },
    {
    "vaspEntityId": "beeblock",
    "vaspName": "Beeblock"
    },
    {
    "vaspEntityId": "bithumb",
    "vaspName": "bithumb"
    },
    {
    "vaspEntityId": "cardo",
    "vaspName": "cardo"
    },
    {
    "vaspEntityId": "codevasp",
    "vaspName": "codevasp"
    },
    {
    "vaspEntityId": "codexchange-kor",
    "vaspName": "CODExchange-kor"
    },
    {
    "vaspEntityId": "coinone",
    "vaspName": "coinone"
    },
    {
    "vaspEntityId": "dummy",
    "vaspName": "Dummy"
    },
    {
    "vaspEntityId": "flata-exchange",
    "vaspName": "flataexchange"
    },
    {
    "vaspEntityId": "fobl",
    "vaspName": "Foblgate"
    },
    {
    "vaspEntityId": "hanbitco",
    "vaspName": "hanbitco"
    },
    {
    "vaspEntityId": "hexlant",
    "vaspName": "hexlant"
    },
    {
    "vaspEntityId": "inex",
    "vaspName": "INEX"
    },
    {
    "vaspEntityId": "infiniteblock-corp",
    "vaspName": "InfiniteBlock Corp"
    },
    {
    "vaspEntityId": "kdac",
    "vaspName": "kdac"
    },
    {
    "vaspEntityId": "korbit",
    "vaspName": "korbit"
    },
    {
    "vaspEntityId": "paycoin",
    "vaspName": "Paycoin"
    },
    {
    "vaspEntityId": "qbit",
    "vaspName": "Qbit"
    },
    {
    "vaspEntityId": "tennten",
    "vaspName": "TENNTEN"
    },
    {
    "vaspEntityId": "others",
    "vaspName": "Others (including Upbit)"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1715067106537
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/asset/withdraw/withdraw-record.html b/zh-TW/v5/asset/withdraw/withdraw-record.html index 54f36c9ec7..efac8fb339 100644 --- a/zh-TW/v5/asset/withdraw/withdraw-record.html +++ b/zh-TW/v5/asset/withdraw/withdraw-record.html @@ -4,13 +4,13 @@ 查詢提現紀錄 | Bybit API Documentation - +

    查詢提現紀錄

    提示
    • endTime - startTime需要小於等於30天. 默認查詢最近30天的紀錄。
    • 僅支持母帳號的API key

    HTTP 請求

    GET /v5/asset/withdraw/query-record

    請求參數

    參數是否必需類型說明
    withdrawIDfalsestring提現Id
    txIDfalsestring交易哈希ID
    coinfalsestring幣種
    withdrawTypefalseinteger提現類型. 0(默認): 鏈上提幣. 1: 平台內部轉帳. 2: 所有方式
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    rowsarrayObject
    > withdrawIdstring提現Id
    > txIDstring交易Id,提現失敗/提現撤銷:為空
    > withdrawTypeinteger提現類型. 0: 鏈上提幣. 1: 內部轉帳
    > coinstring幣種
    > chainstring鏈名
    > amountstring提幣金額
    > withdrawFeestring提幣手續費
    > statusstring提幣狀態
    > toAddressstring提現目標地址. 內部轉帳:顯示Bybit UID
    > tagstring標籤
    > createTimestring提現創建時間戳 (毫秒)
    > updateTimestring提現更新時間戳 (毫秒)

    請求示例

    GET /v5/asset/withdraw/query-record?coin=USDT&withdrawType=2&limit=2 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672194949557
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [
    {
    "coin": "USDT",
    "chain": "ETH",
    "amount": "77",
    "txID": "",
    "status": "SecurityCheck",
    "toAddress": "0x99ced129603abc771c0dabe935c326ff6c86645d",
    "tag": "",
    "withdrawFee": "10",
    "createTime": "1670922217000",
    "updateTime": "1670922217000",
    "withdrawId": "9976",
    "withdrawType": 0
    },
    {
    "coin": "USDT",
    "chain": "internalAddressChain",
    "amount": "20.1234",
    "txID": "",
    "status": "success",
    "toAddress": "999805",
    "tag": "",
    "withdrawFee": "0",
    "createTime": "1698889833000",
    "updateTime": "1698889846000",
    "withdrawId": "13310",
    "withdrawType": 1
    }
    ],
    "nextPageCursor": "eyJtaW5JRCI6OTgwMSwibWF4SUQiOjk5NzZ9"
    },
    "retExtInfo": {},
    "time": 1672194949928
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/backup/set-pledge-token.html b/zh-TW/v5/backup/set-pledge-token.html index dec69e56cf..c673891b5f 100644 --- a/zh-TW/v5/backup/set-pledge-token.html +++ b/zh-TW/v5/backup/set-pledge-token.html @@ -4,13 +4,13 @@ Set Pledge Token | Bybit API Documentation - +

    Set Pledge Token

    Set Pledge Token in cross margin

    HTTP Request

    POST /v5/spot-margin-trade/set-pledge-token

    Request Parameters

    ParameterRequiredTypeComments
    cointruestringcoin
    pledgeStatustureintpledge status. 1: on, 0: off

    Response Parameters

    ParameterTypeComments
    pledgeStatusstringpledge status:1: on,0: off
    - + \ No newline at end of file diff --git a/zh-TW/v5/broker/account-info.html b/zh-TW/v5/broker/account-info.html index 7cea216caf..4d5be60b1e 100644 --- a/zh-TW/v5/broker/account-info.html +++ b/zh-TW/v5/broker/account-info.html @@ -4,13 +4,13 @@ 查詢帳戶信息 | Bybit API Documentation - +

    查詢帳戶信息

    信息
    • 使用經紀商的母帳戶進行查詢

    API頻率: 10次/秒

    HTTP 請求

    GET /v5/broker/account-info

    請求參數

    響應參數

    參數類型說明
    subAcctQtystring已創建的子帳戶數量
    maxSubAcctQtystring允許創建的子帳戶數量上限
    baseFeeRebateRateObject基礎費率返佣
    > spotstring現貨交易基礎費率返佣, 例如, 10.00%
    > derivativesstring期貨交易基礎費率返佣, 例如, 10.00%
    markupFeeRebateRateObject加點費率返佣
    > spotstring現貨交易加點費率返佣, 例如, 10.00%
    > derivativesstring期貨交易加點費率返佣, 例如, 10.00%
    > convertstring閃兌加點費率返佣, 例如, 10.00%
    tsstring系統時間戳 (毫秒)

    請求示例

    GET /v5/broker/account-info HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1701399431920
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "subAcctQty": "2",
    "maxSubAcctQty": "20",
    "baseFeeRebateRate": {
    "spot": "10.0%",
    "derivatives": "10.0%"
    },
    "markupFeeRebateRate": {
    "spot": "6.00%",
    "derivatives": "9.00%",
    "convert": "3.00%"
    },
    "ts": "1701395633402"
    },
    "retExtInfo": {},
    "time": 1701395633403
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/broker/exchange-earning.html b/zh-TW/v5/broker/exchange-earning.html index 4dafdd9b38..8b02ffb205 100644 --- a/zh-TW/v5/broker/exchange-earning.html +++ b/zh-TW/v5/broker/exchange-earning.html @@ -4,13 +4,13 @@ 查詢返佣信息 | Bybit API Documentation - +

    查詢返佣信息

    信息
    • 使用經紀商的母帳戶進行查詢
    • 支持查詢過去1個月的數據至T-1. 要取得1個月之前的數據, 請聯繫您的客戶經理
    • begin & end兩個入参, 要麼同時輸入, 要麼都不輸入. 当不输入时, 默认返回最近7天的数据

    API頻率: 10次/秒

    HTTP 請求

    GET /v5/broker/earnings-info

    請求參數

    參數是否必需類型說明
    bizTypefalsestring業務類型. SPOT, DERIVATIVES, OPTIONS, CONVERT
    beginfalsestring開始時間, 格式: YYYYMMDD, 比如, 20231201, 表示搜尋時間是從2023年12月1日 00:00:00 UTC (包含)
    endfalsestring結束時間, 格式: YYYYMMDD, 比如, 20231201, 表示搜尋時間是結束於2023年12月2日 00:00:00 UTC (不包含)
    uidfalsestring
    • 輸入子UID來查詢指定UID的具體數據
    • 要向獲得所有子UID的數據, 則不傳
    limitfalseinteger每頁數量限制. [1, 1000]. 默認: 1000
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    totalEarningCatObject按照業務類型統計的總的返佣數據
    > spotarrayObject. 現貨交易的返佣. 如果沒有對應的返佣或者沒有查詢該類型, 則返回空數組 []
    >> coinstring返佣幣種
    >> earningstring返佣金額
    > derivativesarrayObject. 期貨交易的返佣. 如果沒有對應的返佣或者沒有查詢該類型, 則返回空數組 []
    >> coinstring返佣幣種
    >> earningstring返佣金額
    > optionsarrayObject. 期權交易的返佣. 如果沒有對應的返佣或者沒有查詢該類型, 則返回空數組 []
    >> coinstring返佣幣種
    >> earningstring返佣金額
    > convertarrayObject. 閃兌交易的返佣. 如果沒有對應的返佣或者沒有查詢該類型, 則返回空數組 []
    >> coinstring返佣幣種
    >> earningstring返佣金額
    > totalarrayObject. 所有業務類型的返佣總和. 如果沒有對應的返佣或者沒有查詢該類型, 則返回空數組 []
    >> coinstring返佣幣種
    >> earningstring返佣金額
    detailsarrayObject. 每個子UID以及每個業務類型的交易細節
    > userIdstring子帳戶
    > bizTypestring業務類型. SPOT, DERIVATIVES, OPTIONS, CONVERT
    > symbolstring幣對名
    > coinstring返佣幣種
    > earningstring返佣金額
    > markupEarningstring加點佣金
    > baseFeeEarningstring基礎佣金
    > orderIdstring訂單ID
    > execTimestring訂單執行時間戳 (毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/broker/earnings-info?begin=20231129&end=20231129&uid=117894077 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1701399431920
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: 32d2aa1bc205ddfb89849b85e2a8b7e23b1f8f69fe95d6f2cb9c87562f9086a6
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "totalEarningCat": {
    "spot": [],
    "derivatives": [
    {
    "coin": "USDT",
    "earning": "0.00027844"
    }
    ],
    "options": [],
    "total": [
    {
    "coin": "USDT",
    "earning": "0.00027844"
    }
    ]
    },
    "details": [
    {
    "userId": "117894077",
    "bizType": "DERIVATIVES",
    "symbol": "DOGEUSDT",
    "coin": "USDT",
    "earning": "0.00016166",
    "markupEarning": "0.000032332",
    "baseFeeEarning": "0.000129328",
    "orderId": "ec2132f2-a7e0-4a0c-9219-9f3cbcd8e878",
    "execTime": "1701275846033"
    },
    {
    "userId": "117894077",
    "bizType": "DERIVATIVES",
    "symbol": "TRXUSDT",
    "coin": "USDT",
    "earning": "0.00011678",
    "markupEarning": "0.000023356",
    "baseFeeEarning": "0.000093424",
    "orderId": "28b29c2b-ba14-450e-9ce7-3cee0c1fa6da",
    "execTime": "1701245285017"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1701398193964
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/broker/reward/get-issue-voucher.html b/zh-TW/v5/broker/reward/get-issue-voucher.html index bcebc7798b..79510c39d2 100644 --- a/zh-TW/v5/broker/reward/get-issue-voucher.html +++ b/zh-TW/v5/broker/reward/get-issue-voucher.html @@ -4,13 +4,13 @@ 查詢已發放代金券 | Bybit API Documentation - +

    查詢已發放代金券

    HTTP 請求

    POST /v5/broker/award/distribution-record

    請求參數

    參數是否必需類型說明
    accountIdtruestring用戶ID
    awardIdtruestring代金券ID
    specCodetruestring自定義標識碼
    withUsedAmountfalseboolean是否返回用戶已使用金額
  • true
  • false (默認)
  • 響應參數

    參數類型說明
    accountIdstring用戶ID
    awardIdstring代金券ID
    specCodestring自定義標識碼
    amountstring代金券金額
    isClaimedboolean是否已領取true, false
    startAtstring可領取開始時間 (秒級時間戳)
    endAtstring可領取結束始時間 (秒級時間戳)
    effectiveAtstring領取後生效時間 (秒級時間戳)
    ineffectiveAtstring領取後失效時間 (秒級時間戳)
    usedAmountstring用戶已使用金額

    請求示例

    POST /v5/broker/award/distribution-record HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1726112099846
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 111

    {
    "accountId": "5714139",
    "awardId": "189528",
    "specCode": "demo000",
    "withUsedAmount": false
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "accountId": "5714139",
    "awardId": "189528",
    "specCode": "demo000",
    "amount": "1",
    "isClaimed": true,
    "startAt": "1725926400",
    "endAt": "1733788800",
    "effectiveAt": "1726531200",
    "ineffectiveAt": "1733817600",
    "usedAmount": "",
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/broker/reward/issue-voucher.html b/zh-TW/v5/broker/reward/issue-voucher.html index f23aeaac26..d42714ef61 100644 --- a/zh-TW/v5/broker/reward/issue-voucher.html +++ b/zh-TW/v5/broker/reward/issue-voucher.html @@ -4,13 +4,13 @@ 發放代金券 | Bybit API Documentation - +

    發放代金券

    HTTP 請求

    POST /v5/broker/award/distribute-award

    請求參數

    參數是否必需類型說明
    accountIdtruestring用戶ID
    awardIdtruestring代金券ID
    specCodetruestring自定義唯一標識碼, 最長8位
    amounttruestring代金券金額
  • 現貨空投最多支持16位小數
  • 其他類型最多支持4位小數
  • brokerIdtruestringBroker ID

    響應參數

    請求示例

    POST /v5/broker/award/distribute-award HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1726110531734
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 128

    {
    "accountId": "2846381",
    "awardId": "123456",
    "specCode": "award-001",
    "amount": "100",
    "brokerId": "v-28478"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": ""
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/broker/reward/voucher.html b/zh-TW/v5/broker/reward/voucher.html index b45f23c07b..a5ae6f5882 100644 --- a/zh-TW/v5/broker/reward/voucher.html +++ b/zh-TW/v5/broker/reward/voucher.html @@ -4,13 +4,13 @@ 查詢代金券參數 | Bybit API Documentation - +

    查詢代金券參數

    HTTP 請求

    POST /v5/broker/award/info

    請求參數

    參數是否必需類型說明
    idtruestring代金券ID

    響應參數

    參數類型說明
    idstring代金券ID
    coinstring幣種
    amountUnitstring計價單位
  • AWARD_AMOUNT_UNIT_USD
  • AWARD_AMOUNT_UNIT_COIN
  • productLinestring業務線
    subProductLinestring子業務線
    totalAmountObject代金券總金額
    usedAmountstring代金券已發出金額

    請求示例

    POST /v5/broker/award/info HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1726107086048
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 22

    {
    "id": "80209"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "80209",
    "coin": "USDT",
    "amountUnit": "AWARD_AMOUNT_UNIT_USD",
    "productLine": "PRODUCT_LINE_CONTRACT",
    "subProductLine": "SUB_PRODUCT_LINE_CONTRACT_DEFAULT",
    "totalAmount": "10000",
    "usedAmount": "100"
    },
    "retExtInfo": {},
    "time": 1726107086313
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/broker/sub-deposit-record.html b/zh-TW/v5/broker/sub-deposit-record.html index c3d5ec5e4c..d0e295a1f8 100644 --- a/zh-TW/v5/broker/sub-deposit-record.html +++ b/zh-TW/v5/broker/sub-deposit-record.html @@ -4,13 +4,13 @@ 查詢子帳號充值紀錄 | Bybit API Documentation - +

    查詢子帳號充值紀錄

    經紀商僅能通過主帳號的API key來查詢子帳號的充值紀錄

    API頻率: 300次/分

    提示

    endTime - startTime 需要小於等於30天. 默認查詢最近30天的紀錄

    HTTP 請求

    GET /v5/broker/asset/query-sub-member-deposit-record

    請求參數

    參數是否必需類型說明
    subMemberIdfalsestring子帳號
    coinfalsestring幣種
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    rowsarrayObject
    > subMemberIdstring子帳戶UID
    > coinstring幣種
    > chainstring鏈名
    > amountstring充值金額
    > txIDstring交易Id. 充值失敗或取消充值時為空
    > statusinteger充值狀態
    > toAddressstring充值的目標地址
    > tagstring充值目標地址的tag
    > depositFeestring充值手續費
    > successAtstring最後更新時間
    > confirmationsstring确认区块的数量
    > txIndexstring交易序列号
    > blockHashstring鏈上的哈希數
    > batchReleaseLimitstring當前幣鏈每日充值限額. "-1"表示無限制
    > depositTypestring入金類型. 0: 正常充值, 10: 充值觸發每日限額, 20: 異常充值
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/broker/asset/query-sub-member-deposit-record?coin=USDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672192441294
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "rows": [],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1672192441742
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/copytrade.html b/zh-TW/v5/copytrade.html index d70887ce78..af72db6633 100644 --- a/zh-TW/v5/copytrade.html +++ b/zh-TW/v5/copytrade.html @@ -4,14 +4,14 @@ 如何使用API帶單 | Bybit API Documentation - +

    如何使用API帶單

    成為交易達人

    請前往這裡申請成為交易達人

    創建API KEY

    "合約 - 訂單 持倉"是跟單交易的必選權限項

    支持範圍

    目前, 經典帳戶和統一帳戶都支持跟單交易, 但是只能交易部分USDT永續合約對. 請通過該查詢可交易產品的規格信息接口, 檢查其中的copyTrading字段, 來了解 支持的具體交易對

    下單示例

    使用V5創建訂單接口來創建一個帶單

    POST /v5/order/create HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1698376189371
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 207

    {
    "symbol": "BTCUSDT",
    "side": "Buy",
    "orderType": "Limit",
    "category": "linear",
    "qty": "0.1",
    "price": "29000",
    "timeInForce": "GTC",
    "positionIdx": 1
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/acct-borrow-collateral.html b/zh-TW/v5/crypto-loan/acct-borrow-collateral.html index 8a038a7489..0e7f931639 100644 --- a/zh-TW/v5/crypto-loan/acct-borrow-collateral.html +++ b/zh-TW/v5/crypto-loan/acct-borrow-collateral.html @@ -4,13 +4,13 @@ 查詢帳戶可借貸/抵押的限額 | Bybit API Documentation - +

    查詢帳戶可借貸/抵押的限額

    查詢本帳戶支持的最小/最大的借貸和質押額

    權限: "現貨交易"

    HTTP 請求

    GET /v5/crypto-loan/borrowable-collateralisable-number

    請求參數

    參數是否必需類型說明
    loanCurrencytruestring借貸幣種
    collateralCurrencytruestring質押幣種

    響應參數

    參數類型說明
    collateralCurrencystring抵押幣種
    loanCurrencystring借貸幣種
    maxCollateralAmountstring最大可質押金額
    maxLoanAmountstring最大可借貸金額
    minCollateralAmountstring最小質押金額
    minLoanAmountstring最小借貸金額

    請求示例

    GET /v5/crypto-loan/borrowable-collateralisable-number?loanCurrency=USDT&collateralCurrency=BTC HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728627083198
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "collateralCurrency": "BTC",
    "loanCurrency": "USDT",
    "maxCollateralAmount": "164.957732055526752104",
    "maxLoanAmount": "8000000",
    "minCollateralAmount": "0.000412394330138818",
    "minLoanAmount": "20"
    },
    "retExtInfo": {},
    "time": 1728627084863
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/adjust-collateral.html b/zh-TW/v5/crypto-loan/adjust-collateral.html index 0c4b1e6b67..27267d2aeb 100644 --- a/zh-TW/v5/crypto-loan/adjust-collateral.html +++ b/zh-TW/v5/crypto-loan/adjust-collateral.html @@ -4,13 +4,13 @@ 調整質押金額 | Bybit API Documentation - +

    調整質押金額

    您可以增加或減少質押金額. 選擇減少時, 請先確認允許減少的最大質押數量

    權限: "現貨交易"

    信息
    • 調整的質押數量會在資金帳戶進行返還或者扣減

    HTTP 請求

    POST /v5/crypto-loan/adjust-ltv

    請求參數

    參數是否必需類型說明
    orderIdtruestring借貸訂單ID
    amounttruestring調整金額
    directiontruestring0: 增加質押金; 1: 減少質押金

    響應參數

    參數類型說明
    adjustIdstring質押金調整交易ID

    請求示例

    POST /v5/crypto-loan/adjust-ltv HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728635421137
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 85

    {
    "orderId": "1794267532472646144",
    "amount": "0.001",
    "direction": "1"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "adjustId": "1794318409405331968"
    },
    "retExtInfo": {},
    "time": 1728635422833
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/borrow.html b/zh-TW/v5/crypto-loan/borrow.html index c8347cdef8..67809479e8 100644 --- a/zh-TW/v5/crypto-loan/borrow.html +++ b/zh-TW/v5/crypto-loan/borrow.html @@ -4,13 +4,13 @@ 借款 | Bybit API Documentation - +

    借款

    權限: "現貨交易"

    信息
    • 借款發放到資金帳戶
    • 質押金將從資金帳戶扣減, 因此確保資金帳戶有足額質押幣種

    HTTP 請求

    POST /v5/crypto-loan/borrow

    請求參數

    參數是否必需類型說明
    loanCurrencytruestring借貸幣種
    loanAmountfalsestring借貸金額
  • 當抵押金額未填時, 該字段必填
  • loanTermfalsestring借貸期限
  • 活期: 傳null或者不傳字段
  • 定期: 7, 14, 30, 90, 180
  • collateralCurrencytruestring質押幣種
    collateralAmountfalsestring質押金額
  • 當借貸金額未填時, 該字段必填
  • 響應參數

    參數類型說明
    orderIdstring借貸訂單ID

    請求示例

    POST /v5/crypto-loan/borrow HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1728629356551
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 140

    {
    "loanCurrency": "USDT",
    "loanAmount": "550",
    "collateralCurrency": "BTC",
    "loanTerm": null,
    "collateralAmount": null
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "orderId": "1794267532472646144"
    },
    "retExtInfo": {},
    "time": 1728629357820
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/collateral-coin.html b/zh-TW/v5/crypto-loan/collateral-coin.html index 9f2dc2c08e..2b9122aadd 100644 --- a/zh-TW/v5/crypto-loan/collateral-coin.html +++ b/zh-TW/v5/crypto-loan/collateral-coin.html @@ -4,13 +4,13 @@ 查詢質押幣種 | Bybit API Documentation - +

    查詢質押幣種

    信息

    不需要鑒權

    HTTP 請求

    GET /v5/crypto-loan/collateral-data

    請求參數

    參數是否必需類型說明
    vipLevelfalsestringVip等級
  • VIP0, VIP1, VIP2, VIP3, VIP4, VIP5, VIP99(至尊VIP)
  • PRO1, PRO2, PRO3, PRO4, PRO5, PRO6
  • currencyfalsestring幣種名稱

    響應參數

    參數類型說明
    vipCoinListarrayObject
    > listarrayObject
    >> collateralAccuracyinteger質押幣種精度
    >> initialLTVstring初始質押率, 初始 LTV 決定了最初可借入的資產金額,因質押資產而異
    >> marginCallLTVstring追加保證金率, 如果 LTV (待還本息/質押金額) 達到此閾值,系統會提醒您追加質押資產
    >> liquidationLTVstring強平質押率, 如果 LTV (待還本息/質押金額) 達到此閾值,系統會對您的質押資產進行強制平倉,以全額償還本金和利息。
    >> maxLimitstring抵押限額
    > vipLevelstringVip等級

    請求示例

    GET /v5/crypto-loan/collateral-data?currency=ETH&vipLevel=PRO1 HTTP/1.1
    Host: api.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "collateralAccuracy": 8,
    "currency": "ETH",
    "initialLTV": "0.8",
    "liquidationLTV": "0.95",
    "marginCallLTV": "0.87",
    "maxLimit": "32000"
    }
    ],
    "vipLevel": "PRO1"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1728618590498
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/comleted-loan-order.html b/zh-TW/v5/crypto-loan/comleted-loan-order.html index cc0294ad22..d14911c88e 100644 --- a/zh-TW/v5/crypto-loan/comleted-loan-order.html +++ b/zh-TW/v5/crypto-loan/comleted-loan-order.html @@ -4,13 +4,13 @@ 查詢已結清的借貸歷史訂單 | Bybit API Documentation - +

    查詢已結清的借貸歷史訂單

    權限: "現貨交易"

    信息

    支持查詢過去6個月的已完結訂單紀錄

    HTTP 請求

    GET /v5/crypto-loan/borrow-history

    請求參數

    參數是否必需類型說明
    orderIdfalsestring借貸訂單ID
    loanCurrencyfalsestring借貸幣種
    collateralCurrencyfalsestring質押幣種
    limitfalsestring每頁數量限制. [1, 100]. 默認: 10
    cursorfalsestring游標,用於分頁

    響應參數

    參數類型說明
    listarrayObject
    > borrowTimestring借貸時間
    > collateralCurrencystring質押幣種
    > expirationTimestring借貸到期時間, 活期借貸總是 ""
    > hourlyInterestRatestring按小時計利率
  • 活期借貸: 實時利率
  • 定期借貸: 定期固定利率
  • > initialCollateralAmountstring初始質押金額
    > initialLoanAmountstring初始借貸金額
    > loanCurrencystring借貸幣種
    > loanTermstring借貸期限 7, 14, 30, 90, 180天, 活期總是""
    > orderIdstring借貸訂單ID
    > repaidIntereststring總償還利息金額
    > repaidPenaltyIntereststring總償還罰息金額
    > statusinteger償還方式 1: 主動還清2: 強平還清
    nextPageCursorstring下一頁游標

    請求示例

    GET /v5/crypto-loan/ongoing-orders?orderId=1793683005081680384 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728630979731
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "borrowTime": "1728546174028",
    "collateralCurrency": "BTC",
    "expirationTime": "1729148399000",
    "hourlyInterestRate": "0.0000010241",
    "initialCollateralAmount": "0.0494727",
    "initialLoanAmount": "1",
    "loanCurrency": "ETH",
    "loanTerm": "7",
    "orderId": "1793569729874260992",
    "repaidInterest": "0.00000515",
    "repaidPenaltyInterest": "0",
    "status": 1
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728632014857
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/loan-coin.html b/zh-TW/v5/crypto-loan/loan-coin.html index c6414dc909..21ca0c161b 100644 --- a/zh-TW/v5/crypto-loan/loan-coin.html +++ b/zh-TW/v5/crypto-loan/loan-coin.html @@ -4,13 +4,13 @@ 查詢可借幣種 | Bybit API Documentation - +

    查詢可借幣種

    信息

    不需要鑒權

    HTTP 請求

    GET /v5/crypto-loan/loanable-data

    請求參數

    參數是否必需類型說明
    vipLevelfalsestringVip等級
  • VIP0, VIP1, VIP2, VIP3, VIP4, VIP5, VIP99(至尊VIP)
  • PRO1, PRO2, PRO3, PRO4, PRO5, PRO6
  • currencyfalsestring幣種名稱

    響應參數

    參數類型說明
    vipCoinListarrayObject
    > listarrayObject
    >> borrowingAccuracyinteger借貸幣種精度
    >> currencystring幣種名稱
    >> flexibleHourlyInterestRatestring活期每小時利率
  • 活期質押借幣採用小時浮動利率,按實際借款時長每小時計算利息,可提前還款
  • 如果借貸幣種不支持活期, 則總是""
  • >> hourlyInterestRate7Dstring7天定期每小時利率
  • 利息以實際借款每小時計算利息, 可提前還款, 逾期後每小時將收取3倍小時利息, 逾期超過48小時, 您的抵押資產將被清算以償還貸款和利息
  • 如果借貸幣種不支持7天定期, 則總是""
  • >> hourlyInterestRate14Dstring14天定期每小時利率
  • 利息以實際借款每小時計算利息, 可提前還款, 逾期後每小時將收取3倍小時利息, 逾期超過48小時, 您的抵押資產將被清算以償還貸款和利息
  • 如果借貸幣種不支持14天定期, 則總是""
  • >> hourlyInterestRate30Dstring30天定期每小時利率
  • 利息以實際借款每小時計算利息, 可提前還款, 逾期後每小時將收取3倍小時利息, 逾期超過48小時, 您的抵押資產將被清算以償還貸款和利息
  • 如果借貸幣種不支持30天定期, 則總是""
  • >> hourlyInterestRate90Dstring90天定期每小時利率
  • 利息以實際借款每小時計算利息, 可提前還款, 逾期後每小時將收取3倍小時利息, 逾期超過48小時, 您的抵押資產將被清算以償還貸款和利息
  • 如果借貸幣種不支持90天定期, 則總是""
  • >> hourlyInterestRate180Dstring180天定期每小時利率
  • 利息以實際借款每小時計算利息, 可提前還款, 逾期後每小時將收取3倍小時利息, 逾期超過48小時, 您的抵押資產將被清算以償還貸款和利息
  • 如果借貸幣種不支持180天定期, 則總是""
  • >> maxBorrowingAmountstring借幣上限
    >> minBorrowingAmountstring單次最低可借金額
    > vipLevelstringVip等級

    請求示例

    GET /v5/crypto-loan/loanable-data?currency=USDT&vipLevel=VIP0 HTTP/1.1
    Host: api.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "borrowingAccuracy": 4,
    "currency": "USDT",
    "flexibleHourlyInterestRate": "0.0000090346",
    "hourlyInterestRate14D": "0.0000207796",
    "hourlyInterestRate180D": "",
    "hourlyInterestRate30D": "0.00002349",
    "hourlyInterestRate7D": "0.0000180692",
    "hourlyInterestRate90D": "",
    "maxBorrowingAmount": "8000000",
    "minBorrowingAmount": "20"
    }
    ],
    "vipLevel": "VIP0"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1728619315868
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/ltv-adjust-history.html b/zh-TW/v5/crypto-loan/ltv-adjust-history.html index afda15f722..6a0629174e 100644 --- a/zh-TW/v5/crypto-loan/ltv-adjust-history.html +++ b/zh-TW/v5/crypto-loan/ltv-adjust-history.html @@ -4,13 +4,13 @@ 查詢質押金調整歷史 | Bybit API Documentation - +

    查詢質押金調整歷史

    查詢增減質押金的操作歷史

    權限: "現貨交易"

    信息
    • 支持查詢過去6個月的操作紀錄
    • 僅返回由用戶主動發起的質押金操作紀錄

    HTTP 請求

    GET /v5/crypto-loan/adjustment-history

    請求參數

    參數是否必需類型說明
    orderIdfalsestring借貸訂單ID
    adjustIdfalsestring質押金調整操作ID
    collateralCurrencyfalsestring質押幣種
    limitfalsestring每頁數量限制. [1, 100]. 默認: 10
    cursorfalsestring游標,用於分頁

    響應參數

    參數類型說明
    listarrayObject
    > collateralCurrencystring質押幣種
    > orderIdstring借貸訂單ID
    > adjustIdstring質押金調整操作ID
    > adjustTimestring調整時間戳
    > preLTVstring调整前LTV
    > afterLTVstring調整後LTV
    > directioninteger調整方向, 0: 增加; 1: 減少
    nextPageCursorstring下一頁游標

    請求示例

    GET /v5/crypto-loan/adjustment-history?adjustId=1794318409405331968 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728635871668
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "adjustId": "1794318409405331968",
    "adjustTime": "1728635422814",
    "afterLTV": "0.7164",
    "amount": "0.001",
    "collateralCurrency": "BTC",
    "direction": 1,
    "orderId": "1794267532472646144",
    "preLTV": "0.6546"
    }
    ],
    "nextPageCursor": "1844656778923966466"
    },
    "retExtInfo": {},
    "time": 1728635873329
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/reduce-max-collateral-amt.html b/zh-TW/v5/crypto-loan/reduce-max-collateral-amt.html index cc7b578f8f..63b06c29ce 100644 --- a/zh-TW/v5/crypto-loan/reduce-max-collateral-amt.html +++ b/zh-TW/v5/crypto-loan/reduce-max-collateral-amt.html @@ -4,13 +4,13 @@ 查詢最大可減少的質押金額 | Bybit API Documentation - +

    查詢最大可減少的質押金額

    查詢某個借貸訂單允許的最大可減少質押金額

    權限: "現貨交易"

    HTTP 請求

    GET /v5/crypto-loan/max-collateral-amount

    請求參數

    參數是否必需類型說明
    orderIdtruestring借貸訂單ID

    響應參數

    參數類型說明
    maxCollateralAmountstring最大可減少金額

    請求示例

    GET /v5/crypto-loan/max-collateral-amount?orderId=1794267532472646144 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728634289933
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "maxCollateralAmount": "0.00210611"
    },
    "retExtInfo": {},
    "time": 1728634291554
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/repay-transaction.html b/zh-TW/v5/crypto-loan/repay-transaction.html index f91a284192..d9644edf39 100644 --- a/zh-TW/v5/crypto-loan/repay-transaction.html +++ b/zh-TW/v5/crypto-loan/repay-transaction.html @@ -4,13 +4,13 @@ 查詢還款紀錄 | Bybit API Documentation - +

    查詢還款紀錄

    權限: "現貨交易"

    信息
    • 支持查詢過去6個月的還款紀錄
    • 僅返還交易成功的還款紀錄

    HTTP 請求

    GET /v5/crypto-loan/repayment-history

    請求參數

    參數是否必需類型說明
    orderIdfalsestring借貸訂單ID
    repayIdfalsestring還款交易ID
    loanCurrencyfalsestring借貸幣種
    limitfalsestring每頁數量限制. [1, 100]. 默認: 10
    cursorfalsestring游標,用於分頁

    響應參數

    參數類型說明
    listarrayObject
    > collateralCurrencystring質押幣種
    > collateralReturnstring因次還款而返還的質押金額. 如果本次還款操作沒有全部還清借貸, 那麼系統不會主動返還質押金
    > loanCurrencystring借貸幣種
    > loanTermstring借貸期限, 7, 14, 30, 90, 180天, 活期總是""
    > orderIdstring借貸訂單ID
    > repayAmountstring本次還款金額
    > repayIdstring還款交易ID
    > repayStatusinteger還款狀態, 1: 成功; 2: 進行中
    > repayTimestring還款時間
    > repayTypestring還款類型, 1: 用戶主動還款; 2: 強平導致的還款
    nextPageCursorstring下一頁游標

    請求示例

    GET /v5/crypto-loan/repayment-history?repayId=1794271131730737664 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728633716794
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "collateralCurrency": "BTC",
    "collateralReturn": "0",
    "loanCurrency": "USDT",
    "loanTerm": "",
    "orderId": "1794267532472646144",
    "repayAmount": "100",
    "repayId": "1794271131730737664",
    "repayStatus": 1,
    "repayTime": "1728629786875",
    "repayType": "1"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728633717935
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/repay.html b/zh-TW/v5/crypto-loan/repay.html index 566fa505b7..1626eb64a3 100644 --- a/zh-TW/v5/crypto-loan/repay.html +++ b/zh-TW/v5/crypto-loan/repay.html @@ -4,13 +4,13 @@ 還款 | Bybit API Documentation - +

    還款

    您可以選擇提前還款, 並且支持部分還款, 如果存在利息, 將優先還利息

    權限: "現貨交易"

    信息
    • 還款金額將從資金帳戶扣除
    • 非完全還清操作, 系統將不會主動退還質押金, 但是您可以自行減少質押金

    HTTP 請求

    POST /v5/crypto-loan/repay

    請求參數

    參數是否必需類型說明
    orderIdtruestring借貸訂單ID
    amounttruestring還款金額

    響應參數

    參數類型說明
    repayIdstring還款交易ID

    請求示例

    POST /v5/crypto-loan/repay HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1728629785224
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 61

    {
    "orderId": "1794267532472646144",
    "amount": "100"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "repayId": "1794271131730737664"
    },
    "retExtInfo": {},
    "time": 1728629786884
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/crypto-loan/unpaid-loan-order.html b/zh-TW/v5/crypto-loan/unpaid-loan-order.html index 829d1dd064..7ffc812e7c 100644 --- a/zh-TW/v5/crypto-loan/unpaid-loan-order.html +++ b/zh-TW/v5/crypto-loan/unpaid-loan-order.html @@ -4,13 +4,13 @@ 查詢進行中的借貸訂單 | Bybit API Documentation - +

    查詢進行中的借貸訂單

    權限: "現貨交易"

    HTTP 請求

    GET /v5/crypto-loan/ongoing-orders

    請求參數

    參數是否必需類型說明
    orderIdfalsestring借貸訂單ID
    loanCurrencyfalsestring借貸幣種
    collateralCurrencyfalsestring質押幣種
    loanTermTypefalsestring
  • 1: 定期, 當查詢定期時, loanTerm字段必傳
  • 2: 活期
  • 默認查詢所有期限類型
    loanTermfalsestring7, 14, 30, 90, 180天, 當loanTermType=1時有效
    limitfalsestring每頁數量限制. [1, 100]. 默認: 10
    cursorfalsestring游標,用於分頁

    響應參數

    參數類型說明
    listarrayObject
    > collateralAmountstring質押金額
    > collateralCurrencystring質押幣種
    > currentLTVstring當前的LTV
    > expirationTimestring借貸到期時間, 活期總是""
    > hourlyInterestRatestring按小時計利率
  • 活期借貸: 實時利率
  • 定期借貸: 定期固定利率
  • > loanCurrencystring借貸幣種
    > loanTermstring借貸期限, 7, 14, 30, 90, 180天, 活期總是""
    > orderIdstring借貸訂單ID
    > residualIntereststring未償還利息
    > residualPenaltyIntereststring未償還罰息
    > totalDebtstring未償還本金
    nextPageCursorstring下一頁游標

    請求示例

    GET /v5/crypto-loan/ongoing-orders?orderId=1793683005081680384 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728630979731
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "collateralAmount": "0.0964687",
    "collateralCurrency": "BTC",
    "currentLTV": "0.4161",
    "expirationTime": "1731149999000",
    "hourlyInterestRate": "0.0000010633",
    "loanCurrency": "USDT",
    "loanTerm": "30",
    "orderId": "1793683005081680384",
    "residualInterest": "0.04016",
    "residualPenaltyInterest": "0",
    "totalDebt": "1888.005198"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728630980861
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/demo.html b/zh-TW/v5/demo.html index 13ef658392..65ee9174eb 100644 --- a/zh-TW/v5/demo.html +++ b/zh-TW/v5/demo.html @@ -4,7 +4,7 @@ 模擬交易 | Bybit API Documentation - + @@ -13,7 +13,7 @@ Rest API: https://api-demo.bybit.com
    Websocket : wss://stream-demo.bybit.com (請注意模擬交易僅支持私有頻道; 公共頻道請使用 wss://stream.bybit.com; WS下單服務不支持)

    小建議

    • 請注意模擬交易是獨立模塊, 當創建了模擬交易的api key後, 請使用以上域名進行連接
    • 順便說下, 在測試網使用模擬交易服務是無意義的, 因為二者都是沙盒環境, 若要使用模擬交易, 請至主網生成模擬交易的api key

    可用接口列表

    目錄接口名路由
    公有行情所有所有接口
    交易創建委託單/v5/order/create
    修改委託單/v5/order/amend
    撤銷委託單/v5/order/cancel
    查詢實時委託段/v5/order/realtime
    撤銷所有訂單/v5/order/cancel-all
    查詢歷史訂單/v5/order/history
    查詢成交紀錄/v5/execution/list
    批量創建委託單/v5/order/create-batch (期貨/期權)
    批量修改委託單/v5/order/amend-batch (期貨/期權)
    批量撤銷委託單/v5/order/cancel-batch (期貨/期權)
    持倉查詢持倉/v5/position/list
    設置槓桿/v5/position/set-leverage
    切換持倉模式/v5/position/switch-mode
    設置止盈止損/v5/position/trading-stop
    設置自動追加保證金/v5/position/set-auto-add-margin
    手動增加或減少保證金/v5/position/add-margin
    查詢平常盈虧/v5/position/closed-pnl
    帳戶查詢錢包餘額/v5/account/wallet-balance
    查詢利息紀錄/v5/account/borrow-history
    設置抵押品幣種/v5/account/set-collateral-switch
    查詢抵押品信息/v5/account/collateral-info
    查詢Greeks信息/v5/asset/coin-greeks
    查詢帳戶配置/v5/account/info
    查詢交易日誌/v5/account/transaction-log
    設置保證金模式/v5/account/set-margin-mode
    設置現貨對衝/v5/account/set-hedging-mode
    資產查詢交割紀錄/v5/asset/delivery-record
    查詢USDC結算紀錄/v5/asset/settlement-record
    全倉槓桿全倉槓桿開關/v5/spot-margin-trade/switch-mode
    全倉槓桿設置/v5/spot-margin-trade/set-leverage
    查詢開關狀態和倍數/v5/spot-margin-uta/status
    WS私有推送order,execution,position,wallet,greeks/v5/private

    獲取模擬資金接口

    API頻率: 每分鐘1次

    HTTP請求

    POST /v5/account/demo-apply-money

    請求參數

    參數是否必需類型說明
    adjustTypefalseinteger0(默認): 增加模擬資金; 1: 減少模擬資金
    utaDemoApplyMoneyfalsearray
    > coinfalsestring申請的幣種, 支持 BTC, ETH, USDT, USDC
    > amountStrfalsestring申請的金額, 每次請求最多支持申請如下金額
  • BTC: "15"
  • ETH: "200"
  • USDT: "100000"
  • USDC: "100000"
  • 請求示例

    POST /v5/account/demo-apply-money HTTP/1.1
    Host: api-demo.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1711420489915
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "adjustType": 0,
    "utaDemoApplyMoney": [
    {
    "coin": "USDT",
    "amountStr": "109"
    },
    {
    "coin": "ETH",
    "amountStr": "1"
    }
    ]
    }

    創建模擬交易帳戶

    API 頻率: 5次/秒
    權限: 帳戶劃轉, 母子帳戶劃轉

    信息
    • 使用生產環境的母子帳戶調用該接口, 域名需要是"api.bybit.com"
    • 如果模擬帳戶已經存在, 這個POST接口直接返回存在的模擬帳戶UID
    • 如果使用的母帳戶key調接口, 則創建的模擬帳戶存在於該母帳戶下面
    • 如果使用的子帳戶key調接口, 則創建的模擬帳戶存在於該子帳戶下面

    HTTP 請求

    POST /v5/user/create-demo-member

    請求參數

    響應參數

    參數類型說明
    subMemberIdstring模擬帳戶UID

    請求實例

    POST /v5/user/create-demo-member HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1728460942776
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 2

    {}

    創建模擬帳戶API Key

    信息
    • 參數填寫模擬帳戶UID
    • 使用生產環境母帳戶調用接口, 域名需要是"api.bybit.com"

    更新模擬帳戶API Key

    信息
    • 使用生產環境母帳戶調用接口, 域名需要是"api.bybit.com"

    查詢模擬帳戶API Key信息

    信息
    • 使用對應的模擬帳戶調用接口, 域名需要是"api-demo.bybit.com"

    刪除模擬帳戶API Key

    信息
    • 使用生產環境母帳戶調用接口, 域名需要是"api.bybit.com"
    - + \ No newline at end of file diff --git a/zh-TW/v5/enum.html b/zh-TW/v5/enum.html index 5ac30d9031..d0ebeb2754 100644 --- a/zh-TW/v5/enum.html +++ b/zh-TW/v5/enum.html @@ -4,13 +4,13 @@ 枚舉定義 | Bybit API Documentation - +

    枚舉定義

    locale

    • de-DE
    • en-US
    • es-AR
    • es-ES
    • es-MX
    • fr-FR
    • kk-KZ
    • id-ID
    • uk-UA
    • ja-JP
    • ru-RU
    • th-TH
    • pt-BR
    • tr-TR
    • vi-VN
    • zh-TW
    • ar-SA
    • hi-IN
    • fil-PH

    announcementType

    • new_crypto
    • latest_bybit_news
    • delistings
    • latest_activities
    • product_updates
    • maintenance_updates
    • new_fiat_listings
    • other

    announcementTag

    • Spot
    • Derivatives
    • Spot Listings
    • BTC
    • ETH
    • Trading Bots
    • USDC
    • Leveraged Tokens
    • USDT
    • Margin Trading
    • Partnerships
    • Launchpad
    • Upgrades
    • ByVotes
    • Delistings
    • VIP
    • Futures
    • Institutions
    • Options
    • WEB3
    • Copy Trading
    • Earn
    • Bybit Savings
    • Dual Asset
    • Liquidity Mining
    • Shark Fin
    • Launchpool
    • NFT GrabPic
    • Buy Crypto
    • P2P Trading
    • Fiat Deposit
    • Crypto Deposit
    • Спот
    • Спот лістинги
    • Торгові боти
    • Токени з кредитним плечем
    • Маржинальна торгівля
    • Партнерство
    • Оновлення
    • Делістинги
    • Ф'ючерси
    • Опціони
    • Копітрейдинг
    • Bybit Накопичення
    • Бівалютні інвестиції
    • Майнінг ліквідності
    • Купівля криптовалюти
    • P2P торгівля
    • Фіатні депозити
    • Криптодепозити
    • Копитрейдинг
    • Торговые боты
    • Деривативы
    • P2P
    • Спот листинги
    • Деривативи
    • MT4
    • Lucky Draw
    • Unified Trading Account
    • Єдиний торговий акаунт
    • Единый торговый аккаунт
    • Институциональный трейдинг
    • Інституціональний трейдинг
    • Делистинг

    category

    統一帳戶

    • spot現貨
    • linearUSDT永續, USDC永續, USDC交割
    • inverse反向合約,包含反向永續, 反向交割
    • option期權

    經典帳戶

    • linearUSDT永續
    • inverse反向合約,包含反向永續, 反向交割
    • spot現貨
    • option期權

    orderStatus

    活動態

    • New訂單成功下達
    • PartiallyFilled部分成交
    • Untriggered條件單未觸發

    終態

    • Rejected訂單被拒絕
    • PartiallyFilledCanceled僅現貨存在該枚舉值, 訂單部分成交且已取消
    • Filled完全成交
    • Cancelled期貨交易,當訂單是該狀態時,是可能存在部分成交的; 經典帳戶的現貨盈止損單、條件單、OCO訂單觸發前取消
    • Triggered已觸發, 條件單從未觸發到變成New的一個中間態
    • Deactivated統一帳戶下期貨、現貨的盈止損單、條件單、OCO訂單觸發前取消

    timeInForce

    • GTC一直有效至取消
    • IOC立即成交或取消
    • FOK完全成交或取消
    • PostOnly 被動委託

    createType

    • CreateByUser
    • CreateByAdminClosing
    • CreateBySettleUSDC期貨交割; 因合約下架導致的平倉
    • CreateByStopOrder期貨條件單
    • CreateByTakeProfit期貨止盈單
    • CreateByPartialTakeProfit期貨部分止盈單
    • CreateByStopLoss期貨止損單
    • CreateByPartialStopLoss期貨部分止損單
    • CreateByTrailingStop期貨追蹤出場單
    • CreateByLiq階梯強平
    • CreateByTakeOver_PassThrough強平觸發倉位被系統接管
    • CreateByAdl_PassThrough自動減倉
    • CreateByBlock_PassThrough從Paradigm下的大宗交易
    • CreateByBlockTradeMovePosition_PassThrough移倉觸發的訂單
    • CreateByClosing在持倉區進行平倉 - web/app
    • CreateByFGridBot網格機器人創建訂單 - web/app
    • CloseByFGridBot網格機器人平倉 - web/app
    • CreateByTWAPTWAP創建訂單 - web/app
    • CreateByTVSignalTradingView webhook觸發訂單 - web/app
    • CreateByMmRateClose通過設置mmrate觸發的訂單 - web/app
    • CreateByMartingaleBot馬丁格爾訂單 - web/app
    • CloseByMartingaleBot馬丁格爾平倉 - web/app
    • CreateByIceBerg冰山策略訂單 - web/app
    • CreateByArbitrage套利策略下單 - web/app
    • CreateByDdh期權動態Delta對衝訂單 - web/app

    execType

    • Trade
    • AdlTrade自動減倉
    • Funding資金費率
    • BustTrade強平
    • DeliveryUSDC到期交割; 因合約下架導致的平倉
    • Settle反向合約到期交割; 下架合約到期平倉
    • BlockTrade
    • MovePosition

    stopOrderType

    • TakeProfit止盈單
    • StopLoss止損單
    • TrailingStop追蹤止損單
    • Stop條件單
    • PartialTakeProfit部分止盈單
    • PartialStopLoss部分止損單
    • tpslOrder現貨止盈止損單
    • OcoOrder現貨OCO訂單
    • MmRateClose在web或者app端, 當倉位上設置了當達到某個MMR水平時, 自動平倉
    • BidirectionalTpslOrder現貨雙向止盈止損單

    tickDirection

    • PlusTick價格上漲
    • ZeroPlusTick交易的價格與前一筆交易的價格相同,前一筆交易的價格高於前一筆交易的價格
    • MinusTick價格下跌
    • ZeroMinusTick交易的價格與前一筆交易的價格相同,前一筆交易的價格低於前一筆交易的價格

    interval

    • 1 3 5 15 30 60 120 240 360 720分鐘
    • D
    • W
    • M

    intervalTime

    • 5min 15min 30min分鐘
    • 1h 4h小時
    • 1d

    positionIdx

    • 0單向持倉
    • 1買側的雙向持倉
    • 2賣側的雙向持倉

    positionStatus

    • Normal
    • Liq強平中
    • Adl自動減倉中

    rejectReason

    • EC_NoError
    • EC_Others
    • EC_UnknownMessageType
    • EC_MissingClOrdID
    • EC_MissingOrigClOrdID
    • EC_ClOrdIDOrigClOrdIDAreTheSame
    • EC_DuplicatedClOrdID
    • EC_OrigClOrdIDDoesNotExist
    • EC_TooLateToCancel
    • EC_UnknownOrderType
    • EC_UnknownSide
    • EC_UnknownTimeInForce
    • EC_WronglyRouted
    • EC_MarketOrderPriceIsNotZero
    • EC_LimitOrderInvalidPrice
    • EC_NoEnoughQtyToFill
    • EC_NoImmediateQtyToFill
    • EC_PerCancelRequest
    • EC_MarketOrderCannotBePostOnly
    • EC_PostOnlyWillTakeLiquidity
    • EC_CancelReplaceOrder
    • EC_InvalidSymbolStatus
    • EC_CancelForNoFullFill
    • EC_BySelfMatch
    • EC_InCallAuctionStatus用於市前訂單操作,例如集合競價第二階段不允許撤單,當交易服務沒有成功攔截撤單請求時,該請求最終會被撮合服務拒絕

    accountType

    經典帳戶

    • CONTRACT合約帳戶
    • SPOT現貨帳戶
    • FUND資金帳戶

    統一帳戶1.0

    • CONTRACT反向合約帳戶
    • UNIFIED統一帳戶
    • FUND資金帳戶

    統一帳戶2.0

    • UNIFIED統一帳戶
    • FUND資金帳戶

    transferStatus

    • SUCCESS
    • PENDING
    • FAILED

    depositStatus

    • 0未知
    • 1等待確認
    • 2處理中
    • 3成功 (這是一筆入金成功的終態)
    • 4儲值失敗
    • 10011等待加錢到資金池
    • 10012成功加錢到資金池

    withdrawStatus

    • SecurityCheck
    • Pending
    • success
    • CancelByUser
    • Reject
    • Fail
    • BlockchainConfirmed
    • MoreInformationRequired
    • Unknown保底狀態, 一般不會出現

    triggerBy

    • LastPrice
    • IndexPrice
    • MarkPrice

    cancelType

    • CancelByUser
    • CancelByReduceOnly
    • CancelByPrepareLiq CancelAllBeforeLiq由於強平而取消
    • CancelByPrepareAdl CancelAllBeforeAdl由於自動減倉而取消
    • CancelByAdmin
    • CancelBySettle由於合約下架而取消訂單
    • CancelByTpSlTsClear止盈止損訂單因倉位被平而取消
    • CancelBySmp

    期權:

    • CancelByUser
    • CancelByReduceOnly
    • CancelAllBeforeLiq由於強平而取消
    • CancelAllBeforeAdl由於自動減倉而取消
    • CancelBySettle
    • CancelByCannotAffordOrderCost
    • CancelByPmTrialMmOverEquity
    • CancelByAccountBlocking
    • CancelByDelivery
    • CancelByMmpTriggered
    • CancelByCrossSelfMuch
    • CancelByCrossReachMaxTradeNum
    • CancelByDCP
    • CancelBySmp

    optionPeriod

    • BTC: 7,14,21,30,60,90,180,270
    • ETH: 7,14,21,30,60,90,180,270
    • SOL: 7,14,21,30,60,90

    dataRecordingPeriod

    • 5min 15min 30min分鐘
    • 1h 4h小時
    • 4d

    contractType

    • InversePerpetual反向永續
    • LinearPerpetual正向永續: USDT永續和USDC永續
    • LinearFuturesUSDC交割
    • InverseFutures反向交割

    status

    • PreLaunch預上線
    • Trading線上可交易
    • Delivering交割中
    • Closed已下架

    curAuctionPhase

    • NotStarted盤前交易未開始
    • Finished盤前交易已結束
      • 當盤前合約最終無法轉為正式合約, 它將會被下架且phase="Finished"
    • CallAuction集合競價第一階段
      • 僅支持timeInForce=GTC, orderType=Limit的訂單
      • 不支持設置止盈止損; 不支持掛條件單
      • 該階段不支持改單
      • 訂單價格區間: [preOpenPrice x 0.5, maxPrice]
    • CallAuctionNoCancel集合競價第二階段
      • 僅支持timeInForce=GTC, orderType=Limit的訂單
      • 不支持設置止盈止損; 不支持掛條件單
      • 該階段不支持改單和撤單
      • 訂單價格區間: 買單 [lastPrice x 0.5, markPrice x 1.1], 賣單 [markPrice x 0.9, maxPrice]
    • CrossMatching集合競價第三階段 - 撮合盤前交易
      • 該階段不支持掛單, 改單和撤單
      • 該階段會產生k線數據
    • ContinuousTrading連續競價階段
      • 該階段對訂單行為沒有限制
      • 該階段會產生訂單簿、最近成交數據

    marginTrading

    • none不管是經典帳戶還是統一帳戶, 該交易對都不支持槓桿交易
    • both對於經典帳戶和統一帳戶, 該交易對都支持槓桿交易
    • utaOnly僅對於統一帳戶, 該交易對支持槓桿交易
    • normalSpotOnly僅對於經典帳戶, 該交易對支持槓桿交易

    copyTrading

    • none不管是經典帳戶還是統一帳戶, 該交易對都不支持帶單交易
    • both對於經典帳戶和統一帳戶, 該交易對都支持帶單交易
    • utaOnly僅對於統一帳戶, 該交易對支持帶單交易
    • normalOnly僅對於經典帳戶, 該交易對支持帶單交易

    type(uta-translog)

    • TRANSFER_IN從其他錢包轉入到統一錢包
    • TRANSFER_OUT從統一錢包轉出到別的錢包
    • TRADE
    • SETTLEMENTUSDT永續的資金費結算; USDC永續的資金費結算以及USDC合約的8小時倉位結算
    • DELIVERYUSDC交割合約和期權到期交割
    • LIQUIDATION
    • ADL自動減倉
    • AIRDROP
    • BONUS體驗金發放
    • BONUS_RECOLLECT體驗金過期
    • FEE_REFUND手續費返還
    • INTEREST借貸產生的利息
    • CURRENCY_BUY閃兌, 以及系統對借款的清算(統一帳戶借貸)
    • CURRENCY_SELL閃兌, 以及系統對借款的清算(統一帳戶借貸)
    • BORROWED_AMOUNT_INS_LOANOTC放款
    • PRINCIPLE_REPAYMENT_INS_LOAN主動償還本金
    • INTEREST_REPAYMENT_INS_LOAN主動償還利息
    • AUTO_SOLD_COLLATERAL_INS_LOANOTC強平賣出抵押品(機構借貸)
    • AUTO_BUY_LIABILITY_INS_LOANOTC強平買入借款資產(機構借貸)
    • AUTO_PRINCIPLE_REPAYMENT_INS_LOAN被動償還本金
    • AUTO_INTEREST_REPAYMENT_INS_LOAN被動償還利息
    • TRANSFER_IN_INS_LOAN機構借貸強平時自動劃入
    • TRANSFER_OUT_INS_LOAN機構借貸強平時自動劃出
    • SPOT_REPAYMENT_SELL一鍵還款時的賣出
    • SPOT_REPAYMENT_BUY一鍵還款時的買入
    • TOKENS_SUBSCRIPTION槓桿代幣申購
    • TOKENS_REDEMPTION槓桿代幣贖回
    • AUTO_DEDUCTION資金自動轉出 (鏈回滾)
    • FLEXIBLE_STAKING_SUBSCRIPTIONByfi靈活質押申購
    • FLEXIBLE_STAKING_REDEMPTIONByfi靈活質押贖回
    • FIXED_STAKING_SUBSCRIPTIONByfi固定質押申購
    • PREMARKET_TRANSFER_OUT盤前交易質押金上帳
    • PREMARKET_DELIVERY_SELL_NEW_COIN盤前交易交割新幣
    • PREMARKET_DELIVERY_BUY_NEW_COIN盤前交易新幣種劃給買家
    • PREMARKET_DELIVERY_PLEDGE_PAY_SELLER交割履約-質押款交付
    • PREMARKET_DELIVERY_PLEDGE_BACK交割履約-退回賣家質押幣
    • PREMARKET_ROLLBACK_PLEDGE_BACK交割違約-退還買家質押款
    • PREMARKET_ROLLBACK_PLEDGE_PENALTY_TO_BUYER交割違約-違約金劃給買家
    • CUSTODY_NETWORK_FEEfireblocks業務
    • CUSTODY_SETTLE_FEEfireblocks業務
    • CUSTODY_LOCKfireblocks / copper 業務
    • CUSTODY_UNLOCKfireblocks / copper 業務
    • CUSTODY_UNLOCK_REFUNDfireblocks / copper 業務
    • LOANS_BORROW_FUNDS質押借貸放款
    • LOANS_PLEDGE_ASSET質押借貸還款
    • BONUS_TRANSFER_IN卡券金額轉入
    • BONUS_TRANSFER_OUT卡券金額轉出

    type(contract-translog)

    • TRANSFER_IN從其他錢包轉入到(反向)合約錢包
    • TRANSFER_OUT從(反向)合約錢包轉出到別的錢包
    • TRADE
    • SETTLEMENTUSDT永續/反向永續的資金費結算
    • DELIVERY反向期貨合約的交割
    • LIQUIDATION
    • ADL自動減倉
    • AIRDROP
    • BONUS體驗金發放
    • BONUS_RECOLLECT體驗金過期
    • FEE_REFUND手續費返還
    • CURRENCY_BUY閃兌
    • CURRENCY_SELL閃兌
    • AUTO_DEDUCTION資金自動轉出 (鏈回滾)
    • Others

    unifiedMarginStatus

    ltStatus

    • 1槓桿代幣支持申贖
    • 2槓桿代幣支持申購,但無法贖回
    • 3槓桿代幣支持贖回,但是無法申購
    • 4槓桿代幣無法申贖
    • 5調倉中

    convertAccountType

    統一帳戶2.0

    • eb_convert_uta統一帳戶錢包
    • eb_convert_funding資金錢包

    統一帳戶1.0

    • eb_convert_inverse反向合約錢包 (該錢包內沒有USDT))
    • eb_convert_uta統一帳戶錢包
    • eb_convert_funding資金錢包

    經典帳戶

    • eb_convert_spot現貨錢包
    • eb_convert_contract合約錢包 (該錢包包含USDT)
    • eb_convert_funding資金錢包

    symbol

    USDT永續:

    • BTCUSDT
    • ETHUSDT

    USDC永續:

    • BTCPERP
    • ETHPERP

    USDC交割:

    • BTC-24MAR23

    反向永續:

    • BTCUSD
    • ETHUSD

    反向交割:

    • BTCUSDH23H: 第一季度; 23: 2023
    • BTCUSDM23M: 第二季度; 23: 2023
    • BTCUSDU23U: 第三季度; 23: 2023
    • BTCUSDZ23Z: 第四季度; 23: 2023

    現貨:

    • BTCUSDT
    • ETHUSDC

    adlRankIndicator

    • 0空倉時默認值
    • 1
    • 2
    • 3
    • 4
    • 5

    vipLevel

    • No VIP
    • VIP-1
    • VIP-2
    • VIP-3
    • VIP-4
    • VIP-5
    • VIP-Supreme
    • PRO-1
    • PRO-2
    • PRO-3
    • PRO-4
    • PRO-5

    smpType

    • 默認: None
    • CancelMaker
    • CancelTaker
    • CancelBoth

    現貨交易手續費幣種說明

    以BTCUSDT為例:

    • maker費率是否為正?
      • TRUE
        • 方向 = Buy -> 交易幣種 (BTC)
        • 方向 = Sell -> 報價幣種 (USDT)
      • FALSE
        • 是否是maker單 = TRUE
          • 方向 = Buy -> 報價幣種 (USDT)
          • 方向 = Sell -> 交易幣種 (BTC)
        • 是否是maker單 = FALSE
          • 方向 = Buy -> 交易幣種 (BTC)
          • 方向 = Sell -> 報價幣種 (USDT)
    - + \ No newline at end of file diff --git a/zh-TW/v5/error.html b/zh-TW/v5/error.html index c2dbcde6af..2a3a5c26b1 100644 --- a/zh-TW/v5/error.html +++ b/zh-TW/v5/error.html @@ -4,13 +4,13 @@ 錯誤碼 | Bybit API Documentation - +

    錯誤碼

    HTTP 響應碼

    響應碼描述
    400Bad request. 請檢查您的請求方式是否為GET / POST (必需大寫)
    401無效請求. 1. 請檢查是否為正確的API密鑰; 2. 請檢查是否將鑒權參數放在了請求頭裡
    403Forbidden request. 可能原因: 1. 違反了IP請求速率; 2. 您的GET請求裡帶了空的json體; 3. 您的請求發送自美國IP
    404無法找到路由. 可能原因: 1. 請檢查您的路由; 2. 帳戶模式不支持請求的category值
    429觸發系統層面的頻率保護, 請嘗試重試

    WS下單通用錯誤碼

    響應碼描述
    104041. op類型未找到; 2. category不支持/未找到
    10429觸發系統級別的頻率保護
    10003同一個uid上構建了過多會話
    100161.內部錯誤; 2. 服務重啟
    10019ws下單服務正在重啟, 拒絕新的請求, 正在處理中的請求不受影響. 您可以重新/新建連接, 會分配到正常的服務上
    20003Too frequent requests under the same session
    20006reqId重複

    UTA和經典帳戶

    錯誤碼描述
    0OK
    10000服務超時
    10001請求參數錯誤。
    10002請求時間超出了時間視窗範圍。
    10003API金鑰無效。檢查使用的key是否與域名匹配, 共有4類環境: 主網mainnet, 測試網testnet, 主網模擬盤, 測試網模擬盤
    33004Your api key has expired API key已經過期
    10004錯誤簽名,請檢查簽名生成算灋。
    10005許可權被拒絕,請檢查您的API金鑰許可權。
    10006訪問次數太多。 超過API速率限制。
    10007用戶身份驗證失敗。
    10008當前帳戶模式無法訪問,請檢查您的帳戶模式
    10009IP已被禁止。
    10010IP不匹配,請檢查API金鑰的綁定IP地址。
    10014無效的重複請求。
    10016系統錯誤。
    10017未找到路由。
    10018超過IP速率限制。
    10024合規牆攔截。
    10027禁止交易。
    10028API只能由統一帳戶用戶訪問。
    10029交易對白名單限制,請求的交易對無效。
    100028統一帳戶用戶無法訪問API。
    30133OTC loan: The symbol you select for USDT Perpetual is not allowed by Institutional Lending 下單交易對不在機構借貸白名單內
    30134OTC loan: The symbol you select for USDC Contract is not allowed by Institutional Lending 下單交易對不在機構借貸白名單內
    30135The leverage you select for USDT Perpetual trading cannot exceed the maximum leverage allowed by Institutional Lending. 可設置的槓桿倍數不能超過機構借貸的上限
    30136The leverage you select for USDC Perpetual or Futures trading cannot exceed the maximum leverage allowed by Institutional Lending. 可設置的槓桿倍數不能超過機構借貸的上限
    40004the order is modified during the process of replacing 訂單已經到達終態, 無法修改
    110001訂單不存在
    110003訂單價格超出允許範圍
    110004錢包餘額不足
    110005倉位狀態
    110006估計資產無法彌補頭寸差額
    110007可用餘額不足
    110008訂單已完成或取消。
    110009停止訂單的數量超過了允許的最大限制。 您可以從我們的OpenAPI檔案中找到參攷。
    110010訂單已取消
    110011此調整將立即觸發清算
    110012可用餘額不足。
    110013由於風險限制級別,無法設定杠杆。
    110014可用餘額不足,無法添加額外保證金。
    110015該倉位處於全倉保證金模式。
    110016請求的合約數量超過了風險限額,請在重試之前調整風險限額級別
    110017不滿足ReduceOnly規則。
    110018用戶id非法。
    110019訂單id非法。
    110020不允許有超過500個活動訂單。
    110021由於未平倉,不允許超過持倉限額。
    110022數量已受到限制,無法修改訂單以新增數量。
    110023現時你只能减少你在這份合約上的頭寸。 請查看我們的公告或聯系客服瞭解詳情。
    110024您有一個持倉,因此無法切換位置模式。
    110025倉位模式尚未修改。
    110026全倉/逐倉模式尚未修改。
    110027保證金尚未修改。
    110028您已有未結訂單,因此無法切換倉位模式。
    110029此符號不支持對沖模式。
    110030訂單ID重複
    110031不存在風險限額資訊,請檢查風險限額規則。
    110032訂單不合法
    110033沒有未平倉頭寸,您無法設定保證金
    110034沒有淨頭寸
    110035清算前未完成訂單取消
    110036由於交叉保證金模式,您不允許更改杠杆。
    110037用戶設置清單沒有此交易對
    110038由於投資組合保證金模式,您不允許更改杠杆率。
    110039維護保證金率過高。 這可能引發清算。
    110040訂單將觸發強制清算,請重新提交訂單。
    110041當存在倉位或maker訂單時,不允許跳過清算
    110042現時,由於預交割狀態,您只能减少您在本合約中的頭寸。
    110043設定杠杆尚未修改。
    110044可用保證金不足。
    110045錢包餘額不足。
    110046此調整將立即觸發清算。
    110047由於可用保證金不足,無法調整風險限額。
    110048由於當前/預期頭寸值超過修訂後的風險限額,因此無法調整風險限額。
    110049tick note只能是數位
    110050無效的幣種
    110051用戶的可用餘額不能覆蓋當前市場的最低價格
    110052您的可用餘額不足以設定價格
    110053用戶可用餘額不能覆蓋當前市場價格和上限價格
    110054此倉位至少有一個獲利連結訂單,因此無法切換獲利和止損模式
    110055此倉位至少有一個止損連結訂單,因此無法切換獲利和止損模式
    110056此倉位至少有一個尾隨止損連結訂單,因此無法切換獲利和止損模式
    110057條件訂單或限制訂單包含TP/SL相關參數
    110058由於剩餘倉位大小不足,您無法設定獲利和止損。
    110059不允許修改部分填寫的未結訂單的TP/SL
    110060在完全TP/SL模式下,不允許修改TP/SL
    110061部分tpSlMode下不允許有超過20個TP/SL
    110062未找到該機构的MMP資訊。
    110063結算正在進行中! {{key0}}不可用於交易。
    110064修改後的契约數量不能小於或等於成交的數量。
    110065尚未為您的帳戶啟用MMP。 請聯系您的BD經理。
    110066現時不允許交易。
    110067不支持統一帳戶。
    110068不允許杠杆交易。
    110069機構借貸客戶不得交易。
    110070ETP合約不能交易。
    110071抱歉,我們正在修改統一保證金帳戶! 現時,不支持新的升級。 如果您有任何問題,請聯繫我們的24/7客戶支援。
    110072OrderLinkedID 不能重複
    110073設置保證金模式失敗. 請檢查響應裡的具體原因內容
    110075RiskId沒有修改
    110075 182021逐倉保證金模式下無法啟用槓桿交易. 請切換至全倉保證金或者組合保證金後再使用
    110076僅逐倉保證金下支持自動添加保證金
    110077組合保證金模式不支持此操作
    110078無法減少過多的保證金
    110079訂單正在處理中, 請稍後再試
    110080Operations Restriction: The current LTV ratio of your Institutional Lending has hit the liquidation threshold. Assets in your account are being liquidated. 目前機構借貸帳戶的LTV達到強平閾值 (交易/杠杆/风险限额等操作)
    110082You cannot lift Reduce-Only restrictions, as no Reduce-Only restrictions are applied to your position 您的倉位沒有受到Reduce-Only限制, 無需解禁
    110083Reduce-Only restrictions must be lifted for both Long and Short positions at the same time 對於多空倉位, Reduce-Only 限制需要同時解除
    110085The risk limit and margin ratio for this contract has been updated, please select a supported risk limit and place your order again 該合約的風險限額和保證金率已經更新, 請使用支持的風險限額並重新下單
    110086Current order leverage exceeds the maximum available for your current Risk Limit tier. Please lower leverage before placing an order 當前槓桿超過您當前風險限額等級的最大槓桿. 請降低槓桿後再重新下單
    110087Leverage for Perpetual or Futures contracts cannot exceed the maximum allowed for your Institutional loan 期貨的槓桿不能超過場外借貸產品規定的最大槓桿倍數
    110088Please Upgrade to UTA to trade 請升級到UTA後再進行交易
    110089Exceeds the maximum risk limit level 超過了最大風險限額等級
    110090Exceeds the maximum leverage limit of the current risk limit level.超過了當前風險限額等級支持的最大槓桿
    110092expect Rising, but trigger_price[XXXXX] <= current[XXXXX]??laste 期望趨勢上行觸發, 但是觸發價格小於當前的市場價格
    110093expect Falling, but trigger_price[XXXXX] >= current[XXXXX]??last 期望趨勢下行觸發, 但是觸發價格大於當前的市場價格
    110094Order notional value below the lower limit 訂單最小下單金額小於名義價值金額
    110095You cannot create, modify or cancel Pre-Market Perpetual orders during the Call Auction. 集合競價每個階段都有不同訂單操作要求
    110096Pre-Market Perpetual Trading does not support Portfolio Margin mode. 組合保證金模式不支持盤前交易
    110097Non-UTA users cannot access Pre-Market Perpetual Trading. To place, modify or cancel Pre-Market Perpetual orders, please upgrade your Standard Account to UTA. 經典帳戶不支持盤前交易
    110098Only Good-Till-Canceled (GTC) orders are supported during Call Auction. 集合競價階段僅支持GTC訂單
    110099You cannot create TP/SL orders during the Call Auction for Pre-Market Perpetuals. 集合競價階段不支持止盈止損、條件單
    110100You cannot place, modify, or cancel Pre-Market Perpetual orders when you are in Demo Trading. 模擬交易不支持盤前交易
    110101Trading inverse contracts under Cross and Portfolio modes requires enabling the settlement asset as collateral. 統一帳戶2.0的全倉/組合保證金模式, 交易反向合約需要預先打開對應幣種的抵押開關
    110102The user does not support trading Inverse contracts - 帶單交易pro, 機構借貸帳戶暫不支持uta2.0的反向合約交易
    110103Only Post-Only orders are available at this stage
    170346Settle coin is not a collateral coin, cannot trade settleCoin不是抵押品, 无法交易
    3100181uid can not be null uid 不能為空
    3100197由於升級UTA中, 用戶暫時被封禁
    3200316USDC Options Trading Restriction: The current LTV ratio for your Institutional Lending has reached the maximum allowable amount for USDC Options trading. 目前機構借貸風險水平無法進行期權交易
    3200317USDC Options Open Position Restriction: The current LTV ratio for your Institutional Lending has reached the maximum allowable amount for opening USDC Options positions.目前機構借貸風險水平無法進行期權買入
    3100326BaseCoin is required baseCoin必須傳
    3200403逐倉保證金模式下無法進行此產品交易
    3200419Unable to switch to Portfolio margin due to active pre-market Perpetual orders and positions 在有盤前永續訂單和倉位的情況下, 無法切換到PM模式
    3200320Operations Restriction: The current LTV ratio of your Institutional Lending has hit the liquidation threshold. Assets in your account are being liquidated. 目前機構借貸帳戶的LTV達到強平閾值 (修改保证金模式或者现货杠杆时)
    3400208您有未關閉的雙向持倉或逐倉模式下的USDT永續倉位
    3400209有USDT永續倉位時,小時整點的前後10分鐘禁止升級
    3400210您合約帳戶當前風險率過高
    3400211升級後,帳戶風險率過高
    3400212有USDC永續倉位或者期權倉位時,小時整點的前後10分鐘禁止升級
    3400213您USDC合約帳戶當前風險率過高
    3400052您有未取消的USDC永續掛單
    3400053您有未取消的期權掛單
    3400054您有未取消的USDT永續掛單
    3400214系統處理異常,請稍候再試
    3400071您未達到帳戶升級的資產要求,無法完成升級
    3401010Cannot switch to PM mode 無法切換到PM模式(帶單帳戶嘗試切換到PM模式)
    3400139The total value of your positions and orders has exceeded the risk limit for a Perpetual or Futures contract 當前PM模式下的倉位超過了全倉或者逐倉的最大允許風險限額
    181017OrderStatus must be final status 僅支持查詢終態
    182100Compulsory closing of positions, no repayment allowed 強平清算中, 不支持還款
    182101Failed repayment, insufficient collateral balance 試算抵押品餘額不足, 還款失敗
    182102Failed repayment, there are no liabilities in the current currency 該幣種不存在任何負債
    182103Institutional lending users are not supported 機構借貸用戶不支持一鍵還款
    182108Switching failed, margin verification failed, please re-adjust the currency status 保證金校驗失敗, 請檢查對應幣種的狀態
    182110Failed to switch 無法切換
    182111The requested currency has a non guaranteed gold currency or does not support switching status currencies 請求的幣種是非保證金幣種
    182112Duplicate currency, please re-adjust 重複的幣種, 請調整後重試

    現貨交易

    錯誤碼描述
    170001openapi內部异常、及調用下游异常會拋出次异常
    170005限頻報錯
    170007調用下游超時
    170010杠杆代幣申購:超出持倉限額
    170011下單失敗,當前下單金額已超過該幣種可用額度
    170019黑名單用戶
    170031該功能已暫停
    170032下游熔斷錯誤碼
    170033保證金可用額度不足
    170034超出限額
    170035已提交系統處理(服務超時)
    170036未開通全倉杠杆
    170037所選幣種未開啟借貸
    170105參數為空
    170115無效的timeInForce
    170116無效的訂單類型
    170117無效的買賣方向
    170121下游返回的無效幣對
    170124訂單金額太大
    170130無效入参
    170131餘額不足
    170132下單價格太高
    170133下單價格太小
    170134訂單價格精度太大
    170135下單數量太大
    170136下單數量太小
    170137下單數量精度太大
    170139訂單已經成交
    170140訂單金額太小
    170141重複的clientOrderId
    170142訂單已經取消
    170143訂單取消時撮合不存在
    170144訂單被鎖定
    170145訂單類型不能取消
    170146下單超時
    170147取消訂單超時
    170148下單金額精度太大
    170149創建訂單失敗(下游發生未知异常)
    170150取消訂單失敗(下游發生未知异常)
    170151幣對未開放交易
    170157幣對不允許openapi交易
    170159開盤前五分鐘不允許下普通市價單
    170190取消訂單時訂單已經完成
    170191取消訂單時訂單狀態
    170192盤面風控(開盤後30分鐘)
    170193盤面風控限價單買入風控(開盤後前30分鐘)
    170194盤面風控片價單賣出風控(開盤後前X分鐘)
    170195ETP限價單買入偏離值風控
    170196ETP限價單賣出偏離值風控
    170197市價單買入偏離值風控
    170198市價單賣出偏離值風控
    170199ETP市價單買入偏離值風控
    170200ETP市價單賣出偏離值風控
    170201訂單種類錯誤
    170202請輸入觸發價格
    170203觸發價格大於110%
    170204觸發價格小於90%
    170206開倉前5分鐘不允許下條件單
    170207平台借貸池額度不足
    170210下單被拒絕
    170212Cancel order request processing 正在處理撤單請求
    170213訂單不存在
    170215Spot Trading (Buy) Restriction: The current LTV ratio of your institutional lending has reached the maximum allowable amount for buy orders 限制現貨買入交易, 因您當前機構借貸的LTV已觸發限制現貨買入風控線
    170216The leverage you select for Spot Trading cannot exceed the maximum leverage allowed by Institutional Lending OTC現貨切換槓桿超過機構借貸允許的槓桿上線
    170217openapi禁止成交
    170218limit-maker訂單被拒
    170219UID {{xxx}} is not available to this feature
    170220Spot Trading Restriction: The current LTV ratio of your institutional lending has reached the maximum allowable amount for Spot trading 限制現貨交易, 因您當前機構借貸的LTV已觸發限制現貨交易風控線
    170221幣種不存在
    170222請求過快
    170223場外借貸帳戶觸發告警或爆倉
    170224非創新區用戶
    170226全倉用戶帳戶爆倉中
    170227功能未開放
    170228買入額度超過預估最大買入額
    170229賣出數量超過預估最大賣出量
    170230Operations Restriction: Due to the deactivation of Margin Trading for institutional loan 機構借貸產品不支持現貨槓桿交易, 因此無法調用開關接口
    170234系統錯誤
    170241To proceed with trading, users must read through and confirm that they fully understand the project's risk disclosure document. For App users, please update your Bybit App to version 4.16.0 to process. 請先去前端頁面完成協議簽署
    170310Order modification timeout 改單超時
    170311Order modification failed 改單失敗
    170312The current order does not support modification 該訂單類型不支持修改
    170313The modified contract quantity cannot be less than to the filled quantity 修改後訂單數量小於當前已成交數量
    170341Request order quantity exceeds maximum limit 單次請求的訂單數量超過上限
    170344Symbol is not supported on Margin Trading 該交易對不支持槓桿交易
    170709OTC loan: The select trading pair is not in the whitelist pair 該交易對不在機構借貸現貨交易白名單內
    170810Cannot exceed maximum of 500 conditional, TP/SL and active orders. 現貨交易,單帳戶單交易對支持最多500個活動單

    現貨槓桿代幣

    錯誤碼描述
    175000serialNo已使用過
    175001今日申購限額不足,請稍候嘗試
    175002申購訂單積壓較多,請稍後重試
    175003餘額不足,請充值後重試
    175004今日贖回限額不足,請稍候重試
    175005贖回訂單積壓較多,請稍後重試
    175006餘額不足,請充值後重試
    175007此訂單不存在
    175008當前申購未開啟
    175009申購金額超出上限
    175010您還未通過風險測試無法參與槓桿代幣的申贖和交易,請先在網頁端完成練習
    175012當前贖回未開啟
    175013贖回數量超過上限
    175014申購入口暫時關閉
    175015贖回入口暫時關閉
    175016輸入值格式不符合要求:精度或長度超出
    175017下單失敗:超出槓桿代幣持倉最大限制,當前限制是XXXX USDT
    175027用戶處於UTA升級中

    槓桿交易

    錯誤碼描述
    176002獲取用戶帳戶信息失敗, 檢查是否已經在web端完成quiz
    176003獲取用戶借款紀錄失敗
    176004獲取歷史紀錄的startTime大於endTime
    176005借款失敗
    176006還款失敗
    176007未找到借貸帳戶
    176008借貸帳戶未開通全倉槓桿,請先在web端完成練習
    176009借貸帳戶未打开全倉槓桿, 請先開啟全倉槓桿
    176010未找到借貸幣種
    176011幣種未開啟借貸
    176012未找到交易幣對
    176013交易比對未開啟借貸
    176014還款請求重複
    176015還款帳戶餘額不足
    176016無欠款,無需還款
    176017還款金額超過欠款金額
    176018用戶幣種已在還款中
    176019用戶還款計息強平衝突
    176020查詢不到還款紀錄
    176021借貸請求重複
    176022借貸幣種全量未開放
    176023交易對全量未開放
    176024借貸用戶狀態非正常
    176025借貸數量不能小於單詞最小借貸量
    176026借貸數量不能大於單次最大借貸量
    176027借貸數量不能大於平臺允許的單用戶最大借貸量
    176028借貸申請數量超過平臺最大借貸量
    176029借款申請數量超過用戶預估最大可借貸量
    176030獲取用戶借貸信息失敗
    176031借貸精度超過設置精度
    176034杠杆倍數超出範圍
    176035清算中,關閉杠杆開關失敗
    176036强平中,調整杠杆開關失敗
    176037非統一交易用戶,操作失敗
    176038現貨杠杆為關閉狀態,不允許當前操作
    176039借貸中,不允許當前操作
    176040存在現貨杠杆訂單,調整杠杆開關失敗!
    176132還款精度過高
    176133可能觸發爆倉! 請調整您的交易金額後重試
    176134帳戶已經陞級(upgrading)到UTA
    176135獲取保證金幣種失敗,請稍後重試
    176136獲取借貸幣種失敗,請稍後重試
    176137切換全倉狀態失敗,請稍後重試
    176138在關閉禁用的全倉保證金帳戶之前,您需要償還所有債務
    176139抱歉,您沒有資格啟用全倉保證金,因為您已經啟用了場外借貸
    176201Account exception. 確認是否是綁定了機構借貸的帳戶
    182104This action could not be completed as your Unified Margin Account's IM/MM utilization rate has exceeded the threshold
    182105Adjustment failed, user is upgrading
    182106Adjustment failed, user forced liquidation in progress.
    182107Adjustment failed, Maintenance Margin Rate too high

    資產服務

    錯誤碼描述
    131001openapi svc error 內部服務錯誤
    131002參數錯誤
    131002Withdraw address chain or destination tag are not equal 需要檢查提幣地址是否添加到網頁端的地址簿中, 以及是否存在tag
    131003內部錯誤
    131004需要KYC認證
    131066This address does not support withdrawals for the time being. Please switch to another address for withdrawing 目標地址被列入黑名單, 請使用其他地址
    131067Travel rule verification failed, please contact the target exchange. Travel rule for KR user
    131068Travel rule information is insufficient, please provide additional details. Travel rule for KR user
    131069Unable to withdraw to the receipt, please contact the target the exchange. Travel rule for KR user
    131070The recipient's name is mismatched with the targeted exchange. Travel rule for KR user
    131071The recipient has not undergone KYC verification. Travel rule for KR user
    131072Your withdrawal currency is not supported by the target exchange. Travel rule for KR user
    131073Your withdrawal address has not been included in the target exchange. Travel rule for KR user
    131074Beneficiary info is required, please refer to the latest api document. Travel rule for KR user
    131075Internal address cannot be yourself 內部提現時目標UID不能是自身
    131076internal transfer not support sub-accounts 內部提現不支持提幣到子帳戶
    131077receive user not exist 接收方UID不再村
    131078receive user deposit has been banned 接收方被禁止入金
    131079receive user need kyc 接收方需要做KYC
    131080User left retry times is zero 所剩的重試次數為0
    131081Do not input memo/tag,please. 不要輸入memo/tag
    131082Do not repeat the request 不要重複發送請求
    131083Withdraw only allowed from address book 僅能提幣到地址簿中的地址
    131084uta upgrading, and withdraw is prohibited UTA升級中, 無法提現
    131085提幣金額大於可用餘額,觸發延遲提幣
    131086提幣金額超過風控限制,觸發全倉槓桿限制
    131087your current account spot risk level is too high, withdrawal is prohibited, please adjust and try again
    131088提幣金額超過當前KYC限額,您目前的可提限額是: %s
    131089用戶24小時內進行過銘感操作,提現被禁
    131090用戶提現封禁
    131091用戶登陸封禁,無法提幣
    131092用戶狀態異常
    131093提幣地址不在白名單內
    131094用戶ID不在白名單內
    131095提幣金額超過平台24小時限額
    131096檢查提幣金額是否滿足最小最大可提金額
    131097系統暫停提幣
    131098當前時間禁止從新地址提幣
    131099當前狀態不支持取消提幣請求
    131200服務不可用
    131201業務異常
    131202用戶ID無效
    131203請求參數錯誤
    131204帳戶異常
    131205查詢劃轉失敗
    131206劃轉失敗
    131207帳戶不存在
    131208劃轉封禁
    131209查詢子帳戶關係失敗
    131210金額精度錯誤
    131211轉入賬戶類型不能作為轉出賬戶類型
    131212可用餘額不足
    131213當前劃轉能力受到LTV風險率限制
    131214劃轉ID已存在
    131215金額錯誤
    131216查詢余額錯誤
    131217風險檢查失敗
    131227子帳戶未配置萬能劃轉能力
    131228可劃轉餘額不足. 請確認延遲提幣安全限額
    131229Due to compliance requirements, the current currency is not allowed to transfer 根據合規要求, 該資產不允許劃轉
    131230The system is busy, please try again later 系統繁忙, 請重試
    131231Transfers into this account are not supported 限制劃入這個帳戶
    131232Transfers out this account are not supported 限制劃出這個帳戶
    140001Switching the PM spot hedging switch is not allowed in non PM mode 僅支持在組合保證金模式下開啟現貨對衝
    140002Institutional lending users do not support PM spot hedging 機構借貸帳戶不支持現貨对冲
    140003You have position(s) being liquidated, please try again later. 您的倉位正在被清算, 請稍候再試
    140004Operations Restriction: The current LTV ratio of your Institutional Loan has hit the liquidation threshold. Assets in your account are being liquidated.
    140005Risk level after switching modes exceeds threshold 在啟用或關閉現貨對衝後, 風險水位超出警戒線
    141004sub member is not normal 可能是帳戶的母子關係不正確
    141025This sub-account has assets and cannot be deleted 該子帳戶存在資產, 無法刪除
    181000category不能為空
    181001類別僅支持正向合約,期權或現貨
    181002symbol不能為空.
    181003side不能為空.
    181004side僅支持Buy或者Sell
    181005orderStatus所填的枚舉值不正確
    181006startTime所傳入的不是一個數字類型
    181007endTime所傳入的不是一個數字類型
    181008入參startTime和endTime都需要
    181009入參startTime應當小於結束時間
    181010startTime和endTime的間隔不能超過7天
    181011limit所傳入的不是一個數字類型
    181012該交易對名不存在
    181013結算幣種僅支持USDC
    181014Classic account is not supported 經典帳戶不支持
    181018Invalid expDate. 參數expDate輸入值無效
    181019Parameter expDate can't be earlier than 2 years 參數expDate不能早於2年
    182000交易品種相關報價不能為空
    182200Please upgrade UTA first 请升级到统一账户
    182201You must enter 2 time parameters 时间入参必须成对出现
    182202The start time must be less than the end time 开始时间必须小于结束时间
    182203Please enter valid characters
    182204Coin does not exist
    182205User level does not exist vip等级不存在
    700000accountType/quoteTxId cannot be null
    700001quote fail:no dealer can used報價失敗
    700004order does not exist訂單不存在
    700007Large Amount Limit大額限制
    700012UTA升級中, 禁止申請報價

    質押借貸

    CodeDescription
    177002Server is busy, please wait and try again
    177003Illegal characters found in a parameter
    177004Precision is over the maximum defined for this asset
    177005Order does not exist
    177006We don't have this asset
    177007Your borrow amount has exceed maximum borrow amount
    177008Borrow is banned for this asset
    177009Borrow amount is less than minimum borrow amount
    177010Repay amount exceeds borrow amount
    177011Balance is not enough
    177012The system doesn't have enough asset now
    177013adjustment amount exceeds minimum collateral amount
    177014Individual loan quota reached
    177015Collateral amount has reached the limit. Please reduce your collateral amount or try with other collaterals
    177016Minimum collateral amount is not enough
    177017This coin cannot be used as collateral
    177018duplicate request
    177019Your input param is invalid
    177020The account does not support the asset
    177021Repayment failed

    機構借貸

    錯誤碼描述
    3777002UID cannot be bound repeatedly. UID不能重複綁定
    3777003UID cannot be unbound because the UID has not been bound to a risk unit. 無法解綁, 因為UID還沒有在風險單元內
    3777004The main UID of the risk unit cannot be unbound. 風險單元主UID不允許解綁
    3777006UID cannot be bound, please try again with a different UID." 導致的原因: 1. 請求接口的UID不是風險單元內的UID; 2. 請求接口的UID與被操作的UID不存在母子或子子關係
    3777005You have unsettled lending or borrowing orders. Please try again later.存在未結算的借出或借入訂單,請稍後重試
    3777007UID cannot be bound, please upgrade to UTA Pro." UID無法綁定, 請先將該UID升級到統一帳戶
    3777012Your request is currently being processed. Please wait and try again later 已經提交請求請稍後重試
    3777027UID cannot be bound, leveraged trading closure failed. UID無法綁定, 因為無法自動關閉槓桿交易
    3777029You currently have orders for pre-market trading that can’t be bind UIDs 由於當前存在盤前交易訂單,所以無法綁定UID
    3777030This account has activated copyPro and cannot bind uid 該帳戶已經激活了copy pro, 無法綁定到機構借貸

    經紀商

    錯誤碼描述
    3500402limit值校驗失敗. 請檢查是否在支持範圍內
    3500403僅適用於經紀商的主帳戶
    3500404無效的cursor
    3500405startTimeendTime必須同時傳入
    3500406Out of query time range. 超過了支持的時間範圍
    3500407Parameter begin and end need to be input in pairs.

    卡券

    錯誤碼描述
    400001invalid parameter 無效入參
    400101The voucher was recycled 卡券已經被回收
    400102The voucher has exceeded the redemption date (expired) 卡券已經過期
    400103The voucher is not available for redemption 卡券還未開始
    400105Budget exceeded 超出預算
    403001Account rejected, check if the input accountId valid, account banned, or kyc issue 輸入帳戶無效/被禁/kyc問題
    404001resource not found
    404011Insufficient inventory 庫存不足
    409011VIP level limit VIP等級限制
    500001Internal server error 系統錯誤
    - + \ No newline at end of file diff --git a/zh-TW/v5/guide.html b/zh-TW/v5/guide.html index 9a04081b47..c9ddfbf6c8 100644 --- a/zh-TW/v5/guide.html +++ b/zh-TW/v5/guide.html @@ -4,7 +4,7 @@ 接入指南 | Bybit API Documentation - + @@ -14,7 +14,7 @@ server_time - recv_window <= timestamp < server_time + 1000
    其中server_time是Bybit服務器時間,您可以通過Bybit服務器時間接口獲取.

    構建請求

    提示

    為了幫助診斷高級網絡問題,您可以考慮將cdn-request-id添加到您的請求頭中。對於每個請求,它的值應該是唯一的。.

    基本步驟:

    1. 時間戳 + API key + [recv_window]+ [queryString(無需排序) | jsonBodyString]
    2. 使用HMAC_SHA256或者RSA_SHA256算法對第1步中拼接的string簽名,並轉換為16進製字符串(HMAC_SHA256) / Base64編碼 (RSA_SHA256),得出sign參數。
    3. 添加生成的簽名到HTTP頭當中 注意: GETPOST請求的加密明文是不相同,請參考以下示例.

    對明文加密的示例

    # 拼接規則:
    timestamp+api_key+recv_window+queryString

    # 明文
    "1658384314791XXXXXXXXXX5000category=option&symbol=BTC-29JUL22-25000-C"

    # 解析
    timestamp = "1658384314791"
    api_key = "XXXXXXXXXX"
    recv_window = "5000"
    queryString = "category=option&symbol=BTC-29JUL22-25000-C"

    http請求示例

    GET /v5/order/realtime?category=option&symbol=BTC-29JUL22-25000-C HTTP/1.1
    Host: api-testnet.bybit.com
    -H 'X-BAPI-SIGN: XXXXXXXXXX' \
    -H 'X-BAPI-API-KEY: XXXXXXXXXX' \
    -H 'X-BAPI-TIMESTAMP: 1658384431891' \
    -H 'X-BAPI-RECV-WINDOW: 5000'

    外層通用數據結構

    參數類型說明
    retCodenumber成功/錯誤碼
    retMsgstring成功/錯誤消息. 成功消息可以是OK,success,SUCCESS
    resultObject業務數據體
    retExtInfoObject額外信息. 大部分場景下都是{}
    timenumber當前時間戳 (毫秒)
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    },
    "retExtInfo": {},
    "time": 1671017382656
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/intro.html b/zh-TW/v5/intro.html index e17bcdf16b..98d6ebb983 100644 --- a/zh-TW/v5/intro.html +++ b/zh-TW/v5/intro.html @@ -4,7 +4,7 @@ 概覽 | Bybit API Documentation - + @@ -15,7 +15,7 @@ 資金的利用效率。

    支持統一賬戶借貸:

    API V5 對統一賬戶模式的支持,新增借貸能力。客戶可以使用多個資產作為抵押品作為保證金來交易全業務線。 舉例:只存入 BTC 資產,進行以 USDT 結算的BTCUSDT 合約交易,如果產生浮動盈虧會通過借貸方式記錄負債,產生的負債會每個小時收取利息。

    Paradigm大宗交易

    統一賬戶現在支持通過 Paradigm 進行大宗交易。用戶可以跨不同產品使用資金

    支持組合保證金

    統一賬戶下支持 反向合約, USDT永續, USDC永續, USDC交割和期權的組合保證金模式。

    接口命名規範

    V5 版本的 API 接口路徑定義更明確,從實際場景出發,分為市場數據,訂單管理,持倉管理,賬戶管理,資產管理等模塊,通過更清晰的路徑定義來減少業務歧義。

    {host}/{version}/{product}/{module}
    舉例: api.bybit.com/v5/market/recent-trade

    地址分段說明
    v5/market/交易產品的K線,深度,行情,平台成交等數據,以及基礎金融規則,風控規則
    v5/order/交易產品的訂單管理
    v5/position/衍生品的持倉管理
    v5/account/單一賬戶的錢包,費率等,僅用於單個賬戶的業務
    v5/asset/資產管理,資金流水,主要是跨不同賬戶的業務場景
    v5/spot-lever-token/現貨槓桿代幣的行情,申購贖回業務
    v5/spot-margin-trade/現貨全倉槓桿模式管理

    增加按照結算貨幣取消所有訂單

    取消訂單時,支持通過 settleCoin 取消所有期貨合約的訂單數據,不需要按照每個 symbol 來逐次取消。

    增加資金費率歷史記錄查詢

    V5 升級為可查詢歷史資金費率變化情況,客戶可進行歷史 Funding 回測。

    增加保險基金接口

    V5 中增加保險池的變更接口查詢,可以查詢 Bybit 平台所有保險基金幣種的變更信息。

    數據精度統一規範

    V5 版本,返回的所有數值都是實際數值,您不需要做轉換調整。

    Open API 文檔可讀性提升

    Open API 文檔梳理和校對,將大部分之前文檔描述不清晰的部分進行了改善,減少客戶對接的困惑。

    - + \ No newline at end of file diff --git a/zh-TW/v5/lt/leverage-token-info.html b/zh-TW/v5/lt/leverage-token-info.html index 26c8a8fe3a..e3371fa190 100644 --- a/zh-TW/v5/lt/leverage-token-info.html +++ b/zh-TW/v5/lt/leverage-token-info.html @@ -4,13 +4,13 @@ LT全量資產查詢 | Bybit API Documentation - +

    LT全量資產查詢

    查詢槓桿代幣信息

    HTTP 請求

    GET /v5/spot-lever-token/info

    請求參數

    參數是否必需類型說明
    ltCoinfalsestringLT資產名稱,例如BTC3L

    響應參數

    參數類型說明
    listarrayObject
    > ltCoinstring槓桿代幣資產簡稱
    > ltNamestring槓桿代幣資產全稱
    > maxPurchasestring單次最大申購金額
    > minPurchasestring單次最小申購金額
    > maxPurchaseDailystring單個自然日最大申購金額
    > maxRedeemstring單次最大贖回數量
    > minRedeemstring單次最小贖回數量
    > maxRedeemDailystring單個自然日最大贖回數量
    > purchaseFeeRatestring申購費率
    > redeemFeeRatestring贖回費率
    > ltStatusstring目前杠桿代幣資產是否可以進行申購贖回
    > fundFeestring每天針對持有槓桿代幣資產的用戶收取的資金費用
    > fundFeeTimenumber收取資金費用的時間
    > manageFeeRatestring管理費率
    > manageFeeTimenumber收取資金管理費的時間
    > valuestring名義資產規模
    > netValuestring當前淨值
    > totalstring平台申購總量上限

    請求示例

    GET /v5/spot-lever-token/info?ltCoin=BTC3L HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "fundFee": "299.70622821",
    "fundFeeTime": "1672992000000",
    "ltCoin": "BTC3L",
    "ltName": "3X Long",
    "ltStatus": "1",
    "manageFeeRate": "0.00005",
    "manageFeeTime": "1673053200000",
    "maxPurchase": "10000",
    "maxPurchaseDaily": "200000",
    "maxRedeem": "14434",
    "maxRedeemDaily": "2100000",
    "minPurchase": "100",
    "minRedeem": "144",
    "netValue": "0.376482201140738147",
    "purchaseFeeRate": "0.0005",
    "redeemFeeRate": "0.0005",
    "total": "5000000",
    "value": "49464463114.022994974075443169"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672991427073
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/lt/leverage-token-reference.html b/zh-TW/v5/lt/leverage-token-reference.html index 0c22d3755c..525eaf30b8 100644 --- a/zh-TW/v5/lt/leverage-token-reference.html +++ b/zh-TW/v5/lt/leverage-token-reference.html @@ -4,13 +4,13 @@ 查詢LT行情 | Bybit API Documentation - +

    查詢LT行情

    查詢LT行情

    HTTP 請求

    GET /v5/spot-lever-token/reference

    請求參數

    參數是否必需類型說明
    ltCointruestringLT資產名稱,例如BTC3L

    響應參數

    參數類型說明
    ltCoinstring槓桿代幣資產簡稱
    navstring淨值
    navTimestring淨值更新時間戳UTC毫秒
    circulationstring在二級市場流通的代幣數量
    basketstring籃子
    leveragestring真實槓桿倍數

    請求示例

    GET /v5/spot-lever-token/reference?ltCoin=BTC3S HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "basket": "-132.460000082171973364",
    "circulation": "30097.901900052619091704",
    "leverage": "-2.666924651755770729",
    "ltCoin": "BTC3S",
    "nav": "27.692082719770373048",
    "navTime": "1672991679858"
    },
    "retExtInfo": {},
    "time": 1672991679937
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/lt/order-record.html b/zh-TW/v5/lt/order-record.html index 95da2ab1cd..8be71e54a7 100644 --- a/zh-TW/v5/lt/order-record.html +++ b/zh-TW/v5/lt/order-record.html @@ -4,13 +4,13 @@ 申贖記錄查詢 | Bybit API Documentation - +

    申贖記錄查詢

    申贖記錄查詢

    HTTP 請求

    GET /v5/spot-lever-token/order-record

    請求參數

    參數是否必需類型說明
    ltCoinfalsestringLT資產名稱,例如BTC3L
    orderIdfalsestring訂單ID
    startTimefalselong起始時間
    endTimefalselong截止時間
    limitfalseint每頁數量限制。返回數據最大500條. 默認返回100條
    ltOrderTypefalseint訂單類型 1: 申購, 2: 贖回
    serialNofalsestring序列號

    響應參數

    參數類型說明
    listarrayObject
    > ltCoinstring槓桿代幣資產簡稱
    > orderIdstring訂單ID
    > ltOrderTypestring訂單類型 1: 申購, 2: 贖回
    > orderTimenumber下單時間
    > updateTimenumber訂單狀態最後一次更新時間
    > ltOrderStatusstring訂單狀態:1: 已成交, 2: 等待中, 3`: 失敗
    > feestring交易手續費
    > amountstring下單的槓桿代幣資產數量
    > valuestring成交價值
    > valueCoinstring報價幣種
    > serialNostring序列號

    請求示例

    GET /v5/spot-lever-token/order-record?orderId=2611 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672294422027
    X-BAPI-SIGN: XXXXX
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "amount": "222.90757477",
    "fee": "0",
    "ltCoin": "EOS3L",
    "ltOrderStatus": "1",
    "ltOrderType": "1",
    "orderId": "3016",
    "orderTime": "1672737465000",
    "serialNo": "pruchase-002",
    "updateTime": "1672737478000",
    "value": "95.13860435",
    "valueCoin": "USDT"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672294446137
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/lt/purchase.html b/zh-TW/v5/lt/purchase.html index 639a024a57..907eebe6e6 100644 --- a/zh-TW/v5/lt/purchase.html +++ b/zh-TW/v5/lt/purchase.html @@ -4,13 +4,13 @@ 申購 | Bybit API Documentation - +

    申購

    申購

    HTTP 請求

    POST /v5/spot-lever-token/purchase

    請求參數

    參數是否必需類型說明
    ltCointruestringLT資產名稱,例如BTC3L
    ltAmounttruestring申購金額
    serialNofalsestring序列號,即自定義訂單號

    響應參數

    參數類型說明
    ltCoinstring槓桿代幣資產簡稱
    ltOrderStatusstring申購單狀態:1: 已完成,2: 處理中 3: 失敗
    execQtystring實際成交的槓桿代幣資產數量
    execAmtstring實際成交金額
    amountstring下單的報價幣種金額
    purchaseIdstring訂單id
    serialNostring序列號
    valueCoinstring報價幣種

    請求示例

    POST /v5/spot-lever-token/purchase HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672294730346
    X-BAPI-SIGN: XXXXX
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "ltCoin": "EOS3L",
    "amount": "200",
    "serialNo": "purchase-001"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "amount": "200",
    "execAmt": "",
    "execQty": "",
    "ltCoin": "EOS3L",
    "ltOrderStatus": "2",
    "purchaseId": "2611",
    "serialNo": "pruchase-001",
    "valueCoin": "USDT"
    },
    "retExtInfo": {},
    "time": 1672293867729
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/lt/redeem.html b/zh-TW/v5/lt/redeem.html index bdcf6feb0b..bf14c1203f 100644 --- a/zh-TW/v5/lt/redeem.html +++ b/zh-TW/v5/lt/redeem.html @@ -4,13 +4,13 @@ 贖回 | Bybit API Documentation - +

    贖回

    贖回

    HTTP 請求

    POST /v5/spot-lever-token/redeem

    請求參數

    參數是否必需類型說明
    ltCointruestringLT資產名稱,例如BTC3L
    quantityturestring贖回代幣數量
    serialNofalsestring序列號

    響應參數

    參數類型說明
    ltCoinstring槓桿代幣資產簡稱
    ltOrderStatusstring申購單狀態. 1: 已完成, 2: 等待中, 3: 失敗
    quantitystring數量
    execQtystring訂單數量
    execAmtstring實際成交的金額
    redeemIdstring交易單號
    serialNostring序列號
    valueCoinstring報價幣種

    請求示例

    POST /v5/spot-lever-token/redeem HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672296416024
    X-BAPI-SIGN: XXXXX
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "ltCoin": "EOS3L",
    "quantity": "150",
    "serialNo": "redeem-001"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "execAmt": "",
    "execQty": "150",
    "ltCoin": "EOS3L",
    "ltOrderStatus": "2",
    "quantity": "",
    "redeemId": "2619",
    "serialNo": "redeem-001",
    "valueCoin": "EOS3L"
    },
    "retExtInfo": {},
    "time": 1672296417363
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/delivery-price.html b/zh-TW/v5/market/delivery-price.html index 4016790a5a..b9db6c3267 100644 --- a/zh-TW/v5/market/delivery-price.html +++ b/zh-TW/v5/market/delivery-price.html @@ -4,13 +4,13 @@ 查詢交割價格 | Bybit API Documentation - +

    查詢交割價格

    查詢平台交割產品的交割價格,支持反向交割, USDC交割和期權

    覆蓋範圍: USDC交割 / 反向交割 / 期權

    信息
    • 期權: 當不指定symbol時, 僅返回處於交割中狀態的(UTC8~UTC12)的數據

    HTTP請求

    GET /v5/market/delivery-price

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear, inverse, option
    symbolfalsestring合約名稱
    baseCoinfalsestring交易貨幣. 默認: BTC. 僅支持option
    limitfalseinteger每頁數量限制. [1, 200]. 默認: 50
    cursorfalsestring游標,用於分頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > deliveryPricestring交割價格
    > deliveryTimestring交割時間戳 (毫秒)
    nextPageCursorstring游標,用於分頁

    請求示例

    GET /v5/market/delivery-price?category=option&symbol=ETH-26DEC22-1400-C HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "category": "option",
    "nextPageCursor": "",
    "list": [
    {
    "symbol": "ETH-26DEC22-1400-C",
    "deliveryPrice": "1220.728594450",
    "deliveryTime": "1672041600000"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672055336993
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/history-fund-rate.html b/zh-TW/v5/market/history-fund-rate.html index bdf21507d6..5caae22cbc 100644 --- a/zh-TW/v5/market/history-fund-rate.html +++ b/zh-TW/v5/market/history-fund-rate.html @@ -4,13 +4,13 @@ 查詢歷史資金費率 | Bybit API Documentation - +

    查詢歷史資金費率

    查詢資金費率,每個symbol的資金費率產生週期不同。假設資金費率為8小時,當前時間是UTC12點,則返回的是上一個結算即UTC8點產生的資金費率。如要查詢symbol的資金費率時間間隔,請查詢可交易產品規格接口

    覆蓋範圍: USDT和USDC永續 / 反向永續

    時間入参規則
    • 只傳startTime會報錯
    • 只傳endTime,則返回endTime往前的200條數據
    • 都不傳,返回當前時間的往前200條數據

    HTTP請求

    GET /v5/market/funding/history

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear,inverse
    symboltruestring合約名稱
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 200]. 默認: 200

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > fundingRatestring資金費率
    > fundingRateTimestampstring資金費率時間戳 (毫秒)

    請求示例

    GET /v5/market/funding/history?category=linear&symbol=ETHPERP&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "linear",
    "list": [
    {
    "symbol": "ETHPERP",
    "fundingRate": "0.0001",
    "fundingRateTimestamp": "1672041600000"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672051897447
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/index-kline.html b/zh-TW/v5/market/index-kline.html index 22553aeaba..c9419cfdc4 100644 --- a/zh-TW/v5/market/index-kline.html +++ b/zh-TW/v5/market/index-kline.html @@ -4,13 +4,13 @@ 查詢指數價格K線數據 | Bybit API Documentation - +

    查詢指數價格K線數據

    查詢指數價格K線

    覆蓋範圍: USDT永續 / USDC永續 / USDC交割 / 反向合約

    HTTP請求

    GET /v5/market/index-price-kline

    請求參數

    參數是否必需類型說明
    categoryfalsestring產品類型. linear,inverse
  • category不指定時, 默認是linear
  • symboltruestring合約名稱
    intervaltruestring時間粒度. 1,3,5,15,30,60,120,240,360,720,D,M,W
    startfalseinteger開始時間戳 (毫秒)
    endfalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 1000]. 默認: 200

    響應參數

    參數類型說明
    categorystring產品類型
    symbolstring合約名稱
    listarray
    • 一個字符串數組構成單個蠟燭
    • 按照startTime降序排列
    > list[0]: startTimestring蠟燭的開始時間戳 (毫秒)
    > list[1]: openPricestring開始價格
    > list[2]: highPricestring最高價格
    > list[3]: lowPricestring最低價格
    > list[4]: closePricestring結束價格. 如果蠟燭尚未結束,則表示為最新成交價格

    請求示例

    GET /v5/market/index-price-kline?category=inverse&symbol=BTCUSDZ22&interval=1&start=1670601600000&end=1670608800000&limit=2 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSDZ22",
    "category": "inverse",
    "list": [
    [
    "1670608800000",
    "17167.00",
    "17167.00",
    "17161.90",
    "17163.07"
    ],
    [
    "1670608740000",
    "17166.54",
    "17167.69",
    "17165.42",
    "17167.00"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672026471128
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/instrument.html b/zh-TW/v5/market/instrument.html index a8aefa050e..78d4114c42 100644 --- a/zh-TW/v5/market/instrument.html +++ b/zh-TW/v5/market/instrument.html @@ -4,13 +4,13 @@ 查詢可交易產品的規格信息 | Bybit API Documentation - +

    查詢可交易產品的規格信息

    查詢全站可交易產品的基礎配置規則信息

    覆蓋範圍: 現貨 / USDT永續 / USDC永續 / USDC交割 / 反向合約 / 期權

    警告
    • 現貨不支持翻頁,因此limit, cusor無效.
    • 當通過baseCoin查詢時, 不管category=linearinverse, 返回結果中都會包含USDT永續, USDC永續, USDC交割和反向合約的交易對.

    HTTP請求

    GET /v5/market/instruments-info

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. spot,linear,inverse,option
    symbolfalsestring合約名稱
    statusfalsestring交易對狀態篩選
    • 現貨 僅有Trading狀態
    • status=PreLaunch&category=linear, 可以查詢到盤前交易的永續合約
    baseCoinfalsestring交易貨幣. 僅對期貨/期權有效
  • 對於期權, 默認返回baseCoin為BTC的
  • limitfalseinteger每頁數量限制. [1, 1000]. 默認: 500
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    nextPageCursorstring游標,用於翻頁
    listarrayObject
    > symbolstring合約名稱
    > contractTypestring合約類型
    > statusstring合約狀態
    > baseCoinstring交易幣種
    > quoteCoinstring報價幣種
    > launchTimestring發佈時間 (ms)
    > deliveryTimestring交割時間 (ms). 僅對交割合約有效
    > deliveryFeeRatestring交割費率. 僅對交割合約有效
    > priceScalestring價格精度
    > leverageFilterObject槓桿屬性
    >> minLeveragestring最小槓桿
    >> maxLeveragestring最大槓桿
    >> leverageStepstring修改槓桿的步長
    > priceFilterObject價格屬性
    >> minPricestring訂單最小價格
    >> maxPricestring訂單最大價格
    >> tickSizestring修改價格的步長
    > lotSizeFilterObject訂單數量屬性
    >> maxOrderQtystring單筆限價或PostOnly單最大下單量
    >> maxMktOrderQtystring單筆市價單最大下單量
    >> minOrderQtystring單筆訂單最小下單量
    >> qtyStepstring修改下單量的步長
    >> postOnlyMaxOrderQtystring廢棄, 請參照maxOrderQty
    >> minNotionalValuestring訂單最小名義價值
    > unifiedMarginTradeboolean是否支持統一保證金交易
    > fundingIntervalinteger資金費率結算週期 (分鐘)
    > settleCoinstring結算幣種
    > copyTradingstring當前交易對是否支持帶單交易
    > upperFundingRatestring資金費率上限
    > lowerFundingRatestring資金費率下限
    > isPreListingboolean
  • 該合約是否為盤前合約
  • 當盤前合約轉為正式合約後, 值將變成false
  • > preListingInfoobject
  • 如果isPreListing=false, preListingInfo=null
  • 如果isPreListing=true, preListingInfo是object
  • >> curAuctionPhasestring當前的盤前階段
    >> phasesarray<object>每個階段的時間信息
    >>> phasestring盤前交易階段
    >>> startTimestring該階段的開始時間戳(毫秒)
    >>> endTimestring該階段的結束時間戳(毫秒)
    >> auctionFeeInfoobject盤前交易手續費率信息
    >>> auctionFeeRatestring集合競價期間的手續費率
  • 目前, 僅在連續競價期間才會產生手續費
  • >>> takerFeeRatestring連續競價期間的吃單成交手續費率
    >>> makerFeeRatestring連續競價期間的掛單成交手續費率

    請求示例

    GET /v5/market/instruments-info?category=linear&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "linear",
    "list": [
    {
    "symbol": "BTCUSDT",
    "contractType": "LinearPerpetual",
    "status": "Trading",
    "baseCoin": "BTC",
    "quoteCoin": "USDT",
    "launchTime": "1585526400000",
    "deliveryTime": "0",
    "deliveryFeeRate": "",
    "priceScale": "2",
    "leverageFilter": {
    "minLeverage": "1",
    "maxLeverage": "100.00",
    "leverageStep": "0.01"
    },
    "priceFilter": {
    "minPrice": "0.10",
    "maxPrice": "199999.80",
    "tickSize": "0.10"
    },
    "lotSizeFilter": {
    "maxOrderQty": "100.000",
    "maxMktOrderQty": "100.000",
    "minOrderQty": "0.001",
    "qtyStep": "0.001",
    "postOnlyMaxOrderQty": "1000.000",
    "minNotionalValue": "5"
    },
    "unifiedMarginTrade": true,
    "fundingInterval": 480,
    "settleCoin": "USDT",
    "copyTrading": "both",
    "upperFundingRate": "0.00375",
    "lowerFundingRate": "-0.00375"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1707186451514
    }

    // 盤前永續合約的響應
    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "linear",
    "list": [
    {
    "symbol": "PRE02ZROUSDT",
    "contractType": "LinearPerpetual",
    "status": "PreLaunch",
    "baseCoin": "PRE02ZRO",
    "quoteCoin": "USDT",
    "launchTime": "1718610229000",
    "deliveryTime": "0",
    "deliveryFeeRate": "",
    "priceScale": "3",
    "leverageFilter": {
    "minLeverage": "1",
    "maxLeverage": "5.00",
    "leverageStep": "0.01"
    },
    "priceFilter": {
    "minPrice": "0.001",
    "maxPrice": "1999.998",
    "tickSize": "0.001"
    },
    "lotSizeFilter": {
    "maxOrderQty": "10000.0",
    "minOrderQty": "0.1",
    "qtyStep": "0.1",
    "postOnlyMaxOrderQty": "10000.0",
    "maxMktOrderQty": "2000.0",
    "minNotionalValue": "5"
    },
    "unifiedMarginTrade": true,
    "fundingInterval": 480,
    "settleCoin": "USDT",
    "copyTrading": "none",
    "upperFundingRate": "0.03",
    "lowerFundingRate": "-0.03",
    "isPreListing": true,
    "preListingInfo": {
    "curAuctionPhase": "ContinuousTrading",
    "phases": [
    {
    "phase": "CallAuction",
    "startTime": "1718621400000",
    "endTime": "1718707200000"
    },
    {
    "phase": "CallAuctionNoCancel",
    "startTime": "1718707200000",
    "endTime": "1718707500000"
    },
    {
    "phase": "CrossMatching",
    "startTime": "1718707500000",
    "endTime": "1718707800000"
    },
    {
    "phase": "ContinuousTrading",
    "startTime": "1718707800000",
    "endTime": ""
    }
    ],
    "auctionFeeInfo": {
    "auctionFeeRate": "0",
    "takerFeeRate": "0.001",
    "makerFeeRate": "0.0004"
    }
    }
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1719455285151
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/insurance.html b/zh-TW/v5/market/insurance.html index a6db62b4b9..b03cd4747e 100644 --- a/zh-TW/v5/market/insurance.html +++ b/zh-TW/v5/market/insurance.html @@ -4,13 +4,13 @@ 查詢保險基金 | Bybit API Documentation - +

    查詢保險基金

    查詢Bybit平台的保險基金的數據,包含所有保險池的數據,數據每24小時更新一次。

    信息

    由於數據24小時更新, 您可能在遭遇自動減倉時, 接口返回的數據還是舊的

    HTTP請求

    GET /v5/market/insurance

    請求參數

    參數是否必需類型說明
    coinfalsestring幣種名稱. 默認: 返回目前所有的保險池幣種

    響應參數

    參數類型說明
    updateTimestring數據最近更新的時間戳 (ms)
    listarrayObject
    > coinstring保險池的幣種
    > symbolsstring
  • 對於獨立保險池, 返回的symbols裡可能有多個合約, 比如"BTCUSDT,ETHUSDT,SOLUSDT"
  • 對於非獨立保險池, 將會返回空字符串""
  • > balancestring保險基金的幣種數量
    > valuestring保險基金的幣種價值,折合成USD的價值

    請求示例

    GET /v5/market/insurance?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "updatedTime": "1714003200000",
    "list": [
    {
    "coin": "USDT",
    "symbols": "MERLUSDT,10000000AIDOGEUSDT,ZEUSUSDT",
    "balance": "902178.57602476",
    "value": "901898.0963091522"
    },
    {
    "coin": "USDT",
    "symbols": "SOLUSDT,OMNIUSDT,ALGOUSDT",
    "balance": "14454.51626125",
    "value": "14449.515598975464"
    },
    {
    "coin": "USDT",
    "symbols": "XLMUSDT,WUSDT",
    "balance": "23.45018235",
    "value": "22.992864174376344"
    },
    {
    "coin": "USDT",
    "symbols": "AGIUSDT,WIFUSDT",
    "balance": "10002",
    "value": "9998.896846613574"
    },
    {
    "coin": "USDT",
    "symbols": "",
    "balance": "10148045273.618073",
    "value": "10144896808.587431"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1714028451228
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/iv.html b/zh-TW/v5/market/iv.html index ccd885b765..dd1f50cbb6 100644 --- a/zh-TW/v5/market/iv.html +++ b/zh-TW/v5/market/iv.html @@ -4,13 +4,13 @@ 查詢期權波動率 | Bybit API Documentation - +

    查詢期權波動率

    獲取期權的歷史波動率數據

    覆蓋範圍: 期權

    信息
    • 數據為每小時數據.
    • 若沒有入参時間,則默認返回最近1小時的數據,即最近的一條數據.
    • starTimeendTime 要麼都傳,要麼都不傳
    • 接口支持查詢過去2年的數據, 但確保[endTime - startTime] 小於等於30天.

    HTTP請求

    GET /v5/market/historical-volatility

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. option
    baseCoinfalsestring交易幣種. 不傳則默認返回BTC數據
    periodfalsestring週期. 不傳則默認返回7天加權的數據
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > periodstring週期
    > valuestring波動率
    > timestring數據生成時間戳 (毫秒)

    請求示例

    GET /v5/market/historical-volatility?category=option&baseCoin=ETH&period=30 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "SUCCESS",
    "category": "option",
    "result": [
    {
    "period": 7,
    "value": "0.27545620",
    "time": "1672232400000"
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/kline.html b/zh-TW/v5/market/kline.html index 641e51526e..3f5c51dbf6 100644 --- a/zh-TW/v5/market/kline.html +++ b/zh-TW/v5/market/kline.html @@ -4,13 +4,13 @@ 查詢市場價格K線數據 | Bybit API Documentation - +

    查詢市場價格K線數據

    查詢市場價格K線數據

    覆蓋範圍: 現貨 / USDT永續 / USDC永續 / USDC交割 / 反向合約

    HTTP請求

    GET /v5/market/kline

    請求參數

    參數是否必需類型說明
    categoryfalsestring產品類型. spot,linear,inverse
  • category不指定時, 默認是linear
  • symboltruestring合約名稱
    intervaltruestring時間粒度. 1,3,5,15,30,60,120,240,360,720,D,M,W
    startfalseinteger開始時間戳 (毫秒)
    endfalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 1000]. 默認: 200

    響應參數

    參數類型說明
    categorystring產品類型
    symbolstring合約名稱
    listarray
    • 一個字符串數組構成單個蠟燭
    • 按照startTime降序排列
    > list[0]: startTimestring蠟燭的開始時間戳 (毫秒)
    > list[1]: openPricestring開始價格
    > list[2]: highPricestring最高價格
    > list[3]: lowPricestring最低價格
    > list[4]: closePricestring結束價格. 如果蠟燭尚未結束,則表示為最新成交價格
    > list[5]: volumestring交易量. 合約單位: 合約的張數. 現貨單位: 幣種的數量
    > list[6]: turnoverstring交易額. 單位: 報價貨幣的數量

    請求示例

    GET /v5/market/kline?category=inverse&symbol=BTCUSD&interval=60&start=1670601600000&end=1670608800000 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSD",
    "category": "inverse",
    "list": [
    [
    "1670608800000",
    "17071",
    "17073",
    "17027",
    "17055.5",
    "268611",
    "15.74462667"
    ],
    [
    "1670605200000",
    "17071.5",
    "17071.5",
    "17061",
    "17071",
    "4177",
    "0.24469757"
    ],
    [
    "1670601600000",
    "17086.5",
    "17088",
    "16978",
    "17071.5",
    "6356",
    "0.37288112"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672025956592
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/long-short-ratio.html b/zh-TW/v5/market/long-short-ratio.html index 403fd6a742..154b45c45c 100644 --- a/zh-TW/v5/market/long-short-ratio.html +++ b/zh-TW/v5/market/long-short-ratio.html @@ -4,13 +4,13 @@ 查詢多空比 | Bybit API Documentation - +

    查詢多空比

    HTTP請求

    GET /v5/market/account-ratio

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear(僅USDT永續),inverse
    symboltruestring合約名稱
    periodtruestring數據週期. 5min, 15min, 30min, 1h, 4h, 1d
    limitfalseinteger每頁數量限制. [1, 500]. 默認: 50

    響應參數

    參數類型說明
    listarrayObject
    > symbolstring合約名稱
    > buyRatiostring持多倉的用户比例
    > sellRatiostring持空倉的用户比例
    > timestampstring時間戳 (毫秒)

    請求示例

    GET /v5/market/account-ratio?category=linear&symbol=BTCUSDT&period=1d&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "BTCUSDT",
    "buyRatio": "0.5777",
    "sellRatio": "0.4223",
    "timestamp": "1695772800000"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1695785131028
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/mark-kline.html b/zh-TW/v5/market/mark-kline.html index 7275de4b04..4c69d0441a 100644 --- a/zh-TW/v5/market/mark-kline.html +++ b/zh-TW/v5/market/mark-kline.html @@ -4,13 +4,13 @@ 查詢標記價格K線數據 | Bybit API Documentation - +

    查詢標記價格K線數據

    查詢標記價格K線

    覆蓋範圍: USDT永續 / USDC永續 / USDC交割 / 反向合約

    HTTP請求

    GET /v5/market/mark-price-kline

    請求參數

    參數是否必需類型說明
    categoryfalsestring產品類型. linear,inverse
  • category不指定時, 默認是linear
  • symboltruestring合約名稱
    intervaltruestring時間粒度. 1,3,5,15,30,60,120,240,360,720,D,M,W
    startfalseinteger開始時間戳 (毫秒)
    endfalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 1000]. 默認: 200

    響應參數

    參數類型說明
    categorystring產品類型
    symbolstring合約名稱
    listarray
    • 一個字符串數組構成單個蠟燭
    • 按照startTime降序排列
    > list[0]: startTimestring蠟燭的開始時間戳 (毫秒)
    > list[1]: openPricestring開始價格
    > list[2]: highPricestring最高價格
    > list[3]: lowPricestring最低價格
    > list[4]: closePricestring結束價格. 如果蠟燭尚未結束,則表示為最新成交價格

    請求示例

    GET /v5/market/mark-price-kline?category=linear&symbol=BTCUSDT&interval=15&start=1670601600000&end=1670608800000&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSDT",
    "category": "linear",
    "list": [
    [
    "1670608800000",
    "17164.16",
    "17164.16",
    "17121.5",
    "17131.64"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672026361839
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/open-interest.html b/zh-TW/v5/market/open-interest.html index 3e158e70b3..adad9df931 100644 --- a/zh-TW/v5/market/open-interest.html +++ b/zh-TW/v5/market/open-interest.html @@ -4,13 +4,13 @@ 查詢未平倉合約持倉數量 | Bybit API Documentation - +

    查詢未平倉合約持倉數量

    查詢各個合約市場內所有未平倉的數量

    覆蓋範圍: USDT永續 / USDC永續 / USDC交割 / 反向合約

    信息
    • 最久可以查詢到自合約上線開始的數據

    HTTP請求

    GET /v5/market/open-interest

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear,inverse
    symboltruestring合約名稱
    intervalTimetruestring時間粒度. 5min 15min 30min 1h 4h 1d
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 200]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    symbolstring合約名稱
    listarrayObject
    > openIntereststring未平倉合約數量, 數值為雙邊的和
    > timestampstring數據產生的時間戳(毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/market/open-interest?category=inverse&symbol=BTCUSD&intervalTime=5min&startTime=1669571100000&endTime=1669571400000 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSD",
    "category": "inverse",
    "list": [
    {
    "openInterest": "461134384.00000000",
    "timestamp": "1669571400000"
    },
    {
    "openInterest": "461134292.00000000",
    "timestamp": "1669571100000"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1672053548579
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/orderbook.html b/zh-TW/v5/market/orderbook.html index 476adedaab..d7560d2a02 100644 --- a/zh-TW/v5/market/orderbook.html +++ b/zh-TW/v5/market/orderbook.html @@ -4,13 +4,13 @@ Order Book (深度) | Bybit API Documentation - +

    Order Book (深度)

    獲取深度數據

    覆蓋範圍: 現貨 / USDT永續 / USDC永續 / USDC交割 / 反向合約 / 期權

    • 期貨: 最多返回500檔的數據.
    • 現貨: 最多返回200檔的數據.
    • 期權: 僅返回25檔的數據.
    提示

    響應是當前時間的切片數據

    HTTP請求

    GET /v5/market/orderbook

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. spot, linear, inverse, option
    symboltruestring合約名稱
    limitfalseinteger深度限制.
    • spot: [1, 200], 默認: 1.
    • linear&inverse: [1, 500],默認: 25.
    • option: [1, 25],默認: 1.

    響應參數

    參數類型說明
    sstring合約名稱
    barrayBid, 買方. 按照價格從大到小
    > b[0]string買方報價
    > b[1]string買方數量
    aarrayAsk, 賣方. 按照價格從小到大
    > a[0]string賣方報價
    > a[1]string賣方數量
    tsinteger行情服務生成數據時間戳(毫秒)
    uinteger表示數據連續性的id.
    • 對於期貨, 它和wss推送裡的500檔的u對齊
    • 對於現貨, 它和wss推送裡的200檔的u對齊
    seqinteger撮合版本號
  • 該字段可以用於關聯不同檔位的orderbook, 如果值越小, 則說明數據生成越早
  • 期權目前不存在此字段
  • ctsnumber產生此訂單簿數據時來自撮合引擎的時間戳. 可用於與平台成交頻道中的T進行關聯. linear, inverse, spot有這個字段

    請求示例

    GET /v5/market/orderbook?category=spot&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "s": "BTCUSDT",
    "a": [
    [
    "65557.7",
    "16.606555"
    ]
    ],
    "b": [
    [
    "65485.47",
    "47.081829"
    ]
    ],
    "ts": 1716863719031,
    "u": 230704,
    "seq": 1432604333,
    "cts": 1716863718905
    },
    "retExtInfo": {},
    "time": 1716863719382
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/preimum-index-kline.html b/zh-TW/v5/market/preimum-index-kline.html index 488a658b2a..0ff0d670c6 100644 --- a/zh-TW/v5/market/preimum-index-kline.html +++ b/zh-TW/v5/market/preimum-index-kline.html @@ -4,13 +4,13 @@ 查詢溢價指數價格K線數據 | Bybit API Documentation - +

    查詢溢價指數價格K線數據

    查詢溢價指數價格K線數據

    覆蓋範圍: USDT和USDC永續

    HTTP請求

    GET /v5/market/premium-index-price-kline

    請求參數

    參數是否必需類型說明
    categoryfalsestring產品類型. linear
  • category不指定時, 默認是linear
  • symboltruestring合約名稱
    intervaltruestring時間粒度. 1,3,5,15,30,60,120,240,360,720,D,M,W
    startfalseinteger開始時間戳 (毫秒)
    endfalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 1000]. 默認: 200

    響應參數

    參數類型說明
    categorystring產品類型
    symbolstring合約名稱
    listarray
    • 一個字符串數組構成單個蠟燭
    • 按照startTime降序排列
    > list[0]string蠟燭的開始時間戳 (毫秒)
    > list[1]string開始價格
    > list[2]string最高價格
    > list[3]string最低價格
    > list[4]string結束價格. 如果蠟燭尚未結束,則表示為最新成交價格

    請求示例

    GET /v5/market/premium-index-price-kline?category=linear&symbol=BTCUSDT&interval=D&start=1652112000000&end=1652544000000 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCPERP",
    "category": "linear",
    "list": [
    [
    "1672026540000",
    "0.000000",
    "0.000000",
    "0.000000",
    "0.000000"
    ],
    [
    "1672026480000",
    "0.000000",
    "0.000000",
    "0.000000",
    "0.000000"
    ]
    ]
    },
    "retExtInfo": {},
    "time": 1672026605042
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/recent-trade.html b/zh-TW/v5/market/recent-trade.html index eb22e863b1..4b3cc65a6b 100644 --- a/zh-TW/v5/market/recent-trade.html +++ b/zh-TW/v5/market/recent-trade.html @@ -4,13 +4,13 @@ 查詢平台最近成交歷史 | Bybit API Documentation - +

    查詢平台最近成交歷史

    獲取平台最近成交數據

    覆蓋範圍: 現貨 / USDT永續 / USDC永續 / USDC交割 / 反向合約 / 期權

    您可以從這個地址 下載到歸檔的更多的歷史成交數據:

    HTTP請求

    GET /v5/market/recent-trade

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. spot,linear,inverse,option
    symbolfalsestring合約名稱
    • 現貨/期權必傳
    • 期權選傳
    baseCoinfalsestring交易幣種. 僅option, 若不傳, 則默認返回BTC數據
    optionTypefalsestring期權類型. CallPut. 僅option
    limitfalseinteger每頁數量限制.
    • spot: [1,60], 默认: 60.
    • others: [1,1000], 默認: 500

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > execIdstring成交id
    > symbolstring合約名稱
    > pricestring成交價格
    > sizestring成交數量
    > sidestring吃單方向. Buy, Sell
    > timestring成交時間戳 (毫秒)
    > isBlockTradeboolean成交類型是否為大宗交易
    > mPstring標記價格, 期權的特有字段
    > iPstring指數價格, 期權的特有字段
    > mIvstring標記iv, 期權的特有字段
    > ivstringiv, 期權的特有字段

    請求示例

    GET /v5/market/recent-trade?category=spot&symbol=BTCUSDT&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "spot",
    "list": [
    {
    "execId": "2100000000007764263",
    "symbol": "BTCUSDT",
    "price": "16618.49",
    "size": "0.00012",
    "side": "Buy",
    "time": "1672052955758",
    "isBlockTrade": false
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672053054358
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/risk-limit.html b/zh-TW/v5/market/risk-limit.html index 7c6be6281e..a067f234fe 100644 --- a/zh-TW/v5/market/risk-limit.html +++ b/zh-TW/v5/market/risk-limit.html @@ -4,13 +4,13 @@ 查詢合約風險限額 | Bybit API Documentation - +

    查詢合約風險限額

    查詢期貨合約的風險限額表

    覆蓋範圍: USDT永續 / USDC永續 / USDC交割 / 反向合約

    提示

    什麼是風險限額?風險限額(USDT合約)

    信息

    當category=linear, 每次請求返回30個symbol的風險限額數據, 請通過cursor來實現翻頁查詢下一組30個symbol的數據

    HTTP請求

    GET /v5/market/risk-limit

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear,inverse
    symbolfalsestring合約名稱
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > idinteger風險限額id
    > symbolstring合約名稱
    > riskLimitValuestring風險限制額度
    > maintenanceMarginnumber維持保證金率
    > initialMarginnumber初始保證金率
    > isLowestRiskinteger是否是最低風險限額. 1: true, 0: false
    > maxLeveragestring該風險限額允許的最大槓桿
    > mmDeductionstring維持保證金扣減額
    nextPageCursorstring下一頁游標, 配合cursor使用

    請求示例

    GET /v5/market/risk-limit?category=inverse&symbol=BTCUSD HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "inverse",
    "list": [
    {
    "id": 1,
    "symbol": "BTCUSD",
    "riskLimitValue": "150",
    "maintenanceMargin": "0.5",
    "initialMargin": "1",
    "isLowestRisk": 1,
    "maxLeverage": "100.00",
    "mmDeduction": ""
    },
    ....
    ]
    },
    "retExtInfo": {},
    "time": 1672054488010
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/tickers.html b/zh-TW/v5/market/tickers.html index d6a165f5f8..1f0fb281f8 100644 --- a/zh-TW/v5/market/tickers.html +++ b/zh-TW/v5/market/tickers.html @@ -4,13 +4,13 @@ 查詢最新行情信息 | Bybit API Documentation - +

    查詢最新行情信息

    可獲取到快照的最新市場價格,最佳買賣價格,以及過去時間內的交易量等.

    覆蓋範圍: 現貨 / USDT永續 / USDC永續 / USDC交割 / 反向合約 / 期權

    HTTP請求

    GET /v5/market/tickers

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. spot,linear,inverse,option
    symbolfalsestring合約名稱
    baseCoinfalsestring交易幣種. 僅option有效, baseCoinsymbol必傳其中一個
    expDatefalsestring到期日. 舉例, 25DEC22. 僅option有效

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > lastPricestring最新市場成交價
    > indexPricestring指數價格
    > markPricestring標記價格
    > prevPrice24hstring24小時前的整點市價
    > price24hPcntstring市場價格相對24h前變化的百分比
    > highPrice24hstring最近24小時的最高價
    > lowPrice24hstring最近24小時的最低價
    > prevPrice1hstring1小時前的整點市價
    > openIntereststring未平倉合約的數量
    > openInterestValuestring未平倉合約的價值
    > turnover24hstring最近24小時成交額
    > volume24hstring最近24小時成交量
    > fundingRatestring資金費率
    > nextFundingTimestring下次結算資金費用的時間 (毫秒)
    > predictedDeliveryPricestring預計交割價格. 交割前30分鐘有值
    > basisRatestring交割合約基差率
    > basisstring交割合約基差
    > deliveryFeeRatestring交割費率
    > deliveryTimestring交割時間戳 (毫秒)
    > ask1Sizestring買1價的數量
    > bid1Pricestring買1價
    > ask1Pricestring賣1價
    > bid1Sizestring買1價的數量
    > preOpenPricestring盤前合約預估開盤價格
  • 在進入連續競價後, 該值無意義
  • > preQtystring盤前合約預估開盤數量
  • 進入連續競價後, 該值無意義
  • > curPreListingPhasestring當前盤前交易階段

    請求示例

    GET /v5/market/tickers?category=inverse&symbol=BTCUSD HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "inverse",
    "list": [
    {
    "symbol": "BTCUSD",
    "lastPrice": "16597.00",
    "indexPrice": "16598.54",
    "markPrice": "16596.00",
    "prevPrice24h": "16464.50",
    "price24hPcnt": "0.008047",
    "highPrice24h": "30912.50",
    "lowPrice24h": "15700.00",
    "prevPrice1h": "16595.50",
    "openInterest": "373504107",
    "openInterestValue": "22505.67",
    "turnover24h": "2352.94950046",
    "volume24h": "49337318",
    "fundingRate": "-0.001034",
    "nextFundingTime": "1672387200000",
    "predictedDeliveryPrice": "",
    "basisRate": "",
    "deliveryFeeRate": "",
    "deliveryTime": "0",
    "ask1Size": "1",
    "bid1Price": "16596.00",
    "ask1Price": "16597.50",
    "bid1Size": "1",
    "basis": ""
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672376496682
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/market/time.html b/zh-TW/v5/market/time.html index b3db17e157..fe83cd05ce 100644 --- a/zh-TW/v5/market/time.html +++ b/zh-TW/v5/market/time.html @@ -4,13 +4,13 @@ Bybit服務器時間 | Bybit API Documentation - +

    Bybit服務器時間

    獲取Bybit服務器時間

    HTTP 請求

    GET /v5/market/time

    請求參數

    響應參數

    參數類型說明
    timeSecondstringBybit服務器時間戳 (秒)
    timeNanostringBybit 服務器時間戳 (微秒)

    請求示例

    GET /v5/market/time HTTP/1.1
    Host: api.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "timeSecond": "1688639403",
    "timeNano": "1688639403423213947"
    },
    "retExtInfo": {},
    "time": 1688639403423
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/amend-order.html b/zh-TW/v5/order/amend-order.html index 3cb0666583..8cd6ac3778 100644 --- a/zh-TW/v5/order/amend-order.html +++ b/zh-TW/v5/order/amend-order.html @@ -4,13 +4,13 @@ 修改委託單 | Bybit API Documentation - +

    修改委託單

    important

    您只能修改那些未成交或者部分成交的訂單。

    Websocket現貨推送邏輯

    經典帳戶: 如果原始訂單是PostOnly訂單, 在修改訂單後, 變成了taker訂單, 那麼您將先收到一條推送orderStatus="New"的消息, 然後是orderStatus="Rejected"的消息

    統一帳戶: 如果原始訂單是PostOnly訂單, 在修改訂單後, 變成了taker訂單, 那麼您將直接收到一條推送orderStatus="Rejected"的消息

    HTTP請求

    POST /v5/order/amend

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    orderIdfalsestring訂單Id. orderIdorderLinkId必傳其中一個
    orderLinkIdfalsestring用戶自定義訂單Id. orderIdorderLinkId必傳其中一個
    orderIvfalsestring隱含波動率. 僅option有效. 按照實際值傳入, e.g., 對於10%, 則傳入0.1
    triggerPricefalsestring
    • 對於期貨, 是條件單觸發價格參數. 若您希望市場價是要上升後觸發, 確保:
      triggerPrice > 市場價格
      否則, triggerPrice < 市場價格
    • 對於現貨, 這是下止盈止損單或者條件單的觸發價格參數
    qtyfalsestring修改後的訂單數量. 若不修改,請不要傳該字段
    pricefalsestring修改後的訂單價格. 若不修改,請不要傳該字段
    tpslModefalsestring止盈止損模式
    • Full: 全部倉位止盈止損. 此時, tpOrderType或者slOrderType必須傳Market
    • Partial: 部分倉位止盈止損. 支持創建限價止盈止損. 注意: 創建限價止盈止損時, tpslMode必傳且為Partial
    僅對linearinverse有效
    takeProfitfalsestring修改後的止盈價格. 當傳"0"時, 表示取消當前訂單上設置的止盈. 若不修改,請不要傳該字段
    適用於 spot(UTA), linear, inverse
    stopLossfalsestring修改後的止損價格. 當傳"0"時, 表示取消當前訂單上設置的止損. 若不修改,請不要傳該字段
    適用於 spot(UTA), linear, inverse
    tpTriggerByfalsestring止盈價格觸發類型. 若下單時未設置該值,則調用該接口修改止盈價格時,該字段必傳
    slTriggerByfalsestring止損價格觸發類型. 若下單時未設置該值,則調用該接口修改止損價格時,該字段必傳
    triggerByfalsestring觸發價格的觸發類型
    tpLimitPricefalsestring觸發止盈後轉換為限價單的價格
    當且僅當原始訂單下單時創建的是部分止盈止損限價單, 本字段才有效
    適用於 spot(UTA), linear, inverse
    slLimitPricefalsestring觸發止損後轉換為限價單的價格
    當且僅當原始訂單下單時創建的是部分止盈止損限價單, 本字段才有效
    適用於 spot(UTA), linear, inverse
    信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態


    響應參數

    參數類型說明
    orderIdstring訂單Id
    orderLinkIdstring用戶自定義訂單Id

    請求示例

    POST /v5/order/amend HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672217108106
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "ETHPERP",
    "orderLinkId": "linear-004",
    "triggerPrice": "1145",
    "qty": "0.15",
    "price": "1050",
    "takeProfit": "0",
    "stopLoss": "0"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "c6f055d9-7f21-4079-913d-e6523a9cfffa",
    "orderLinkId": "linear-004"
    },
    "retExtInfo": {},
    "time": 1672217093461
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/batch-amend.html b/zh-TW/v5/order/batch-amend.html index 882d97516c..e2ab9a5a5a 100644 --- a/zh-TW/v5/order/batch-amend.html +++ b/zh-TW/v5/order/batch-amend.html @@ -4,13 +4,13 @@ 批量修改委託單 | Bybit API Documentation - +

    批量修改委託單

    提示

    該接口支持批量修改委託單

    • 您只能修改那些未成交部分成交的訂單. 條件單不支持批量修改.
    • 最多支持單個請求中修改, 期權: 20個訂單, 反向合約: 10個訂單, 正向合約: 10个訂單, 現貨: 10個訂單.

    HTTP請求

    POST /v5/order/amend-batch

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
  • 統一帳戶2.0: linear, option, spot, inverse
  • 統一帳戶1.0: linear, option, spot
  • requesttruearrayObject
    > symboltruestring合約名稱
    > orderIdfalsestring訂單Id. orderIdorderLinkId必傳其中一個
    > orderLinkIdfalsestring用戶自定義訂單Id. orderIdorderLinkId必傳其中一個
    > orderIvfalsestring隱含波動率. 僅option有效. 按照實際值傳入, e.g., 對於10%, 則傳入0.1
    > triggerPricefalsestring
    • 對於期貨, 是條件單觸發價格參數. 若您希望市場價是要上升後觸發, 確保:
      triggerPrice > 市場價格
      否則, triggerPrice < 市場價格
    • 對於現貨, 這是下止盈止損單(tpslOrder)或者條件單(stopOrder)的觸發價格參數
    > qtyfalsestring修改後的訂單數量. 若不修改,請不要傳該字段
    > pricefalsestring修改後的訂單價格. 若不修改,請不要傳該字段
    > tpslModefalsestring止盈止損模式
    • Full: 全部倉位止盈止損. 此時, tpOrderType或者slOrderType必須傳Market
    • Partial: 部分倉位止盈止損. 支持創建限價止盈止損. 注意: 創建限價止盈止損時, tpslMode必傳且為Partial
    > takeProfitfalsestring修改後的止盈價格. 當傳"0"時, 表示取消當前訂單上設置的止盈. 若不修改,請不要傳該字段
    > stopLossfalsestring修改後的止損價格. 當傳"0"時, 表示取消當前訂單上設置的止損. 若不修改,請不要傳該字段
    > tpTriggerByfalsestring止盈價格觸發類型. 若下單時未設置該值,則調用該接口修改止盈價格時,該字段必傳
    > slTriggerByfalsestring止損價格觸發類型. 若下單時未設置該值,則調用該接口修改止損價格時,該字段必傳
    > triggerByfalsestring觸發價格的觸發類型
    > tpLimitPricefalsestring觸發止盈後轉換為限價單的價格. 當且僅當原始訂單下單時創建的是部分止盈止損限價單, 本字段才有效
    > slLimitPricefalsestring觸發止損後轉換為限價單的價格. 當且僅當原始訂單下單時創建的是部分止盈止損限價單, 本字段才有效

    響應參數

    參數類型說明
    resultObject
    > listarrayObject
    >> categorystring產品類型
    >> symbolstring合約名稱
    >> orderIdstring訂單Id
    >> orderLinkIdstring用戶自定義訂單Id
    retExtInfoObject
    > listarrayObject
    >> codenumber成功/錯誤碼
    >> msgstring成功/錯誤信息
    信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態


    請求示例

    POST /v5/order/amend-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672222935987
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "option",
    "request": [
    {
    "symbol": "ETH-30DEC22-500-C",
    "qty": null,
    "price": null,
    "orderIv": "6.8",
    "orderId": "b551f227-7059-4fb5-a6a6-699c04dbd2f2"
    },
    {
    "symbol": "ETH-30DEC22-700-C",
    "qty": null,
    "price": "650",
    "orderIv": null,
    "orderId": "fa6a595f-1a57-483f-b9d3-30e9c8235a52"
    }
    ]
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "option",
    "symbol": "ETH-30DEC22-500-C",
    "orderId": "b551f227-7059-4fb5-a6a6-699c04dbd2f2",
    "orderLinkId": ""
    },
    {
    "category": "option",
    "symbol": "ETH-30DEC22-700-C",
    "orderId": "fa6a595f-1a57-483f-b9d3-30e9c8235a52",
    "orderLinkId": ""
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 0,
    "msg": "OK"
    }
    ]
    },
    "time": 1672222808060
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/batch-cancel.html b/zh-TW/v5/order/batch-cancel.html index dfeeb90a37..7d601050c3 100644 --- a/zh-TW/v5/order/batch-cancel.html +++ b/zh-TW/v5/order/batch-cancel.html @@ -4,13 +4,13 @@ 批量撤銷委託單 | Bybit API Documentation - +

    批量撤銷委託單

    該接口可以批量撤銷多筆訂單

    重要
    • 您必須指定orderId或者orderLinkId.
    • orderIdorderLinkId之間不匹配, 系統將會優先處理orderId.
    • 您只能撤銷未成交和部分成交的訂單.
    • 最多支持單個請求中撤銷, 期權: 20個訂單, 反向合約: 10個訂單, 正向合約: 10个訂單, 現貨: 10個訂單.

    HTTP請求

    POST /v5/order/cancel-batch

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
  • 統一帳戶2.0: linear, option, spot, inverse
  • 統一帳戶1.0: linear, option, spot
  • requesttruearrayObject
    > symboltruestring合約名稱
    > orderIdfalsestring訂單Id. orderIdorderLinkId必傳其中一個
    > orderLinkIdfalsestring用戶自定義訂單Id. orderIdorderLinkId必傳其中一個

    響應參數

    參數類型說明
    resultObject
    > listarrayObject
    >> categorystring產品類型
    >> symbolstring合約名稱
    >> orderIdstring訂單Id
    >> orderLinkIdstring用戶自定義訂單Id
    retExtInfoObject
    > listarrayObject
    >> codenumber成功/錯誤碼
    >> msgstring成功/錯誤信息
    信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態


    請求示例

    POST /v5/order/cancel-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672223356634
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "spot",
    "request": [
    {
    "symbol": "BTCUSDT",
    "orderId": "1666800494330512128"
    },
    {
    "symbol": "ATOMUSDT",
    "orderLinkId": "1666800494330512129"
    }
    ]
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "spot",
    "symbol": "BTCUSDT",
    "orderId": "1666800494330512128",
    "orderLinkId": "spot-btc-03"
    },
    {
    "category": "spot",
    "symbol": "ATOMUSDT",
    "orderId": "",
    "orderLinkId": "1666800494330512129"
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 170213,
    "msg": "Order does not exist."
    }
    ]
    },
    "time": 1713434299047
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/batch-place.html b/zh-TW/v5/order/batch-place.html index 94e7613de4..d767621154 100644 --- a/zh-TW/v5/order/batch-place.html +++ b/zh-TW/v5/order/batch-place.html @@ -4,7 +4,7 @@ 批量創建委託單 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    批量創建委託單

    提示

    該接口支持批量創建委託單

    • 下單時需確保帳戶內有足夠的資金。一旦下單,根據訂單所需資金,您的帳戶資金將在訂單生命週期內凍結相應額度,被凍結的資金額度取決於訂單屬性。
    • 每個請求包含的訂單數最大是: 20筆(期权), 10筆(反向合約), 10筆(正向合約), 10筆(現貨), 返回的數據列表中分成兩個list,訂單創建的列表和創建結果的信息返回,兩個list的訂單的序列是完全保持一致的。
    信息
    • 當category=linear, inverse 或者 spot時, 請從這裡查閱其API限頻說明

    • 風控限制提示:
      Bybit 將針對您的 API 請求進行統計監控,當單日 (UTC 0点 - UTC 24点) 單帳號(母帳號和子帳號整體運算)訂單總数超過一定上限,平台將保留提醒、警告,以及進行必要性限制的權利。 使用API的客戶預設接受本條款並負有配合調整的義務。

    HTTP請求

    POST /v5/order/create-batch

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
  • 統一帳戶2.0: linear, option, spot, inverse
  • 統一帳戶1.0: linear, option, spot
  • requesttruearrayObject
    > symboltruestring合約名稱
    > isLeveragefalseinteger是否借貸. 僅統一帳戶的現貨交易有效. 0(default): 否,則是幣幣訂單, 1: 是,則是槓桿訂單
    > sidetruestring方向. Buy, Sell
    > orderTypetruestring訂單類型. Market, Limit
    > qtytruestring訂單數量 訂單數量
    • 統一帳戶
      • 現貨: 可以通過設置marketUnit來表示市價單qty的單位, 市價買單默認是quoteCoin, 市價賣單默認是baseCoin
      • 期貨和期權: 總是以base coin作為qty的單位
    • 期貨: 如果傳入qty="0"以及reduceOnly="true", 則可以平掉對應合約可達單個訂單允許的最大qty的倉位, 參照查詢可交易產品的規格信息接口裡的字段maxMktOrderQty或者maxOrderQty
    > pricefalsestring訂單價格
    • 市價單將會忽視該字段
    • 請通過該接口確認最低價格和精度要求
    • 如果有持倉, 確保價格優於強平價格
    > marketUnitfalsestring統一帳戶現貨交易創建市價單時給入參qty指定的單位, 支持orderFilter=Order, tpslOrder 和 StopOrder
  • baseCoin: 比如, 買BTCUSDT, 則"qty"的單位是BTC
  • quoteCoin: 比如, 賣BTCUSDT, 則"qty"的單位是USDT
  • > triggerDirectionfalseinteger條件單參數. 用於辨別期望的方向.
    • 1: 當市場價上漲到了triggerPrice時觸發條件單
    • 2: 當市場價下跌到了triggerPrice時觸發條件單
    linear有效
    > orderFilterfalsestring指定訂單品種, 若不傳, 默認Order
  • Order: 普通單
  • tpslOrder: 止盈止損單
  • StopOrder: 條件單
  • 僅對現貨有效
    > triggerPricefalsestring
    • 對於期貨, 是條件單觸發價格參數. 若您希望市場價是要上升後觸發, 確保:
      triggerPrice > 市場價格
      否則, triggerPrice < 市場價格
    • 對於現貨, 這是下止盈止損單(orderFilter=tpslOrder)或者條件單(orderFilter=stopOrder)的觸發價格參數
    > triggerByfalsestring條件單參數. 觸發價格類型. LastPrice, IndexPrice, MarkPrice
    linear有效
    > orderIvfalsestring隱含波動率. 僅option有效. 按照實際值傳入, e.g., 對於10%, 則傳入0.1. orderIvprice有更高的優先級
    > timeInForcefalsestring訂單執行策略
    • 市價單,系統直接使用IOC
    • 若不傳,默認使用GTC
    > positionIdxfalseinteger倉位標識, 用戶不同倉位模式. 該字段對於雙向持倉模式是必傳:
    • 0: 單向持倉
    • 1: 買側雙向持倉
    • 2: 賣側雙向持倉
    > orderLinkIdfalsestring用戶自定義訂單Id. category=option時,該參數必傳
    > takeProfitfalsestring止盈價格
    > stopLossfalsestring止損價格
    > tpTriggerByfalsestring觸發止盈的價格類型
  • MarkPrice
  • IndexPrice
  • LastPrice(默認)

  • 僅對linearinverse有效
    > slTriggerByfalsestring觸發止損的價格類型
  • MarkPrice
  • IndexPrice
  • LastPrice(默認)

  • 僅對linearinverse有效
    > reduceOnlyfalseboolean什麼是只減倉? true 將這筆訂單設為只減倉
    • 當減倉時, reduceOnly=true必傳
    • 只減倉單的止盈止損不生效
    > closeOnTriggerfalseboolean什麼是觸發後平倉委託?此選項可以確保您的止損單被用於減倉(平倉)而非加倉,並且在可用保證金不足的情況下,取消其他委託,騰出保證金以確保平倉委託的執行.
    linear, inverse有效
    > smpTypefalsestringSmp執行類型. 什麼是SMP?
    > mmpfalseboolean做市商保護. 僅option有效. true 表示該訂單是做市商保護訂單. 什麼是做市商保護?
    > tpslModefalsestring止盈止損模式
    • Full: 全部倉位止盈止損. 此時, tpOrderType或者slOrderType必須傳Market
    • Partial: 部分倉位止盈止損(下單時沒有size選項, 實際上創建tpsl訂單時, 是按照實際成交的數量來生成止盈止損). 注意: 創建限價止盈止損時, tpslMode必傳且為Partial
    linear, inverse有效
    > tpLimitPricefalsestring觸發止盈後轉換為限價單的價格
    • linear & inverse: 僅作用於當tpslMode=Partial以及tpOrderType=Limit時
    • 統一帳戶現貨: 參數必傳當創建訂單時帶了takeProfittpOrderType=Limit
    > slLimitPricefalsestring觸發止損後轉換為限價單的價格
    • linear & inverse: 僅作用於當tpslMode=Partial以及slOrderType=Limit時
    • 統一帳戶現貨: 參數必傳當創建訂單時帶了stopLossslOrderType=Limit
    > tpOrderTypefalsestring止盈觸發後的訂單類型
      category="linear"或"inverse": Market(默認), Limit
      對於tpslMode=Full, 僅支持tpOrderType=Market
    • 統一帳戶現貨:
      Market: 當帶了參數"takeProfit",
      Limit: 當帶了參數"takeProfit" 和 "tpLimitPrice"
    > slOrderTypefalsestring止損觸發後的訂單類型
    • category="linear"或"inverse": Market(默認), Limit
      對於tpslMode=Full, 僅支持slOrderType=Market
    • 統一帳戶現貨:
      Market: 當帶了參數"stopLoss",
      Limit: 當帶了參數"stopLoss" 和 "slLimitPrice"

    響應參數

    參數類型說明
    resultObject
    > listarrayObject
    >> categorystring產品類型
    >> symbolstring合約名稱
    >> orderIdstring訂單Id
    >> orderLinkIdstring用戶自定義訂單Id
    >> createAtstring訂單創建時間 (毫秒)
    retExtInfoObject
    > listarrayObject
    >> codenumber成功/錯誤碼
    >> msgstring成功/錯誤消息
    信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態


    請求示例

    POST /v5/order/create-batch HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672222064519
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "spot",
    "request": [
    {
    "symbol": "BTCUSDT",
    "side": "Buy",
    "orderType": "Limit",
    "isLeverage": 0,
    "qty": "0.05",
    "price": "30000",
    "timeInForce": "GTC",
    "orderLinkId": "spot-btc-03"
    },
    {
    "symbol": "ATOMUSDT",
    "side": "Sell",
    "orderType": "Limit",
    "isLeverage": 0,
    "qty": "2",
    "price": "12",
    "timeInForce": "GTC",
    "orderLinkId": "spot-atom-03"
    }
    ]
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "category": "spot",
    "symbol": "BTCUSDT",
    "orderId": "1666800494330512128",
    "orderLinkId": "spot-btc-03",
    "createAt": "1713434102752"
    },
    {
    "category": "spot",
    "symbol": "ATOMUSDT",
    "orderId": "1666800494330512129",
    "orderLinkId": "spot-atom-03",
    "createAt": "1713434102752"
    }
    ]
    },
    "retExtInfo": {
    "list": [
    {
    "code": 0,
    "msg": "OK"
    },
    {
    "code": 0,
    "msg": "OK"
    }
    ]
    },
    "time": 1713434102753
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/cancel-all.html b/zh-TW/v5/order/cancel-all.html index 34c6d4f8a9..73e287f32c 100644 --- a/zh-TW/v5/order/cancel-all.html +++ b/zh-TW/v5/order/cancel-all.html @@ -4,7 +4,7 @@ 撤銷所有訂單 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    撤銷所有訂單

    信息
    • 支持按照symbol/baseCoin/settleCoin撤銷訂單,若您傳入了多個參數組合, 系統僅會處理其中一個參數,其中優先級為symbol > baseCoin > settleCoin.
    • 注意: 當category=option, 您可以不傳人三個參數中的任何一個,就能取消所有期權的委託單。但是, 對於linearinverse, 您必需指定三個參數的其中一個。
    • 注意: 當category=spot, 您可以不傳人任何參數,就能取消所有現貨的委託單 (默認普通單)。
    信息

    現貨: 經典帳戶 - 最多取消500單; 統一帳戶 - 無限制
    期貨: 經典帳戶 - 最多取消500單; 統一帳戶 - 最多取消500單
    期權: 統一帳戶 - 無限制

    HTTP請求

    POST /v5/order/cancel-all

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symbolfalsestring合約名稱
    對於linear & inverse: 若不傳baseCoinsettleCoin, 該字段必傳
    baseCoinfalsestring交易幣種
    • 經典帳戶linear & inverse:
      當通過baseCoin來全部撤單時, 會將linear和inverse訂單全部撤掉。若不傳symbolbaseCoin, 則該字段必傳
    • 統一帳戶2.0, 統一帳戶1.0linear & inverse:
      當通過baseCoin來全部撤單時, 會將對應category的訂單全部撤掉。若不傳symbolbaseCoin, 則該字段必傳
    • 對於經典帳戶的現貨: 該字段無效
    settleCoinfalsestring結算幣種
    • 對於linear & inverse: 該字段必傳, 若不傳symbolbaseCoin
    • 該字段不支持spot
    orderFilterfalsestring
    • category=spot, 該字段可以傳:
      Order(普通單), tpslOrder(止盈止損單)
      StopOrder(條件單), OcoOrder
      BidirectionalTpslOrder(現貨雙向止盈止損訂單)
      若不傳, 則默認是撤掉Order
    • 當category=linear 或者 inverse, 該字段可以傳Order(普通單), StopOrder(條件單, 包括止盈止損單和追蹤出場單). 若不傳, 則所有類型的訂單都會被撤掉
    • 當category=option, 該字段可以傳Order, 不管傳與不傳, 都是撤掉所有訂單
    stopOrderTypefalsestring條件單類型, Stop
  • 僅用於當category=linear 或者 inverse以及orderFilter=StopOrder時, 若想僅取消條件單 (不包括止盈止損單和追蹤出場單), 則可以傳入該字段

  • 響應參數

    參數類型說明
    listarrayObject
    > orderIdstring訂單ID
    > orderLinkIdstring用戶自定義的訂單ID
    successstring"1": 成功, "0": 失敗
  • 統一帳戶1.0(inverse), 經典帳戶(linear, inverse)不返回該字段
  • 信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態

    請求示例

    POST /v5/order/cancel-all HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672219779140
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": null,
    "settleCoin": "USDT"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "1616024329462743808",
    "orderLinkId": "1616024329462743809"
    },
    {
    "orderId": "1616024287544869632",
    "orderLinkId": "1616024287544869633"
    }
    ],
    "success": "1"
    },
    "retExtInfo": {},
    "time": 1707381118116
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/cancel-order.html b/zh-TW/v5/order/cancel-order.html index ddfd288e82..33f0b3cf92 100644 --- a/zh-TW/v5/order/cancel-order.html +++ b/zh-TW/v5/order/cancel-order.html @@ -4,13 +4,13 @@ 撤銷委託單 | Bybit API Documentation - +

    撤銷委託單

    重要
    • 您必須指定orderId或者orderLinkId.
    • orderIdorderLinkId之間不匹配, 系統將會優先處理orderId.
    • 您只能撤銷未成交和部分成交的訂單.

    HTTP請求

    POST /v5/order/cancel

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    orderIdfalsestring訂單Id. orderIdorderLinkId必傳其中一個
    orderLinkIdfalsestring用戶自定義訂單Id. orderIdorderLinkId必傳其中一個
    orderFilterfalsestring僅現貨交易有效
  • Order: 普通單
  • tpslOrder: 止盈止損單
  • StopOrder: 條件單
  • 若不傳, 默認是Order

    響應參數

    參數類型說明
    orderIdstring訂單Id
    orderLinkIdstring用戶自定義訂單Id
    信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態


    請求示例

    POST /v5/order/cancel HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672217376681
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCPERP",
    "orderLinkId": null,
    "orderId":"c6f055d9-7f21-4079-913d-e6523a9cfffa"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "c6f055d9-7f21-4079-913d-e6523a9cfffa",
    "orderLinkId": "linear-004"
    },
    "retExtInfo": {},
    "time": 1672217377164
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/create-order.html b/zh-TW/v5/order/create-order.html index 09ad52d827..831b54bb03 100644 --- a/zh-TW/v5/order/create-order.html +++ b/zh-TW/v5/order/create-order.html @@ -4,7 +4,7 @@ 創建委託單 | Bybit API Documentation - + @@ -24,7 +24,7 @@ 使用API的客戶預設接受本條款並負有配合調整的義務。

    現貨條件單規則

    現貨支持止盈止損單, 條件單, 但是背後的處理邏輯略有不同
    經典帳戶: 當止盈止損或者條件單創建後, 您將會得到一個訂單ID. 當它被觸發後, 您將獲取到一個全新的訂單ID
    統一帳戶: 當止盈止損或者條件單創建後, 您將會得到一個訂單ID. 當它被觸發後, 訂單ID將會保持不變

    HTTP請求

    POST /v5/order/create

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    isLeveragefalseinteger是否借貸. 僅統一帳戶的現貨交易有效. 0(default): 否,則是幣幣訂單, 1: 是,則是槓桿訂單
    sidetruestringBuy, Sell
    orderTypetruestring訂單類型. Market, Limit
    qtytruestring訂單數量
    • 統一帳戶
      • 現貨: 可以通過設置marketUnit來表示市價單qty的單位, 市價買單默認是quoteCoin, 市價賣單默認是baseCoin
      • 期貨和期權: 總是以base coin作為qty的單位
    • 經典帳戶
      • 現貨: 市價買單的qty總是以quote coin為單位, 其他情況下, qty都是以base coin為單位
      • 期貨: qty總是以base coin為單位
    • 期貨: 如果傳入qty="0"以及reduceOnly="true", 則可以平掉對應合約可達單個訂單允許的最大qty的倉位, 參照查詢可交易產品的規格信息接口裡的字段maxMktOrderQty或者maxOrderQty
    marketUnitfalsestring統一帳戶現貨交易創建市價單時給入參qty指定的單位, 支持orderFilter=Order, tpslOrder 和 StopOrder
  • baseCoin: 比如, 買BTCUSDT, 則"qty"的單位是BTC
  • quoteCoin: 比如, 賣BTCUSDT, 則"qty"的單位是USDT
  • pricefalsestring訂單價格.
    • 市價單將會忽視該字段
    • 請通過該接口確認最低價格和精度要求
    • 如果有持倉, 確保價格優於強平價格
    triggerDirectionfalseinteger條件單參數. 用於辨別期望的方向.
    • 1: 當市場價上漲到了triggerPrice時觸發條件單
    • 2: 當市場價下跌到了triggerPrice時觸發條件單
    linearinverse有效
    orderFilterfalsestring指定訂單品種. Order: 普通單,tpslOrder: 止盈止損單,StopOrder: 條件單. 若不傳, 默認Order
    僅對現貨有效
    triggerPricefalsestring
    • 對於期貨, 是條件單觸發價格參數. 若您希望市場價是要上升後觸發, 確保:
      triggerPrice > 市場價格
      否則, triggerPrice < 市場價格
    • 對於現貨, 這是下止盈止損單或者條件單的觸發價格參數
    triggerByfalsestring條件單參數. 觸發價格類型. LastPrice, IndexPrice, MarkPrice
    僅對linearinverse有效
    orderIvfalsestring隱含波動率. 僅option有效. 按照實際值傳入, e.g., 對於10%, 則傳入0.1. orderIvprice有更高的優先級
    timeInForcefalsestring訂單執行策略
    • 市價單,系統直接使用IOC
    • 若不傳,默認使用GTC
    positionIdxfalseinteger倉位標識, 用戶不同倉位模式. 該字段對於雙向持倉模式是必傳:
    • 0: 單向持倉
    • 1: 買側雙向持倉
    • 2: 賣側雙向持倉
    orderLinkIdfalsestring用戶自定義訂單Id
  • category=option時,該參數必傳
  • takeProfitfalsestring止盈價格
  • linear & inverse: 支援統一帳戶和經典帳戶
  • spot: 僅支持統一帳戶, 創建限價單時, 可以附帶市價止盈止損和限價止盈止損
  • stopLossfalsestring止損價格
  • linear & inverse: 支援統一帳戶和經典帳戶
  • spot: 僅支持統一帳戶, 創建限價單時, 可以附帶市價止盈止損和限價止盈止損
  • tpTriggerByfalsestring觸發止盈的價格類型
  • MarkPrice
  • IndexPrice
  • LastPrice(默認)

  • 僅對linearinverse有效
    slTriggerByfalsestring觸發止損的價格類型
  • MarkPrice
  • IndexPrice
  • LastPrice(默認)

  • 僅對linearinverse有效
    reduceOnlyfalseboolean什麼是只減倉? true 將這筆訂單設為只減倉
    • 當減倉時, reduceOnly=true必傳
    • 只減倉單的止盈止損不生效
    linear, inverseoption有效
    closeOnTriggerfalseboolean什麼是觸發後平倉委託?此選項可以確保您的止損單被用於減倉(平倉)而非加倉,並且在可用保證金不足的情況下,取消其他委託,騰出保證金以確保平倉委託的執行.
    僅對linearinverse有效
    smpTypefalsestringSmp執行類型. 什麼是SMP?
    mmpfalseboolean做市商保護, true 表示該訂單是做市商保護訂單. 什麼是做市商保護?
  • option有效
  • tpslModefalsestring止盈止損模式
    • Full: 全部倉位止盈止損. 此時, tpOrderType或者slOrderType必須傳Market
    • Partial: 部分倉位止盈止損(下單時沒有size選項, 實際上創建tpsl訂單時, 是按照實際成交的數量來生成止盈止損). 支持創建限價止盈止損. 注意: 創建限價止盈止損時, tpslMode必傳且為Partial
    僅對linearinverse有效
    tpLimitPricefalsestring觸發止盈後轉換為限價單的價格
    • linear & inverse: 僅作用於當tpslMode=Partial以及tpOrderType=Limit時
    • 統一帳戶現貨: 參數必傳當創建訂單時帶了takeProfittpOrderType=Limit
    slLimitPricefalsestring觸發止損後轉換為限價單的價格
    • linear & inverse: 僅作用於當tpslMode=Partial以及slOrderType=Limit時
    • 統一帳戶現貨: 參數必傳當創建訂單時帶了stopLossslOrderType=Limit
    tpOrderTypefalsestring止盈觸發後的訂單類型
      category="linear"或"inverse": Market(默認), Limit
      對於tpslMode=Full, 僅支持tpOrderType=Market
    • 統一帳戶現貨:
      Market: 當帶了參數"takeProfit",
      Limit: 當帶了參數"takeProfit" 和 "tpLimitPrice"
    slOrderTypefalsestring止損觸發後的訂單類型
    • category="linear"或"inverse": Market(默認), Limit
      對於tpslMode=Full, 僅支持slOrderType=Market
    • 統一帳戶現貨:
      Market: 當帶了參數"stopLoss",
      Limit: 當帶了參數"stopLoss" 和 "slLimitPrice"

    響應參數

    參數類型說明
    orderIdstring訂單ID
    orderLinkIdstring用戶自定義訂單ID
    信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態


    請求示例

    POST /v5/order/create HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672211928338
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    // 現貨下僅maker單
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.1","price":"15600","timeInForce":"PostOnly","orderLinkId":"spot-test-01","isLeverage":0,"orderFilter":"Order"}

    // 現貨止盈止損單
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.1","price":"15600","triggerPrice": "15000", "timeInForce":"Limit","orderLinkId":"spot-test-02","isLeverage":0,"orderFilter":"tpslOrder"}

    // 槓桿交易單 (統一帳戶)
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.1","price":"15600","timeInForce":"Limit","orderLinkId":"spot-test-limit","isLeverage":1,"orderFilter":"Order"}

    // 現貨市價單, qty為報價幣種金額
    {"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Market","qty":"200","timeInForce":"IOC","orderLinkId":"spot-test-04","isLeverage":0,"orderFilter":"Order"}


    // USDT永續開多倉訂單 (單向持倉)
    {"category":"linear","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"1","price":"25000","timeInForce":"GTC","positionIdx":0,"orderLinkId":"usdt-test-01","reduceOnly":false,"takeProfit":"28000","stopLoss":"20000","tpslMode":"Partial","tpOrderType":"Limit","slOrderType":"Limit","tpLimitPrice":"27500","slLimitPrice":"20500"}

    // USDT永續平多倉訂單 (單向持倉)
    {"category": "linear", "symbol": "BTCUSDT", "side": "Sell", "orderType": "Limit", "qty": "1", "price": "30000", "timeInForce": "GTC", "positionIdx": 0, "orderLinkId": "usdt-test-02", "reduceOnly": true}

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "orderId": "1321003749386327552",
    "orderLinkId": "spot-test-postonly"
    },
    "retExtInfo": {},
    "time": 1672211918471
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/dcp.html b/zh-TW/v5/order/dcp.html index bc35a1bccf..dc4d8e5a89 100644 --- a/zh-TW/v5/order/dcp.html +++ b/zh-TW/v5/order/dcp.html @@ -4,7 +4,7 @@ 設置斷線保護時間 | Bybit API Documentation - + @@ -13,7 +13,7 @@ 恢復心跳“ping”,則客戶端處於“斷線保護”狀態,客戶所有活躍的合約 / 現貨 / 期權訂單將自動取消。如果在 10 秒內,客戶端重新連接並恢復心跳“ping”,計時會在下次斷線 時重置並重新開始。

    如何啟用斷線保護

    若您需要開啟/關閉斷線保護功能, 您可以諮詢客戶經理. 開啟後,默認的斷線保護時間為10秒。

    適用對象

    作用於反向永續 / 反向交割 / USDT 永續 / USDC 永續 / USDC 交割 / 現貨 / 期權 (統一帳戶2.0)
    作用於USDT 永續 / USDC 永續 / USDC 交割 / 現貨 / 期權 (統一帳戶1.0)

    提示

    API請求發送成功後,系統需要一定的時間才能生效。建議10秒後再查詢或設置。

    • 您可以使用該接口來查詢當前DCP配置
    • 您的私有連接必須訂閱斷線保護, 才能確保DCP功能被觸發

    HTTP請求

    POST /v5/order/disconnected-cancel-all

    請求參數

    參數是否必需類型說明
    productfalsestringOPTIONS(默認), DERIVATIVES, SPOT
    timeWindowtrueinteger斷線保護時間窗口. [3, 300], 單位: 秒

    響應參數

    請求示例

    POST v5/order/disconnected-cancel-all HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675852742375
    X-BAPI-RECV-WINDOW: 50000
    Content-Type: application/json

    {
    "timeWindow": 40
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success"
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/execution.html b/zh-TW/v5/order/execution.html index 639e2b63ab..97cdc03a8a 100644 --- a/zh-TW/v5/order/execution.html +++ b/zh-TW/v5/order/execution.html @@ -4,13 +4,13 @@ 查詢成交紀錄 | Bybit API Documentation - +

    查詢成交紀錄

    獲取用戶成交紀錄,返回結果按execTime降序排列。但是,對於經典帳戶現貨交易,返回結果按execId降序排列

    提示
    • 儅execTime相同時,返回會有排序問題,此問題已在優化中, 目前建議依照execId+OrderId+leavesQty進行排序, 如果您想獲取實時成交信息建議使用websocket stream.
    • 單筆訂單可能會有多次成交.
    • 您可以通過指定symbol, baseCoin, orderId 和 orderLinkId字段來查詢。如果您使用多字段組合,系統的查詢優先級如下: orderId > orderLinkId > symbol > baseCoin.
    信息
    • 統一帳戶支持查詢過去730天的歷史成交紀錄

    HTTP 請求

    GET /v5/execution/list

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symbolfalsestring合約名稱
    orderIdfalsestring訂單Id
    orderLinkIdfalsestring用戶自定義訂單id. 經典帳戶不支持該字段查詢
    baseCoinfalsestring交易幣種
  • 統一帳戶1.0(反向)和經典帳戶不支持該字段查詢
  • startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime 7天
    • 若只傳startTime, 則查詢startTime和startTime+7天的數據
    • 若只傳endTime, 則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    execTypefalsestring執行類型. 經典帳戶現貨交易無效
    limitfalseinteger每頁數量限制. [1, 100]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > orderIdstring訂單Id
    > orderLinkIdstring用戶自定義訂單id. 經典帳戶現貨交易不支持
    > sidestring訂單方向.買: Buy,賣:Sell
    > orderPricestring訂單價格
    > orderQtystring訂單數量
    > leavesQtystring剩餘委託未成交數量. 經典帳戶現貨交易不支持
    > createTypestring訂單創建類型
  • 經典帳戶和統一帳戶1.0(inverse): 總是返回""
  • 現貨、期權不返回該字段
  • > orderTypestring訂單類型. 市價單:Market,限價單:Limit
    > stopOrderTypestring条件单的订单类型。如果该订单不是条件单,则可能返回""或者UNKNOWN. 經典帳戶現貨交易不支持
    > execFeestring交易手續費. 您可以從這裡了解現貨手續費幣種信息
    > execIdstring成交Id
    > execPricestring成交價格
    > execQtystring成交數量
    > execTypestring交易類型. 經典帳戶現貨交易不支持
    > execValuestring成交價值. 經典帳戶現貨交易不支持
    > execTimestring成交時間(毫秒)
    > feeCurrencystring現貨手續費幣種 經典帳戶現貨交易不支持
    > isMakerBool是否是 Maker 訂單,true 為 maker 訂單,false 為 taker 訂單
    > feeRatestring手續費率. 經典帳戶現貨不支持
    > tradeIvstring隱含波動率,僅期權有效
    > markIvstring標記價格的隱含波動率,僅期權有效
    > markPricestring成交執行時,該 symbol 當時的標記價格
    經典帳戶現貨不支持
    > indexPricestring成交執行時,該 symbol 當時的指數價格
    僅期權業務有效
    > underlyingPricestring成交執行時,該 symbol 當時的底層資產價格
    僅期權有效
    > blockTradeIdstring大宗交易的订单 ID ,使用 paradigm 进行大宗交易时生成的 ID
    > closedSizestring平倉數量
    > seqlong序列號, 用於關聯成交和倉位的更新
    • 同一時間有多筆成交, seq相同
    • 不同的幣對會存在相同seq, 可以使用seq + symbol來做唯一性識別
    • 經典帳戶下現貨交易沒有該字段
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/execution/list?category=linear&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672283754132
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "132766%3A2%2C132766%3A2",
    "category": "linear",
    "list": [
    {
    "symbol": "ETHPERP",
    "orderType": "Market",
    "underlyingPrice": "",
    "orderLinkId": "",
    "side": "Buy",
    "indexPrice": "",
    "orderId": "8c065341-7b52-4ca9-ac2c-37e31ac55c94",
    "stopOrderType": "UNKNOWN",
    "leavesQty": "0",
    "execTime": "1672282722429",
    "feeCurrency": "",
    "isMaker": false,
    "execFee": "0.071409",
    "feeRate": "0.0006",
    "execId": "e0cbe81d-0f18-5866-9415-cf319b5dab3b",
    "tradeIv": "",
    "blockTradeId": "",
    "markPrice": "1183.54",
    "execPrice": "1190.15",
    "markIv": "",
    "orderQty": "0.1",
    "orderPrice": "1236.9",
    "execValue": "119.015",
    "execType": "Trade",
    "execQty": "0.1",
    "closedSize": "0.1",
    "seq": 4688002127
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672283754510
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/open-order.html b/zh-TW/v5/order/open-order.html index 55d5bf7662..1ef2caf8bd 100644 --- a/zh-TW/v5/order/open-order.html +++ b/zh-TW/v5/order/open-order.html @@ -4,13 +4,13 @@ 查詢實時和終態委託單 | Bybit API Documentation - +

    查詢實時和終態委託單

    主要用於實時查詢未成交或部分成交的訂單信息, 但結合入参openOnly能夠查詢到最近500條到達終態的訂單. 若需要查詢更久的訂單紀錄,請使用查詢歷史訂單接口.

    提示
    • 統一帳戶2.0: 支持查詢已成交, 取消和拒絕類型的最近500條訂單信息對於spot, linear, inverse和option類別.
    • 統一帳戶1.0: 支持查詢已成交, 取消和拒絕類型的最近500條訂單信息對於spot, linear和option類別. inverse類別則無此限制.
    • 您可以通過指定symbol, baseCoin, orderId 和 orderLinkId字段來查詢. 如果您使用多字段組合,系統的查詢優先級如下: orderId > orderLinkId > symbol > baseCoin.
    • 返回的結果將以createdTime從新到舊排序.
    信息
    • 經典帳戶現貨交易僅能查詢活動狀態的委託單
    • 針對統一帳戶, 服務器重啓或發佈後請使用查詢歷史訂單接口去查詢已成交,取消和拒絕類型的訂單信息

    HTTP請求

    GET /v5/order/realtime

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symbolfalsestring合約名稱
  • 當category=linear, symbol, baseCoinsettleCoin必傳其中一個
  • baseCoinfalsestring交易幣種
  • 支持linear, inverseoption
  • 對於category=option, 若不傳baseCoin, 則返回期權下所有活動委託單
  • settleCoinfalsestring結算幣種
    • linear: symbolsettleCoin必傳其中一個
    • spot: 該字段無效
    orderIdfalsestring訂單Id
    orderLinkIdfalsestring用戶自定義訂單Id
    openOnlyfalseinteger
    • 0(默認): 統一帳戶2.0, 統一帳戶1.0, 經典帳戶: 僅查詢活動委託訂單, 比如New, PartiallyFilled訂單
    • 1: 統一帳戶2.0, 統一帳戶1.0(除了inverse)
      2: 統一帳戶1.0(inverse)和經典帳戶:
      返回僅終態(已取消/拒絕/完全成交)的訂單數據, 每個帳戶每個category下最多保留500條紀錄. 如果因Bybit服務更新重啟則該部分數據會情況並重新累計, 但是訂單紀錄仍然可以從歷史訂單中查詢到
    • 當查詢是按照orderId 或者 orderLinkId時, openOnly入参將會被忽略
    • 經典帳戶現貨: 該字段無效, 僅返回活動委託單
    orderFilterfalsestringOrder: 活動單
    StopOrder: 條件單, 支持現貨和期貨
    tpslOrder: 止盈止損單, 僅現貨有效
    OcoOrder: OCO訂單
    BidirectionalTpslOrder: 現貨(UTA)雙向止盈止損訂單
    • 經典帳戶現貨: 默認是Order活動單
    • 其他: 默認是全部類型訂單
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    nextPageCursorstring游標,用於翻頁
    listarrayObject
    > orderIdstring訂單Id
    > orderLinkIdstring用戶自定義Id
    > blockTradeIdstringParadigm大宗交易Id
    > symbolstring合約名稱
    > pricestring訂單價格
    > qtystring訂單數量
    > sidestring方向. Buy,Sell
    > isLeveragestring是否借貸. 僅統一帳戶spot有效
  • 0: 否
  • 1: 是
  • 經典帳戶現貨交易不支持, 總是0
    > positionIdxinteger倉位標識。用戶不同倉位模式
    > orderStatusstring訂單狀態
    > createTypestring訂單創建類型
  • 僅作用於category=linear 或 inverse
  • 現貨、期權不返回該字段
  • > cancelTypestring訂單被取消類型
    > rejectReasonstring拒絕原因. 經典帳戶現貨交易不支持
    > avgPricestring訂單平均成交價格
  • 統一帳戶: 不存在avg price場景的訂單返回""
  • 經典帳戶: 不存在avg price場景的訂單返回"0", 以及部分成交但最終被手動取消的訂單
  • > leavesQtystring訂單剩餘未成交的數量. 經典帳戶現貨交易不支持
    > leavesValuestring訂單剩餘未成交的價值. 經典帳戶現貨交易不支持
    > cumExecQtystring訂單累計成交數量
    > cumExecValuestring訂單累計成交價值. 經典帳戶現貨交易不支持
    > cumExecFeestring訂單累計成交的手續費. 經典帳戶現貨交易不支持
    > timeInForcestring執行策略
    > orderTypestring訂單類型. Market,Limit. 對於止盈止損單, 則表示為觸發後的訂單類型
    > stopOrderTypestring條件單類型
    > orderIvstring隱含波動率
    > marketUnitstring統一帳戶現貨交易時給入參qty選擇的單位. baseCoin, quoteCoin
    > triggerPricestring觸發價格. 若stopOrderType=TrailingStop, 則這是激活價格. 否則, 它是觸發價格
    > takeProfitstring止盈價格
    > stopLossstring止損價格
    > tpslModestring止盈止損模式 Full: 全部倉位止盈止損, Partial: 部分倉位止盈止損
    現貨不返回該字段, 期權總是返回""
    > ocoTriggerBystring現貨OCO訂單的觸發類型.OcoTriggerByUnknown, OcoTriggerByTp, OcoTriggerBySl
    經典帳戶現貨不支持該字段
    > tpLimitPricestring觸發止盈後轉換為限價單的價格
    > slLimitPricestring觸發止損後轉換為限價單的價格
    > tpTriggerBystring觸發止盈的價格類型
    > slTriggerBystring觸發止損的價格類型
    > triggerDirectioninteger觸發方向. 1: 上漲, 2: 下跌
    > triggerBystring觸發價格的觸發類型
    > lastPriceOnCreatedstring下單時的市場價格
    > reduceOnlyboolean只減倉. true表明這是只減倉單
    > closeOnTriggerboolean觸發後平倉委託. 什麼是觸發後平倉委託?
    > placeTypestring下單類型, 僅期權使用. iv, price
    > smpTypestringSMP執行類型
    > smpGroupinteger所屬Smp組ID. 如果uid不屬於任何組, 則默認為0
    > smpOrderIdstring觸發此SMP執行的交易對手的 orderID
    > createdTimestring創建訂單的時間戳 (毫秒)
    > updatedTimestring訂單更新的時間戳 (毫秒)

    請求示例

    GET /v5/order/realtime?symbol=ETHUSDT&category=linear&openOnly=0&limit=1  HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672219525810
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "fd4300ae-7847-404e-b947-b46980a4d140",
    "orderLinkId": "test-000005",
    "blockTradeId": "",
    "symbol": "ETHUSDT",
    "price": "1600.00",
    "qty": "0.10",
    "side": "Buy",
    "isLeverage": "",
    "positionIdx": 1,
    "orderStatus": "New",
    "cancelType": "UNKNOWN",
    "rejectReason": "EC_NoError",
    "avgPrice": "0",
    "leavesQty": "0.10",
    "leavesValue": "160",
    "cumExecQty": "0.00",
    "cumExecValue": "0",
    "cumExecFee": "0",
    "timeInForce": "GTC",
    "orderType": "Limit",
    "stopOrderType": "UNKNOWN",
    "orderIv": "",
    "triggerPrice": "0.00",
    "takeProfit": "2500.00",
    "stopLoss": "1500.00",
    "tpTriggerBy": "LastPrice",
    "slTriggerBy": "LastPrice",
    "triggerDirection": 0,
    "triggerBy": "UNKNOWN",
    "lastPriceOnCreated": "",
    "reduceOnly": false,
    "closeOnTrigger": false,
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "tpslMode": "Full",
    "tpLimitPrice": "",
    "slLimitPrice": "",
    "placeType": "",
    "createdTime": "1684738540559",
    "updatedTime": "1684738540561"
    }
    ],
    "nextPageCursor": "page_args%3Dfd4300ae-7847-404e-b947-b46980a4d140%26symbol%3D6%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1684765770483
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/order-list.html b/zh-TW/v5/order/order-list.html index 366f42ae54..2823fcc069 100644 --- a/zh-TW/v5/order/order-list.html +++ b/zh-TW/v5/order/order-list.html @@ -4,13 +4,13 @@ 查詢歷史訂單 | Bybit API Documentation - +

    查詢歷史訂單

    獲取歷史訂單紀錄. 由於訂單創建/撤銷是異步的, 該接口返回數據可能會有延遲. 若您想實時獲取訂單信息, 您可以查詢該接口或者通過websocket推送(推薦)

    提示
    • 7天內的訂單:
      統一帳戶2.0, 統一帳戶1.0(除了inverse)支持查詢除了"Cancelled"(完全取消), "Rejected", "Deactivated"以外的終態訂單
      统一账户1.0(inverse)和經典帳戶支持查詢活動態+終態的訂單
    • 24小時的订单:
      統一帳戶2.0, 統一帳戶1.0(除了inverse): 對於完全取消(Cancelled),以及"Rejected", "Deactivated"的訂單僅支持查詢過去24小時的訂單記錄
    • 7天外的訂單: 所有账户都只能查詢到有過成交的訂單, 即完全成交, 部分成交但最終取消的訂單
    • 統一帳戶2.0, 統一帳戶1.0(除了inverse) 支持查詢過去2年的數據
    信息
    • 經典帳戶現貨僅能查詢終態訂單, 且取消單、拒絕單、未觸發取消單, 最多保留7天

    HTTP請求

    GET /v5/order/history

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symbolfalsestring合約名稱
    baseCoinfalsestring交易幣種
    統一帳戶1.0(反向)和經典帳戶不支持該字段的查詢
    settleCoinfalsestring結算幣種
    統一帳戶1.0(反向)和經典帳戶不支持該字段的查詢
    orderIdfalsestring訂單ID
    orderLinkIdfalsestring用戶自定義訂單ID
    orderFilterfalsestringOrder: 普通單, StopOrder: 條件單, 支持現貨和期貨
    tpslOrder: 現貨止盈止損單, OcoOrder: OCO訂單
    BidirectionalTpslOrder: 現貨(UTA)雙向止盈止損訂單
    • 經典帳戶現貨: 默認是Order活動單
    • 其他: 默認是全部類型訂單
    orderStatusfalsestring訂單狀態
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 7天
    • 若只傳startTime,則查詢startTime和startTime+7天的數據
    • 若只傳endTime,則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > orderIdstring訂單Id
    > orderLinkIdstring用戶自定義Id
    > blockTradeIdstring大宗交易訂單Id
    > symbolstring合約名稱
    > pricestring訂單價格
    > qtystring訂單數量
    > sidestring方向. Buy,Sell
    > isLeveragestring是否借貸. 僅統一帳戶spot有效
  • 0: 否
  • 1: 是
  • 經典帳戶現貨交易不支持, 總是0
    > positionIdxinteger倉位標識。用戶不同倉位模式
    > orderStatusstring訂單狀態
    > createTypestring訂單創建類型
  • 僅作用於category=linear 或 inverse
  • 現貨、期權不返回該字段
  • > cancelTypestring訂單被取消類型
    > rejectReasonstring拒絕原因. 經典帳戶現貨交易不支持
    > avgPricestring訂單平均成交價格
  • 統一帳戶: 不存在avg price場景的訂單返回""
  • 經典帳戶: 不存在avg price場景的訂單返回"0", 以及部分成交但最終被手動取消的訂單
  • > leavesQtystring訂單剩餘未成交的數量. 經典帳戶現貨交易不支持
    > leavesValuestring訂單剩餘未成交的價值. 經典帳戶現貨交易不支持
    > cumExecQtystring訂單累計成交數量
    > cumExecValuestring訂單累計成交價值. 經典帳戶現貨交易不支持
    > cumExecFeestring訂單累計成交的手續費. 經典帳戶現貨交易不支持
    > timeInForcestring執行策略
    > orderTypestring訂單類型. Market,Limit. 對於止盈止損單, 則表示為觸發後的訂單類型
  • Block trade Roll Back, Block trade-Limit: 統一帳戶大宗交易獨有的兩個枚舉值
  • > stopOrderTypestring條件單類型
    > orderIvstring隱含波動率
    > marketUnitstring統一帳戶現貨交易時給入參qty選擇的單位. baseCoin, quoteCoin
    > triggerPricestring觸發價格. 若stopOrderType=TrailingStop, 則這是激活價格. 否則, 它是觸發價格
    > takeProfitstring止盈價格
    > stopLossstring止損價格
    > tpslModestring止盈止損模式 Full: 全部倉位止盈止損, Partial: 部分倉位止盈止損
    現貨不返回該字段, 期權總是返回""
    > ocoTriggerBystring現貨OCO訂單的觸發類型.OcoTriggerByUnknown, OcoTriggerByTp, OcoTriggerBySl
    經典帳戶現貨不支持該字段
    > tpLimitPricestring觸發止盈後轉換為限價單的價格
    > slLimitPricestring觸發止損後轉換為限價單的價格
    > tpTriggerBystring觸發止盈的價格類型
    > slTriggerBystring觸發止損的價格類型
    > triggerDirectioninteger觸發方向. 1: 上漲, 2: 下跌
    > triggerBystring觸發價格的觸發類型
    > lastPriceOnCreatedstring下單時的市場價格
    > reduceOnlyboolean只減倉. true表明這是只減倉單
    > closeOnTriggerboolean觸發後平倉委託. 什麼是觸發後平倉委託?
    > placeTypestring下單類型, 僅期權使用. iv, price
    > smpTypestringSMP執行類型
    > smpGroupinteger所屬Smp組ID. 如果uid不屬於任何組, 則默認為0
    > smpOrderIdstring觸發此SMP執行的交易對手的 orderID
    > createdTimestring創建訂單的時間戳 (毫秒)
    > updatedTimestring訂單更新的時間戳 (毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/order/history?category=linear&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672221263407
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "14bad3a1-6454-43d8-bcf2-5345896cf74d",
    "orderLinkId": "YLxaWKMiHU",
    "blockTradeId": "",
    "symbol": "BTCUSDT",
    "price": "26864.40",
    "qty": "0.003",
    "side": "Buy",
    "isLeverage": "",
    "positionIdx": 1,
    "orderStatus": "Cancelled",
    "cancelType": "UNKNOWN",
    "rejectReason": "EC_PostOnlyWillTakeLiquidity",
    "avgPrice": "0",
    "leavesQty": "0.000",
    "leavesValue": "0",
    "cumExecQty": "0.000",
    "cumExecValue": "0",
    "cumExecFee": "0",
    "timeInForce": "PostOnly",
    "orderType": "Limit",
    "stopOrderType": "UNKNOWN",
    "orderIv": "",
    "triggerPrice": "0.00",
    "takeProfit": "0.00",
    "stopLoss": "0.00",
    "tpTriggerBy": "UNKNOWN",
    "slTriggerBy": "UNKNOWN",
    "triggerDirection": 0,
    "triggerBy": "UNKNOWN",
    "lastPriceOnCreated": "0.00",
    "reduceOnly": false,
    "closeOnTrigger": false,
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "tpslMode": "",
    "tpLimitPrice": "",
    "slLimitPrice": "",
    "placeType": "",
    "createdTime": "1684476068369",
    "updatedTime": "1684476068372"
    }
    ],
    "nextPageCursor": "page_token%3D39380%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1684766282976
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/order/spot-borrow-quota.html b/zh-TW/v5/order/spot-borrow-quota.html index 9c11342276..fd61a70f8c 100644 --- a/zh-TW/v5/order/spot-borrow-quota.html +++ b/zh-TW/v5/order/spot-borrow-quota.html @@ -4,13 +4,13 @@ 查詢用戶可用額度 (現貨) | Bybit API Documentation - +

    查詢用戶可用額度 (現貨)

    可以查詢現貨幣幣交易以及槓桿交易時, 可用對應幣種的實時餘額

    HTTP請求

    GET /v5/order/spot-borrow-check

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
  • 統一帳戶2.0, 統一帳戶1.0: spot
  • symboltruestring交易對名稱
    sidetruestring交易方向. Buy,Sell

    響應參數

    參數類型說明
    symbolstring交易對名稱
    sidestring方向
    maxTradeQtystring最大可用於交易的交易幣種數量
    • 若啟用了全倉槓桿且是槓桿幣對, 則返回現貨可用+最大可借貸數量 = min(平台單一用戶可借貸上限,UTA帳戶IMR MMR反推出來的最大可借,平台資金池可用額度)
    • 否則, 僅代表現貨可用
    • 最多支持4位小數
    maxTradeAmountstring最大可用於交易的報價幣種金額
    • 若啟用了全倉槓桿且是槓桿幣對, 則返回現貨可用+最大可借貸數量 = min(平台單一用戶可借貸上限,UTA帳戶IMR MMR反推出來的最大可借,平台資金池可用額度)
    • 否則, 僅代表現貨可用
    • 最多支持8位小數
    spotMaxTradeQtystring無論是否開啟了槓桿, 這個字段表示交易幣種在幣幣交易下的可交易數量或者餘額 (不包含可借貸數量), 最多支持4位小數
    spotMaxTradeAmountstring無論是否開啟了槓桿, 這個字段表示報價幣種在幣幣交易下的可交易數量或者餘額 (不包含可借貸數量), 最多支持8位小數
    borrowCoinstring借貸幣種

    請求示例

    GET /v5/order/spot-borrow-check?category=spot&symbol=BTCUSDT&side=Buy HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672228522214
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "symbol": "BTCUSDT",
    "maxTradeQty": "6.6065",
    "side": "Buy",
    "spotMaxTradeAmount": "9004.75628594",
    "maxTradeAmount": "218014.01330797",
    "borrowCoin": "USDT",
    "spotMaxTradeQty": "0.2728"
    },
    "retExtInfo": {},
    "time": 1698895841534
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/otc/bind-uid.html b/zh-TW/v5/otc/bind-uid.html index e86b744a05..dd07c1f04e 100644 --- a/zh-TW/v5/otc/bind-uid.html +++ b/zh-TW/v5/otc/bind-uid.html @@ -4,13 +4,13 @@ 綁定/解綁UID | Bybit API Documentation - +

    綁定/解綁UID

    對於場外借貸產品, 您可以自行綁定新的UID到風險單元內或者解綁某個UID

    信息
    • 風險單元的主UID不能解綁
    • 綁定的UID必須升級到了UTA Pro

    HTTP 請求

    POST /v5/ins-loan/association-uid

    請求參數

    參數是否必需類型說明
    uidtruestringUID
  • 綁定
    a) 調用接口的key必須來自風險單元內的任意uid;
    b) 目標帳戶不能有機構借貸
  • 解綁
    a) 調用接口的key必須來自風險單元內的任意uid;
    b) 準備解綁的uid不能和調用接口的uid一樣
  • operatetruestring0: 綁定, 1: 解綁

    響應參數

    參數類型說明
    uidstringUID
    operatestring0: 綁定, 1: 解綁

    請求示例

    POST /v5/ins-loan/association-uid HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1699257853101
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json
    Content-Length: 43

    {
    "uid": "592324",
    "operate": "0"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "uid": "592324",
    "operate": "0"
    },
    "retExtInfo": {},
    "time": 1699257746135
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/otc/loan-info.html b/zh-TW/v5/otc/loan-info.html index d81951db21..6c9e4b4787 100644 --- a/zh-TW/v5/otc/loan-info.html +++ b/zh-TW/v5/otc/loan-info.html @@ -4,13 +4,13 @@ 查詢借貸訂單信息 | Bybit API Documentation - +

    查詢借貸訂單信息

    查詢借貸訂單的詳情

    提示
    • 默認查詢過去2年的數據
    • 最多支持查詢過去2年的數據

    HTTP 請求

    GET /v5/ins-loan/loan-order

    請求參數

    參數是否必須類型說明
    orderIdfalsestring借貸訂單ID. 若不傳,則返回全部. 按照loanTime降序排列
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger返回數量限制. [1, 100], 默認: 10

    返回參數

    參數類型說明
    loanInfoarrayObject
    > orderIdstring借貸訂單ID
    > orderProductIdstring產品ID
    > parentUidstring綁定場外借貸產品的UID
    > loanTimestring放款時間(毫秒)
    > loanCoinstring借款幣種
    > loanAmountstring借款金額
    > unpaidAmountstring未還本金
    > unpaidIntereststring未還利息
    > repaidAmountstring已還本金
    > repaidIntereststring已還利息
    > interestRatestring日利率
    > statusstring1:未還清; 2:已還清
    > leveragestring該借貸產品的最大槓桿倍數
    > supportSpotstring是否支持現貨. 0:否; 1:是
    > supportContractstring是否支持合約 . 0: 否; 1: 是
    > supportMarginTradingstring是否支持現貨槓桿交易. 0: 否; 1: 是
    > withdrawLinestring限制提幣線
    > transferLinestring限制劃轉線
    > spotBuyLinestring限制現貨買入線
    > spotSellLinestring限制現貨交易線
    > contractOpenLinestring限制USDT永續合約開倉線
    > deferredLiquidationLinestring延期清算線
    > deferredLiquidationTimestring延期清算時間
    > reserveTokenstring備付金幣種
    > reserveQuantitystring備付金幣種數量
    > liquidationLinestring強平線
    > stopLiquidationLinestring停止強平線
    > contractLeveragestring允許USDT永續默認開倉倍數
    > transferRatiostring現貨帳戶到合約帳戶的借貸資金劃轉比例
    > spotSymbolsarray現貨交易對白名單. 若沒有配置白名單, 則返回[]
    > contractSymbolsarrayUSDT永續合約交易對白名單
    • 若沒有配置白名單, 則返回[]
    • 若supportContract="0", 則也是[]
    > supportUSDCContractstring是否支持USDC合約交易. '0':否; '1':是
    > supportUSDCOptionsstring是否支持期權交易. '0':false; '1':true
    > USDTPerpetualOpenLinestring限制USDT永續的開倉線
    > USDCContractOpenLinestring限制USDC合約的開倉線
    > USDCOptionsOpenLinestring限制期權的開倉線
    > USDTPerpetualCloseLinestring限制USDT永續的交易線
    > USDCContractCloseLinestring限制USDC合約的交易線
    > USDCOptionsCloseLinestring限制期權的交易線
    > USDCContractSymbolsarrayUSDC合約的白名單交易對
    • 若沒有配置白名單, 則是空數組[], 可以交易任何合約
    • 如果 supportUSDCContract="0", 則也是空數組[]
    > USDCOptionsSymbolsarray期權的白名單交易對
    • 若沒有配置白名單, 則是空數組[], 可以交易任何合約
    • 如果 supportUSDCOptions="0", 則也是空數組[]
    > marginLeveragestring全倉槓桿允許可開的最高槓桿
    > USDTPerpetualLeveragearrayObject
    • 如果 supportContract="0", 則返回空數組[]
    • 如果沒有配置USDT永續交易對白名單, 則返回所有的合約和槓桿
    • 如果有白名單配置, 則只返回白名單列表的合約和槓桿
    >> symbolstring合約名
    >> leveragestring最高可開槓桿
    > USDCContractLeveragearrayObject
    • 如果 supportUSDCContract="0", 則返回空數組[]
    • 如果沒有配置USDC合約交易對白名單, 則返回所有的合約和槓桿
    • 如果有白名單配置, 則只返回白名單列表的合約和槓桿
    >> symbolstring合約名
    >> leveragestring最高可開槓桿

    請求示例

    GET /v5/ins-loan/loan-order HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1678687874060
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "loanInfo": [
    {
    "orderId": "1468005106166530304",
    "orderProductId": "96",
    "parentUid": "1631521",
    "loanTime": "1689735916000",
    "loanCoin": "USDT",
    "loanAmount": "204",
    "unpaidAmount": "52.07924201",
    "unpaidInterest": "0",
    "repaidAmount": "151.92075799",
    "repaidInterest": "0",
    "interestRate": "0.00019178",
    "status": "1",
    "leverage": "4",
    "supportSpot": "1",
    "supportContract": "1",
    "withdrawLine": "",
    "transferLine": "",
    "spotBuyLine": "0.71",
    "spotSellLine": "0.71",
    "contractOpenLine": "0.71",
    "liquidationLine": "0.75",
    "stopLiquidationLine": "0.35000000",
    "contractLeverage": "7",
    "transferRatio": "1",
    "spotSymbols": [],
    "contractSymbols": [],
    "supportUSDCContract": "1",
    "supportUSDCOptions": "1",
    "USDTPerpetualOpenLine": "0.71",
    "USDCContractOpenLine": "0.71",
    "USDCOptionsOpenLine": "0.71",
    "USDTPerpetualCloseLine": "0.71",
    "USDCContractCloseLine": "0.71",
    "USDCOptionsCloseLine": "0.71",
    "USDCContractSymbols": [],
    "USDCOptionsSymbols": [],
    "deferredLiquidationLine":"",
    "deferredLiquidationTime":"",
    "marginLeverage": "4",
    "USDTPerpetualLeverage": [
    {
    "symbol": "SUSHIUSDT",
    "leverage": "7"
    },
    {
    "symbol": "INJUSDT",
    "leverage": "7"
    },
    {
    "symbol": "RDNTUSDT",
    "leverage": "7"
    },
    {
    "symbol": "ZRXUSDT",
    "leverage": "7"
    },
    {
    "symbol": "HIGHUSDT",
    "leverage": "7"
    },
    {
    "symbol": "WAVESUSDT",
    "leverage": "7"
    },
    ...
    {
    "symbol": "ACHUSDT",
    "leverage": "7"
    },
    {
    "symbol": "SUNUSDT",
    "leverage": "7"
    }
    ],
    "USDCContractLeverage": [
    {
    "symbol": "BTCPERP",
    "leverage": "8"
    },
    {
    "symbol": "BTC-Futures",
    "leverage": "8"
    },
    ...
    {
    "symbol": "ETH-Futures",
    "leverage": "8"
    },
    {
    "symbol": "SOLPERP",
    "leverage": "8"
    },
    {
    "symbol": "ETHPERP",
    "leverage": "8"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1689745773187
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/otc/ltv-convert.html b/zh-TW/v5/otc/ltv-convert.html index c837671894..51deb2aa17 100644 --- a/zh-TW/v5/otc/ltv-convert.html +++ b/zh-TW/v5/otc/ltv-convert.html @@ -4,13 +4,13 @@ 查詢風險率 | Bybit API Documentation - +

    查詢風險率

    HTTP 請求

    GET /v5/ins-loan/ltv-convert

    請求參數

    返回參數

    參數類型說明
    ltvInfoarrayObject
    > ltvstring風險率
  • 該數據是實時計算
  • 如果持有機構借貸, 強烈建議每秒查詢一次ltv。當達到0.9 (90%)時即觸發強平
  • > rststring剩餘清算時間(UTC 時間,以秒為單位)。 未觸發時顯示為空字串。
    > parentUidstring被指定綁定為機構借貸產品的風險單元Id
    > subAccountUidsarray綁定場外借貸產品的UID
    > unpaidAmountstring總負債 (USDT)
    > unpaidInfoarray負債明細
    >> tokenstring幣種
    >> unpaidQtystring未還本金
    >> unpaidIntereststring該字段無效, 暫時請忽略
    > balancestring總資產(保證金幣種資產折算為USDT資產). 可以參考這裡了解詳細計算
    > balanceInfoarray資產明細
    >> tokenstring保證金幣種
    >> pricestring保證金幣種價格
    >> qtystring保證金數量
    >> convertedAmountstring保證金折算金額

    請求示例

    GET /v5/ins-loan/ltv-convert HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686638165351
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "ltvInfo": [
    {
    "ltv": "0.75",
    "rst": "",
    "parentUid": "xxxxx",
    "subAccountUids": [
    "60568258"
    ],
    "unpaidAmount": "30",
    "unpaidInfo": [
    {
    "token": "USDT",
    "unpaidQty": "30",
    "unpaidInterest": "0"
    }
    ],
    "balance": "40",
    "balanceInfo": [
    {
    "token": "USDT",
    "price": "1",
    "qty": "40",
    "convertedAmount": "40"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686638166323
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/otc/margin-coin-convert-info.html b/zh-TW/v5/otc/margin-coin-convert-info.html index 8b394c6a1d..83341a2f90 100644 --- a/zh-TW/v5/otc/margin-coin-convert-info.html +++ b/zh-TW/v5/otc/margin-coin-convert-info.html @@ -4,13 +4,13 @@ 查詢保證金幣種信息 | Bybit API Documentation - +

    查詢保證金幣種信息

    提示
    • 該接口在不傳入api key和secret進行鑒權時, 則返回公共數據
    • 該接口在傳入api key和secret進行鑒權時且uid綁定了場外借貸產品, 則返回特定的保證金幣種數據

    HTTP 請求

    GET /v5/ins-loan/ensure-tokens-convert

    請求參數

    參數是否必須類型說明
    productIdfalsestring產品ID. 若不傳,則返回所有產品的保證金幣種信息. 現貨返回折算率大於0的幣種.

    返回參數

    參數類型說明
    marginTokenarrayObject
    > productIdstring產品ID
    > tokenInfoarray現貨保證金幣種信息
    >> tokenstring保證金幣種
    >> convertRatioListarray保證金幣種折算率列
    >>> ladderstring階梯
    >>> convertRatiostring折算率

    請求示例

    GET /v5/ins-loan/ensure-tokens HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "marginToken": [
    {
    "productId": "81",
    "tokenInfo": [
    {
    "token": "USDT",
    "convertRatioList": [
    {
    "ladder": "0-500",
    "convertRatio": "0.95"
    },
    {
    "ladder": "500-1000",
    "convertRatio": "0.9"
    },
    {
    "ladder": "1000-2000",
    "convertRatio": "0.8"
    },
    {
    "ladder": "2000-4000",
    "convertRatio": "0.7"
    },
    {
    "ladder": "4000-99999999999",
    "convertRatio": "0.6"
    }
    ]
    }
    ...
    ]
    },
    {
    "productId": "82",
    "tokenInfo": [
    ...
    {
    "token": "USDT",
    "convertRatioList": [
    {
    "ladder": "0-1000",
    "convertRatio": "0.7"
    },
    {
    "ladder": "1000-2000",
    "convertRatio": "0.65"
    },
    {
    "ladder": "2000-99999999999",
    "convertRatio": "0.6"
    }
    ]
    }
    ]
    },
    {
    "productId": "84",
    "tokenInfo": [
    ...
    {
    "token": "BTC",
    "convertRatioList": [
    {
    "ladder": "0-1000",
    "convertRatio": "1"
    },
    {
    "ladder": "1000-5000",
    "convertRatio": "0.9"
    },
    {
    "ladder": "5000-99999999999",
    "convertRatio": "0.55"
    }
    ]
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1683276016497
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/otc/margin-product-info.html b/zh-TW/v5/otc/margin-product-info.html index b0347d4506..6a69c3f5ef 100644 --- a/zh-TW/v5/otc/margin-product-info.html +++ b/zh-TW/v5/otc/margin-product-info.html @@ -4,13 +4,13 @@ 查詢產品信息 | Bybit API Documentation - +

    查詢產品信息

    提示
    • 該接口在不傳入api key和secret進行鑒權時, 則返回公共產品數據
    • 該接口在傳入api key和secret進行鑒權時且uid綁定了場外借貸產品, 則返回特定的產品數據

    HTTP 請求

    GET /v5/ins-loan/product-infos

    請求參數

    參數是否必須類型說明
    productIdfalsestring產品ID. 若不傳,則返回所有產品數據

    返回參數

    參數類型說明
    marginProductInfoarrayObject
    > productIdstring產品ID
    > leveragestring該借貸產品的最大槓桿倍數
    > supportSpotinteger是否支持現貨. 0:否; 1:是
    > supportContractinteger是否支持合約 . 0: 否; 1: 是
    > withdrawLinestring限制提幣線
    > transferLinestring限制劃轉線
    > spotBuyLinestring限制現貨買入線
    > spotSellLinestring限制現貨交易線
    > contractOpenLinestring限制合約開倉線
    > liquidationLinestring強平線
    > stopLiquidationLinestring停止強平線
    > contractLeveragestring允許USDT永續默認開倉倍數
    > transferRatiostring現貨帳戶到合約帳戶的借貸資金劃轉比例
    > spotSymbolsarray現貨交易對白名單. 若沒有配置白名單, 則返回[]
    > contractSymbolsarrayUSDT永續合約交易對白名單
    • 若沒有配置白名單, 則返回[]
    • 若supportContract="0", 則也是[]
    > supportUSDCContractinteger是否支持USDC合約交易. '0':否; '1':是
    > supportUSDCOptionsinteger是否支持期權交易. '0':false; '1':true
    > supportMarginTradinginteger是否支持現貨槓桿交易. 0: 否; 1: 是
    > deferredLiquidationLinestring延期清算線
    > deferredLiquidationTimestring延期清算時間
    > USDTPerpetualOpenLinestring限制USDT永續的開倉線
    > USDCContractOpenLinestring限制USDC合約的開倉線
    > USDCOptionsOpenLinestring限制期權的開倉線
    > USDTPerpetualCloseLinestring限制USDT永續的交易線
    > USDCContractCloseLinestring限制USDC合約的交易線
    > USDCOptionsCloseLinestring限制期權的交易線
    > USDCContractSymbolsarrayUSDC合約的白名單交易對
    • 若沒有配置白名單, 則是空數組[], 可以交易任何合約
    • 如果 supportUSDCContract="0", 則也是空數組[]
    > USDCOptionsSymbolsarray期權的白名單交易對
    • 若沒有配置白名單, 則是空數組[], 可以交易任何合約
    • 如果 supportUSDCOptions="0", 則也是空數組[]
    > marginLeveragestring全倉槓桿允許可開的最高槓桿
    > USDTPerpetualLeveragearrayObject
    • 如果 supportContract="0", 則返回空數組[]
    • 如果沒有配置USDT永續交易對白名單, 則返回所有的合約和槓桿
    • 如果有白名單配置, 則只返回白名單列表的合約和槓桿
    >> symbolstring合約名
    >> leveragestring最高可開槓桿
    > USDCContractLeveragearrayObject
    • 如果 supportUSDCContract="0", 則返回空數組[]
    • 如果沒有配置USDC合約交易對白名單, 則返回所有的合約和槓桿
    • 如果有白名單配置, 則只返回白名單列表的合約和槓桿
    >> symbolstring合約名
    >> leveragestring最高可開槓桿

    請求示例

    GET /v5/ins-loan/product-infos?productId=91 HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "marginProductInfo": [
    {
    "productId": "91",
    "leverage": "4.00000000",
    "supportSpot": 1,
    "supportContract": 0,
    "withdrawLine": "",
    "transferLine": "",
    "spotBuyLine": "",
    "spotSellLine": "",
    "contractOpenLine": "",
    "liquidationLine": "0.75",
    "stopLiquidationLine": "0.35000000",
    "contractLeverage": "0",
    "transferRatio": "0",
    "spotSymbols": [],
    "contractSymbols": [],
    "supportUSDCContract": 0,
    "supportUSDCOptions": 0,
    "USDTPerpetualOpenLine": "",
    "USDCContractOpenLine": "",
    "USDCOptionsOpenLine": "",
    "USDTPerpetualCloseLine": "",
    "USDCContractCloseLine": "",
    "USDCOptionsCloseLine": "",
    "USDCContractSymbols": [],
    "USDCOptionsSymbols": [],
    "marginLeverage": "0",
    "USDTPerpetualLeverage": [],
    "USDCContractLeverage": [],
    "deferredLiquidationLine":"",
    "deferredLiquidationTime":"",
    }
    ]
    },
    "retExtInfo": {},
    "time": 1689747746332
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/otc/repay-info.html b/zh-TW/v5/otc/repay-info.html index f830dac39a..a69fabc74b 100644 --- a/zh-TW/v5/otc/repay-info.html +++ b/zh-TW/v5/otc/repay-info.html @@ -4,13 +4,13 @@ 查詢還款信息 | Bybit API Documentation - +

    查詢還款信息

    提示
    • 默認查詢過去2年的數據
    • 最多支持查詢過去2年的數據

    HTTP 請求

    GET /v5/ins-loan/repaid-history

    請求參數

    參數是否必須類型說明
    startTimefalseinteger開始時間戳 (毫秒)
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger返回數量限制. [1, 100]. 默認: 100

    返回參數

    參數類型說明
    repayInfoarrayObject
    > repayOrderIdstring還款訂單號
    > repaidTimestring還款時間(毫秒)
    > tokenstring還款幣種
    > quantitystring還款本金
    > intereststring還款利息
    > businessTypestring還款類型. 1:正常還款; 2:系統強平還款
    > statusstring1:還款成功; 2:還款失敗

    Request Example

    GET /v5/ins-loan/repaid-history HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1678687944725
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXX

    Response Example

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "repayInfo": [
    {
    "repayOrderId": "8189",
    "repaidTime": "1663126393000",
    "token": "USDT",
    "quantity": "30000",
    "interest": "0",
    "businessType": "1",
    "status": "1"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1669366648366
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position.html b/zh-TW/v5/position.html index 1ed351517e..ffb160b888 100644 --- a/zh-TW/v5/position.html +++ b/zh-TW/v5/position.html @@ -4,14 +4,14 @@ 查詢持倉 (實時) | Bybit API Documentation - +

    查詢持倉 (實時)

    該接口可以獲取用戶的持倉信息,比如持倉數量,累計盈虧等

    信息

    統一帳戶2.0 - 查詢反向合約倉位

    1. 通過這種查詢方式 "/v5/position/list?category=inverse", 可以獲得所有持倉數據
    2. 不支持傳入多個symbol來查詢 關於反向合約的額外查詢規則,

    統一帳戶1.0 和 經典帳戶 - 查詢反向合約倉位

    1. 通過這樣子查詢"/v5/position/list?category=inverse", 您可以查詢到所有當前持有的反向合約倉位;
    2. symbol字段支持傳入最多10個反向合約, 比如 symbol=BTCUSD,ETHUSD,SOLUSD

    HTTP 請求

    GET /v5/position/list

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symbolfalsestring合約名稱
    • 若傳了symbol, 則不管是否有倉位都返回該symbol數據
    • symbol不傳但傳了settleCoin, 則僅返回有實際倉位的數據
    baseCoinfalsestring交易幣種, 若不傳, 則返回期權下所有持倉
    僅適用於option
    settleCoinfalsestring結算幣種
  • USDT和USDC期貨: symbolsettleCon必傳其中一個, 若都傳,則symbol有更高的優先級
  • limitfalseinteger每頁數量限制. [1, 200]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > positionIdxinteger倉位標識符, 用于在不同仓位模式下标识仓位
    > riskIdinteger风险限额ID, 參見風險限額接口
    若賬戶為組合保證金模式(PM), 該字段返回0, 風險限額規則失效
    > riskLimitValuestring當前風險限額ID對應的持倉限制量
    若賬戶為組合保證金模式(PM),該字段返回"", 風險限額規則失效
    > symbolstring合約名称
    > sidestring持倉方向, Buy: 多头; Sell: 空头.
    • 單向持倉: 經典帳戶 & 統一帳戶1.0(inverse), 空倉返回None.
    • 統一帳戶2.0和統一帳戶1.0(linear): 空倉時, 單向或者雙向持倉模式都返回空字符串 ""
    > sizestring當前倉位的合约數量, 總是正數
    > avgPricestring當前倉位的平均入場價格
  • 對於8小時結算的USDC合約倉位, 該字段表示的是平均開倉價格, 不隨著結算而改變
  • > positionValuestring仓位的價值
    > tradeModeinteger交易模式
    > autoAddMargininteger是否自動追加保證金, 反向合約不支持設置自動追加保證金
  • 0: 否
  • 1: 是
  • > positionStatusString倉位状态. Normal,Liq, Adl
    > leveragestring當前倉位的槓桿,仅适用于合约
    若賬戶為組合保證金模式(PM), 該字段返回空字符串, 槓桿規則失效
    > markPricestringsymbol 的最新標記價格
    > liqPricestring倉位強平價格
    • 對於統一帳戶2.0(逐倉), 統一帳戶1.0(逐倉), 統一帳戶1.0(反向合約), 經典帳戶:
      是逐倉和全倉持仓的真實價格, 當強平價 <= minPrice或者 強平價 >= maxPrice, 則為""
    • 對於統一帳戶2.0(全倉保證金), 統一帳戶1.0(全倉保證金):
      是全倉持仓的预估价格(因为统一帳戶模式是按照帳戶維度控制风险率), 當強平價 <= minPrice或者 強平價 >= maxPrice, 則為""
    對於組合保證金模式, 此字段為空, 不會提供強平價格
    > bustPricestring倉位破產價格
    > positionIMstring倉位起始保證金
  • 經典帳戶 & 統一帳戶1.0(inverse): 忽略該字段
  • 統一帳戶組合保證金模式(PM)下, 該字段返回為空字符串
  • > positionMMstring倉位維持保證金
  • 經典帳戶 & 統一帳戶1.0(inverse): 忽略該字段
  • 統一帳戶組合保證金模式(PM)下, 該字段返回為空字符串
  • > positionBalancestring倉位保證金
    經典帳戶 & 統一帳戶1.0(inverse)可以根據這個字段了解倉位初始保證金+平倉手續費
    > takeProfitstring止盈價格
    > stopLossstring止損價格
    > trailingStopstring追蹤止損(與當前價格的距離)
    > sessionAvgPricestringUSDC合約平均持倉價格, 會隨著8小時結算而變動
    > deltastringDelta
    > gammastringGamma
    > vegastringVega
    > thetastringTheta
    > unrealisedPnlstring未结盈亏
    > curRealisedPnlstring當前持倉的已結盈虧
    > cumRealisedPnlstring累计已结盈亏
    • 期貨: 是從第一次開始有持倉加總的已結盈虧
    • 期權: 總是"", 無意義
    > adlRankIndicatorinteger自動減倉燈. 什麼是自動減倉機制?
    > createdTimestring倉位創建時間
    > updatedTimestring倉位數據更新時間
    > seqlong序列號, 用於關聯成交和倉位的更新
    • 不同的幣對會存在相同seq, 可以使用seq + symbol來做唯一性識別
    • 如果該幣對從未被交易過, 查詢時則會返回"-1"
    • 對於更新槓桿、更新風險限額等非交易行為, 將會返回上一次成交時更新的seq
    > isReduceOnlyboolean僅當Bybit需要降低某個Symbol的風險限額時有用
    • true: 僅允許減倉操作. 您可以考慮一系列的方式, 比如, 降低risk limit檔位, 或者同檔位修改槓桿或減少倉位, 或者增加保證金, 或者撤單, 這些操作做完後, 可以主動調用確認新的風險限額接口
    • false(默認): 沒有交易限制, 表示您的倉位在系統調整時處於風險水平之下
    • 僅對逐倉和全倉的期貨倉位有意義
    > mmrSysUpdatedTimestring僅當Bybit需要降低某個Symbol的風險限額時有用
    • 當isReduceOnly=true: 這個時間戳表示系統強制修改MMR的時間
    • 當isReduceOnly=false: 若不為空, 則表示系統已經完成了MMR調整的時間
    • 僅當系統調整才會賦值, 對於主動的調整, 不會在這裡展示時間戳
    • 默認為"", 但如果曾經這個symbol有過系統降檔的操作, 那麼這裡會顯示上一次操作的時間
    • 僅對逐倉和全倉的期貨倉位有意義
    > leverageSysUpdatedTimestring僅當Bybit需要降低某個Symbol的風險限額時有用
    • 當isReduceOnly=true: 這個時間戳表示系統強制修改槓桿的時間
    • 當isReduceOnly=false: 若不為空, 則表示系統已經完成了槓桿調整的時間
    • 僅當系統調整才會賦值, 對於主動的調整, 不會在這裡展示時間戳
    • 默認為"", 但如果曾經這個symbol有過系統降檔的操作, 那麼這裡會顯示上一次操作的時間
    • 僅對逐倉和全倉的期貨倉位有意義
    > tpslModestring該字段廢棄, 無意義, 總是返回"Full". 期權總是返回""
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/position/list?category=linear&symbol=XRPUSDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672280218882
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "positionIdx": 0,
    "riskId": 1,
    "riskLimitValue": "150",
    "symbol": "BTCUSD",
    "side": "Sell",
    "size": "300",
    "avgPrice": "27464.50441675",
    "positionValue": "0.01092319",
    "tradeMode": 0,
    "positionStatus": "Normal",
    "autoAddMargin": 1,
    "adlRankIndicator": 2,
    "leverage": "10",
    "positionBalance": "0.00139186",
    "markPrice": "28224.50",
    "liqPrice": "",
    "bustPrice": "999999.00",
    "positionMM": "0.0000015",
    "positionIM": "0.00010923",
    "tpslMode": "Full",
    "takeProfit": "0.00",
    "stopLoss": "0.00",
    "trailingStop": "0.00",
    "unrealisedPnl": "-0.00029413",
    "sessionAvgPrice": "",
    "curRealisedPnl": "0.00013123",
    "cumRealisedPnl": "-0.00096902",
    "seq": 5723621632,
    "isReduceOnly": false,
    "mmrSysUpdateTime": "",
    "leverageSysUpdatedTime": "",
    "createdTime": "1676538056258",
    "updatedTime": "1697673600012"
    }
    ],
    "nextPageCursor": "",
    "category": "inverse"
    },
    "retExtInfo": {},
    "time": 1697684980172
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/auto-add-margin.html b/zh-TW/v5/position/auto-add-margin.html index df1dad62c0..a0834b08f1 100644 --- a/zh-TW/v5/position/auto-add-margin.html +++ b/zh-TW/v5/position/auto-add-margin.html @@ -4,13 +4,13 @@ 設置自動追加保證金 | Bybit API Documentation - +

    設置自動追加保證金

    開關自動追加保證金,僅適用於逐倉保證金模式

    HTTP 請求

    POST /v5/position/set-auto-add-margin

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    autoAddMargintrueinteger是否自動追加保證金. 0: 關閉. 1: 開啟
    positionIdxfalseinteger倉位標識,用於標識不同倉位, 雙向持倉模式下,該字段必傳
    • 0: 單向持倉模式
    • 1: 買側雙向持倉模式
    • 2: 賣側雙向持倉模式

    響應參數

    請求示例

    POST /v5/position/set-auto-add-margin HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675255134857
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "autoAddmargin": 1,
    "positionIdx": null
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1675255135069
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/close-pnl.html b/zh-TW/v5/position/close-pnl.html index 647058ab5d..caac73e8d9 100644 --- a/zh-TW/v5/position/close-pnl.html +++ b/zh-TW/v5/position/close-pnl.html @@ -4,13 +4,13 @@ 查詢平倉盈虧 | Bybit API Documentation - +

    查詢平倉盈虧

    獲取當前用戶的所有平倉盈虧數據,返回結果按照createdTime降序排列.

    信息
    • 經典帳戶: 返回結果按照updatedTime降序排列.
    • 統一帳戶2.0, 統一帳戶1.0(除了反向合約): 結果依createdTime降序排列,之後與經典帳戶一致
    • 統一帳戶支持查詢過去730天的平倉盈虧紀錄

    HTTP 請求

    GET /v5/position/closed-pnl

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symbolfalsestring合約名稱
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 7天
    • 若只傳startTime,則查詢startTime和startTime+7天的數據
    • 若只傳endTime,則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 100]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > orderIdstring訂單Id
    > sidestring買賣方向 Buy, Side
    > qtystring訂單數量
    > orderPricestring訂單價格
    > orderTypestring訂單類型. Market,Limit
    > execTypestring執行類型. Trade, BustTrade, SessionSettlePnL, Settle, MovePosition
    > closedSizestring平倉數量
    > cumEntryValuestring被平倉位的累計入場價值
    > avgEntryPricestring平均入場價格
    > cumExitValuestring被平倉位的累計出場價值
    > avgExitPricestring平均出場價格
    > closedPnlstring被平倉位的盈虧
    > fillCountstring成交筆數
    > leveragestring持倉槓桿
    > createdTimestring創建時間 (毫秒)
    > updatedTimestring更新時間 (毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/position/closed-pnl?category=linear&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672284128523
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "5a373bfe-188d-4913-9c81-d57ab5be8068%3A1672214887231423699%2C5a373bfe-188d-4913-9c81-d57ab5be8068%3A1672214887231423699",
    "category": "linear",
    "list": [
    {
    "symbol": "ETHPERP",
    "orderType": "Market",
    "leverage": "3",
    "updatedTime": "1672214887236",
    "side": "Sell",
    "orderId": "5a373bfe-188d-4913-9c81-d57ab5be8068",
    "closedPnl": "-47.4065323",
    "avgEntryPrice": "1194.97516667",
    "qty": "3",
    "cumEntryValue": "3584.9255",
    "createdTime": "1672214887231423699",
    "orderPrice": "1122.95",
    "closedSize": "3",
    "avgExitPrice": "1180.59833333",
    "execType": "Trade",
    "fillCount": "4",
    "cumExitValue": "3541.795"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672284129153
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/confirm-mmr.html b/zh-TW/v5/position/confirm-mmr.html index 5d90a70b37..0fdc7bb28f 100644 --- a/zh-TW/v5/position/confirm-mmr.html +++ b/zh-TW/v5/position/confirm-mmr.html @@ -4,14 +4,14 @@ 確認新的風險限額 | Bybit API Documentation - +

    確認新的風險限額

    僅適用於當用戶被標記為僅減倉 (請看持倉接口中的isReduceOnly字段) 時, 在用戶主動調整風險水位後, 調用該接口來試算調整後的風 險水平, 若通過(retCode=0), 則系統會移除僅減倉標記, 推薦自行再調用下倉位接口確認isReduceOnly字段是否變成false

    HTTP 請求

    POST /v5/position/confirm-pending-mmr

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    • 統一帳戶: linear, inverse
    • 經典帳戶: linear, inverse
    symboltruestring合約名稱

    響應參數

    請求示例

    POST /v5/position/confirm-pending-mmr HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1698051123673
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 53

    {
    "category": "linear",
    "symbol": "BTCUSDT"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1698051124588
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/cross-isolate.html b/zh-TW/v5/position/cross-isolate.html index 490aa6797b..f5967e63a1 100644 --- a/zh-TW/v5/position/cross-isolate.html +++ b/zh-TW/v5/position/cross-isolate.html @@ -4,13 +4,13 @@ 切換全倉/逐倉保證金(交易對) | Bybit API Documentation - +

    切換全倉/逐倉保證金(交易對)

    選擇全倉保證金或者是逐倉保證金,請參閱這裡了解關於全倉/逐倉保證金模式。

    HTTP 請求

    POST /v5/position/switch-isolated

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    tradeModetrueinteger0: 全倉. 1: 逐倉
    buyLeveragetruestring買側槓桿倍數. 必須與sellLeverage的值保持相同
    sellLeveragetruestring賣側槓桿倍數. 必須與buyLeverage的值保持相同

    響應參數

    請求示例

    POST /v5/position/switch-isolated HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN-TYPE: 2
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675248447965
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 121

    {
    "category": "linear",
    "symbol": "ETHUSDT",
    "tradeMode": 1,
    "buyLeverage": "10",
    "sellLeverage": "10"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1675248433635
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/leverage.html b/zh-TW/v5/position/leverage.html index 9f79d87ef6..5d02286b72 100644 --- a/zh-TW/v5/position/leverage.html +++ b/zh-TW/v5/position/leverage.html @@ -3,14 +3,14 @@ -設置槓桿 | Bybit API Documentation - +設置槓桿 | Bybit API Documentation +
    -

    設置槓桿

    HTTP 請求

    POST /v5/position/set-leverage

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    buyLeveragetruestring[1, 風險限額允許的最大槓桿數]
    • 單倉模式: 經典帳戶和統一帳戶的buyLeverage 必須等於sellLeverage
    • 雙倉模式:
      經典帳戶和統一帳戶(逐倉模式)buyLeverage可以與sellLeverage不想等;
      統一帳戶(全倉模式)的buyLeverage 必須等於sellLeverage
    sellLeveragetruestring[1, 風險限額允許的最大槓桿數]

    響應參數

    請求示例

    POST /v5/position/set-leverage HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672281605082
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "buyLeverage": "6",
    "sellLeverage": "6"

    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672281607343
    }
    - +

    設置槓桿

    信息

    根據風險限額, 槓桿影響最大可開數量, 即槓桿越大, 最大可開倉數量越小, 反之亦然。了解更多

    HTTP 請求

    POST /v5/position/set-leverage

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    buyLeveragetruestring[1, 最大槓桿數]
    • 單倉模式: 經典帳戶和統一帳戶的buyLeverage 必須等於sellLeverage
    • 雙倉模式:
      經典帳戶和統一帳戶(逐倉模式)buyLeverage可以與sellLeverage不想等;
      統一帳戶(全倉模式)的buyLeverage 必須等於sellLeverage
    sellLeveragetruestring[1, 最大槓桿數]

    響應參數

    請求示例

    POST /v5/position/set-leverage HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672281605082
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "buyLeverage": "6",
    "sellLeverage": "6"

    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672281607343
    }
    + \ No newline at end of file diff --git a/zh-TW/v5/position/manual-add-margin.html b/zh-TW/v5/position/manual-add-margin.html index 05c6c20490..f6e9268b8d 100644 --- a/zh-TW/v5/position/manual-add-margin.html +++ b/zh-TW/v5/position/manual-add-margin.html @@ -4,13 +4,13 @@ 手動增加或減少保證金 | Bybit API Documentation - +

    手動增加或減少保證金

    手動增加或減少保證金,僅適用於逐倉保證金模式

    HTTP 請求

    POST /v5/position/add-margin

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    margintruestring增加或減少的保證金金額. 增加, 則為正數, 比如10; 減少, 則為負數, 比如-10. 最多支持4位小數
    positionIdxfalseinteger倉位標識,用於標識不同倉位, 雙向持倉模式下,該字段必傳
    • 0: 單向持倉模式
    • 1: 買側雙向持倉模式
    • 2: 賣側雙向持倉模式

    響應參數

    參數類型說明
    categorystring產品類型
    symbolstring合約名称
    positionIdxinteger倉位標識符, 用于在不同仓位模式下标识仓位
    riskIdinteger风险限额ID,參見風險限額接口
    riskLimitValuestring當前風險限額ID對應的持倉限制量
    sizestring當前倉位的合约數量
    avgPricestring當前倉位的平均入場價格
    liqPricestring倉位強平價格
    bustPricestring倉位破產價格
    markPricestring最新標記價格
    positionValuestring仓位的價值
    leveragestring當前倉位的槓桿
    autoAddMargininteger是否自動追加保證金. 0: 否, 1: 是
    positionStatusString倉位状态. Normal, Liq, Adl
    positionIMstring倉位起始保證金
    positionMMstring倉位維持保證金
    takeProfitstring止盈價格
    stopLossstring止損價格
    trailingStopstring追蹤止損(與當前價格的距離)
    unrealisedPnlstring未结盈亏
    cumRealisedPnlstring累计已结盈亏
    createdTimestring倉位創建時間
    updatedTimestring倉位數據更新時間

    請求示例

    POST /v5/position/add-margin HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1684234363665
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 97

    {
    "category": "inverse",
    "symbol": "ETHUSD",
    "margin": "0.01",
    "positionIdx": 0
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "category": "inverse",
    "symbol": "ETHUSD",
    "positionIdx": 0,
    "riskId": 11,
    "riskLimitValue": "500",
    "size": "200",
    "positionValue": "0.11033265",
    "avgPrice": "1812.70004844",
    "liqPrice": "1550.80",
    "bustPrice": "1544.20",
    "markPrice": "1812.90",
    "leverage": "12",
    "autoAddMargin": 0,
    "positionStatus": "Normal",
    "positionIM": "0.01926611",
    "positionMM": "0",
    "unrealisedPnl": "0.00001217",
    "cumRealisedPnl": "-0.04618929",
    "stopLoss": "0.00",
    "takeProfit": "0.00",
    "trailingStop": "0.00",
    "createdTime": "1672737740039",
    "updatedTime": "1684234363788"
    },
    "retExtInfo": {},
    "time": 1684234363789
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/move-position-history.html b/zh-TW/v5/position/move-position-history.html index 302ea106e7..7978ae5b68 100644 --- a/zh-TW/v5/position/move-position-history.html +++ b/zh-TW/v5/position/move-position-history.html @@ -4,13 +4,13 @@ 查詢移倉歷史 | Bybit API Documentation - +

    查詢移倉歷史

    您可以通過使用母帳戶的api key查詢過去的移倉歷史紀錄

    信息

    本期暫不支持統一帳戶2.0 反向合約移倉

    HTTP 請求

    GET /v5/position/move-history

    請求參數

    參數是否必需類型說明
    categoryfalsestring產品類型
  • 統一帳戶2.0, 統一帳戶1.0: linear, spot, option
  • symbolfalsestring合約名稱/幣對名
    startTimefalsenumber創建訂單的開始時間戳 (毫秒), startTimeendTime的時間範圍是7天
    endTimefalsenumber創建訂單的結束時間戳 (毫秒), startTimeendTime的時間範圍是7天
    statusfalsestringOrder status. Processing, Filled, Rejected
    blockTradeIdfalsestring大宗交易訂單ID
    limitfalsestring每頁數量限制. [1, 200]. 默認: 20
    cursorfalsestring游標,用於翻頁. 請使用響應中的nextPageCursor的獲得下一頁

    響應參數

    參數類型說明
    listarrayObject
    > blockTradeIdstring大宗交易ID
    > categorystring產品類型
  • 統一帳戶2.0, 統一帳戶1.0: linear, spot, option
  • > orderIdstringBybit側的訂單ID
    > userIdinteger用戶ID
    > symbolstring合約名稱
    > sidestring從taker角度看的訂單方向. Buy, Sell
    > pricestring訂單價格
    > qtystring訂單數量
    > execFeestring成交費用
    > statusstring大宗交易訂單狀態. Processing, Filled, Rejected
    > execIdstring交易所側的成交ID
    > resultCodeinteger錯誤碼. 0表示成功
    > resultMessagestring錯誤信息. 當resultCode=0時, 則返回""
    > createdAtnumber訂單創建時間戳 (毫秒)
    > updatedAtnumber訂單更新時間戳 (毫秒)
    > rejectPartystring
    • ""表示初始校驗通過, 需要進一步通過查詢移倉歷史接口來確認最終狀態
    • Taker, Maker: 當status=Rejected返回
    • bybit表示處理過程中的錯誤發生在Bybit側
    nextPageCursorstring游標, 用於翻下一頁

    請求示例

    GET /v5/position/move-history?limit=1&status=Filled HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1697523024244
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "blockTradeId": "1a82e5801af74b67b7ad71ba00a7391a",
    "category": "option",
    "orderId": "8e09c5b8-f651-4cec-968d-52764cac11ec",
    "userId": 592324,
    "symbol": "BTC-14OCT23-27000-C",
    "side": "Buy",
    "price": "6",
    "qty": "0.99",
    "execFee": "0",
    "status": "Filled",
    "execId": "677ad344-6bb4-4ace-baca-128fcffcaca7",
    "resultCode": 0,
    "resultMessage": "",
    "createdAt": 1697186522865,
    "updatedAt": 1697186523289,
    "rejectParty": ""
    }
    ],
    "nextPageCursor": "page_token%3D1241742%26"
    },
    "retExtInfo": {},
    "time": 1697523024386
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/move-position.html b/zh-TW/v5/position/move-position.html index 005625792b..edbf43fb3c 100644 --- a/zh-TW/v5/position/move-position.html +++ b/zh-TW/v5/position/move-position.html @@ -4,13 +4,13 @@ 移倉 | Bybit API Documentation - +

    移倉

    您可以在同一個母子帳戶體系下移動期貨、期權的倉位, 以及現貨的幣幣交易

    信息

    暫不支持統一帳戶2.0 反向合約移倉

    信息
    • 該接口僅支持母帳戶的api key訪問
    • 移倉間的UID和調用者的UID必須是同一個母子帳戶體系
    • 該移倉生成的交易將不會出現在公有行情的成交中(包括Rest API和Websocket)
    • 該操作不會產生手續費
    • fromUidtoUid都必須是統一交易帳戶, 並且對於期貨而言, 倉位需要處於單向模式下
    • 請注意一旦成交, 查詢成交紀錄, 查詢平倉盈虧, 以及私有推送成交會返回execType=MovePosition的數據

    HTTP 請求

    POST /v5/position/move-positions

    請求參數

    參數是否必需類型說明
    fromUidtruestring原UID
    • 必須是統一交易帳戶
    • 期貨倉位必須有處於單向持倉模式
    toUidtruestring目標UID
    • 必須是統一交易帳戶
    • 期貨倉位必須有處於單向持倉模式
    listtruearrayObject. 單次請求最多支持25腿
    > categorytruestring產品類型
  • 統一帳戶2.0, 統一帳戶1.0: linear, spot, option
  • > symboltruestring合約名稱/幣對名
    > pricetruestring訂單價格
    > sidetruestringfromUid的交易方向
    • 例如, fromUid持有多倉, 如果選擇side=Sell, 則執行後, fromUid的多倉會被減倉或者開了空倉取決於qty的大小
    > qtytruestring交易數量

    響應參數

    參數類型說明
    retCodeinteger響應碼. 0表示請求被成功接受
    retMsgstring響應信息
    resultmapObject
    > blockTradeIdstring大宗交易訂單ID
    > statusstring訂單狀態. Processing, Rejected
    > rejectPartystring
    • ""表示初始校驗通過, 需要進一步通過查詢移倉歷史接口來確認最終狀態
    • Taker, Maker: 當status=Rejected返回
    • bybit表示處理過程中的錯誤發生在Bybit側

    請求示例

    POST /v5/position/move-positions HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1697447928051
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "fromUid": "100307601",
    "toUid": "592324",
    "list": [
    {
    "category": "spot",
    "symbol": "BTCUSDT",
    "price": "100",
    "side": "Sell",
    "qty": "0.01"
    }
    ]
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "blockTradeId": "e9bb926c95f54cf1ba3e315a58b8597b",
    "status": "Processing",
    "rejectParty": ""
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/position-mode.html b/zh-TW/v5/position/position-mode.html index 1f66ca362e..07486312b6 100644 --- a/zh-TW/v5/position/position-mode.html +++ b/zh-TW/v5/position/position-mode.html @@ -4,13 +4,13 @@ 切換持倉模式 | Bybit API Documentation - +

    切換持倉模式

    該接口支持切換USDT永續和反向交割的持倉模式。如果處於單向持倉模式下,您只能要麼持有多頭要麼空頭倉位;如果處於雙向持倉模式下,您可以同時持倉多頭和空頭的倉位。

    提示
    • 配置生效優先級: symbol > coin > 系統默認
    • 系統默認: 單向持倉
    • 如果請求是按幣種(settleCoin),則所有基於該settleCoin的交易品種沒有持倉和活動單的將被批量切換,並且基於該settleCoin的新上市交易品種將與您設置的模式相同。

    示例

    系統默認coinsymbol
    初始配置單向持倉未設置過未設置過
    生效結果所有USDT正向交易對都是單向持倉
    變更 1--BTCUSDT 設置為雙向持倉模式
    生效結果當前交易對BTCUSDT為雙向持倉,其他交易對都是單向持倉(繼承系統默認規則
    新上線交易對 ETHUSDT新上線的ETHUSDT為單向持倉 (繼承系統默認規則)
    變更 2-USDT 設置為雙向持倉-
    生效結果當前所有未持倉未有訂單的交易對都是雙向持倉,有持倉和有委託單的交易對不做調整
    新上線交易對 SOLUSDT新上線的SOLUSDT為雙向持倉 (繼承coin規則)
    變更 3--ASXUSDT 設置為單向持倉模式
    生效結果AXSUSDT為單向持倉模式,其餘交易對不做任何變更(繼承coin規則)
    新上線交易對 BITUSDT新上線的BITUSDT為雙向持倉 (繼承coin規則)

    當前合約單雙向持倉切換能力

    經典帳戶統一帳戶1.0統一帳戶2.0
    USDT 永續支持單雙向持倉支持單雙向持倉支持單雙向持倉
    USDC 永續僅支持單向持倉僅支持單向持倉僅支持單向持倉
    反向永續僅支持單向持倉僅支持單向持倉僅支持單向持倉
    反向交割支持單雙向持倉支持單雙向持倉僅支持單向持倉

    HTTP 请求

    POST /v5/position/switch-mode

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    • 統一帳戶2.0: linear, USDT 永续
    • 統一帳戶1.0: linear, USDT 永续; inverse, 反向交割
    • 经典账户: linear, USDT 永续; inverse, 反向交割
    symbolfalsestring合約名稱. symbolcoin必須傳其中一個. symbol有更高優先級
    coinfalsestring結算幣種
    modetrueinteger倉位模式. 0: 單向持倉. 3: 雙向持倉

    響應參數

    請求示例

    POST /v5/position/switch-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1675249072041
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 87

    {
    "category":"inverse",
    "symbol":"BTCUSDH23",
    "coin": null,
    "mode": 0
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1675249072814
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/set-risk-limit.html b/zh-TW/v5/position/set-risk-limit.html index 39dc6cd8ed..15d9ef428d 100644 --- a/zh-TW/v5/position/set-risk-limit.html +++ b/zh-TW/v5/position/set-risk-limit.html @@ -4,13 +4,13 @@ 設置風險限額 | Bybit API Documentation - +

    設置風險限額

    由於Bybit在2024年3月12日上線了自動調整risk limit功能, 詳情請見這裡, 因此儘管接口能調通, 但是沒有任何意義

    HTTP 請求

    POST /v5/position/set-risk-limit

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    • 統一帳戶: linear, inverse
    • 經典帳戶: linear, inverse. 這裡category字段不參與業務邏輯,僅做路由使用
    symboltruestring合約名稱
    riskIdtrueinteger風險限額Id
    positionIdxfalseinteger倉位標識,用於標識不同倉位, 雙向持倉模式下,該字段必傳
    • 0: 單向持倉模式
    • 1: 買側雙向持倉模式
    • 2: 賣側雙向持倉模式

    響應參數

    參數類型說明
    categorystring產品類型
    riskIdinteger風險限額Id
    riskLimitValuestring風險限額Id對應的風險限額

    請求示例

    POST /v5/position/set-risk-limit HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672282269774
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "riskId": 4,
    "positionIdx": null
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "riskId": 4,
    "riskLimitValue": "8000000",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1672282270571
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/tpsl-mode.html b/zh-TW/v5/position/tpsl-mode.html index 4acf20c70b..a2746c33b4 100644 --- a/zh-TW/v5/position/tpsl-mode.html +++ b/zh-TW/v5/position/tpsl-mode.html @@ -4,14 +4,14 @@ 設置止盈止損模式 | Bybit API Documentation - +

    設置止盈止損模式

    提示

    某種程度上來說,該接口已經廢棄, 原因在於新版的止盈止損機制是基於訂單維度. 這個接口當初主要是用於倉位維度的止盈止損

    但是, 您仍然可以使用該接口, 為某個合約設置一個隱式的止盈止損模式, 因為當您在下單接口或者設置止盈止損接口時, 不傳入字段"tpslMode"時, 系統將會獲取一個默認值, 該 默認值實際上是源於是否調用過該接口做過修改, 不曾修改過的symbol, 都是默認Full

    可以將止盈止損模式設置為部分止盈止損或者全部止盈止損

    信息

    在部分止盈止損下,您可以設置小於倉位大小的止盈止損數量

    HTTP 請求

    POST /v5/position/set-tpsl-mode

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    • 統一帳戶: linear, inverse
    • 經典帳戶: linear, inverse. 這裡category字段不參與業務邏輯,僅做路由使用
    symboltruestring合約名稱
    tpSlModetruestringTP/SL模式. Full,Partial

    響應參數

    參數類型說明
    tpSlModestringFull,Partial

    請求示例

    POST /v5/position/set-tpsl-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672279325035
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "symbol": "XRPUSDT",
    "category": "linear",
    "tpSlMode": "Full"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "tpSlMode": "Full"
    },
    "retExtInfo": {},
    "time": 1672279322666
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/position/trading-stop.html b/zh-TW/v5/position/trading-stop.html index cd3fa4aeca..872a079d3d 100644 --- a/zh-TW/v5/position/trading-stop.html +++ b/zh-TW/v5/position/trading-stop.html @@ -4,14 +4,14 @@ 設置止盈止損 | Bybit API Documentation - +

    設置止盈止損

    該接口可以設置止盈、止損和追蹤止損

    提示

    在提交請求後,系統內部將會自動創建對應類型的條件單。若倉位被平,系統將會調整相關條件訂單數量或者取消這些條件單。

    信息

    新版止盈止損, 支持既持有全部止盈止損單, 也可以持有部分止盈止損單

    • 全部倉位止盈止損單: 該接口可用於修改該類型的止盈止損單的參數
    • 部分倉位止盈止損單: 該接口僅能新增部分倉位止盈止損單
    備註

    新版止盈止損下, 調用該接口對持倉上的已有的止盈止損進行單邊止盈或者止損修改時, 會導致成對的tp/sl訂單失去綁定關係, 這意味著當通過tp/sl訂單ID調用 取消接口時, 只會取消對應訂單ID的單邊止盈或止損.

    HTTP 請求

    POST /v5/position/trading-stop

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
    symboltruestring合約名稱
    takeProfitfalsestring止盈價格. 等於0表示取消止盈,若不修改,則不要傳遞該參數
    stopLossfalsestring止損價格. 等於0表示取消止損,若不修改,則不要傳遞該參數
    trailingStopfalsestring追蹤止損, 僅支持按價差設置. 等於0表示取消追蹤止損,若不修改,則不要傳遞該參數
    tpTriggerByfalsestring止盈價格類型
    slTriggerByfalsestring止損價格類型
    activePricefalsestring追蹤止損激活價格. 追蹤止損會在到達該價格時觸發
    tpslModetruestring止盈止損模式. Full: 全部倉位止盈止損, Partial: 部分倉位止盈止損
    tpSizefalsestring止盈倉位數量. 僅部分止盈止損時有效. 注意: tpSize和slSize的數值必須相等
    slSizefalsestring止損倉位數量. 僅部分止盈止損時有效. 注意: tpSize和slSize的數值必須相等
    tpLimitPricefalsestring觸發止盈後轉換為限價單的價格
    僅tpslMode=Partial且tpOrderType=Limit時有效
    slLimitPricefalsestring觸發止損後轉換為限價單的價格
    僅tpslMode=Partial且slOrderType=Limit時有效
    tpOrderTypefalsestring止盈觸發後的訂單類型. Market(默認), Limit
    對於tpslMode=Full時, 僅支持tpOrderType=Market
    slOrderTypefalsestring止損觸發後的訂單類型. Market(默認), Limit
    對於tpslMode=Full時, 僅支持slOrderType=Market
    positionIdxtrueinteger倉位標識,用戶識別倉位.
    • 0: 單向持倉
    • 1: 買側雙向持倉
    • 2: 賣側雙向持倉

    響應參數

    請求示例

    POST /v5/position/trading-stop HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672283124270
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "category":"linear",
    "symbol": "XRPUSDT",
    "takeProfit": "0.6",
    "stopLoss": "0.2",
    "tpTriggerBy": "MarkPrice",
    "slTriggerBy": "IndexPrice",
    "tpslMode": "Partial",
    "tpOrderType": "Limit",
    "slOrderType": "Limit",
    "tpSize": "50",
    "tpLimitPrice": "0.57",
    "slLimitPrice": "0.21",
    "positionIdx": 0
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672283125359
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/pre-upgrade/close-pnl.html b/zh-TW/v5/pre-upgrade/close-pnl.html index 457627f88b..29f32ce65c 100644 --- a/zh-TW/v5/pre-upgrade/close-pnl.html +++ b/zh-TW/v5/pre-upgrade/close-pnl.html @@ -4,7 +4,7 @@ 查詢升級前平倉盈虧 | Bybit API Documentation - + @@ -13,7 +13,7 @@ 通過category=linear, 查詢到在經典帳戶期間產生的USDT永續數據
    通過category=inverse, 查詢到在經典帳戶或者統一帳戶1.0期間產生的反向合約數據

  • 統一帳戶1.0:
    通過category=linear, 查詢到在經典帳戶期間產生的USDT永續數據

  • HTTP 請求

    GET /v5/pre-upgrade/position/closed-pnl

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型
  • linear, inverse
  • symboltruestring合約名稱
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 7天
    • 若只傳startTime,則查詢startTime和startTime+7天的數據
    • 若只傳endTime,則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 100]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > orderIdstring訂單Id
    > sidestring買賣方向 Buy, Side
    > qtystring訂單數量
    > orderPricestring訂單價格
    > orderTypestring訂單類型. Market,Limit
    > execTypestring執行類型. Trade, BustTrade, SessionSettlePnL, Settle
    > closedSizestring平倉數量
    > cumEntryValuestring被平倉位的累計入場價值
    > avgEntryPricestring平均入場價格
    > cumExitValuestring被平倉位的累計出場價值
    > avgExitPricestring平均出場價格
    > closedPnlstring被平倉位的盈虧
    > fillCountstring成交筆數
    > leveragestring持倉槓桿
    > createdTimestring創建時間 (毫秒)
    > updatedTimestring更新時間 (毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/pre-upgrade/position/closed-pnl?category=linear&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682580911998
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "BTCUSDT",
    "orderId": "67836246-460e-4c52-a009-af0c3e1d12bc",
    "side": "Sell",
    "qty": "0.200",
    "orderPrice": "27203.40",
    "orderType": "Market",
    "execType": "Trade",
    "closedSize": "0.200",
    "cumEntryValue": "5588.88",
    "avgEntryPrice": "27944.40",
    "cumExitValue": "5726.4252",
    "avgExitPrice": "28632.13",
    "closedPnl": "204.25510011",
    "fillCount": "22",
    "leverage": "10",
    "createdTime": "1682487465732",
    "updatedTime": "1682487465732"
    }
    ],
    "category": "linear",
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1682580912259
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/pre-upgrade/delivery.html b/zh-TW/v5/pre-upgrade/delivery.html index 7f7837497e..5d465fd007 100644 --- a/zh-TW/v5/pre-upgrade/delivery.html +++ b/zh-TW/v5/pre-upgrade/delivery.html @@ -4,7 +4,7 @@ 查詢升級前期權交割紀錄 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    查詢升級前期權交割紀錄

    查詢升級到統一帳戶之前發生的期權的交割紀錄, 返回結果按照deliveryTime降序排列

    • 統一帳戶2.0:
      通過category=option, 查詢到在經典帳戶期間產生的期權交割數據

    • 統一帳戶1.0:
      通過category=option, 查詢到在經典帳戶期間產生的期權交割數據

    信息

    僅支持查詢最近6個月的數據, 對於更老的數據, 請前往網頁端下載

    HTTP 請求

    GET /v5/pre-upgrade/asset/delivery-record

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. option
    symbolfalsestring合約名稱
    expDatefalsestring過期日. 格式示例: 25MAR22. 默認: 返回所有日期數據
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > deliveryTimenumber交割時間戳 (毫秒)
    > symbolstring合約名稱
    > sidestringBuy,Sell
    > positionstring交割數量
    > deliveryPricestring交割價格
    > strikestring行權價
    > feestring手續費,正數表支出,負數表收取
    > deliveryRplstring交割已實現盈虧
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/pre-upgrade/asset/delivery-record?category=option HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686809005774
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "21%3A0%2C21%3A0",
    "category": "option",
    "list": [
    {
    "symbol": "ETH-14JUN23-1750-C",
    "side": "Buy",
    "deliveryTime": 1686729604507,
    "strike": "1750",
    "fee": "0",
    "position": "0.5",
    "deliveryPrice": "1740.25036667",
    "deliveryRpl": "0.175"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686796328492
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/pre-upgrade/execution.html b/zh-TW/v5/pre-upgrade/execution.html index da1f7526f6..f0cb5f876b 100644 --- a/zh-TW/v5/pre-upgrade/execution.html +++ b/zh-TW/v5/pre-upgrade/execution.html @@ -4,7 +4,7 @@ 查詢升級前成交紀錄 | Bybit API Documentation - + @@ -17,7 +17,7 @@ 通過category=linear, 查詢到在經典帳戶期間產生的USDT永續, USDC永續數據
    通過category=spot, 查詢到在經典帳戶期間產生的現貨數據
    通過category=option, 查詢到在經典帳戶期間產生的期權數據

    信息

    USDC永續和期權僅支持查詢最近6個月的數據, 對於更老的數據, 請前往網頁端下載

    HTTP 請求

    GET v5/pre-upgrade/execution/list

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型 linear, inverse, option, spot
    symbolfalsestring合約名稱
    orderIdfalsestring訂單ID
    orderLinkIdfalsestring用戶自定義訂單ID
    baseCoinfalsestring交易幣種. 僅期權使用
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 7天
    • 若只傳startTime,則查詢startTime和startTime+7天的數據
    • 若只傳endTime,則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    execTypefalsestring執行類型
    limitfalseinteger每頁數量限制. [1, 100]. 默認: 50
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > orderIdstring訂單Id
    > orderLinkIdstring用戶自定義訂單id
    > sidestring訂單方向.買: Buy,賣:Sell
    > orderPricestring訂單價格
    > orderQtystring訂單數量
    > leavesQtystring剩餘委託未成交數量
    > orderTypestring訂單類型. 市價單:Market,限價單:Limit
    > stopOrderTypestring条件单的订单类型。如果该订单不是条件单,则不会返回任何类型
    > execFeestring交易手續費
    > execIdstring成交Id
    > execPricestring成交價格
    > execQtystring成交數量
    > execTypestring交易類型
    > execValuestring成交價值
    > execTimestring成交時間(毫秒)
    > isMakerBool是否是 Maker 訂單,true 為 maker 訂單,false 為 taker 訂單
    > feeRatestring手續費率
    > tradeIvstring隱含波動率,僅期權有效
    > markIvstring標記價格的隱含波動率,僅期權有效
    > markPricestring成交執行時,該 symbol 當時的標記價格
    > indexPricestring成交執行時,該 symbol 當時的指數價格,目前僅對期權業務有效
    > underlyingPricestring成交執行時,該 symbol 當時的底層資產價格,僅期權有效
    > blockTradeIdstring大宗交易的订单 ID ,使用 paradigm 进行大宗交易时生成的 ID
    > closedSizestring平倉數量
    nextPageCursorstring游標,用於翻頁

    Request Example

    GET /v5/pre-upgrade/execution/list?category=linear&limit=1&execType=Funding&symbol=BTCUSDT HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682580752432
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "symbol": "BTCUSDT",
    "orderId": "1682553600-BTCUSDT-592334-Sell",
    "orderLinkId": "",
    "side": "Sell",
    "orderPrice": "0.00",
    "orderQty": "0.000",
    "leavesQty": "0.000",
    "orderType": "UNKNOWN",
    "stopOrderType": "UNKNOWN",
    "execFee": "0.6364003",
    "execId": "11f1c4ed-ff20-4d73-acb7-96e43a917f25",
    "execPrice": "28399.90",
    "execQty": "0.011",
    "execType": "Funding",
    "execValue": "312.3989",
    "execTime": "1682553600000",
    "isMaker": false,
    "feeRate": "0.00203714",
    "tradeIv": "",
    "markIv": "",
    "markPrice": "28399.90",
    "indexPrice": "",
    "underlyingPrice": "",
    "blockTradeId": "",
    "closedSize": "0.000"
    }
    ],
    "nextPageCursor": "page_token%3D96184191%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1682580752717
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/pre-upgrade/order-list.html b/zh-TW/v5/pre-upgrade/order-list.html index 941e696125..8146e969fa 100644 --- a/zh-TW/v5/pre-upgrade/order-list.html +++ b/zh-TW/v5/pre-upgrade/order-list.html @@ -4,7 +4,7 @@ 查詢升級前訂單紀錄 | Bybit API Documentation - + @@ -17,7 +17,7 @@ 通過category=linear, 查詢到在經典帳戶期間產生的USDT永續, USDC永續數據
    通過category=spot, 查詢到在經典帳戶期間產生的現貨數據
    通過category=option, 查詢到在經典帳戶期間產生的期權數據

    信息
    • 7天內, 可以查詢到全狀態的紀錄
    • 7天外, 僅能查詢到已成交的紀錄
    • USDC永續和期權僅支持查詢最近6個月的數據, 對於更老的數據, 請前往網頁端下載

    HTTP 請求

    GET /v5/pre-upgrade/order/history

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear, inverse, option, spot
    symbolfalsestring合約名稱.
    • 對於linear, 如果不傳symbol, 默認返回數據是結算幣種=USDT
    • 要查詢USDC永續, 請傳遞對應的合約名稱
    baseCoinfalsestring交易幣種. 期權的預留字段
    orderIdfalsestring訂單ID
    orderLinkIdfalsestring用戶自定義訂單ID
    orderFilterfalsestringOrder: 普通單, StopOrder: 條件單
    orderStatusfalsestring訂單狀態. 不支持現貨
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 7天
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > orderIdstring訂單Id
    > orderLinkIdstring用戶自定義Id
    > blockTradeIdstring大宗交易訂單Id
    > symbolstring合約名稱
    > pricestring訂單價格
    > qtystring訂單數量
    > sidestring方向. Buy,Sell
    > isLeveragestring該字段對升級前的帳戶訂單無意義
    > positionIdxinteger倉位標識。用戶不同倉位模式
    > orderStatusstring訂單狀態
    > cancelTypestring訂單被取消類型
    > rejectReasonstring拒絕原因
    > avgPricestring訂單平均成交價格. 若沒有成交,則返回"", 以及部分成交但最終被手動取消的訂單
    > leavesQtystring訂單剩餘未成交的數量
    > leavesValuestring訂單剩餘未成交的價值
    > cumExecQtystring訂單累計成交數量
    > cumExecValuestring訂單累計成交價值
    > cumExecFeestring訂單累計成交的手續費
    > timeInForcestring執行策略
    > orderTypestring訂單類型. Market,Limit
    > stopOrderTypestring條件單類型
    > orderIvstring隱含波動率
    > triggerPricestring觸發價格. 若stopOrderType=TrailingStop, 則這是激活價格. 否則, 它是觸發價格
    > takeProfitstring止盈價格
    > stopLossstring止損價格
    > tpTriggerBystring觸發止盈的價格類型
    > slTriggerBystring觸發止損的價格類型
    > triggerDirectioninteger觸發方向. 1: 上漲, 2: 下跌
    > triggerBystring觸發價格的觸發類型
    > lastPriceOnCreatedstring下單時的市場價格
    > reduceOnlyboolean只減倉. true表明這是只減倉單
    > closeOnTriggerboolean觸發後平倉委託. 什麼是觸發後平倉委託?
    > placeTypestring下單類型, 僅期權使用. iv, price
    > smpTypestringSMP執行類型
    > smpGroupinteger所屬Smp組ID. 如果uid不屬於任何組, 則默認為0
    > smpOrderIdstring觸發此SMP執行的交易對手的 orderID
    > createdTimestring創建訂單的時間戳 (毫秒)
    > updatedTimestring訂單更新的時間戳 (毫秒)
    nextPageCursorstring游標,用於翻頁

    Request Example

    GET /v5/pre-upgrade/order/history?category=linear&limit=1&orderStatus=Filled HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1682576940304
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "orderId": "67836246-460e-4c52-a009-af0c3e1d12bc",
    "orderLinkId": "",
    "blockTradeId": "",
    "symbol": "BTCUSDT",
    "price": "27203.40",
    "qty": "0.200",
    "side": "Sell",
    "isLeverage": "",
    "positionIdx": 0,
    "orderStatus": "Filled",
    "cancelType": "UNKNOWN",
    "rejectReason": "EC_NoError",
    "avgPrice": "28632.126000",
    "leavesQty": "0.000",
    "leavesValue": "0",
    "cumExecQty": "0.200",
    "cumExecValue": "5726.4252",
    "cumExecFee": "3.43585512",
    "timeInForce": "IOC",
    "orderType": "Market",
    "stopOrderType": "UNKNOWN",
    "orderIv": "",
    "triggerPrice": "0.00",
    "takeProfit": "0.00",
    "stopLoss": "0.00",
    "tpTriggerBy": "UNKNOWN",
    "slTriggerBy": "UNKNOWN",
    "triggerDirection": 0,
    "triggerBy": "UNKNOWN",
    "lastPriceOnCreated": "0.00",
    "reduceOnly": true,
    "closeOnTrigger": true,
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "createdTime": "1682487465732",
    "updatedTime": "1682487465735",
    "placeType": ""
    }
    ],
    "nextPageCursor": "page_token%3D69406%26",
    "category": "linear"
    },
    "retExtInfo": {},
    "time": 1682576940540
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/pre-upgrade/settlement.html b/zh-TW/v5/pre-upgrade/settlement.html index d0c0b6d490..aebca17fcf 100644 --- a/zh-TW/v5/pre-upgrade/settlement.html +++ b/zh-TW/v5/pre-upgrade/settlement.html @@ -4,7 +4,7 @@ 查詢升級前USDC結算紀錄 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    查詢升級前USDC結算紀錄

    查詢升級到統一帳戶之前發生的USDC永續的結算紀錄

    • 統一帳戶2.0:
      通過category=linear, 查詢到在經典帳戶期間產生的USDC永續結算數據

    • 統一帳戶1.0:
      通過category=linear, 查詢到在經典帳戶期間產生的USDC永續結算數據

    信息

    僅支持查詢最近6個月的數據, 對於更老的數據, 請前往網頁端下載

    HTTP 請求

    GET /v5/pre-upgrade/asset/settlement-record

    請求參數

    參數是否必需類型說明
    categorytruestring產品類型. linear
    symbolfalsestring合約名稱
    limitfalseinteger每頁數量限制. [1, 50]. 默認: 20
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    categorystring產品類型
    listarrayObject
    > symbolstring合約名稱
    > sidestringBuy,Sell
    > sizestring倉位大小
    > sessionAvgPricestring結算價格
    > markPricestring標記價格
    > realisedPnlstring已實現盈虧
    > createdTimestring結算時間 (毫秒)
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/pre-upgrade/asset/settlement-record?category=linear&symbol=ETHPERP&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686809850982
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "25%3A0%2C25%3A0",
    "category": "linear",
    "list": [
    {
    "realisedPnl": "45.76",
    "symbol": "ETHPERP",
    "side": "Sell",
    "markPrice": "1668.44",
    "size": "-0.5",
    "createdTime": "1686787200000",
    "sessionAvgPrice": "1668.41"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686809851749
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/pre-upgrade/transaction-log.html b/zh-TW/v5/pre-upgrade/transaction-log.html index 64627ae66d..3e35bc41fe 100644 --- a/zh-TW/v5/pre-upgrade/transaction-log.html +++ b/zh-TW/v5/pre-upgrade/transaction-log.html @@ -4,7 +4,7 @@ 查詢升級前交易日誌 | Bybit API Documentation - + @@ -14,7 +14,7 @@ 通過category=option, 查詢到在經典帳戶期間產生的期權交易日誌數據

  • 統一帳戶1.0:
    通過category=linear, 查詢到在經典帳戶期間產生的USDC永續交易日誌數據
    通過category=option, 查詢到在經典帳戶期間產生的期權交易日誌數據

  • 信息

    USDC永續和期權僅支持查詢最近6個月的數據, 對於更老的數據, 請前往網頁端下載

    HTTP 請求

    GET /v5/pre-upgrade/account/transaction-log

    請求參數

    參數是否必需類型說明
    categorytruestring交易產品類型. linear: USDC永續, option: 期權
    baseCoinfalsestring交易幣種. 例如: BTCUSDT 的 baseCoin 是 BTC
    typefalsestring交易日誌的類型
    startTimefalseinteger開始時間戳 (毫秒)
    • startTime 和 endTime都不傳入, 則默認返回最近7天的數據
    • startTime 和 endTime都傳入的話, 則確保endTime - startTime <= 7天
    • 若只傳startTime,則查詢startTime和startTime+7天的數據
    • 若只傳endTime,則查詢endTime-7天和endTime的數據
    endTimefalseinteger結束時間戳 (毫秒)
    limitfalseinteger每頁數量, 最大50. 默認每頁20條
    cursorfalsestring游標,用於翻頁

    響應參數

    參數類型說明
    listarrayObject
    > symbolstring合約名稱
    > categorystring產品類型
    > sidestring方向. Buy,Sell,None
    > transactionTimestring交易時間戳(毫秒)
    > typestring類型
    > qtystring數量
    > sizestring倉位
    > currencystringUSDC、USDT、BTC、ETH
    > tradePricestring交易價格
    > fundingstring資金費用. 正數表示用戶收取xx資金費,負數表示用戶支出xx資金費
    > feestring手續費,正數表示用戶付出xx手續費,負數表示返佣
    > cashFlowstring現金流
    > changestring變更
    > cashBalancestring餘額(當前幣種)
    > feeRatestring
    • 對於type=TRADE, 則表示交易手續費率
    • 對於type=SETTLEMENT, 則表示資金費率. 當side=Buy, feeRate=市場結算費率; 當side=Sell, feeRate=-市場結算費率
    > bonusChangestring體驗金的變化
    > tradeIdstring交易id
    > orderIdstring訂單id
    > orderLinkIdstring用戶自定義訂單id
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/pre-upgrade/account/transaction-log?category=option HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686808288265
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "21%3A0%2C21%3A0",
    "list": [
    {
    "symbol": "ETH-14JUN23-1750-C",
    "side": "Buy",
    "funding": "",
    "orderLinkId": "",
    "orderId": "",
    "fee": "0",
    "change": "0",
    "cashFlow": "0",
    "transactionTime": "1686729604507",
    "type": "DELIVERY",
    "feeRate": "0",
    "bonusChange": "",
    "size": "0",
    "qty": "0.5",
    "cashBalance": "1001.1438885",
    "currency": "USDC",
    "category": "option",
    "tradePrice": "1740.25036667",
    "tradeId": ""
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686809006792
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/rate-limit.html b/zh-TW/v5/rate-limit.html index 3b22ebea28..8fd0e1c1a9 100644 --- a/zh-TW/v5/rate-limit.html +++ b/zh-TW/v5/rate-limit.html @@ -4,7 +4,7 @@ 頻率限制 | Bybit API Documentation - + @@ -13,7 +13,7 @@ 仍被禁止,則您可能會被永久禁止。

    我們不建議您在這些限制的邊緣運行您的應用程序,以防異常的網絡活動導致意外違規。

    • GET/POST 請求 (共享):
      • 任意連續 5 秒的滾動窗口內不超過 600 個請求
    備註

    所有到api.bybit.comapi.bytick.com的流量共享此限制,無論是訪問現貨、期貨還是期權。

    違反限制後,您的 IP 將被禁止一段時間(通常為 30 分鐘)。 持續違反限制將導致永久禁止。 我們不能撤銷永久禁令或縮短臨時禁令。

    賬戶頻率限製

    警告

    如果您收到這樣的響應"ret_msg": "Too many visits!", 則表示您觸發了帳戶頻率限制, 請等到頻率限制重置以後, 再繼續發送請求。

    Bybit基於每秒鍾的滾動時間窗口來做頻率限製,並且是按賬戶(uid)來做劃分限製,每次請求API響應頭(response header)中都會包含如下字段:

    • X-Bapi-Limit-Status - 該接口當前時間窗口剩余可用請求數
    • X-Bapi-Limit - 該接口當前頻率限製上限
    • X-Bapi-Limit-Reset-Timestamp - 如果您已超過該接口當前窗口頻率限製,該字段表示下個可用時間窗口的時間戳(毫秒),即什麽時候可以恢復訪問;如果您未超過該接口當前窗口頻率限製,該字段表示返回的是當前服務器時間(毫秒).

    Http 響應頭示例

    ▶Response Headers
    Content-Type: application/json; charset=utf-8
    Content-Length: 141
    X-Bapi-Limit: 100
    X-Bapi-Limit-Status: 99
    X-Bapi-Limit-Reset-Timestamp: 1672738134824

    接口頻率限制表

    交易

    請求方式路徑經典帳戶是否可提頻
    inverselinearspot
    POST/v5/order/create10/s20/sY
    /v5/order/amend10/s10/sY
    /v5/order/cancel10/s20/sY
    /v5/order/cancel-all10/s20/sN
    GET/v5/order/realtime10/s20/sN
    /v5/order/history10/s20/sN
    /v5/execution/list10/s20/sN

    持倉

    請求方式路徑經典帳戶是否可提頻
    inverselinearspot
    GET/v5/position/list10/s-N
    /v5/position/closed-pnl10/s-N
    POST/v5/position/set-leverage10/s-N

    账户

    請求方式路徑頻率是否可提頻
    GET/v5/account/contract-transaction-log10/sN
    /v5/account/wallet-balanceaccountType=SPOT20/sN
    accountType=CONTRACT10/sN
    /v5/account/fee-ratecategory=linear10/sN
    category=spot5/sN
    category=option5/sN

    資產

    請求方式路徑頻率是否可提頻
    GET/v5/asset/transfer/query-asset-info60 req/minN
    /v5/asset/transfer/query-transfer-coin-list60 req/minN
    /v5/asset/transfer/query-inter-transfer-list60 req/minN
    /v5/asset/transfer/query-sub-member-list60 req/minN
    /v5/asset/transfer/query-universal-transfer-list5 req/sN
    /v5/asset/transfer/query-account-coins-balance5 req/sN
    /v5/asset/deposit/query-record100 req/minN
    /v5/asset/deposit/query-sub-member-record300 req/minN
    /v5/asset/deposit/query-address300 req/minN
    /v5/asset/deposit/query-sub-member-address300 req/minN
    /v5/asset/withdraw/query-record300 req/minN
    /v5/asset/coin/query-info5 req/sN
    /v5/asset/exchange/order-record600 req/minN
    POST/v5/asset/transfer/inter-transfer60 req/minN
    /v5/asset/transfer/save-transfer-sub-member20 req/sN
    /v5/asset/transfer/universal-transfer5 req/sN
    /v5/asset/withdraw/create1 req/sN
    /v5/asset/withdraw/cancel60 req/minN

    用戶

    請求方式路徑頻率是否可提頻
    POSTv5/user/create-sub-member5 req/sN
    /v5/user/create-sub-api5 req/sN
    /v5/user/frozen-sub-member5 req/sN
    /v5/user/update-api5 req/sN
    /v5/user/update-sub-api5 req/sN
    /v5/user/delete-api5 req/sN
    /v5/user/delete-sub-api5 req/sN
    GET/v5/user/query-sub-members10 req/sN
    /v5/user/query-api10 req/sN
    /v5/user/aff-customer-info10 req/sN

    槓桿代幣

    請求方式路徑頻率是否可提頻
    GET/v5/spot-lever-token/order-record50 req/sN
    POST/v5/spot-lever-token/purchase20 req/sN
    POST/v5/spot-lever-token/redeem20 req/sN

    全倉槓桿 (統一帳戶)

    目前,該目錄下的接口沒有頻率限制

    全倉槓桿 (經典帳戶)

    請求方式路徑頻率是否可提頻
    GET/v5/spot-cross-margin-trade/loan-info50 req/sN
    GET/v5/spot-cross-margin-trade/account50 req/sN
    GET/v5/spot-cross-margin-trade/orders50 req/sN
    GET/v5/spot-cross-margin-trade/repay-history50 req/sN
    POST/v5/spot-cross-margin-trade/loan20 req/sN
    POST/v5/spot-cross-margin-trade/repay20 req/sN
    POST/v5/spot-cross-margin-trade/switch20 req/sN

    不同VIP/PRO等級的接口限頻規則

    信息
    • 表格中的數值,代表對應等級的可申請上限,並不代表處於該等級的用戶實際默認自動享有對應的API Rate Limit
    • 經典帳戶不支持交易USDC衍生品
    批量接口特別說明

    批次訂單接口(包括創建、修改和取消)的速率限制不會與單一的下改撤請求共享。例如,單一下單接口頻率是100/秒, 批量下單接口是100/秒,,那麼當結合兩個接口一起下單時, 就擁有200單每秒的能力

    僅category=linear或spot時

    • 批量下單的接口,api rate limit:接口的頻次,還是統一沿用當前配置,但是計數消耗會根據實際的訂單數來消耗。(消耗數 = 請求數 * 請求中包含的訂單數),業務線配置相互獨立。

    • 批量接口允許1-10orders/request,例如,批量下單請求一次,包含5個orders,則本次請求limit數量消耗5。

    • 若1s內的最後一次請求的批量訂單,部分超限,則超過的部分會失敗(報錯超過上限),未超過的部分會成功。例如,這1s中,limit還剩5,但是此時下了一個包含8個orders的批量請求, 那麼前5個orders會下單成功,第6-8的orders,會報錯超過上限,下單失敗。

    經典帳戶UTA Pro
    等級\產品期貨期權現貨期貨期權現貨
    默認10/s10/s20/s10/s10/s20/s
    VIP 120/s20/s25/s20/s20/s25/s
    VIP 240/s40/s30/s40/s40/s30/s
    VIP 360/s60/s40/s60/s60/s40/s
    VIP 460/s60/s40/s60/s60/s40/s
    VIP 560/s60/s40/s60/s60/s40/s
    至尊VIP60/s60/s40/s60/s60/s40/s
    PRO1100/s100/s50/s150/s150/s150/s
    PRO2150/s150/s75/s200/s200/s200/s
    PRO3200/s200/s100/s250/s250/s250/s
    PRO4200/s200/s100/s300/s300/s300/s
    PRO5200/s200/s100/s300/s300/s300/s
    PRO6200/s200/s100/s300/s300/s300/s

    如何提高頻率限製

    請聯繫您的客戶經理或者發送郵件到 institutional_services@bybit.com,我們會在 1-4 個工作日內答復。郵件內容必須包含以下內容:

    1. 您的姓名和公司名稱和簡介
    2. 您的bybit 賬號uid或註冊郵箱手機號,以及您要申請提頻的交易對
    3. 您上個月的交易量(吃單/掛單)並提供截圖
    4. 簡單介紹您的交易策略和為什麽需要更高限頻
    5. 如果可以,請提供您的成交記錄csv文檔
    - + \ No newline at end of file diff --git a/zh-TW/v5/smp.html b/zh-TW/v5/smp.html index 584268334d..02c33777de 100644 --- a/zh-TW/v5/smp.html +++ b/zh-TW/v5/smp.html @@ -4,7 +4,7 @@ 自成交攔截 | Bybit API Documentation - + @@ -13,7 +13,7 @@ 基於這點,我們強烈建議在SMP交易群組發生變更時,最好取消所有現有訂單,以避免意外執行。

    1. SMP交易群組在SMP執行中具有較高優先級,當任何一方沒有群組時,UID才會生效。

    2. 一旦訂單進入訂單簿,其 smp 標誌就不再重要。系統始終遵循後一個訂單的smp標籤。

    示例
    1月1日:UID1加入SMP交易群組A,並下訂單1;
    1月2日:UID1被從SMP交易群組A中移除,但訂單1仍然處於活躍狀態且為“新”狀態。

    • 情況1:如果UID1加入了SMP交易群組B並下了訂單2,如果訂單2與訂單1相符,它將被執行,因為它們屬於兩個不同的群組。
    • 情況2:如果UID1在被從SMP交易群組A中移除後沒有加入任何其他群組並下了訂單2,如果訂單2與訂單1相符,SMP將被觸發,因為UID1在下訂單2時沒有群組,所以SMP在UID級別(同一個UID1)被觸發。

    如何管理我的UID及SMP交易群組?

    您可以聯繫您的機構業務經理或通過電子郵件聯繫Bybit,電子郵件地址為: institutional_services@bybit.com

    支持的OpenAPI版本和產品線

    產品線支持的OpenAPI版本說明
    現貨V3 (經典帳戶)
    V5 (統一帳戶&經典帳戶)
    合約合約V3 (經典帳戶): USDT永續 / 反向永續&交割
    V5 (統一帳戶): USDT永續 / 反向永續&交割 / USDC永續 & 交割
    V5 (經典帳戶): USDT永續 / 反向永續 & 交割
    期權V5 (統一帳戶)V1有基於UID維度的SMP功能
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/account-info.html b/zh-TW/v5/spot-margin-normal/account-info.html index f5f1fd5514..725b7604b0 100644 --- a/zh-TW/v5/spot-margin-normal/account-info.html +++ b/zh-TW/v5/spot-margin-normal/account-info.html @@ -4,13 +4,13 @@ 查詢借貸帳戶信息 | Bybit API Documentation - +

    查詢借貸帳戶信息

    覆蓋範圍: 全倉槓桿 (經典帳戶)

    HTTP 請求

    GET /v5/spot-cross-margin-trade/account

    請求參數

    響應參數

    參數類型說明
    acctBalanceSumstring總資產 (折算成BTC)
    debtBalanceSumstring總負債 (折算成BTC)
    loanAccountListarrayObject
    > freestring可用餘額
    > intereststring未還利息
    > loanstring未還本金
    > remainAmountstring總未還金額 = 未還利息 + 未還本金
    > lockedstring鎖定金額
    > tokenIdstring幣種
    > totalstring合計
    riskRatestring風險率
    statusinteger借貸帳戶狀態
    • 1: 正常
    • 2: 限制提幣/劃轉
    • 3: 預警
    • 4: 已爆倉
    switchStatusinteger全倉槓桿狀態 0: 關閉, 1: 開啟

    請求示例

    GET /v5/spot-cross-margin-trade/account HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677751305868
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "acctBalanceSum": "0.455189592150138021",
    "debtBalanceSum": "0",
    "loanAccountList": [
    {
    "free": "0.01444",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "BTC",
    "total": "0.01444"
    },
    {
    "free": "0.21147048",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "ETH",
    "total": "0.21147048"
    },
    {
    "free": "7963.58978991849",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "USDT",
    "total": "7963.58978991849"
    },
    {
    "free": "1380.28832",
    "interest": "0",
    "loan": "0",
    "locked": "0",
    "remainAmount": "0",
    "tokenId": "USDC",
    "total": "1380.28832"
    }
    ],
    "riskRate": "0",
    "status": 1,
    "switchStatus": 1
    },
    "retExtInfo": {},
    "time": 1677751306287
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/borrow-order.html b/zh-TW/v5/spot-margin-normal/borrow-order.html index 51d12efe1e..1e3f99b1f4 100644 --- a/zh-TW/v5/spot-margin-normal/borrow-order.html +++ b/zh-TW/v5/spot-margin-normal/borrow-order.html @@ -4,13 +4,13 @@ 查詢借貸訂單 | Bybit API Documentation - +

    查詢借貸訂單

    覆蓋範圍: 全倉槓桿 (經典帳戶)

    HTTP 請求

    GET /v5/spot-cross-margin-trade/orders

    請求參數

    參數是否必需類型說明
    startTimefalselong開始時間戳 (毫秒)
    endTimefalselong結束時間戳 (毫秒)
    coinfalsestring幣種名稱
    statusfalseinteger訂單狀態
    • 0(默認):查詢所有狀態
    • 1:查詢未還清
    • 2:查詢已還清
    limitfalseinteger每頁數量限制. [1, 500]. 默認: 500

    響應參數

    參數類型說明
    listarrayObject
    > accountIdstring帳戶ID
    > coinstring幣種名稱
    > createdTimenumber借貸訂單創建時間戳 (毫秒)
    > idstring借貸交易ID
    > interestAmountstring總利息
    > interestBalancestring未還利息
    > loanAmountstring借貸金額
    > loanBalancestring未還本金
    > remainAmountstring未還金額總和=未還利息+未還本金
    > statusinteger訂單狀態 1:未還清, 2:已還清
    > typeinteger訂單類型 1: 手動借貸, 2: 自動借貸

    請求示例

    GET /v5/spot-cross-margin-trade/orders?coin=ETH&limit=1&status=2 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677754328650
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "accountId": "592335",
    "coin": "ETH",
    "createdTime": 1677751839000,
    "id": "21005",
    "interestAmount": "0.0001",
    "interestBalance": "0",
    "loanAmount": "10",
    "loanBalance": "0",
    "remainAmount": "0",
    "status": 2,
    "type": 1
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677754329096
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/borrow.html b/zh-TW/v5/spot-margin-normal/borrow.html index c814a9c5bc..b2857da79d 100644 --- a/zh-TW/v5/spot-margin-normal/borrow.html +++ b/zh-TW/v5/spot-margin-normal/borrow.html @@ -4,13 +4,13 @@ 借款 | Bybit API Documentation - +

    借款

    覆蓋範圍: 全倉槓桿 (經典帳戶)

    HTTP 請求

    POST /v5/spot-cross-margin-trade/loan

    請求參數

    參數是否必需類型說明
    cointruestring幣種名稱
    qtytruestring借貸金額

    響應參數

    參數類型說明
    transactIdstring借款交易ID

    請求示例

    POST /v5/spot-cross-margin-trade/loan HTTP/1.1
    Host: api-testnet.bybit.com
    Content-Type: application/json
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677751838628
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Length: 38

    {
    "coin": "ETH",
    "qty": "10"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "transactId": "21005"
    },
    "retExtInfo": {},
    "time": 1677751839688
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/borrowable-data.html b/zh-TW/v5/spot-margin-normal/borrowable-data.html index 6f0f950874..699ce0aa77 100644 --- a/zh-TW/v5/spot-margin-normal/borrowable-data.html +++ b/zh-TW/v5/spot-margin-normal/borrowable-data.html @@ -4,13 +4,13 @@ 查詢可借幣種精度 | Bybit API Documentation - +

    查詢可借幣種精度

    信息

    不需要鑒權

    HTTP 請求

    GET /v5/spot-cross-margin-trade/borrow-token

    請求參數

    參數是否必需類型說明
    coinfalsestring幣種名稱

    響應參數

    參數類型說明
    listarrayObject
    > coinstring幣種名稱
    > borrowingPrecisioninteger借款精度
    > repaymentPrecisioninteger還款精度

    請求示例

    GET /v5/spot-cross-margin-trade/borrow-token?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "borrowingPrecision": 5,
    "coin": "ETH",
    "repaymentPrecision": 4
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677750685331
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/interest-quota.html b/zh-TW/v5/spot-margin-normal/interest-quota.html index 8a29524d38..e270aea3d9 100644 --- a/zh-TW/v5/spot-margin-normal/interest-quota.html +++ b/zh-TW/v5/spot-margin-normal/interest-quota.html @@ -4,13 +4,13 @@ 查詢利率及額度 | Bybit API Documentation - +

    查詢利率及額度

    覆蓋範圍: 全倉槓桿 (經典帳戶)

    HTTP 請求

    GET /v5/spot-cross-margin-trade/loan-info

    請求參數

    參數是否必需類型說明
    cointruestring幣種名稱

    響應參數

    參數類型說明
    coinstring幣種名稱
    interestRatestring基礎日利率
    loanAbleAmountstring預估可借最大金額
    maxLoanAmountstring平台設置的用戶最大可借金額

    請求示例

    GET /v5/spot-cross-margin-trade/loan-info?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677750928871
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "coin": "ETH",
    "interestRate": "0.000054835",
    "loanAbleAmount": "19.220442066850037795",
    "maxLoanAmount": "300"
    },
    "retExtInfo": {},
    "time": 1677750929290
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/margin-data.html b/zh-TW/v5/spot-margin-normal/margin-data.html index 6ccce320bc..52a20eb004 100644 --- a/zh-TW/v5/spot-margin-normal/margin-data.html +++ b/zh-TW/v5/spot-margin-normal/margin-data.html @@ -4,13 +4,13 @@ 查詢保證金幣種信息 | Bybit API Documentation - +

    查詢保證金幣種信息

    信息

    不需要鑒權

    HTTP 請求

    GET /v5/spot-cross-margin-trade/pledge-token

    請求參數

    參數是否必需類型說明
    coinfalsestring幣種名稱

    響應參數

    參數類型說明
    listarrayObject
    > coinstring幣種名稱
    > conversionRatestring折算率, 返回為實際數值
    > liquidationOrderinteger強平順序

    請求示例

    GET /v5/spot-cross-margin-trade/pledge-token?coin=ETH HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "coin": "ETH",
    "conversionRate": "0.95",
    "liquidationOrder": 2
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677750397414
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/repay-order.html b/zh-TW/v5/spot-margin-normal/repay-order.html index 9aa3769803..e18b88f523 100644 --- a/zh-TW/v5/spot-margin-normal/repay-order.html +++ b/zh-TW/v5/spot-margin-normal/repay-order.html @@ -4,13 +4,13 @@ 查詢還款訂單信息 | Bybit API Documentation - +

    查詢還款訂單信息

    覆蓋範圍: 全倉槓桿 (經典帳戶)

    HTTP 請求

    GET /v5/spot-cross-margin-trade/repay-history

    請求參數

    參數是否必需類型說明
    startTimefalselong開始時間戳 (毫秒)
    endTimefalselong結束時間戳 (毫秒)
    coinfalsestring幣種信息
    limitfalseinteger每頁數量限制. [1, 500], 默認: 500

    響應參數

    參數類型說明
    listarrayObject
    > accountIdstring帳戶ID
    > coinstring幣種信息
    > repaidAmountstring還款金額
    > repayIdstring還款交易ID
    > repayMarginOrderIdstring還款單號
    > repayTimestring還款交易時間戳 (毫秒)
    > transactIdsarrayObject
    >> repaidIntereststring該筆還款訂單的利息還款金額
    >> repaidPrincipalstring該筆還款訂單的本金還款金額
    >> repaidSerialNumberstring借貸訂單的還款單號
    >> transactIdstring原始借貸交易ID

    請求示例

    GET /v5/spot-cross-margin-trade/repay-history?coin=ETH&limit=1 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1677755884678
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "list": [
    {
    "accountId": "592335",
    "coin": "ETH",
    "repaidAmount": "10.0001",
    "repayId": "19070",
    "repayMarginOrderId": "1367476828218072576",
    "repayTime": "1677751941000",
    "transactIds": [
    {
    "repaidAmount": "10.0001",
    "repaidInterest": "0.0001",
    "repaidPrincipal": "10",
    "repaidSerialNumber": "1367475973544746496",
    "transactId": "21005"
    }
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1677755885169
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/repay.html b/zh-TW/v5/spot-margin-normal/repay.html index 1e48ecd759..ad4562a50d 100644 --- a/zh-TW/v5/spot-margin-normal/repay.html +++ b/zh-TW/v5/spot-margin-normal/repay.html @@ -4,13 +4,13 @@ 還款 | Bybit API Documentation - +

    還款

    覆蓋範圍: 全倉槓桿 (經典帳戶)

    HTTP 請求

    POST /v5/spot-cross-margin-trade/repay

    請求參數

    參數是否必需類型說明
    cointruestring幣種名稱
    qtyfalsestring還款金額
    • completeRepayment=0時, qty必傳
    • completeRepayment=1時, qty無效
    completeRepaymentfalseinteger是否一鍵全部還款. 0(默認): 否, 1: 是

    響應參數

    參數類型說明
    repayIdstring還款交易ID

    請求示例

    POST /v5/spot-cross-margin-trade/repay HTTP/1.1
    Host: api-testnet.bybit.com
    Content-Type: application/json
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677751944347
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Length: 66

    {
    "coin": "ETH",
    "qty": null,
    "completeRepayment": 1
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "repayId": "19070"
    },
    "retExtInfo": {},
    "time": 1677751941219
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/switch-mode.html b/zh-TW/v5/spot-margin-normal/switch-mode.html index a566d20072..00e992cc4d 100644 --- a/zh-TW/v5/spot-margin-normal/switch-mode.html +++ b/zh-TW/v5/spot-margin-normal/switch-mode.html @@ -4,13 +4,13 @@ 全倉槓桿開關 | Bybit API Documentation - +

    全倉槓桿開關

    開啟或關閉全倉槓桿交易

    覆蓋範圍: 全倉槓桿 (經典帳戶)

    HTTP 請求

    POST /v5/spot-cross-margin-trade/switch

    請求參數

    參數是否必需類型說明
    switchtrueinteger1: 開啟, 0: 關閉

    響應參數

    參數類型說明
    switchStatusinteger槓桿交易狀態. 1: 開啟, 0: 關閉

    請求示例

    POST /v5/spot-cross-margin-trade/switch HTTP/1.1
    Host: api-testnet.bybit.com
    Content-Type: application/json
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1677747804512
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Length: 19

    {
    "switch": 0
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "switchStatus": 0
    },
    "retExtInfo": {},
    "time": 1677747804974
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-normal/vip-margin.html b/zh-TW/v5/spot-margin-normal/vip-margin.html index 2c99aa7c22..f6ac6f5a70 100644 --- a/zh-TW/v5/spot-margin-normal/vip-margin.html +++ b/zh-TW/v5/spot-margin-normal/vip-margin.html @@ -4,13 +4,13 @@ 查詢不同VIP的槓桿數據 | Bybit API Documentation - +

    查詢不同VIP的槓桿數據

    查詢經典帳戶下不同VIP等級的槓桿數據

    信息

    不需要鑒權

    HTTP 請求

    GET /v5/spot-cross-margin-trade/data

    請求參數

    參數是否必需類型說明
    vipLevelfalsestringVIP 等級
    currencyfalsestring幣種名稱

    響應參數

    參數類型說明
    vipCoinListarrayObject
    > listarrayObject
    >> borrowableboolean幣種是否支持借貸
    >> collateralRatiostring抵押率
    >> currencystring幣種名稱
    >> hourlyBorrowRatestring每小時借貸利率
    >> liquidationOrderstring強平順序
    >> marginCollateralboolean幣種是否支持作為保證金
    >> maxBorrowingAmountstring最大借貸額度
    > vipLevelstringVIP 等級

    請求示例

    GET /v5/spot-cross-margin-trade/data?vipLevel=No VIP&currency=BTC HTTP/1.1
    Host: api.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "borrowable": true,
    "collateralRatio": "0.95",
    "currency": "BTC",
    "hourlyBorrowRate": "0.000003964522",
    "liquidationOrder": "2",
    "marginCollateral": true,
    "maxBorrowingAmount": "5"
    }
    ],
    "vipLevel": "No VIP"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1692071381663
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-uta/historical-interest.html b/zh-TW/v5/spot-margin-uta/historical-interest.html index ffca82ad29..98cf681f04 100644 --- a/zh-TW/v5/spot-margin-uta/historical-interest.html +++ b/zh-TW/v5/spot-margin-uta/historical-interest.html @@ -4,13 +4,13 @@ 查詢借貸歷史利率 | Bybit API Documentation - +

    查詢借貸歷史利率

    您可以查詢最多過去6個月的借貸利率數據

    信息
    • 需要鑒權, API密鑰需要有"現貨"權限
    • 僅支持統一帳戶訪問
    • 返回的是公共數據, i.e., 不同用戶在查詢相同的vip等級時, 拿到的是相同的歷史利率

    HTTP 請求

    GET /v5/spot-margin-trade/interest-rate-history

    請求參數

    參數是否必需類型說明
    currencytruestring幣種名稱, 必須大寫
    vipLevelfalsestringVIP等級
  • 請注意對於"No VIP", 需要傳入"No%20VIP"
  • 若不傳, 則返回匹配您帳戶等級的數據
  • startTimefalseinteger開始時間戳 (毫秒)
  • 兩個時間參數要麼都傳要麼都不傳
  • 當都不傳時, 默認返回過去7天的數據
  • 當都傳時, 最多支持30天的時間跨度
  • endTimefalseinteger結束時間戳 (毫秒)

    響應參數

    參數類型說明
    listarray<object>
    > timestamplong時間
    > currencystring幣種名稱
    > hourlyBorrowRatestring每小時利率
    > vipLevelstringVIP等級

    請求示例

    GET /v5/spot-margin-trade/interest-rate-history?currency=USDC&vipLevel=No%20VIP&startTime=1721458800000&endTime=1721469600000 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1721891663064
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "list": [
    {
    "timestamp": 1721469600000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    },
    {
    "timestamp": 1721466000000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    },
    {
    "timestamp": 1721462400000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    },
    {
    "timestamp": 1721458800000,
    "currency": "USDC",
    "hourlyBorrowRate": "0.000014621596",
    "vipLevel": "No VIP"
    }
    ]
    },
    "retExtInfo": "{}",
    "time": 1721899048991
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-uta/set-leverage.html b/zh-TW/v5/spot-margin-uta/set-leverage.html index 5d14576946..e66345e234 100644 --- a/zh-TW/v5/spot-margin-uta/set-leverage.html +++ b/zh-TW/v5/spot-margin-uta/set-leverage.html @@ -4,13 +4,13 @@ 全倉槓桿設置 | Bybit API Documentation - +

    全倉槓桿設置

    全倉槓桿設置用戶最大槓桿倍數

    覆蓋範圍: 全倉槓桿 (統一帳戶)

    警告

    需要先開啟全倉槓桿,才能調整槓桿。

    HTTP 請求

    POST /v5/spot-margin-trade/set-leverage

    請求參數

    參數是否必需類型說明
    leveragetruestring槓桿倍數 (整數), 支持區間 [2, 10]

    響應參數

    請求示例

    POST /v5/spot-margin-trade/set-leverage HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672299806626
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "leverage": "4"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1672710944282
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-uta/status.html b/zh-TW/v5/spot-margin-uta/status.html index e04218ee21..f7c6fac093 100644 --- a/zh-TW/v5/spot-margin-uta/status.html +++ b/zh-TW/v5/spot-margin-uta/status.html @@ -4,13 +4,13 @@ 查詢開關狀態和倍數 | Bybit API Documentation - +

    查詢開關狀態和倍數

    查詢統一帳戶下槓桿交易的開關狀態和槓桿倍數

    覆蓋範圍: 全倉槓桿 (統一帳戶)

    HTTP 請求

    GET /v5/spot-margin-trade/state

    請求參數

    響應參數

    參數類型說明
    spotLeveragestring槓桿倍數. 如果處於關閉狀態的話, 則返回 ""
    spotMarginModestring開關狀態. 1: 開啟, 0: 關閉
    effectiveLeveragestring實際借貸槓桿倍數。 精度保留2位小數,向下截取

    請求示例

    GET /v5/spot-margin-trade/state HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1692696840996
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "spotLeverage": "10",
    "spotMarginMode": "1",
    "effectiveLeverage": "1"
    },
    "retExtInfo": {},
    "time": 1692696841231
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-uta/switch-mode.html b/zh-TW/v5/spot-margin-uta/switch-mode.html index 84eba03f3e..3c40658114 100644 --- a/zh-TW/v5/spot-margin-uta/switch-mode.html +++ b/zh-TW/v5/spot-margin-uta/switch-mode.html @@ -4,13 +4,13 @@ 全倉槓桿開關 | Bybit API Documentation - +

    全倉槓桿開關

    全倉槓桿開關

    覆蓋範圍: 全倉槓桿 (統一帳戶)

    警告

    您的帳戶需要先開啟全倉槓桿

    HTTP 請求

    POST /v5/spot-margin-trade/switch-mode

    請求參數

    參數是否必需類型說明
    spotMarginModetruestring1: 開啟,0: 關閉

    響應參數

    參數類型說明
    spotMarginModestring全倉槓桿狀態(1: 開啟,0: 關閉)

    請求示例

    POST /v5/spot-margin-trade/switch-mode HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672297794480
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "spotMarginMode": "0"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "spotMarginMode": "0"
    },
    "retExtInfo": {},
    "time": 1672297795542
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/spot-margin-uta/vip-margin.html b/zh-TW/v5/spot-margin-uta/vip-margin.html index 129d892214..c09e4e2f00 100644 --- a/zh-TW/v5/spot-margin-uta/vip-margin.html +++ b/zh-TW/v5/spot-margin-uta/vip-margin.html @@ -4,13 +4,13 @@ 查詢不同VIP的槓桿數據 | Bybit API Documentation - +

    查詢不同VIP的槓桿數據

    查詢統一帳戶下不同VIP等級的槓桿數據

    信息

    不需要鑒權

    HTTP 請求

    GET /v5/spot-margin-trade/data

    請求參數

    參數是否必需類型說明
    vipLevelfalsestringVIP 等級
    currencyfalsestring幣種名稱

    響應參數

    參數類型說明
    vipCoinListarrayObject
    > listarrayObject
    >> borrowableboolean幣種是否支持借貸
    >> collateralRatiostring抵押率
    >> currencystring幣種名稱
    >> hourlyBorrowRatestring每小時借貸利率
    >> liquidationOrderstring強平順序
    >> marginCollateralboolean幣種是否支持作為保證金
    >> maxBorrowingAmountstring最大借貸額度
    > vipLevelstringVIP 等級

    請求示例

    GET /v5/spot-margin-trade/data?vipLevel=No VIP&currency=BTC HTTP/1.1
    Host: api-testnet.bybit.com

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "vipCoinList": [
    {
    "list": [
    {
    "borrowable": true,
    "collateralRatio": "0.95",
    "currency": "BTC",
    "hourlyBorrowRate": "0.0000015020640000",
    "liquidationOrder": "11",
    "marginCollateral": true,
    "maxBorrowingAmount": "3"
    }
    ],
    "vipLevel": "No VIP"
    }
    ]
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/affiliate-info.html b/zh-TW/v5/user/affiliate-info.html index 0c1718bd06..b162ffd2eb 100644 --- a/zh-TW/v5/user/affiliate-info.html +++ b/zh-TW/v5/user/affiliate-info.html @@ -4,14 +4,14 @@ 查詢代理用戶信息 | Bybit API Documentation - +

    查詢代理用戶信息

    要使用此接口,您应该有一个代理商账户,并且在创建 API 密钥时仅勾选“代理商”权限。
    代理商网站: https://affiliates.bybit.com

    提示
    • 僅支持使用母帳戶uid
    • 若要查詢該接口, api key僅能擁有代理商權限, 若擁有任何其他權限想, 請移除
    • 交易量和入金金額為用戶在Bybit上的總量,與結傭無關,任何結傭相關的交易量數據,以Affiliate Portal為準。

    HTTP 請求

    GET /v5/user/aff-customer-info

    請求參數

    參數是否必須類型說明
    uidtruestring被代理用戶的母帳戶uid

    返回參數

    參數類型說明
    uidstring帳戶uid
    vipLevelstringVIP等級
    takerVol30Daystring過去30天的吃單交易量. 單位: USDT. 所有下方交易量相關的字段, 包含了期貨、期權和現貨的交易量
    makerVol30Daystring過去30天的掛單交易量. 單位: USDT
    tradeVol30Daystring過去30天的總交易量. 單位: USDT
    depositAmount30Daystring過去30天的入金金額. 單位: USDT
    takerVol365Daystring過去一年的吃單交易量. 單位: USDT
    makerVol365Daystring過去一年的掛單交易量. 單位: USDT
    tradeVol365Daystring過去一年的總交易量. 單位: USDT
    depositAmount365Daystring過去一年的總入金金額. 單位: USDT
    totalWalletBalancestring資產餘額區間
    • 1: 少於100 USDT的價值
    • 2: 100(含) ~ 250 USDT的價值
    • 3: 250(含) ~ 500 USDT的價值
    • 4: 大於 500USDT的價值
    depositUpdateTimestring入金數據更新時間. UTC時間
    volUpdateTimestring交易量數據更新時間. UTC時間
    KycLevelintegerKYC等級. 0, 1, 2

    請求示例

    GET /v5/user/aff-customer-info?uid=1513500 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: uQ61dcX0lSe7ygD2EA
    X-BAPI-TIMESTAMP: 1685596324209
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: xxxxxx
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "uid": "1513500",
    "takerVol30Day": "10",
    "makerVol30Day": "20",
    "tradeVol30Day": "30",
    "depositAmount30Day": "90",
    "takerVol365Day": "100",
    "makerVol365Day": "500",
    "tradeVol365Day": "600",
    "depositAmount365Day": "1300",
    "totalWalletBalance": "4",
    "depositUpdateTime": "2023-06-01 05:12:04",
    "vipLevel": "99",
    "volUpdateTime": "2023-06-02 00:00:00",
    "KycLevel": 1
    },
    "retExtInfo": {},
    "time": 1685596324508
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/apikey-info.html b/zh-TW/v5/user/apikey-info.html index ab0f72e2b1..b2fd730cad 100644 --- a/zh-TW/v5/user/apikey-info.html +++ b/zh-TW/v5/user/apikey-info.html @@ -4,13 +4,13 @@ 查詢API Key相關信息 | Bybit API Documentation - +

    查詢API Key相關信息

    獲取API key的相關信息。使用待查詢的api key調用接口。適用於母、子帳戶的api key。

    提示

    任意權限可以訪問該接口

    HTTP 請求

    GET /v5/user/query-api

    請求參數

    返回參數

    參數類型說明
    idstring唯一id. 內部使用
    notestring備註
    apiKeystringApi key
    readOnlyinteger0:可讀可寫. 1:只讀
    secretstring總是""
    permissionsObject權限類型
    > ContractTradearray合約交易的權限 Order, Position
    > Spotarray現貨交易的權限 SpotTrade
    > Walletarray錢包的權限 AccountTransfer, SubMemberTransfer(母帳戶), SubMemberTransferList(子帳戶), Withdraw(母帳戶)
    > OptionsarrayUSDC合約的權限. 該權限支持USDC合約下的期權和永續交易 OptionsTrade
    > Derivativesarray
  • 統一交易帳戶的默認勾選權限
  • 經典帳戶總是[]
  • > CopyTradingarray總是[], 因為帶單帳戶現在只需要通過ContractTrade權限項來進行API帶單
    > BlockTradearray大宗交易的權限. 子帳戶暫不支持,總是[]
    > Exchangearray兌換的權限 ExchangeHistory
    > NFTarrayNFT的權限 NFTQueryProductList. 子帳戶暫不支持, 總是[]
    > Affiliatearray代理商權限. 僅代理商可以擁有此權限, 否則總是[]
    ipsarray綁定的IP
    typeintegerApi key類型. 1:個人使用, 2:綁定到第三方應用
    deadlineDayintegerAPI key失效的倒數日. 針對那些未綁定IP的api key或者修改過密碼的帳戶
    expiredAtdatetimeAPI key的過期日. 針對那些未綁定IP的api key或者修改過密碼的帳戶
    createdAtdatetimeAPI key的創建日
    unifiedinteger該字段已廢棄
    utaintegerAPI Key所屬的帳戶是否為統一交易帳戶. 0:經典帳戶; 1:統一交易账户
    userIDinteger用戶 ID
    inviterIDinteger邀請人 ID(邀請該賬號加入平台的賬號的UID)
    vipLevelstringVIP用戶等級
    mktMakerLevelstringmarket maker等級
    affiliateIDinteger代理商Id. 0: 表示無任何代理綁定關係
    rsaPublicKeystringRSA公鑰
    isMasterboolean是否為主帳戶下的api key
    parentUidstring主帳戶uid. 如果是主帳戶本身調用, 則返回"0"
    kycLevelstring個人帳戶的kyc等級. LEVEL_DEFAULT, LEVEL_1LEVEL_2
    kycRegionstring個人帳戶的kyc地區

    請求示例

    GET /v5/user/query-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676430842094
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "13770661",
    "note": "readwrite api key",
    "apiKey": "XXXXXX",
    "readOnly": 0,
    "secret": "",
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransfer"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "Derivatives": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": [],
    "Affiliate": []
    },
    "ips": [
    "*"
    ],
    "type": 1,
    "deadlineDay": 66,
    "expiredAt": "2023-12-22T07:20:25Z",
    "createdAt": "2022-10-16T02:24:40Z",
    "unified": 0,
    "uta": 0,
    "userID": 24617703,
    "inviterID": 0,
    "vipLevel": "No VIP",
    "mktMakerLevel": "0",
    "affiliateID": 0,
    "rsaPublicKey": "",
    "isMaster": true,
    "parentUid": "0",
    "kycLevel": "LEVEL_DEFAULT",
    "kycRegion": ""
    },
    "retExtInfo": {},
    "time": 1697525990798
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/create-subuid-apikey.html b/zh-TW/v5/user/create-subuid-apikey.html index 2a33ac4647..edd9a9b5a6 100644 --- a/zh-TW/v5/user/create-subuid-apikey.html +++ b/zh-TW/v5/user/create-subuid-apikey.html @@ -4,13 +4,13 @@ 新建子帳戶的API Key | Bybit API Documentation - +

    新建子帳戶的API Key

    給新建好的子帳戶創建新的API key。需使用帳戶的API key。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"

    HTTP 請求

    POST /v5/user/create-sub-api

    請求參數

    參數是否必須類型說明
    subuidtrueinteger子帳戶userId
    notefalsestring設置備註
    readOnlytrueinteger0:可讀可寫. 1:只讀
    ipsfalsestring綁定IP. 比如: "192.168.0.1,192.168.0.2"注意:
    • 不傳參數ips 或者入参值為"*"意味著不綁定
    • 不綁定IP的api key將有90天的有效期限
    • 一旦帳戶密碼做了修改,帳戶下的非永久api key將在7天後失效
    permissionstrueObject勾選api key權限.
    • 注意: 必須傳入以下權限類型的任意一種, 否則報錯
    > ContractTradefalsearray合約. ["Order","Position"]
    > Spotfalsearray現貨. ["SpotTrade"]
    > Walletfalsearray錢包. ["AccountTransfer","SubMemberTransferList"]
    > OptionsfalsearrayUSDC合約. ["OptionsTrade"]
    > Derivativesfalsearray統一帳戶權限. 該字段失效, 因為系統將會自動根據您的帳戶類型(經典帳戶和統一帳戶)來決定是否增加該權限
    > Exchangefalsearray兌換. ["ExchangeHistory"]
    > CopyTradingfalsearray跟單交易. ["CopyTrading"]

    返回參數

    參數類型說明
    idstring唯一id. 內部使用
    notestring備註
    apiKeystringApi key
    readOnlyinteger0:可讀可寫. 1:只讀
    secretstringApi密鑰密碼.
    • 注意: Api密鑰密碼只會在這裡出現一次,除此之外沒有任何地方還可以獲取到密碼。請妥善保存。
    permissionsObject權限類型
    > ContractTradearray合約交易的權限
    > Spotarray現貨交易的權限
    > Walletarray錢包的權限
    > OptionsarrayUSDC合約的權限. 該權限支持USDC合約下的期權和永續交易
    > Derivativesarray統一帳戶權限
    > CopyTradingarray跟單交易的權限
    > BlockTradearray大宗交易的權限. 子帳戶暫不支持,總是[]
    > Exchangearray兌換的權限
    > NFTarrayNFT的權限. 子帳戶暫不支持, 總是[]

    請求示例

    POST /v5/user/create-sub-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430005459
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "subuid": 53888000,
    "note": "testxxx",
    "readOnly": 0,
    "permissions": {
    "Wallet": [
    "AccountTransfer"
    ]
    }
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "16651283",
    "note": "testxxx",
    "apiKey": "xxxxx",
    "readOnly": 0,
    "secret": "xxxxxxxx",
    "permissions": {
    "ContractTrade": [],
    "Spot": [],
    "Wallet": [
    "AccountTransfer"
    ],
    "Options": [],
    "Derivatives": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": []
    }
    },
    "retExtInfo": {},
    "time": 1676430007643
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/create-subuid.html b/zh-TW/v5/user/create-subuid.html index 7210c6dda0..5327877e8e 100644 --- a/zh-TW/v5/user/create-subuid.html +++ b/zh-TW/v5/user/create-subuid.html @@ -4,13 +4,13 @@ 新建子帳戶 | Bybit API Documentation - +

    新建子帳戶

    創建新的子帳戶。需使用帳戶的API key。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"

    HTTP 請求

    POST /v5/user/create-sub-member

    請求參數

    參數是否必須類型說明
    usernametruestring給新的子帳戶創建一個用戶名。
    • 6-16位字符,須同時含有數字和字母。
    • 不能與已存在或已刪除的帳戶用戶名重複。
    passwordfalsestring給新的子帳戶設置一個密碼。
    • 8-30位字符,須同時含有數字和大小寫字母。
    memberTypetrueinteger1: 普通子帳戶, 6: 託管子帳戶
    switchfalseinteger
    • 0: 關閉快捷登陸 (默認關閉)
    • 1: 打開快捷登陸.
    isUtafalseboolean廢棄, 總是創建UTA子帳戶
    notefalsestring設置備註

    返回參數

    參數類型說明
    uidstring子帳戶userId
    usernamestring給新的子帳戶創建一個用戶名
    • 6-16位字符,須同時含有數字和字母。
    • 不能與已存在或已刪除的帳戶用戶名重複。
    memberTypeinteger1: 普通子帳戶, 6: 託管子帳戶
    statusinteger帳戶狀態
    • 1: 正常
    • 2: 登陸封禁
    • 4: 凍結
    remarkstring設置的備註

    請求示例

    POST /v5/user/create-sub-member HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1676429344202
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "username": "xxxxx",
    "memberType": 1,
    "switch": 1,
    "note": "test"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "uid": "53888000",
    "username": "xxxxx",
    "memberType": 1,
    "status": 1,
    "remark": "test"
    },
    "retExtInfo": {},
    "time": 1676429344734
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/froze-subuid.html b/zh-TW/v5/user/froze-subuid.html index 8d676ef54b..05c44634a9 100644 --- a/zh-TW/v5/user/froze-subuid.html +++ b/zh-TW/v5/user/froze-subuid.html @@ -4,13 +4,13 @@ 凍結/解凍子帳戶 | Bybit API Documentation - +

    凍結/解凍子帳戶

    凍結或解凍子帳戶。需使用帳戶的API key。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"

    HTTP 請求

    POST /v5/user/frozen-sub-member

    請求參數

    參數是否必須類型說明
    subuidtrueinteger子帳戶userId
    frozentrueinteger0:解凍, 1:凍結

    返回參數

    請求示例

    POST /v5/user/frozen-sub-member HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430842094
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "subuid": 53888001,
    "frozen": 1
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {},
    "retExtInfo": {},
    "time": 1676430697553
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/list-sub-apikeys.html b/zh-TW/v5/user/list-sub-apikeys.html index 59c642d0ef..dcd46c06ad 100644 --- a/zh-TW/v5/user/list-sub-apikeys.html +++ b/zh-TW/v5/user/list-sub-apikeys.html @@ -4,13 +4,13 @@ 查詢子帳戶的所有API Key信息 | Bybit API Documentation - +

    查詢子帳戶的所有API Key信息

    查詢某個子帳戶下所有的api key

    提示
    • 任意權限可以訪問該接口
    • 僅支持母帳戶調用

    HTTP 請求

    GET /v5/user/sub-apikeys

    請求參數

    參數是否必須類型說明
    subMemberIdtruestring子帳戶UID
    limitfalseinteger每頁數量限制. [1, 20]. 默認: 20
    cursorfalsestring游標,用於翻頁

    返回參數

    參數類型說明
    resultarrayObject
    > idstring唯一id. 內部使用
    > ipsarray<string>綁定的IP, 未綁定IP則是*
    > apiKeystringApi key
    > notestring備註
    > statusinteger當前狀態 1: 永久, 2: 已過期, 3: 仍在有效期內, 4: 即將過期 (少於7天)
    > expiredAtdatetimeAPI key的過期日. 針對那些未綁定IP的api key或者修改過密碼的帳戶
    > createdAtdatetimeAPI key的創建日
    > typeintegerApi key類型. 1:個人使用, 2:綁定到第三方應用
    > permissionsObject權限類型
    >> ContractTradearray合約交易的權限 Order, Position
    >> Spotarray現貨交易的權限 SpotTrade
    >> Walletarray錢包的權限 AccountTransfer, SubMemberTransferList
    >> OptionsarrayUSDC合約的權限. 該權限支持USDC合約下的期權和永續交易 OptionsTrade
    >> Derivativesarray統一交易帳戶默認賦予的權限
    >> CopyTradingarray總是[], 因為帶單帳戶只需要使用ContractTrade權限來進行API帶單
    >> BlockTradearray大宗交易的權限. 子帳戶暫不支持,總是[]
    >> Exchangearray兌換的權限 ExchangeHistory
    >> NFTarrayNFT的權限. 子帳戶暫不支持, 總是[]
    >> Affiliatearray代理商權限. 子帳戶暫不支持, 總是 []
    > secretstring總是"******"
    > readOnlybooleantrue:可讀可寫. false:只讀
    > deadlineDayintegerAPI key失效的倒數日. 針對那些未綁定IP的api key或者修改過密碼的帳戶
    > flagstringAPI Key的類型
    nextPageCursorstring游標,用於翻頁

    請求示例

    GET /v5/user/sub-apikeys?subMemberId=100400345 HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1699515251088
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "result": [
    {
    "id": "24828209",
    "ips": [
    "*"
    ],
    "apiKey": "XXXXXX",
    "note": "UTA",
    "status": 3,
    "expiredAt": "2023-12-01T02:36:06Z",
    "createdAt": "2023-08-25T06:42:39Z",
    "type": 1,
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransferList"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "Derivatives": [
    "DerivativesTrade"
    ],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [
    "ExchangeHistory"
    ],
    "NFT": [],
    "Affiliate": []
    },
    "secret": "******",
    "readOnly": false,
    "deadlineDay": 21,
    "flag": "hmac"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1699515251698
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/modify-master-apikey.html b/zh-TW/v5/user/modify-master-apikey.html index 4c8548b7ed..834c9a0b73 100644 --- a/zh-TW/v5/user/modify-master-apikey.html +++ b/zh-TW/v5/user/modify-master-apikey.html @@ -4,13 +4,13 @@ 修改母帳戶的API Key設置 | Bybit API Documentation - +

    修改母帳戶的API Key設置

    修改母帳戶API key的設置。使用待修改的api key調用接口。需使用帳戶的API key。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"
    信息

    只能修改調用該接口的api key

    HTTP 請求

    POST /v5/user/update-api

    請求參數

    參數是否必須類型說明
    readOnlyfalseinteger0 (默認):可讀可寫. 1:只讀
    ipsfalsestring綁定IP. 比如: "192.168.0.1,192.168.0.2"注意:
    • 不傳參數ips 或者入参值為"*"意味著不綁定
    • 不綁定IP的api key將有90天的有效期限
    • 一旦帳戶密碼做了修改,帳戶下的非永久api key將在7天後失效
    permissionsfalseObject勾選api key權限. 如果不修改權限, 則不要傳入該參數
    > ContractTradefalsearray合約. ["Order","Position"]
    > Spotfalsearray現貨. ["SpotTrade"]
    > Walletfalsearray錢包. ["AccountTransfer","SubMemberTransfer"]
    > OptionsfalsearrayUSDC合約. ["OptionsTrade"]
    > Derivativesfalsearray統一帳戶權限. 該字段失效, 因為系統將會自動根據您的帳戶類型(經典帳戶和統一帳戶)來決定是否增加該權限
    > CopyTradingfalsearray跟單交易. ["CopyTrading"]
    > BlockTradefalsearray大宗商品交易. ["BlockTrade"]
    > Exchangefalsearray兌換. ["ExchangeHistory"]
    > NFTfalsearrayNFT. ["NFTQueryProductList"]
    > Affiliatefalsearray代理商查詢權限. ["Affiliate"]
    • 該權限僅作用於代理商
    • 如果您需要該權限, 請確保移除所有其他權限項

    返回參數

    參數類型說明
    idstring唯一id. 內部使用
    notestring備註
    apiKeystringApi key
    readOnlyinteger0:可讀可寫. 1:只讀
    secretstring總是 ""
    permissionsObject權限類型
    > ContractTradearray合約交易的權限
    > Spotarray現貨交易的權限
    > Walletarray錢包的權限
    > OptionsarrayUSDC合約的權限. 該權限支持USDC合約下的期權和永續交易
    > Derivativesarray統一帳戶權限
    > CopyTradingarray跟單交易的權限
    > BlockTradearray大宗交易的權限
    > Exchangearray兌換的權限
    > NFTarrayNFT的權限
    ipsarray綁定的IP

    請求示例

    POST /v5/user/update-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431264739
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    {
    "readOnly": null,
    "ips": "*",
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransfer"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "CopyTrading": [
    "CopyTrading"
    ],
    "BlockTrade": [],
    "Exchange": [
    "ExchangeHistory"
    ],
    "NFT": [
    "NFTQueryProductList"
    ]
    }
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "13770661",
    "note": "xxxxx",
    "apiKey": "xxxxx",
    "readOnly": 0,
    "secret": "",
    "permissions": {
    "ContractTrade": [
    "Order",
    "Position"
    ],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer",
    "SubMemberTransfer"
    ],
    "Options": [
    "OptionsTrade"
    ],
    "Derivatives": [
    "DerivativesTrade"
    ],
    "CopyTrading": [
    "CopyTrading"
    ],
    "BlockTrade": [],
    "Exchange": [
    "ExchangeHistory"
    ],
    "NFT": [
    "NFTQueryProductList"
    ]
    },
    "ips": [
    "*"
    ]
    },
    "retExtInfo": {},
    "time": 1676431265427
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/modify-sub-apikey.html b/zh-TW/v5/user/modify-sub-apikey.html index bc3f451b38..35230f645b 100644 --- a/zh-TW/v5/user/modify-sub-apikey.html +++ b/zh-TW/v5/user/modify-sub-apikey.html @@ -4,13 +4,13 @@ 修改子帳戶的API Key設置 | Bybit API Documentation - +

    修改子帳戶的API Key設置

    修改子帳戶API key的設置, 支持母帳戶管理子帳戶key的設置, 或者子帳戶key直接修改本身。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 子API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)"
    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"

    HTTP 請求

    POST /v5/user/update-sub-api

    請求參數

    參數是否必須類型說明
    apikeyfalsestring子帳戶的api key
    • 當您要使用母帳戶來管理子帳戶的key時, 該字段必傳
    • 如果您是用對應的子帳戶api key修改本身, 該字段請不要傳入, 否則報錯
    readOnlyfalseinteger0 (默認):可讀可寫. 1:只讀
    ipsfalsestring綁定IP. 比如: "192.168.0.1,192.168.0.2"注意:
    • 不傳參數ips 或者入参值為"*"意味著不綁定
    • 不綁定IP的api key將有90天的有效期限
    • 一旦帳戶密碼做了修改,帳戶下的非永久api key將在7天後失效
    permissionsfalseObject勾選api key權限. 如果不修改權限, 則不要傳入該參數
    > ContractTradefalsearray合約. ["Order","Position"]
    > Spotfalsearray現貨. ["SpotTrade"]
    > Walletfalsearray錢包. ["AccountTransfer","SubMemberTransferList"]
    > OptionsfalsearrayUSDC合約. ["OptionsTrade"]
    > Derivativesfalsearray統一帳戶權限. 該字段失效, 因為系統將會自動根據您的帳戶類型(經典帳戶和統一帳戶)來決定是否增加該權限
    > Exchangefalsearray兌換. ["ExchangeHistory"]
    > CopyTradingfalsearray跟單交易. ["CopyTrading"]

    返回參數

    參數類型說明
    idstring唯一id. 內部使用
    notestring備註
    apiKeystringapi key
    readOnlyinteger0:可讀可寫. 1:只讀
    secretstring總是 ""
    permissionsObject權限類型
    > ContractTradearray合約交易的權限e
    > Spotarray現貨交易的權限
    > Walletarray錢包的權限
    > OptionsarrayUSDC合約的權限. 該權限支持USDC合約下的期權和永續交易
    > Derivativesarray統一帳戶權限
    > CopyTradingarray跟單交易的權限
    > BlockTradearray大宗交易的權限. 子帳戶暫不支持,總是[]
    > Exchangearray兌換的權限
    > NFTarrayNFT的權限. 子帳戶暫不支持, 總是[]
    ipsarrayIP綁定

    請求示例

    POST /v5/user/update-sub-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431795752
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    {
    "readOnly": 0,
    "ips": "*",
    "permissions": {
    "ContractTrade": [],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer"
    ],
    "Options": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": []
    }
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "id": "16651472",
    "note": "testxxx",
    "apiKey": "xxxxxx",
    "readOnly": 0,
    "secret": "",
    "permissions": {
    "ContractTrade": [],
    "Spot": [
    "SpotTrade"
    ],
    "Wallet": [
    "AccountTransfer"
    ],
    "Options": [],
    "Derivatives": [],
    "CopyTrading": [],
    "BlockTrade": [],
    "Exchange": [],
    "NFT": []
    },
    "ips": [
    "*"
    ]
    },
    "retExtInfo": {},
    "time": 1676431796263
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/page-subuid.html b/zh-TW/v5/user/page-subuid.html index 2505c068a4..054b887d8b 100644 --- a/zh-TW/v5/user/page-subuid.html +++ b/zh-TW/v5/user/page-subuid.html @@ -4,13 +4,13 @@ 查詢子帳戶UID列表 (無限制) | Bybit API Documentation - +

    查詢子帳戶UID列表 (無限制)

    通過翻頁獲取當前母帳戶下所有的子帳戶列表,適合超過擁有1萬個子帳戶的母帳戶進行調用。需使用帳戶的API key。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"

    HTTP 請求

    GET /v5/user/submembers

    請求參數

    參數是否必須類型說明
    pageSizefalsestring數據頁大小. 每次至多返回100條
    nextCursorfalsestring游標. 傳入響應中的nextCursor來獲取下一頁的數據

    返回參數

    參數類型說明
    subMembersarrayObject
    > uidstring子帳戶userId
    > usernamestring用戶名
    > memberTypeinteger1: 普通子帳戶, 6: 託管子帳戶
    > statusinteger帳戶狀態.
    • 1: 正常
    • 2: 登陸封禁
    • 4: 凍結
    > accountModeinteger帳戶模式.
    • 1: 經典帳戶
    • 3: UTA帳戶
    > remarkstring備註
    nextCursorstring下一頁數據的游標. 返回"0"表示沒有更多的數據了

    請求示例

    GET /v5/user/submembers?pageSize=1 HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430318405
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "subMembers": [
    {
    "uid": "100475023",
    "username": "BybitmcYERjAPmMU",
    "memberType": 1,
    "status": 1,
    "remark": "",
    "accountMode": 1
    }
    ],
    "nextCursor": "126671"
    },
    "retExtInfo": {},
    "time": 1711695552772
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/rm-master-apikey.html b/zh-TW/v5/user/rm-master-apikey.html index 748f750e63..1cc91a7cf6 100644 --- a/zh-TW/v5/user/rm-master-apikey.html +++ b/zh-TW/v5/user/rm-master-apikey.html @@ -4,13 +4,13 @@ 刪除母帳戶的API Key | Bybit API Documentation - +

    刪除母帳戶的API Key

    刪除母帳戶下的api key。使用待刪除的api key調用接口。需使用帳戶的API key。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"
    危險

    當心! 用於調用本接口的API KEY將會立馬失效。

    HTTP 請求

    POST /v5/user/delete-api

    請求參數

    返回參數

    請求示例

    POST /v5/user/delete-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431576621
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    {

    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {},
    "retExtInfo": {},
    "time": 1676431577675
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/rm-sub-apikey.html b/zh-TW/v5/user/rm-sub-apikey.html index 0a1edbe2a9..178084b1d9 100644 --- a/zh-TW/v5/user/rm-sub-apikey.html +++ b/zh-TW/v5/user/rm-sub-apikey.html @@ -4,13 +4,13 @@ 刪除子帳戶下的API Key | Bybit API Documentation - +

    刪除子帳戶下的API Key

    刪除子帳戶下的api key。使用待刪除的子帳戶api key調用接口或者使用母帳戶調用刪除指定api key

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 子API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)"
    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"
    危險

    當心! 用於調用本接口後, 對應的子帳戶api key會立馬失效。

    HTTP 請求

    POST /v5/user/delete-sub-api

    請求參數

    參數是否必須類型說明
    apikeyfalsestring子帳戶的api key
    • 當您要使用母帳戶來管理子帳戶的key時, 該字段必傳
    • 如果您是用對應的子帳戶api key修改本身, 該字段請不要傳入, 否則報錯

    返回參數

    請求示例

    POST /v5/user/delete-sub-api HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1676431922953
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json

    {

    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {},
    "retExtInfo": {},
    "time": 1676431924719
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/rm-subuid.html b/zh-TW/v5/user/rm-subuid.html index c2ddff8a41..6e2d782327 100644 --- a/zh-TW/v5/user/rm-subuid.html +++ b/zh-TW/v5/user/rm-subuid.html @@ -4,14 +4,14 @@ 刪除子帳戶 | Bybit API Documentation - +

    刪除子帳戶

    刪除子帳戶. 在刪除前, 確保該帳戶已經沒有資產了
    僅可使用帳戶api key調用.

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"

    HTTP 請求

    POST /v5/user/del-submember

    請求參數

    參數是否必須類型說明
    subMemberIdtruestringSub UID

    返回參數

    請求示例

    POST /v5/user/del-submember HTTP/1.1
    Host: api.bybit.com
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1698907012755
    X-BAPI-RECV-WINDOW: 5000
    X-BAPI-SIGN: XXXXXX
    Content-Type: application/json
    Content-Length: 34

    {
    "subMemberId": "112725187"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {},
    "retExtInfo": {},
    "time": 1698907012962
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/subuid-list.html b/zh-TW/v5/user/subuid-list.html index a5b4eabdae..ee2f226593 100644 --- a/zh-TW/v5/user/subuid-list.html +++ b/zh-TW/v5/user/subuid-list.html @@ -4,13 +4,13 @@ 查詢子帳戶UID列表 (限制) | Bybit API Documentation - +

    查詢子帳戶UID列表 (限制)

    最多返回10000個子帳戶, 適合少於1萬個子帳戶的母帳戶調用。需使用帳戶的API key。

    提示

    在調用接口時,使用的API key至少需要擁有以下其中一種權限

    • 母API key: "Account Transfer(資產帳戶劃轉)", "Subaccount Transfer(母子帳戶劃轉)", "Withdrawal(提幣)"

    HTTP 請求

    GET /v5/user/query-sub-members

    請求參數

    返回參數

    參數類型說明
    subMembersarrayObject
    > uidstring子帳戶userId
    > usernamestring用戶名
    > memberTypeinteger1: 普通子帳戶, 6: 託管子帳戶
    > statusinteger帳戶狀態.
    • 1: 正常
    • 2: 登陸封禁
    • 4: 凍結
    > accountModeinteger帳戶模式.
    • 1: 經典帳戶
    • 2: UMA帳戶
    • 3: UTA帳戶
    > remarkstring備註

    請求示例

    GET /v5/user/query-sub-members HTTP/1.1
    Host: api.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1676430318405
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "subMembers": [
    {
    "uid": "53888001",
    "username": "xxx001",
    "memberType": 1,
    "status": 1,
    "remark": "test",
    "accountMode": 1
    },
    {
    "uid": "53888002",
    "username": "xxx002",
    "memberType": 6,
    "status": 1,
    "remark": "",
    "accountMode": 3
    }
    ]
    },
    "retExtInfo": {},
    "time": 1676430319452
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/user/wallet-type.html b/zh-TW/v5/user/wallet-type.html index f5571cbef3..42fab6e983 100644 --- a/zh-TW/v5/user/wallet-type.html +++ b/zh-TW/v5/user/wallet-type.html @@ -4,13 +4,13 @@ 查詢帳戶支持的錢包類型 | Bybit API Documentation - +

    查詢帳戶支持的錢包類型

    查詢母帳戶或者子帳戶下支持的錢包類型

    提示
    • 使用母帳戶api key: 您可以查詢到母帳戶以及指定的子帳戶的錢包類型, 子帳戶的uid最多單次可查詢200個.
    • 使用子帳戶api key: 僅能查詢自身的錢包類型
    最佳實踐

    "FUND" - 這個資金錢包, 如果您從未存入或者轉入過資金, 該接口返回的數組裡將不會呈現該枚舉值, 但實際上您的帳戶總是擁有該錢包.

    • ["SPOT","OPTION","FUND","CONTRACT"] : 經典帳戶並且資金錢包曾經操作過
    • ["SPOT","OPTION","CONTRACT"] : 經典帳戶並且資金錢包不曾操作過
    • ["SPOT","UNIFIED","FUND","CONTRACT"] : UMA帳戶並且資金錢包曾經操作過. (等強制或主動升級到UTA後, 就沒有UMA帳戶的概念了)
    • ["SPOT","UNIFIED","CONTRACT"] : UMA帳戶並且資金錢包不曾操作過. (等強制或主動升級到UTA後, 就沒有UMA帳戶的概念了)
    • ["UNIFIED""FUND","CONTRACT"] : UTA帳戶並且資金錢包曾經操作過
    • ["UNIFIED","CONTRACT"] : UTA帳戶並且資金錢包不曾操作過

    HTTP 請求

    GET /v5/user/get-member-type

    請求參數

    參數是否必須類型說明
    memberIdsfalsestring
    • 不入参時, 僅查詢自身
    • 當使用母帳戶api key查詢子uid時, 母帳戶的數據總是返回且在數組的第一個
    • 支持輸入多個子uid, 用逗號隔開, 單次查詢最多支持200個
    • 子帳戶api key查詢時, 該入参將會被忽略

    返回參數

    參數類型說明
    accountsarrayObject
    > uidstring母/子 uid
    > accountTypearraySPOT, CONTRACT, FUND, OPTION, UNIFIED. 請查閱上面的最佳實踐來理解返回的值

    請求示例

    GET /v5/user/get-member-type HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1686884973961
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json

    響應示例

    {
    "retCode": 0,
    "retMsg": "",
    "result": {
    "accounts": [
    {
    "uid": "24617703",
    "accountType": [
    "SPOT",
    "OPTION",
    "FUND",
    "CONTRACT"
    ]
    }
    ]
    },
    "retExtInfo": {},
    "time": 1686895670002
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/private/dcp.html b/zh-TW/v5/websocket/private/dcp.html index dee7123596..5d98590623 100644 --- a/zh-TW/v5/websocket/private/dcp.html +++ b/zh-TW/v5/websocket/private/dcp.html @@ -4,13 +4,13 @@ 斷線保護 (期權) | Bybit API Documentation - +

    斷線保護 (期權)

    通過訂閱DCP流來觸發功能

    舉例: 私有連接A訂閱了"dcp.xxx", 私有連接B沒有訂閱"dcp.xxx", 私有連接C訂閱了"dcp.xxx".

    1. 如果連接A在線, 連接B斷線, 連接C在線, 那麼這種情況下不會觸發DCP功能.
    2. 如果連接A在線, 連接B斷線, 連接C斷線, 那麼這種情況下不會觸發DCP功能.
    3. 如果連接A斷線, 連接B在線, 連接C斷線, 那麼這種情況下就會當達到時間窗口的閾值後觸發斷線保護機制.

    綜上, 只有當所有訂閱了"dcp.xxx"的私有連接斷線後, 斷線保護機制才會被觸發.

    Topic: dcp.future, dcp.spot, dcp.option

    訂閱示例

    {
    "op": "subscribe",
    "args": [
    "dcp.future"
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/private/execution.html b/zh-TW/v5/websocket/private/execution.html index 3f6c245f41..7f90ed2c93 100644 --- a/zh-TW/v5/websocket/private/execution.html +++ b/zh-TW/v5/websocket/private/execution.html @@ -4,14 +4,14 @@ 個人成交 | Bybit API Documentation - +

    個人成交

    訂閱個人成交的推送

    提示

    單筆訂單可能有多次成交

    All-In-One Topic: execution
    Categorised Topic: execution.spot, execution.linear, execution.inverse, execution.option

    信息
    • All-In-One topic 和 Categorised topic 不能放在同一個訂閱請求裡
    • All-In-One topic: 允許您監聽所有業務線的websocket更新(現貨, 正向合約, 反向合約, 期權)
    • Categorised Topic: 您只能監聽您指定的那個業務的websocket更新

    響應參數

    參數類型說明
    idstring消息id
    topicstringTopic名
    creationTimenumber消息數據創建時間
    dataarrayObject
    > categorystring產品類型
    • 統一帳戶: spot, linear, iverse, option
    • 經典帳戶: spot, linear, inverse.
    > symbolstring合約名稱
    > isLeveragestring是否借貸. 僅統一帳戶spot有效. 0: 否, 1: 是. 經典帳戶現貨交易不支持, 總是0
    > orderIdstring訂單ID
    > orderLinkIdstring用戶自定義訂單ID
    > sidestring訂單方向.買:Buy,賣:Sell
    > orderPricestring訂單價格. 經典帳戶現貨交易不支持
    > orderQtystring訂單數量. 經典帳戶現貨交易不支持
    > leavesQtystring剩餘委託未成交數量. 經典帳戶現貨交易不支持
    > createTypestring訂單創建類型
  • 經典帳戶和統一帳戶1.0(inverse): 總是返回""
  • 現貨、期權不返回該字段
  • > orderTypestring訂單類型. 市價單:Market,限價單:Limit
    > stopOrderTypestring条件单的订单类型。如果该订单不是条件单,则不会返回任何类型. 經典帳戶現貨交易不支持
    > execFeestring交易手續費. 您可以從這裡了解現貨手續費幣種信息. 經典帳戶現貨交易不支持
    > execIdstring成交Id
    > execPricestring成交價格
    > execQtystring成交數量
    > execPnlstring每筆平倉成交的盈虧. 該值和交易日誌(統一帳戶)中的"cashFlow"字段一致
    > execTypestring成交類型. 經典帳戶現貨交易不支持
    > execValuestring成交價值. 經典帳戶現貨交易不支持
    > execTimestring成交時間(毫秒)
    > isMakerBool是否是 Maker 訂單,true 為 maker 訂單,false 為 taker 訂單
    > feeRatestring手續費率. 經典帳戶現貨交易不支持
    > tradeIvstring隱含波動率,僅期權有效
    > markIvstring標記價格的隱含波動率,僅期權有效
    > markPricestring成交執行時,該 symbol 當時的標記價格. 經典帳戶現貨交易不支持
    > indexPricestring成交執行時,該 symbol 當時的指數價格,目前僅對期權業務有效
    > underlyingPricestring成交執行時,該 symbol 當時的底層資產價格,僅期權有效
    > blockTradeIdstring大宗交易的订单 ID ,使用 paradigm 进行大宗交易时生成的 ID
    > closedSizestring平倉數量
    > seqlong序列號, 用於關聯成交和倉位的更新
    • 同一時間有多筆成交, seq相同
    • 不同的幣對會存在相同seq, 可以使用seq + symbol來做唯一性識別

    訂閱示例

    {
    "op": "subscribe",
    "args": [
    "execution"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.execution_stream(callback=handle_message)
    while True:
    sleep(1)

    推送示例

    {
    "id": "592324803b2785-26fa-4214-9963-bdd4727f07be",
    "topic": "execution",
    "creationTime": 1672364174455,
    "data": [
    {
    "category": "linear",
    "symbol": "XRPUSDT",
    "execFee": "0.005061",
    "execId": "7e2ae69c-4edf-5800-a352-893d52b446aa",
    "execPrice": "0.3374",
    "execQty": "25",
    "execType": "Trade",
    "execValue": "8.435",
    "execPnl": "0",
    "isMaker": false,
    "feeRate": "0.0006",
    "tradeIv": "",
    "markIv": "",
    "blockTradeId": "",
    "markPrice": "0.3391",
    "indexPrice": "",
    "underlyingPrice": "",
    "leavesQty": "0",
    "orderId": "f6e324ff-99c2-4e89-9739-3086e47f9381",
    "orderLinkId": "",
    "orderPrice": "0.3207",
    "orderQty": "25",
    "orderType": "Market",
    "stopOrderType": "UNKNOWN",
    "side": "Sell",
    "execTime": "1672364174443",
    "isLeverage": "0",
    "closedSize": "25",
    "seq": 4688002127
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/private/fast-execution.html b/zh-TW/v5/websocket/private/fast-execution.html index b18b719949..03a635eb4b 100644 --- a/zh-TW/v5/websocket/private/fast-execution.html +++ b/zh-TW/v5/websocket/private/fast-execution.html @@ -4,14 +4,14 @@ 個人成交 (Fast) | Bybit API Documentation - +

    個人成交 (Fast)

    精簡版本的個人成交推送, 相比原始的快速成交流, 延遲更加低

    提示
    • 目前支持USDT永續, USDC永續, USDC交割, 反向永續, 反向交割和現貨的成交推送, 不支持期權
    • 僅推送execType=Trade的消息

    All-In-One Topic: execution.fast
    Categorised Topic: execution.fast.linear, execution.fast.inverse, execution.fast.spot

    響應參數

    參數類型說明
    topicstringTopic名
    creationTimenumber消息數據創建時間
    dataarrayObject
    > categorystring產品類型
    • 統一帳戶: linear, iverse, spot
    • 經典帳戶: linear, inverse, spot
    > symbolstring合約名稱
    > orderIdstring訂單ID
    > isMakerbooleantrue: maker成交, false: taker成交
    > orderLinkIdstring用戶自定義訂單ID
  • maker成交總是返回""
  • 當maker訂單在訂單簿中轉化成了taker單(比如修改了價格), 這種情況orderLinkId也是""
  • > sidestring訂單方向.買:Buy,賣:Sell
    > execIdstring成交Id
    > execPricestring成交價格
    > execQtystring成交數量
    > execTimestring成交時間(毫秒)
    > seqlong序列號, 用於關聯成交和倉位的更新
    • 同一時間有多筆成交, seq相同
    • 不同的幣對會存在相同seq, 可以使用seq + symbol來做唯一性識別

    訂閱示例

    {
    "op": "subscribe",
    "args": [
    "execution.fast"
    ]
    }

    推送示例

    {
    "topic": "execution.fast",
    "creationTime": 1716800399338,
    "data": [
    {
    "category": "linear",
    "symbol": "ICPUSDT",
    "execId": "3510f361-0add-5c7b-a2e7-9679810944fc",
    "execPrice": "12.015",
    "execQty": "3000",
    "orderId": "443d63fa-b4c3-4297-b7b1-23bca88b04dc",
    "isMaker": false,
    "orderLinkId": "test-00001",
    "side": "Sell",
    "execTime": "1716800399334",
    "seq": 34771365464
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/private/greek.html b/zh-TW/v5/websocket/private/greek.html index 881d6f93e7..fae3fedccc 100644 --- a/zh-TW/v5/websocket/private/greek.html +++ b/zh-TW/v5/websocket/private/greek.html @@ -4,13 +4,13 @@ 用戶希臘字母信息 (期權) | Bybit API Documentation - +

    用戶希臘字母信息 (期權)

    訂閱用戶希臘字母數據推送

    Topic: greeks

    響應參數

    參數類型說明
    idstring消息id
    topicstringTopic名
    creationTimenumber消息數據創建時間
    dataarrayObject
    > baseCoinstring交易幣種
    > totalDeltastringDelta值
    > totalGammastringGamma值
    > totalVegastringVega值
    > totalThetastringTheta值

    訂閱示例

    {
    "op": "subscribe",
    "args": [
    "greeks"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.greek_stream(callback=handle_message)
    while True:
    sleep(1)

    推送示例

    {
    "id": "592324fa945a30-2603-49a5-b865-21668c29f2a6",
    "topic": "greeks",
    "creationTime": 1672364262482,
    "data": [
    {
    "baseCoin": "ETH",
    "totalDelta": "0.06999986",
    "totalGamma": "-0.00000001",
    "totalVega": "-0.00000024",
    "totalTheta": "0.00001314"
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/private/order.html b/zh-TW/v5/websocket/private/order.html index ee8542a4a2..ff71c7a06d 100644 --- a/zh-TW/v5/websocket/private/order.html +++ b/zh-TW/v5/websocket/private/order.html @@ -4,14 +4,14 @@ 訂單 | Bybit API Documentation - +

    訂單

    訂閱訂單數據推送

    All-In-One Topic: order
    Categorised Topic: order.spot, order.linear, order.inverse, order.option

    信息
    • All-In-One topic 和 Categorised topic 不能放在同一個訂閱請求裡
    • All-In-One topic: 允許您監聽所有業務線的websocket更新(現貨, 正向合約, 反向合約, 期權)
    • Categorised Topic: 您只能監聽您指定的那個業務的websocket更新

    響應參數

    參數類型說明
    idstring消息id
    topicstringTopic名
    creationTimenumber消息數據創建時間
    dataarrayObject
    > categorystring產品類型
    • 統一帳戶: spot, linear, inverse, option
    • 經典帳戶: spot, linear, inverse.
    > orderIdstring訂單ID
    > orderLinkIdstring用戶自定義ID
    > isLeveragestring是否借貸. 僅統一帳戶spot有效
  • 0: 否
  • 1: 是
  • 經典帳戶現貨交易總是0
    > blockTradeIdstring大宗交易訂單Id
    > symbolstring合約名稱
    > pricestring訂單價格
    > qtystring訂單數量
    > sidestring方向. Buy,Sell
    > positionIdxinteger倉位標識。用戶不同倉位模式
    > orderStatusstring訂單狀態
    > createTypestring訂單創建類型
  • 僅作用於category=linear 或 inverse
  • 現貨、期權不返回該字段
  • > cancelTypestring訂單被取消類型
    經典帳戶現貨交易不支持
    > rejectReasonstring拒絕原因
    經典帳戶現貨交易不支持
    > avgPricestring訂單平均成交價格
  • 不存在avg price場景的訂單返回"", 以及經典帳戶下部分成交但最終被手動取消的訂單
  • 經典帳戶現貨交易: 該字段不支持, 總是""
  • > leavesQtystring訂單剩餘未成交的數量, 經典帳戶現貨交易不支持
    > leavesValuestring訂單剩餘未成交的價值, 經典帳戶現貨交易不支持
    > leavesValuestring訂單剩餘未成交的價值, 經典帳戶現貨交易不支持
    > cumExecQtystring訂單累計成交數量
    > cumExecValuestring訂單累計成交價值
    > cumExecFeestring訂單累計成交的手續費
    • 經典帳戶spot: 表示的是最近一次成交的手續費.
    • 升級到統一帳戶後, 您可以使用成交頻道中的execFee字段來獲取每次成交的手續費
    > closedPnlstring平倉單盈虧, 部分平倉時, 減去了平攤的開倉手續費和期間產生的資金費以及平倉手續費. 該數據和查詢平倉盈虧接口裡的"closedPnl"保持一致
    > feeCurrencystring現貨交易的手續費幣種. 可以從這裡了解現貨交易的手續費幣種規則
    > timeInForcestring執行策略
    > orderTypestring訂單類型. Market,Limit. 對於止盈止損單, 則表示為觸發後的訂單類型
    > stopOrderTypestring條件單類型
    > ocoTriggerBystring現貨OCO訂單的觸發類型.OcoTriggerByUnknown, OcoTriggerByTp, OcoTriggerBySl
    經典帳戶現貨不支持該字段
    > orderIvstring隱含波動率
    > marketUnitstring統一帳戶現貨交易時給入參qty選擇的單位. baseCoin, quoteCoin
    > triggerPricestring觸發價格. 若stopOrderType=TrailingStop, 則這是激活價格. 否則, 它是觸發價格
    > takeProfitstring止盈價格
    > stopLossstring止損價格
    > tpslModestring止盈止損模式 Full: 全部倉位止盈止損, Partial: 部分倉位止盈止損
    現貨不返回該字段, 期權總是返回""
    > tpLimitPricestring觸發止盈後轉換為限價單的價格
    > slLimitPricestring觸發止損後轉換為限價單的價格
    > tpTriggerBystring觸發止盈的價格類型
    > slTriggerBystring觸發止損的價格類型
    > triggerDirectioninteger觸發方向. 1: 上漲, 2: 下跌
    > triggerBystring觸發價格的觸發類型
    > lastPriceOnCreatedstring下單時的市場價格
    > reduceOnlyboolean只減倉. true表明這是只減倉單
    > closeOnTriggerboolean觸發後平倉委託. 什麼是觸發後平倉委託?
    > placeTypestring期權下單方式. iv, price
    > smpTypestringSMP執行類型
    > smpGroupinteger所屬Smp組ID. 如果uid不屬於任何組, 則默認為0
    > smpOrderIdstring觸發此SMP執行的交易對手的 orderID
    > createdTimestring創建訂單的時間戳 (毫秒)
    > updatedTimestring訂單更新的時間戳 (毫秒)

    訂閱示例

    {
    "op": "subscribe",
    "args": [
    "order"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.order_stream(callback=handle_message)
    while True:
    sleep(1)

    推送示例

    {
    "id": "5923240c6880ab-c59f-420b-9adb-3639adc9dd90",
    "topic": "order",
    "creationTime": 1672364262474,
    "data": [
    {
    "symbol": "ETH-30DEC22-1400-C",
    "orderId": "5cf98598-39a7-459e-97bf-76ca765ee020",
    "side": "Sell",
    "orderType": "Market",
    "cancelType": "UNKNOWN",
    "price": "72.5",
    "qty": "1",
    "orderIv": "",
    "timeInForce": "IOC",
    "orderStatus": "Filled",
    "orderLinkId": "",
    "lastPriceOnCreated": "",
    "reduceOnly": false,
    "leavesQty": "",
    "leavesValue": "",
    "cumExecQty": "1",
    "cumExecValue": "75",
    "closedPnl": "0",
    "avgPrice": "75",
    "blockTradeId": "",
    "positionIdx": 0,
    "cumExecFee": "0.358635",
    "createdTime": "1672364262444",
    "updatedTime": "1672364262457",
    "rejectReason": "EC_NoError",
    "stopOrderType": "",
    "tpslMode": "",
    "triggerPrice": "",
    "takeProfit": "",
    "stopLoss": "",
    "tpTriggerBy": "",
    "slTriggerBy": "",
    "tpLimitPrice": "",
    "slLimitPrice": "",
    "triggerDirection": 0,
    "triggerBy": "",
    "closeOnTrigger": false,
    "category": "option",
    "placeType": "price",
    "smpType": "None",
    "smpGroup": 0,
    "smpOrderId": "",
    "feeCurrency": ""
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/private/position.html b/zh-TW/v5/websocket/private/position.html index 10d5c8a9ed..aa5ea0f8c0 100644 --- a/zh-TW/v5/websocket/private/position.html +++ b/zh-TW/v5/websocket/private/position.html @@ -4,14 +4,14 @@ 持倉 | Bybit API Documentation - +

    持倉

    訂閱持倉數據的推送

    All-In-One Topic: position
    Categorised Topic: position.linear, position.inverse, position.option

    信息
    • All-In-One topic 和 Categorised topic 不能放在同一個訂閱請求裡
    • All-In-One topic: 允許您監聽所有業務線的websocket倉位更新(正向合約, 反向合約, 期權)
    • Categorised Topic: 您只能監聽您指定的那個業務的websocket更新

    響應參數

    參數類型說明
    idstring消息id
    topicstringTopic名
    creationTimenumber消息數據創建時間
    dataarrayObject
    > categorystring產品類型
    > symbolstring合約名稱
    > sidestring持倉方向. Buy,Sell
    > sizestring當前倉位的合约數量, 總是正數
    > positionIdxinteger倉位標識
    > tradeModeinteger交易模式
    > positionValuestring倉位價值
    > riskIdinteger风险限额ID, 參見風險限額接口
    若賬戶為組合保證金模式(PM), 該字段返回0, 風險限額規則失效
    > riskLimitValuestring當前風險限額ID對應的持倉限制量
    若賬戶為組合保證金模式(PM),該字段返回"", 風險限額規則失效
    > entryPricestring入場價
    > markPricestring標記價
    > leveragestring槓桿. 注意: 組合保證金模式下,該字段返回"",槓桿規則失效
    > positionBalancestring倉位保證金
    經典帳戶 & 統一帳戶1.0(inverse)可以根據這個字段了解倉位初始保證金+平倉手續費
    > autoAddMargininteger是否自動追加保證金, 反向合約不支持設置自動追加保證金
  • 0: 否
  • 1: 是
  • > positionIMstring倉位起始保證金
  • 經典帳戶 & 統一帳戶1.0(inverse): 忽略該字段
  • 統一帳戶組合保證金模式(PM)下, 該字段返回為空字符串
  • > positionMMstring倉位維持保證金
  • 經典帳戶 & 統一帳戶1.0(inverse): 忽略該字段
  • 統一帳戶組合保證金模式(PM)下, 該字段返回為空字符串
  • > liqPricestring倉位強平價格,
    • UTA(反向合約) & 普通账户 & UTA(開啟逐倉保證金模式):是逐倉和全倉持仓的真實價格, 當強平價 <= minPrice或者 強平價 >= maxPrice, 則為""
    • 統一帳戶(全倉保證金):是全倉持仓的预估价格(因为统一帳戶模式是按照帳戶維度控制风险率), 當強平價 <= minPrice或者 強平價 >= maxPrice, 則為""
    但是對於組合保證金模式,此字段為空,不會提供強平價格
    > bustPricestring預估破產價. 統一帳戶(現貨/USDT和USDC永續/期權)為空
    > tpslModestring該字段廢棄, 無意義, 總是返回"Full". 期權總是返回""
    > takeProfitstring止盈價格
    > stopLossstring止損價格
    > trailingStopstring追蹤止損
    > unrealisedPnlstring未結盈虧
    > sessionAvgPricestringUSDC合約平均持倉價格, 會隨著8小時結算而變動
    > deltastringDelta
    > gammastringGamma
    > vegastringVega
    > thetastringTheta
    > curRealisedPnlstring當前持倉的已結盈虧
    > cumRealisedPnlstring累计已结盈亏
    • 期貨: 是從第一次開始有持倉加總的已結盈虧
    • 期權: 它是本次持倉的加總已結盈虧
    > positionStatusstring倉位狀態. Normal,Liq, Adl
    > adlRankIndicatorinteger自動減倉燈. 什麼是自動減倉機制?
    > createdTimestring倉位創建時間戳 (毫秒)
    > updatedTimestring倉位數據更新時間戳 (毫秒)
    > seqlong序列號, 用於關聯成交和倉位的更新
    • 不同的幣對會存在相同seq, 可以使用seq + symbol來做唯一性識別
    • 如果該幣對從未被交易過, 查詢時則會返回"-1"
    • 對於更新槓桿、更新風險限額等非交易行為, 將會返回上一次成交時更新的seq
    > isReduceOnlyboolean僅當Bybit需要降低某個Symbol的風險限額時有用
    • true: 僅允許減倉操作. 您可以考慮一系列的方式, 比如, 降低risk limit檔位, 或者同檔位修改槓桿或減少倉位, 或者增加保證金, 或者撤單, 這些操作做完後, 可以主動調用確認新的風險限額接口
    • false(默認): 沒有交易限制, 表示您的倉位在系統調整時處於風險水平之下
    • 僅對逐倉和全倉的期貨倉位有意義
    > mmrSysUpdatedTimestring僅當Bybit需要降低某個Symbol的風險限額時有用
    • 當isReduceOnly=true: 這個時間戳表示系統強制修改MMR的時間
    • 當isReduceOnly=false: 若不為空, 則表示系統已經完成了MMR調整的時間
    • 僅當系統調整才會賦值, 對於主動的調整, 不會在這裡展示時間戳
    • 默認為"", 但如果曾經這個symbol有過系統降檔的操作, 那麼這裡會顯示上一次操作的時間
    • 僅對逐倉和全倉的期貨倉位有意義
    > leverageSysUpdatedTimestring僅當Bybit需要降低某個Symbol的風險限額時有用
    • 當isReduceOnly=true: 這個時間戳表示系統強制修改槓桿的時間
    • 當isReduceOnly=false: 若不為空, 則表示系統已經完成了槓桿調整的時間
    • 僅當系統調整才會賦值, 對於主動的調整, 不會在這裡展示時間戳
    • 默認為"", 但如果曾經這個symbol有過系統降檔的操作, 那麼這裡會顯示上一次操作的時間
    • 僅對逐倉和全倉的期貨倉位有意義

    訂閱示例

    {
    "op": "subscribe",
    "args": [
    "position"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.position_stream(callback=handle_message)
    while True:
    sleep(1)

    推送示例

    {
    "id": "1003076014fb7eedb-c7e6-45d6-a8c1-270f0169171a",
    "topic": "position",
    "creationTime": 1697682317044,
    "data": [
    {
    "positionIdx": 2,
    "tradeMode": 0,
    "riskId": 1,
    "riskLimitValue": "2000000",
    "symbol": "BTCUSDT",
    "side": "",
    "size": "0",
    "entryPrice": "0",
    "leverage": "10",
    "positionValue": "0",
    "positionBalance": "0",
    "markPrice": "28184.5",
    "positionIM": "0",
    "positionMM": "0",
    "takeProfit": "0",
    "stopLoss": "0",
    "trailingStop": "0",
    "sessionAvgPrice": "0",
    "unrealisedPnl": "0",
    "curRealisedPnl": "-2.06",
    "cumRealisedPnl": "-25.06579337",
    "createdTime": "1694402496913",
    "updatedTime": "1697682317038",
    "tpslMode": "Full",
    "liqPrice": "0",
    "bustPrice": "",
    "category": "linear",
    "positionStatus": "Normal",
    "adlRankIndicator": 0,
    "autoAddMargin": 0,
    "leverageSysUpdatedTime": "",
    "mmrSysUpdatedTime": "",
    "seq": 8327597863,
    "isReduceOnly": false
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/private/wallet.html b/zh-TW/v5/websocket/private/wallet.html index 8b813bf7c2..fe8d00b7b6 100644 --- a/zh-TW/v5/websocket/private/wallet.html +++ b/zh-TW/v5/websocket/private/wallet.html @@ -4,13 +4,13 @@ 錢包 | Bybit API Documentation - +

    錢包

    訂閱錢包數據推送

    Topic: wallet

    信息
    • 在訂閱成功後不會立馬推送快照數據, 只有當餘額發生變化時, 才會觸發推送
    • 浮動盈虧的變化不會觸發推送

    響應參數

    參數類型說明
    idstring消息id
    topicstringTopic名
    creationTimenumber消息數據創建時間
    dataarrayObject
    > accountTypestring帳戶類型.
    > accountLTVstring字段廢棄
    > accountIMRatestring帳戶初始保證金率
  • 您可以參考該鏈結了解統一帳戶下字段含義和計算方式
  • 下面所有帳戶維度的字段都不適用於
    統一帳戶2.0(逐倉模式),
    統一帳戶1.0(逐倉模式), 統一帳戶1.0(CONTRACT),
    經典帳戶(SPOT, CONTRACT)
  • > accountMMRatestring帳戶維持保證金率
    > totalEquitystring總凈值為賬戶中每個幣種資產凈值的法幣估值之和 (USD)
    > totalWalletBalancestring賬戶維度換算成usd的錢包餘額: ∑Asset Wallet Balance By USD value of each asset
    > totalMarginBalancestring賬戶維度換算成usd的保證金餘額: totalWalletBalance + totalPerpUPL
    > totalAvailableBalancestring賬戶維度換算成usd的可用餘額: 全倉保證金: totalMarginBalance - totalInitialMargin
    > totalPerpUPLstring賬戶維度換算成usd的永續和USDC交割合約的浮動盈虧: ∑Each perp and USDC Futures upl by base coin
    > totalInitialMarginstring賬戶維度換算成usd的總初始保證金: ∑Asset Total Initial Margin Base Coin
    > totalMaintenanceMarginstring賬戶維度換算成usd的總維持保證金: ∑Asset Total Maintenance Margin Base Coin
    > coinarrayObject. 幣種列表
    >> coinstring幣種名稱,例如 BTC, ETH, USDT, USDC
    >> equitystring當前幣種的資產淨值
    >> usdValuestring當前幣種折算成 usd 的價值, 如果該幣種不能作為保證金的抵押品, 則該數值為0
    >> walletBalancestring當前幣種的錢包餘額
    >> freestring經典帳戶現貨錢包的可用餘額. 經典帳戶現貨錢包的獨有字段
    >> lockedstring現貨掛單凍結金額
    >> spotHedgingQtystring用於組合保證金(PM)現貨對衝的數量, 截斷至8為小數, 默認為0 統一帳戶的獨有字段
    >> borrowAmountstring當前幣種的已用借貸額度
    >> availableToWithdrawstring當前幣種的可劃轉提現金額
    >> accruedIntereststring當前幣種的預計要在下一個利息週期收取的利息金額
    >> totalOrderIMstring以當前幣種結算的訂單委託預佔用保證金. 組合保證金模式下,該字段返回空字符串
    >> totalPositionIMstring以當前幣種結算的所有倉位起始保證金求和 + 所有倉位的預佔用平倉手續費. 組合保證金模式下,該字段返回空字符串
    >> totalPositionMMstring以當前幣種結算的所有倉位維持保證金求和. 組合保證金模式下,該字段返回空字符串
    >> unrealisedPnlstring以當前幣種結算的所有倉位的未結盈虧之和
    >> cumRealisedPnlstring以當前幣種結算的所有倉位的累計已結盈虧之和
    >> bonusstring體驗金. UNIFIED帳戶的獨有字段
    >> marginCollateralboolean是否可作為保證金抵押幣種(平台維度), true: 是. false: 否
    • 當marginCollateral=false時, 則collateralSwitch無意義
    • UNIFIED帳戶的獨有字段
    >> collateralSwitchboolean用戶是否開啟保證金幣種抵押(用戶維度), true: 是. false: 否
    • 僅當marginCollateral=true時, 才能主動選擇開關抵押
    • UNIFIED帳戶的獨有字段
    >> availableToBorrowstring由於母子共享借貸限額, 該字段已廢棄, 總是返回"". 請通過查詢抵押品信息接口查詢availableToBorrow

    訂閱示例

    {
    "op": "subscribe",
    "args": [
    "wallet"
    ]
    }
    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="private",
    api_key="XXXXX",
    api_secret="XXXXX",
    )
    def handle_message(message):
    print(message)
    ws.wallet_stream(callback=handle_message)
    while True:
    sleep(1)

    推送示例

    {
    "id": "592324d2bce751-ad38-48eb-8f42-4671d1fb4d4e",
    "topic": "wallet",
    "creationTime": 1700034722104,
    "data": [
    {
    "accountIMRate": "0",
    "accountMMRate": "0",
    "totalEquity": "10262.91335023",
    "totalWalletBalance": "9684.46297164",
    "totalMarginBalance": "9684.46297164",
    "totalAvailableBalance": "9556.6056555",
    "totalPerpUPL": "0",
    "totalInitialMargin": "0",
    "totalMaintenanceMargin": "0",
    "coin": [
    {
    "coin": "BTC",
    "equity": "0.00102964",
    "usdValue": "36.70759517",
    "walletBalance": "0.00102964",
    "availableToWithdraw": "0.00102964",
    "availableToBorrow": "",
    "borrowAmount": "0",
    "accruedInterest": "0",
    "totalOrderIM": "",
    "totalPositionIM": "",
    "totalPositionMM": "",
    "unrealisedPnl": "0",
    "cumRealisedPnl": "-0.00000973",
    "bonus": "0",
    "collateralSwitch": true,
    "marginCollateral": true,
    "locked": "0",
    "spotHedgingQty": "0.01592413"
    }
    ],
    "accountLTV": "0",
    "accountType": "UNIFIED"
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/etp-kline.html b/zh-TW/v5/websocket/public/etp-kline.html index d08aeb8006..de055e0aa8 100644 --- a/zh-TW/v5/websocket/public/etp-kline.html +++ b/zh-TW/v5/websocket/public/etp-kline.html @@ -4,14 +4,14 @@ ETP淨值K線 | Bybit API Documentation - +

    ETP淨值K線

    訂閱槓桿代幣的淨值K線行情推送服務

    提示

    confirm=true, 則表示這根蠟燭是最後一根K線, 否則,這是切片數據

    可用的時間粒度:

    • 1 3 5 15 30 (分鐘)
    • 60 120 240 360 720 (分鐘)
    • D (天)
    • W (週)
    • M (月)

    推送頻率: 1-60秒

    Topic:
    kline_lt.{interval}.{symbol} e.g., kline_lt.30.BTC3SUSDT

    響應參數

    參數類型說明
    topicstringTopic名
    typestring數據類型. snapshot
    tsnumber行情服務生成數據的時間戳 (毫秒)
    dataarrayObject
    > startnumber開始時間戳 (毫秒)
    > endnumber結束時間戳 (毫秒). 若時間還未到時間跨度的最後時間,則表示當前時間
    > intervalstringK線粒度
    > openstring開盤價
    > closestring收盤價
    > highstring最高價
    > lowstring最低價
    > confirmboolean是否確認
    > timestampnumber蠟燭中最後一筆淨值時間戳 (毫秒)

    訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="spot",
    )
    def handle_message(message):
    print(message)
    ws.lt_kline_stream(
    interval=30,
    symbol="EOS3LUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    響應示例

    {
    "type": "snapshot",
    "topic": "kline_lt.5.EOS3LUSDT",
    "data": [
    {
    "start": 1672325100000,
    "end": 1672325399999,
    "interval": "5",
    "open": "0.416039541212402799",
    "close": "0.41477848043290448",
    "high": "0.416039541212402799",
    "low": "0.409734237314911206",
    "confirm": false,
    "timestamp": 1672325322393
    }
    ],
    "ts": 1672325322393
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/etp-nav.html b/zh-TW/v5/websocket/public/etp-nav.html index 71108254b5..00bfac2f20 100644 --- a/zh-TW/v5/websocket/public/etp-nav.html +++ b/zh-TW/v5/websocket/public/etp-nav.html @@ -4,14 +4,14 @@ ETP最新淨值推送 | Bybit API Documentation - +

    ETP最新淨值推送

    訂閱槓桿代幣的最新淨值行情數據

    推送頻率: 300ms

    Topic:
    lt.{symbol} e.g.,lt.BTC3SUSDT

    響應參數

    參數類型說明
    topicstringTopic名
    typestring數據類型. snapshot
    tsnumber行情服務生成數據的時間戳 (毫秒)
    dataarrayObject
    > timenumber淨值生成時間戳 (毫秒)
    > symbolstring合約名稱
    > navstring淨值
    > basketPositionstring籃子頭寸
    > leveragestring槓桿倍數
    > basketLoanstring籃子借貸
    > circulationstring發行量
    > basketstring籃子

    訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="spot",
    )
    def handle_message(message):
    print(message)
    ws.lt_nav_stream(
    symbol="EOS3LUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    響應示例

    {
    "topic": "lt.EOS3LUSDT",
    "ts": 1672325564669,
    "type": "snapshot",
    "data": {
    "symbol": "EOS3LUSDT",
    "time": 1672325564554,
    "nav": "0.413517419653406162",
    "basketPosition": "1.261060779498318641",
    "leverage": "2.656197506416192150",
    "basketLoan": "-0.684866519289629374",
    "circulation": "72767.309468460367138199",
    "basket": "91764.000000292013277472"
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/etp-ticker.html b/zh-TW/v5/websocket/public/etp-ticker.html index 0cf1e5707e..70b30efe0f 100644 --- a/zh-TW/v5/websocket/public/etp-ticker.html +++ b/zh-TW/v5/websocket/public/etp-ticker.html @@ -4,14 +4,14 @@ ETP淨值行情推送 | Bybit API Documentation - +

    ETP淨值行情推送

    訂閱槓桿代幣淨值行情數據

    推送頻率: 300ms

    Topic:
    tickers_lt.{symbol} e.g.,tickers_lt.BTC3SUSDT

    響應參數

    參數類型說明
    topicstringTopic名
    typestring數據類型. snapshot
    tsnumber行情服務生成數據的時間戳 (毫秒)
    dataarrayObject
    > symbolstring合約名稱
    > price24hPcntstring市價相對24h變化百分比
    > lastPricestring最新淨值
    > prevPrice24hstring24小時前的整點市價
    > highPrice24hstring最近24小時的最高價
    > lowPrice24hstring最近24小時的最低價

    訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="spot",
    )
    def handle_message(message):
    print(message)
    ws.lt_ticker_stream(
    symbol="EOS3LUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    Response Example

    {
    "topic": "tickers_lt.EOS3LUSDT",
    "ts": 1672325446847,
    "type": "snapshot",
    "data": {
    "symbol": "EOS3LUSDT",
    "lastPrice": "0.41477848043290448",
    "highPrice24h": "0.435285472510871305",
    "lowPrice24h": "0.394601507960931382",
    "prevPrice24h": "0.431502290172376349",
    "price24hPcnt": "-0.0388"
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/kline.html b/zh-TW/v5/websocket/public/kline.html index a87f527c54..d371bc0a8d 100644 --- a/zh-TW/v5/websocket/public/kline.html +++ b/zh-TW/v5/websocket/public/kline.html @@ -4,14 +4,14 @@ K線 | Bybit API Documentation - +

    K線

    訂閱K線推送

    提示

    註意如果字段confirm為true, 則表明這是這根K線的最後一個tick;否則,這只是一個快照數據,即中間價格

    可用時間粒度:

    • 1 3 5 15 30 (分鐘)
    • 60 120 240 360 720 (分鐘)
    • D (天)
    • W (週)
    • M (月)

    推送頻率: 1-60s

    Topic:
    kline.{interval}.{symbol} e.g., kline.30.BTCUSDT

    響應參數

    參數類型說明
    topicstringTopic名
    typestring數據類型. snapshot
    tsnumber行情服務生成數據的時間戳 (毫秒)
    dataarrayObject
    > startnumber開始時間戳 (毫秒)
    > endnumber結束時間戳 (毫秒)
    > intervalstringK線粒度
    > openstring開盤價
    > closestring收盤價
    > highstring最高價
    > lowstring最低價
    > volumestring交易量
    > turnoverstring交易額
    > confirmboolean是否確認
    > timestampnumber蠟燭中最後一筆淨值時間戳 (毫秒)

    訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.kline_stream(
    interval=5,
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    響應示例

    {
    "topic": "kline.5.BTCUSDT",
    "data": [
    {
    "start": 1672324800000,
    "end": 1672325099999,
    "interval": "5",
    "open": "16649.5",
    "close": "16677",
    "high": "16677",
    "low": "16608",
    "volume": "2.081",
    "turnover": "34666.4005",
    "confirm": false,
    "timestamp": 1672324988882
    }
    ],
    "ts": 1672324988882,
    "type": "snapshot"
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/liquidation.html b/zh-TW/v5/websocket/public/liquidation.html index 0b116b3a5a..5a67472476 100644 --- a/zh-TW/v5/websocket/public/liquidation.html +++ b/zh-TW/v5/websocket/public/liquidation.html @@ -4,14 +4,14 @@ 強平推送 | Bybit API Documentation - +

    強平推送

    訂閱Bybit平台上的強平推送, symbol维度最多1秒推一条爆仓数据

    推送頻率: 1秒

    Topic:
    liquidation.{symbol} e.g., liquidation.BTCUSDT

    響應參數

    參數類型說明
    topicstringTopic名
    typestring數據類型. snapshot
    tsnumber行情服務生成數據的時間戳 (毫秒)
    dataObject
    > updatedTimenumber數據更新時間戳 (毫秒)
    > symbolstring合約名稱
    > sidestring被平的倉位方向. Buy,Sell
  • 如果您收到一條Buy的推送更新, 則表面有一個多倉被強平了
  • > sizestring成交數量
    > pricestring破產價格

    訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.liquidation_stream(
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    響應示例

    {
    "topic": "liquidation.BTCUSDT",
    "type": "snapshot",
    "ts": 1703485237953,
    "data": {
    "updatedTime": 1703485237953,
    "symbol": "BTCUSDT",
    "side": "Sell",
    "size": "0.003",
    "price": "43511.70"
    }
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/orderbook.html b/zh-TW/v5/websocket/public/orderbook.html index c27ab2b629..ff15fb148a 100644 --- a/zh-TW/v5/websocket/public/orderbook.html +++ b/zh-TW/v5/websocket/public/orderbook.html @@ -4,7 +4,7 @@ 深度 | Bybit API Documentation - + @@ -20,7 +20,7 @@ 25 檔數據, 推送頻率: 20ms
    100 檔數據, 推送頻率: 100ms

    Topic:
    orderbook.{depth}.{symbol} e.g., orderbook.1.BTCUSDT

    響應參數

    參數類型說明
    topicstringTopic名
    typestring數據類型. snapshot,delta
    tsnumber行情服務生成數據的時間戳 (毫秒)
    datamapObject
    > sstring合約名稱
    > barrayBid, 買方. snapshot數據,是按照價格從大到小
    >> b[0]string買方報價
    >> b[1]string買方數量
  • 增量數據的推送當出現size=0時,這意味著該價位的報價單全部成交或者全部撤銷
  • > aarrayAsk, 賣方. snapshot數據,是按照價格從小到大
    >> a[0]string賣方報價
    >> a[1]string賣方數量
  • 增量數據的推送當出現size=0時,這意味著該價位的報價單全部成交或者全部撤銷
  • > uinteger更新id, 一般情況下該id是連續的。偶爾會因後台的重啟而發送"u"=1的全量數據,接收到後請覆蓋本地保存的orderbook
    > seqinteger撮合版本號
  • 該字段可以用於關聯不同檔位的orderbook, 如果值越小, 則說明數據生成越早
  • ctsnumber產生此訂單簿數據時來自撮合引擎的時間戳. 可用於與平台成交頻道中的T進行關聯

    訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.orderbook_stream(
    depth=50,
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    響應示例

    {
    "topic": "orderbook.50.BTCUSDT",
    "type": "snapshot",
    "ts": 1672304484978,
    "data": {
    "s": "BTCUSDT",
    "b": [
    ...,
    [
    "16493.50",
    "0.006"
    ],
    [
    "16493.00",
    "0.100"
    ]
    ],
    "a": [
    [
    "16611.00",
    "0.029"
    ],
    [
    "16612.00",
    "0.213"
    ],
    ...,
    ],
    "u": 18521288,
    "seq": 7961638724
    }
    "cts": 1672304484976
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/ticker.html b/zh-TW/v5/websocket/public/ticker.html index 6879568729..7354c1cfe8 100644 --- a/zh-TW/v5/websocket/public/ticker.html +++ b/zh-TW/v5/websocket/public/ticker.html @@ -4,14 +4,14 @@ 行情 | Bybit API Documentation - +

    行情

    訂閱行情數據推送.

    警告
    • 注意,該topic推送delta數據和snapshot数据。如果delta數據中缺失一些字段,表明該字段自上次推送以來沒有發生變化。
    • 現貨和期權只推送snapshot類型數據

    推送頻率: 期貨和期權 - 100ms, 現貨 - 實時

    Topic:
    tickers.{symbol}

    響應參數

    參數類型說明
    topicstringTopic名稱
    typestring數據類型. `snapshot`,`delta`
    csinteger撮合版本號
    tsnumber行情服務生成數據的時間戳 (毫秒)
    dataarrayObject
    > symbolstring合約名稱
    > tickDirectionstring價格變化方向
    > price24hPcntstring市場價格相對24h前變化的百分比
    > lastPricestring最新市場成交價
    > prevPrice24hstring24小時前的整點市價
    > highPrice24hstring最近24小時的最高價
    > lowPrice24hstring最近24小時的最低價
    > prevPrice1hstring1小時前的整點市價
    > markPricestring標記價格
    > indexPricestring指數價格
    > openIntereststring未平倉合約的數量
    > openInterestValuestring未平倉合約的價值
    > turnover24hstring最近24小時成交額
    > volume24hstring最近24小時成交量
    > nextFundingTimestring下次結算資金費用的時間戳 (毫秒)
    > fundingRatestring資金費率
    > bid1Pricestring買1價
    > bid1Sizestring買1價的數量
    > ask1Pricestring賣1價
    > ask1Sizestring賣1價的數量
    > deliveryTimedatetime交割日期時間 (UTC+0). 反向交割和USDC交割獨有字段
    > basisRatestring基差率. 反向交割和USDC交割獨有字段
    > deliveryFeeRatestring交割費率. 反向交割和USDC交割獨有字段
    > predictedDeliveryPricestring預估交割價格. 反向交割和USDC交割獨有字段
    > preOpenPricestring盤前合約預估開盤價格
  • 在進入連續競價後, 該值無意義
  • USDC交割合約, 反向交割合約不輸出該字段
  • > preQtystring盤前合約預估開盤數量
  • 進入連續競價後, 該值無意義
  • USDC交割合約, 反向交割合約不輸出該字段
  • > curPreListingPhasestring當前盤前交易階段
  • USDC交割合約, 反向交割合約不輸出該字段
  • 訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.ticker_stream(
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    響應示例

    {
    "topic": "tickers.BTCUSDT",
    "type": "snapshot",
    "data": {
    "symbol": "BTCUSDT",
    "tickDirection": "PlusTick",
    "price24hPcnt": "0.017103",
    "lastPrice": "17216.00",
    "prevPrice24h": "16926.50",
    "highPrice24h": "17281.50",
    "lowPrice24h": "16915.00",
    "prevPrice1h": "17238.00",
    "markPrice": "17217.33",
    "indexPrice": "17227.36",
    "openInterest": "68744.761",
    "openInterestValue": "1183601235.91",
    "turnover24h": "1570383121.943499",
    "volume24h": "91705.276",
    "nextFundingTime": "1673280000000",
    "fundingRate": "-0.000212",
    "bid1Price": "17215.50",
    "bid1Size": "84.489",
    "ask1Price": "17216.00",
    "ask1Size": "83.020"
    },
    "cs": 24987956059,
    "ts": 1673272861686
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/public/trade.html b/zh-TW/v5/websocket/public/trade.html index bc4e38f709..79a9071bba 100644 --- a/zh-TW/v5/websocket/public/trade.html +++ b/zh-TW/v5/websocket/public/trade.html @@ -4,7 +4,7 @@ 平台成交 | Bybit API Documentation - + @@ -12,7 +12,7 @@

    平台成交

    訂閱Bybit平台上最近成交的推送.
    從用戶訂閱開始, 實時推送增量交易歷史, 有成交數據就推送.

    推送頻率: 實時

    Topic:
    publicTrade.{symbol} 注意: 期權使用baseCoin, e.g., publicTrade.BTC

    響應參數

    參數類型說明
    idstring消息 id. 期權沒有該字段
    topicstringTopic名
    typestring數據類型. snapshot
    tsnumber行情服務生成數據的時間戳 (毫秒)
    dataarrayObject. 如有多條, 則數組中的元素按照匹配時間升序排序
    > Tnumber成交時間戳 (毫秒)
    > sarray合約名稱
    > Sstring吃單方向. Buy,Sell
    > vstring成交數量
    > pstring成交價格
    > Lstring價格變化的方向. 期權沒有該字段
    > istring成交Id
    > BTboolean成交類型是否為大宗交易
    > mPstring標記價格, 期權的特有字段
    > iPstring指數價格, 期權的特有字段
    > mIvstring標記iv, 期權的特有字段
    > ivstringiv, 期權的特有字段

    訂閱示例

    from pybit.unified_trading import WebSocket
    from time import sleep
    ws = WebSocket(
    testnet=True,
    channel_type="linear",
    )
    def handle_message(message):
    print(message)
    ws.trade_stream(
    symbol="BTCUSDT",
    callback=handle_message
    )
    while True:
    sleep(1)

    響應示例

    {
    "topic": "publicTrade.BTCUSDT",
    "type": "snapshot",
    "ts": 1672304486868,
    "data": [
    {
    "T": 1672304486865,
    "s": "BTCUSDT",
    "S": "Buy",
    "v": "0.001",
    "p": "16578.50",
    "L": "PlusTick",
    "i": "20f43950-d8dd-5b31-9112-a178eb6023af",
    "BT": false
    }
    ]
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/websocket/trade/guideline.html b/zh-TW/v5/websocket/trade/guideline.html index 467a876608..ffd8c4e4d1 100644 --- a/zh-TW/v5/websocket/trade/guideline.html +++ b/zh-TW/v5/websocket/trade/guideline.html @@ -4,13 +4,13 @@ Websocket下單指南 | Bybit API Documentation - +

    Websocket下單指南

    路徑

    • 主網:
      wss://stream.bybit.com/v5/trade
    信息

    帳戶創建自"www.bybit-tr.com"的用戶, 請使用wss://stream.bybit-tr.com/v5/trade

    • 測試網:
      wss://stream-testnet.bybit.com/v5/trade

    支持範圍

    鑒權請求

    請求參數

    參數是否必需類型說明
    reqIdfalsestring可選參數, 可用於匹配響應。長度不能超過36個字串。
  • 若不傳, 該字段不會從響應種返回
  • optruestringOp類型 auth
    argsfalsestring["api密鑰", 過期時間, "簽名"]. 請參閱這裡來生成簽名

    響應參數

    參數類型說明
    reqIdstring
  • 若請求有傳, 則響應存在該字段
  • 若請求不傳, 則響應沒有該字段
  • retCodeinteger
  • 0: 鑒權成功
  • 20001: 重複請求
  • 10004: 無效簽名
  • 10001: 參數錯誤
  • retMsgstring
  • OK
  • 報錯信息
  • opstringOp類型
    connIdstring連接的唯一id

    請求示例

    {
    "op": "auth",
    "args": [
    "XXXXXX",
    1711010121452,
    "ec71040eff72b163a36153d770b69d6637bcb29348fbfbb16c269a76595ececf"
    ]
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "op": "auth",
    "connId": "cnt5leec0hvan15eukcg-2t"
    }

    下單/改單/撤單

    請求參數

    參數是否必需類型說明
    reqIdfalsestring請求reqId, 可作為請求的唯一標識, 若有傳, 則響應會返回該字段
  • 當傳, 需保證唯一, 否則將會拿到錯誤 "20006"
  • headertrueobject請求頭
    > X-BAPI-TIMESTAMPtruestring當前時間戳
    > X-BAPI-RECV-WINDOWfalsestring默認5000(毫秒). 請求的時間需要滿足該公式: Bybit服務器時間 - X-BAPI-RECV-WINDOW <= X-BAPI-TIMESTAMP < Bybit服務器時間 + 1000
    > RefererfalsestringAPI broker用戶返佣標識
    optruestringOp類型
  • order.create: 創建訂單
  • order.amend: 修改訂單
  • order.cancel: 撤銷訂單
  • argsfalsearray<object>參數數組, 目前僅支持一個元素
  • order.create: 請參閱創建訂單請求參數
  • order.amend: 請參閱修改訂單參數
  • order.cancel: 請參閱撤銷訂單參數
  • 響應參數

    參數類型說明
    reqIdstring
  • 若請求有傳, 則響應存在該字段
  • 若請求不傳, 則響應沒有該字段
  • retCodeinteger
  • 0: 成功
  • 10404: 1. op類型未找到; 2. category不支持/未找到
  • 10429: 觸發系統級別的頻率保護
  • 20006: reqId重複
  • 10016: 1.內部錯誤; 2. 服務重啟
  • 10019: ws下單服務正在重啟, 拒絕新的請求, 正在處理中的請求不受影響. 您可以重新/新建連接, 會分配到正常的服務上
  • retMsgstring
  • OK
  • ""
  • 報錯信息
  • opstringOp類型
    dataobject業務數據, 和rest api響應的result字段業務數據一致
  • order.create: 請參閱創建訂單響應參數
  • order.amend: 請參閱修改訂單響應參數
  • order.cancel: 請參閱取消訂單響應參數
  • headerobject響應頭信息
    > TraceIdstringTrace ID, 用於追蹤請求鏈路 (內部使用)
    > Timenowstring當前時間戳
    > X-Bapi-Limitstring該類型請求的帳戶總頻率
    > X-Bapi-Limit-Statusstring該類型請求的帳戶剩餘可用頻率
    > X-Bapi-Limit-Reset-Timestampstring如果您已超過該接口當前窗口頻率限製,該字段表示下個可用時間窗口的時間戳(毫秒)即什麽時候可以恢復訪問;如果您未超過該接口當前窗口頻率限製,該字段表示返回的是當前服務器時間(毫秒).
    connIdstring連接的唯一id
    信息

    ack僅表示請求被成功接受. 請使用websocket-order推送來確認訂單狀態

    請求示例

    {
    "reqId": "test-005",
    "header": {
    "X-BAPI-TIMESTAMP": "1711001595207",
    "X-BAPI-RECV-WINDOW": "8000",
    "Referer": "bot-001" // for api broker
    },
    "op": "order.create",
    "args": [
    {
    "symbol": "ETHUSDT",
    "side": "Buy",
    "orderType": "Limit",
    "qty": "0.2",
    "price": "2800",
    "category": "linear",
    "timeInForce": "PostOnly"
    }
    ]
    }

    響應示例

    {
    "reqId": "test-005",
    "retCode": 0,
    "retMsg": "OK",
    "op": "order.create",
    "data": {
    "orderId": "a4c1718e-fe53-4659-a118-1f6ecce04ad9",
    "orderLinkId": ""
    },
    "header": {
    "X-Bapi-Limit": "10",
    "X-Bapi-Limit-Status": "9",
    "X-Bapi-Limit-Reset-Timestamp": "1711001595208",
    "Traceid": "38b7977b430f9bd228f4b19724794dfd",
    "Timenow": "1711001595209"
    },
    "connId": "cnt5leec0hvan15eukcg-2v"
    }

    Ping

    請求參數

    參數是否必需類型說明
    optruestringOp類型. ping

    響應參數

    參數類型說明
    retCodeinteger響應碼
    retMsgstring響應信息
    opstringOp類型 pong
    dataarray數組會有有一個元素, 當前時間戳 (字符串類型)
    connIdstring連接的唯一id

    請求示例

    {
    "op": "ping"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "OK",
    "op": "pong",
    "data": [
    "1711002002529"
    ],
    "connId": "cnt5leec0hvan15eukcg-2v"
    }
    - + \ No newline at end of file diff --git a/zh-TW/v5/ws/connect.html b/zh-TW/v5/ws/connect.html index 0f23d207c2..a758fd9da5 100644 --- a/zh-TW/v5/ws/connect.html +++ b/zh-TW/v5/ws/connect.html @@ -4,7 +4,7 @@ 訂閱WebSocket | Bybit API Documentation - + @@ -22,7 +22,7 @@ wss://stream-testnet.bybit.com/v5/private

    WebSocket交易:

    • 主網:
      wss://stream.bybit.com/v5/trade

    • 測試網:
      wss://stream-testnet.bybit.com/v5/trade

    信息

    如果您的帳戶是在 www.bybit-tr.com 註冊, 請使用stream.bybit-tr.com進行主網連接

    自定義私有連接存活時長

    針對私有頻道和交易, 您可以自定義連接存活時長, 通過增加參數max_active_time, 最小支持30s (30秒), 最大支持600s (10分鐘). 如果您需要按分鐘級別配置, 您也可以傳遞1m, 2m等. 例如, wss://stream-testnet.bybit.com/v5/private?max_active_time=1m.

    一般來說, 當客戶端與服務端沒有上下行數據, 包括心跳和交易數據下發, 那麼該連接會在最後一條交互後維持10分鐘, 由服務端斷開. 當您由特別的需求時, 可以通過該字段max_active_time自行控制存活時間.

    由於系統每30秒掃描一次, 因此配置的時長可能無法非常精確, 換句話說, 如果您配置了45秒, 然後最後一條數據下發或者心跳發生在2023-08-15 17:27:23, 您的私有連接可能在2023-08-15 17:28:15發生斷連.

    鑒權

    信息
    公共頻道不需要鑒權,以下部分僅適用於私有頻道的訂閱。

    構建連接時,創建鑒權請求。

    注意: 如果您正在使用pybit, bybit-api或者其他第三方庫, 您可以忽略此項-因為鑒權已經內建。

    {
    "req_id": "10001", // 可選項
    "op": "auth",
    "args": [
    "api_key",
    1662350400000, //過期時間應當大於當前時間戳
    "singature"
    ]
    }
    # based on: https://github.com/bybit-exchange/pybit/blob/master/pybit/_http_manager.py

    import hmac
    import json
    import time
    import websocket

    api_key = ""
    api_secret = ""

    # Generate expires.
    expires = int((time.time() + 1) * 1000)

    # Generate signature.
    signature = str(hmac.new(
    bytes(api_secret, "utf-8"),
    bytes(f"GET/realtime{expires}", "utf-8"), digestmod="sha256"
    ).hexdigest())

    ws = websocket.WebSocketApp(
    url=url,
    ...
    )

    # Authenticate with API.
    ws.send(
    json.dumps({
    "op": "auth",
    "args": [api_key, expires, signature]
    })
    )

    鑒權成功的響應示例

    {
    "success": true,
    "ret_msg": "",
    "op": "auth",
    "conn_id": "cejreaspqfh3sjdnldmg-p"
    }
    備註

    簽名生成的示例可以參考這裡

    警告

    由於網絡的複雜性,您可能隨時遇到斷連。請參考以下建議確保您能即時接收到推送:

    1. 通過發送心跳來維持連接;
    2. 遇到斷連時,立即重新連接。

    IP限頻

    • 不要嘗試頻繁地構建連接與斷開連接;
    • 不要在5分鐘內構建超過500個連接。

    公有頻道訂閱參數限制

    不管是期貨、現貨、期權, 對於單個連接, args裡的數組元素長度總和不能超過21,000個字符

    • 現貨每次向單一連接僅能發送不超過10個參數的訂閱請求,但單個連接沒有args訂閱限制
    • 期權單個連接,至多訂閱2000個args
    • 期貨單個連接沒有args限制

    如何發送心跳

    // req_id is a customised id, which is optional
    ws.send(JSON.stringify({"req_id": "100001", "op": "ping"}));

    公共頻道接收到pong的響應示例

    {
    "success": true,
    "ret_msg": "pong",
    "conn_id": "0970e817-426e-429a-a679-ff7f55e0b16a",
    "op": "ping"
    }

    私有頻道接收到pong的響應示例

    {
    "req_id": "test",
    "op": "pong",
    "args": [
    "1675418560633"
    ],
    "conn_id": "cfcb4ocsvfriu23r3er0-1b"
    }
    警告

    為了維持連接,我們推薦您每20秒發送一次心跳。

    如何訂閱topic

    理解Websocket裡的args

    通過傳入args來訂閱指定topic

    // 訂閱1檔的orderbook
    {
    "req_id": "test", // 可選
    "op": "subscribe",
    "args": [
    "orderbook.1.BTCUSDT"
    ]
    }

    通過逗號隔開,可以同時訂閱多個topic或者多個symbol

    {
    "req_id": "test", // 可選
    "op": "subscribe",
    "args": [
    "orderbook.1.BTCUSDT",
    "publicTrade.BTCUSDT",
    "orderbook.1.ETHUSDT"
    ]
    }

    理解如何取消訂閱

    您可以通過發送請求來動態地停止訂閱:

    {
    "op": "unsubscribe",
    "args": [
    "publicTrade.ETHUSD"
    ],
    "req_id": "customised_id"
    }

    理解訂閱的響應

    訂閱成功後的響應示例

    {
    "success": true,
    "ret_msg": "",
    "op": "subscribe",
    "conn_id": "cejreassvfrsfvb9v1a0-2m"
    }
    - + \ No newline at end of file