Create Transfer
Last updated
{
"from_transaction_id": 5467771,
"to_transaction_id": 5467772,
"currency": "btc",
"quantity": 1,
"from_wallet": "trading",
"to_wallet": "collateral"
}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/transferconst axios = require('axios');
axios({
method: 'post',
url: 'https://api.sfox.com/v1/account/transfer',
headers: {
'Authorization': 'Bearer <API_KEY>'
},
data: {
currency: 'btc',
quantity: 1,
from_wallet: 'trading',
to_wallet: 'collateral'
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});import requests
data = requests.post(
"https://api.sfox.com/v1/account/transfer",
headers={
"Authorization": "Bearer <API_KEY>",
},
data={
"currency": "btc",
"quantity": 1,
"from_wallet": "trading",
"to_wallet": "collateral"
}
)
print(data)