Get Crypto Transactions
Retrieve all crypto transactions.
For all transactions related to the private endpoint, you must authorize before sending your request.
For more information you can check our Authentication V1 article.
4 parameters can be used to access user crypto transactions.
You can access user crypto transactions with
type
,symbol
,startDate
, andendDate
parameters.
Crypto
GET
https://api.btcturk.com/api/v1/users/transactions/crypto
Query Parameters
type
array
string array, {"deposit", "withdrawal"}
symbol
array
string array, {"btc", "usdt", ...etc.}
startDate
integer
long, Optional timestamp if null will return last 30 days
endDate
integer
long, Optional timestamp if null will return last 30 days
Headers
X-PCK*
string
API public key. You can create the API key from the Account > API Access page in your exchange account.
X-Stamp*
integer
Nonce must be current timestamp in miliseconds. It is a must to sync your current time with API server time which is in miliseconds format. Our servers are using UTC timezone.
X-Signature*
string
Signature is a HMAC-SHA256 encoded message. The HMAC-SHA256 code must be generated using a private key that contains a timestamp as nonce and your API key.
{
"data": [
{
"balanceType": "deposit",
"currencySymbol": "USDT",
"address": "",
"tag": "",
"txHash": "",
"confirmationCount": 1,
"isConfirmed": false,
"id": ,
"timestamp": ,
"amount": "",
"fee": "0",
"tax": "0"
}
],
"success": true,
"message": "SUCCESS",
"code": 0
}
Crypto Transaction Code Example
// You can download ApiClient .net core complete library from github https://github.com/BTCTrader/broker-api-csharp-v2
var configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();
var publicKey = configuration["publicKey"];
var privateKey = configuration["privateKey"];
var resourceUrl = configuration["resourceUrl"];
var apiClientV1 = new ApiClientV1(publicKey, privateKey, resourceUrl);
var userCryptoTransactions = apiClientV1.GetUserCryptoTransactions(new[] { "deposit", "withdrawal" }, new[] { "btc", "eth", "xrp" }, DateTime.UtcNow.AddDays(-30).ToUnixTime(), DateTime.UtcNow.ToUnixTime());
if (userCryptoTransactions.Result.Success)
{
foreach (var userCryptoTransaction in userCryptoTransactions.Result.Data)
{
Console.WriteLine(userCryptoTransaction);
}
}
Last updated
Was this helpful?