Skip to main content

Transfer Assets

Description​

Transfer funds between the user's spot account and futures account. Usage notes:

  • When returning 10030, request timeouts, or system exceptions occur, you may use the original custom_order_id query result, or alternatively, use the original order number and identical business parameters to re-initiate a transfer. The interface supports idempotent retry of original orders. Retries for the same order will not result in duplicate transfers.
  • On retry, keep custom_order_id, type, asset, amount unchanged, and regenerate the authentication timestamp, nonce, and signature. Do not reuse the order ID for retrying the same transfer. Otherwise, it will be treated as a new order. Retrying an original order means resending the same business request, not blindly replaying the original HTTP request with the old signature.

HTTP Request​

  • POST /api/v3/asset/futures/transfer
  • Supported Products: spot / linear
  • Rate Limit: 10 requests per second per UID

Request Parameters​

FieldTypeRequiredDescription
typestringYesTransfer direction: SPOT_FUTURE indicates spot-to-futures transfer; FUTURE_SPOT indicates futures-to-spot transfer.
assetstringYesTransfer asset, e.g. usdt. Use lowercase asset code.
amountstringYesTransfer amount, use decimal string format, must be greater than 0. Integers up to 20 digits, decimals up to 18 digits;
custom_order_idstringYesCustom order number defined by the user, required, up to 128 characters, used for idempotency control. Must remain unchanged when retrying a transfer.

Response Parameters​

Response outer field:

FieldTypeDescription
codeintegerBusiness status code. 200 indicates transfer success; 10030 indicates processing or result not yet determined
messagestringResult description.
dataobject (on success)On success, a transfer order ID is returned. On failure or processing, an empty business message is returned without valid order details.

data field:

FieldTypeDescription
custom_order_idstringUser-defined order number
transfer_idstringSystem transfer order ID, used to query transfer status and reconcile accounts.

Common business status codes:

Status CodeDescriptionRecommendation for handling
200transfer successfulSave order ID for query and reconciliation.
10003Invalid parametersValidate required fields, transfer direction, amount, and order number
10016Insufficient account balanceCheck the available balance of the source account.
10002invalid accountCheck if the account is available.
10701invalid currencyCheck asset code.
30001transfer failedQuery order confirmation status
10030Processing or result not yet determinedQuery using the original order ID, or perform idempotent retries with the original order ID and business parameters unchanged. Do not treat this as a failure.
10000System errorUse the original order number to query results, or maintain the original order number and business parameters unchanged for idempotent retries.

Request Example​

POST /api/v3/asset/futures/transfer HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
ex-api-key: ${API_KEY}
ex-timestamp: ${EX_TIMESTAMP}
ex-nonce: ${EX_NONCE}
ex-signature: ${EX_SIGNATURE}
ex-client-type: API

{"type":"SPOT_FUTURE","asset":"usdt","amount":"10.5","custom_order_id":"my_transfer_001"}

Response Example​

{
"code": 200,
"message": "Success",
"data": {
"custom_order_id": "my_transfer_001",
"transfer_id": "BIZ20260423195300001"
}
}