Ripio Wallet - Execute Transfer
curl --request POST \
--url https://api.ripio.com/trade/ripio-wallet/transfer/{currency} \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>' \
--data '
{
"amount": "100",
"direction": "TO_WALLET"
}
'import requests
url = "https://api.ripio.com/trade/ripio-wallet/transfer/{currency}"
payload = {
"amount": "100",
"direction": "TO_WALLET"
}
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amount: '100', direction: 'TO_WALLET'})
};
fetch('https://api.ripio.com/trade/ripio-wallet/transfer/{currency}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ripio.com/trade/ripio-wallet/transfer/{currency}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '100',
'direction' => 'TO_WALLET'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ripio.com/trade/ripio-wallet/transfer/{currency}"
payload := strings.NewReader("{\n \"amount\": \"100\",\n \"direction\": \"TO_WALLET\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ripio.com/trade/ripio-wallet/transfer/{currency}")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"100\",\n \"direction\": \"TO_WALLET\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/ripio-wallet/transfer/{currency}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"100\",\n \"direction\": \"TO_WALLET\"\n}"
response = http.request(request)
puts response.read_body{
"data": 123,
"error_code": null,
"message": null
}Ripio Wallet
Execute Transfer
Executes a transfer of funds between Ripio Trade and Ripio Wallet.
The transfer can be initiated in both directions:
- TO_WALLET: Moves funds from Ripio Trade to Ripio Wallet
- FROM_WALLET: Moves funds from Ripio Wallet to Ripio Trade
Authorization
- Requires a valid API key.
- Required API-key permission(s):
- Internal Balance Transfer (Write)
POST
/
trade
/
ripio-wallet
/
transfer
/
{currency}
Ripio Wallet - Execute Transfer
curl --request POST \
--url https://api.ripio.com/trade/ripio-wallet/transfer/{currency} \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>' \
--data '
{
"amount": "100",
"direction": "TO_WALLET"
}
'import requests
url = "https://api.ripio.com/trade/ripio-wallet/transfer/{currency}"
payload = {
"amount": "100",
"direction": "TO_WALLET"
}
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amount: '100', direction: 'TO_WALLET'})
};
fetch('https://api.ripio.com/trade/ripio-wallet/transfer/{currency}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ripio.com/trade/ripio-wallet/transfer/{currency}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '100',
'direction' => 'TO_WALLET'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ripio.com/trade/ripio-wallet/transfer/{currency}"
payload := strings.NewReader("{\n \"amount\": \"100\",\n \"direction\": \"TO_WALLET\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ripio.com/trade/ripio-wallet/transfer/{currency}")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"100\",\n \"direction\": \"TO_WALLET\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/ripio-wallet/transfer/{currency}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"100\",\n \"direction\": \"TO_WALLET\"\n}"
response = http.request(request)
puts response.read_body{
"data": 123,
"error_code": null,
"message": null
}Headers
The API key as a string.
See the Generating Signature section for more details.
A timestamp in milliseconds. See the Timestamp Security section for more details.
An additional, non-required parameter, that you can send to specify the number of milliseconds after the timestamp for the request to be valid. See the Timestamp Security section for more details.
Path Parameters
This property was not properly documented
Body
application/json
Amount to transfer in the specified currency. Must be greater than 0. The amount is validated against available balance and minimum transfer limits.
Example:
"100"
Transfer direction indicating the fund flow:
- TO_WALLET: Transfer from Ripio Trade to Ripio Wallet
- FROM_WALLET: Transfer from Ripio Wallet to Ripio Trade
Example:
"TO_WALLET"