Create Transfer

POST https://api.sfox.com/v1/account/transfer

Transfer funds between your account's trading and collateral wallets.

Hedge long positions: Transfer funds to your collateral wallet so you can open a short position on the same currency in your trading wallet.

Transfers from your collateral wallet to your trading wallet will automatically settle unsettled positions, if applicable, first. The remainder, if any, will be applied to your trading wallet.

Body Parameters

Response Body

Responses

200
{
    "from_transaction_id": 5467771,
    "to_transaction_id": 5467772,
    "currency": "btc",
    "quantity": 1,
    "from_wallet": "trading",
    "to_wallet": "collateral"
}

Example Requests

curl -H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-X POST \
--data '{"currency": "btc", "quantity": "1", "from_wallet": "trading", "to_wallet": "collateral"}' \
https://api.sfox.com/v1/account/transfer

Last updated