Skip to main content
POST
/
api
/
v4
/
main-account
/
transfer
curl --request POST \
  --url https://whitebit.com/api/v4/main-account/transfer \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "ticker": "XLM",
  "amount": "0.9",
  "method": "deposit",
  "request": "{{request}}",
  "nonce": "{{nonce}}"
}
'
[]

Authorizations

X-TXC-APIKEY
string
header
required

API key authentication using signed requests

Body

application/json
ticker
string
required

Currency's ticker.

Example:

"XLM"

amount
string
required

Amount to transfer. Max precision = 8, value should be greater than zero and less or equal your available balance.

Example:

"0.9"

request
string
required

Request signature

nonce
string
required

Unique request identifier

method
enum<string>

Transfer method.

⚠️ We highly recommend to use from and to fields, which provides more flexibility. This way will be deprecated in future.

Example: deposit if you need to transfer from main to trade / withdraw if you need to transfer from trade balance to main. For collateral balances you can use collateral-deposit to transfer from main to collateral balance and collateral-withdraw to transfer from collateral balance to main

Not required if from and to are set.

Available options:
deposit,
withdraw,
collateral-deposit,
collateral-withdraw
from
enum<string>

Balance FROM which funds will move to. Acceptable values: main, spot, collateral

Not required if method is set.

Available options:
main,
spot,
collateral
to
enum<string>

Balance TO which funds will move to. Acceptable values: main, spot, collateral

Not required if method is set.

Available options:
main,
spot,
collateral

Response

All validations succeeded and creating transaction is started