Transfer

Initiate an asset transfer between accounts. Supported transfer types include: Intra-exchange transfer, Cross-exchange transfer, Transfer between Funding Accounts and Trading Portfolios, Transfer between Trading Accounts. Note: Only API keys with Transfer permissions are authorized to call this endpoint.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

Tips

Applies to both user and trading portfolio's API Key. Permission: TRANSFER.

Request

Field nameTypeNecessaryRemarks
fromTradeAccountIdLongYOutgoing Trade account ID (obtained through Trade account list)
This field is applicable to Exchange account, Funding Account, CL Trading Account and Trading Portfolio's ID.
toTradeAccountIdLongYPosting Trade account ID (obtained through Trade account list)
This field is applicable to Exchange account, Funding Account, CL Trading Account and Trading Portfolio's ID.
fromAccountTypeStringConditionalSource account type. Required for a RapidX Trading Portfolio: BINANCE, OKX or EDX. For a DMA exchange account, choose the standardized V2 value for its exchange and account mode. Standardized V2 values are recommended on this V1 endpoint; existing supported V1 values remain compatible. See Account Types.
toAccountTypeStringConditional

Destination account type. Required for a RapidX Trading Portfolio: BINANCE, OKX or EDX. For a DMA exchange account, choose the standardized V2 value for its exchange and account mode. Standardized V2 values are recommended on this V1 endpoint; existing supported V1 values remain compatible. See Account Types.

When toAccountType is Binance, there may be a delay of 0.5–1 hour due to the exchange.

currencyStringYCurrency
networkStringNThis field is only effective for cross-exchange transfers and Funding Acct. related transfers.
amountStringYQuantity (minimum amount :Depend on On-Chain or Exchange Precision Requirements)
rapidTransferBooleanConditionalRapid Transfer currently supports USDT only, and applies to transfers between two trading accounts on the supported venues (Binance, RapidX, Bybit, OKX, Gate, Bitget, Deribit, Coinbase). Transfers involving your Funding Account are not eligible. If the pool at the receiving venue is short of quota, the request continues through the standard transfer flow instead of failing. See the Rapid Transfer guide.
clientOrderIdStringNThe unique user-defined id
loanTransBooleanNOnly the trading account from OKX exchange supports this feature. Other accounts don't support this feature.

Response

Field nameTypeRemarks
transferIdLongTransfer ID

Details

1. API Key

API KeyPermission
Primary user’s API Key- Supports transfers between the funding account and all Trading Portfolios; - Supports transfers between all Trading Portfolios under the same primary user.
Trading Portfolio API Key:- Only supports transfers between different exchanges within the API-owned Trading Portfolio.

2. Account Type

See Account Types for the shared exchange-by-mode enum reference. Use the standardized V2 values for new integrations, including requests to this V1 endpoint. Existing supported V1 values remain compatible; for example, Binance MARGIN is accepted alongside MARGIN_CROSS.

For a DMA account, select the wallet type for its exchange and account mode. For a RapidX Portfolio, select BINANCE, OKX or EDX. Follow this endpoint’s rules for an LTP Funding Account. Enum compatibility does not change permissions or available routes.

Operational notes:

  • Transfers involving Binance Portfolio Margin may take approximately one hour due to exchange processing.
  • Switching a Gate account between Unified and Classic modes may take several minutes to half an hour to synchronize balances.

3. Network

TRC20, BTC, ERC20, BSC, etc. Please refer to the Get Currencies interface for more details.

Body Params
int64
required

Outgoing Trade account ID (obtained through Trade account list)

int64
required

Posting Trade account ID (obtained through Trade account list)

string

Source account type. Required for a RapidX Trading Portfolio: BINANCE, OKX or EDX. For a DMA exchange account, choose the standardized V2 value for its exchange and account mode. Standardized V2 values are recommended on this V1 endpoint; existing supported V1 values remain compatible. See Account Types.

string

Destination account type. Required for a RapidX Trading Portfolio: BINANCE, OKX or EDX. For a DMA exchange account, choose the standardized V2 value for its exchange and account mode. Standardized V2 values are recommended on this V1 endpoint; existing supported V1 values remain compatible. See Account Types.

string
required

Currency

string
required

Quantity(mininum amount : 0.01 BTC ; 0.1 ETH ; 100 USDT )

string

This field will only take effect in cross-exchange transfers.

boolean
Defaults to false

Rapid Transfer currently supports USDT withdrawals from five exchanges: Binance, Bybit, OKX, Coinbase, and Gate. The rapid transfer system will be prioritized. If the transaction does not meet the Rapid Transfer System criteria, the standard transfer process will be used instead.

string

The unique user-defined id

boolean
Defaults to false

Only the trading account from OKX exchange supports this feature. Other accounts don't support this feature.

Response

Language
LoadingLoading…
Response
Choose an example:
application/json