MARGIN (HF Cross Margin), ISOLATED (HF Isolated Margin)MARGIN_V2, ISOLATED_V2 (same meaning; phased out gradually)type is INTERNAL, transfers are limited to internal transfers within the same margin type:MARGIN, MARGIN_V2ISOLATED, ISOLATED_V2type is not INTERNAL, MARGIN_V2 and ISOLATED_V2 are not supported; use MARGIN and ISOLATED.//transfer from master-account to sub-account
{
"clientOid": "64ccc0f164781800010d8c09",
"type": "PARENT_TO_SUB",
"currency": "USDT",
"amount": "0.01",
"fromAccountType": "TRADE",
"toUserId": "63743f07e0c5230001761d08",
"toAccountType": "TRADE"
}
//transfer from sub-account to master-account
// {
// "clientOid": "64ccc0f164781800010d8c09",
// "type": "SUB_TO_PARENT",
// "currency": "BTC",
// "amount": 1,
// "fromUserId": "62f5f5d4d72aaf000122707e",
// "fromAccountType": "TRADE",
// "toAccountType": "CONTRACT"
// }
// internal transfer
// {
// "clientOid": "53666633336123",
// "type": "INTERNAL",
// "currency": "BTC",
// "amount": 0.0003,
// "fromAccountType": "TRADE",
// "toAccountType": "MAIN"
// }
curl --location --request POST 'https://api.kucoin.com/api/v3/accounts/universal-transfer' \
--header 'Content-Type: application/json' \
--data-raw '//transfer from master-account to sub-account
{
"clientOid": "64ccc0f164781800010d8c09",
"type": "PARENT_TO_SUB",
"currency": "USDT",
"amount": "0.01",
"fromAccountType": "TRADE",
"toUserId": "63743f07e0c5230001761d08",
"toAccountType": "TRADE"
}
//transfer from sub-account to master-account
// {
// "clientOid": "64ccc0f164781800010d8c09",
// "type": "SUB_TO_PARENT",
// "currency": "BTC",
// "amount": 1,
// "fromUserId": "62f5f5d4d72aaf000122707e",
// "fromAccountType": "TRADE",
// "toAccountType": "CONTRACT"
// }
// internal transfer
// {
// "clientOid": "53666633336123",
// "type": "INTERNAL",
// "currency": "BTC",
// "amount": 0.0003,
// "fromAccountType": "TRADE",
// "toAccountType": "MAIN"
// }'{
"code": "200000",
"data": {
"orderId": "6705f7248c6954000733ecac"
}
}